Akeneo PIM REST API
  1. Reference entity record
Akeneo PIM REST API
  • Authentication
    • Get authentication token
      POST
  • Overview
    • Get list of all endpoints
      GET
  • PAM asset category
    • Get list of PAM asset categories
      GET
    • Update/create several PAM asset categories
      PATCH
    • Create a new PAM asset category
      POST
    • Get a PAM asset category
      GET
    • Update/create a PAM asset category
      PATCH
  • Asset family
    • Get list of asset families
      GET
    • Get an asset family
      GET
    • Update/create an asset family
      PATCH
  • Asset
    • Get the list of the assets of a given asset family
      GET
    • Update/create several assets
      PATCH
    • Delete an asset
      DELETE
    • Get an asset of a given asset family
      GET
    • Update/create an asset
      PATCH
  • Asset attribute
    • Get the list of attributes of a given asset family
      GET
    • Get an attribute of a given asset family
      GET
    • Update/create an attribute of a given asset family
      PATCH
  • Asset attribute option
    • Get a list of attribute options of a given attribute for a given asset family
      GET
    • Get an attribute option for a given attribute of a given asset family
      GET
    • Update/create an asset attribute option for a given asset family
      PATCH
  • Asset media file
    • Create a new media file for an asset
    • Download the media file associated to an asset
  • PAM asset tag
    • Get list of PAM asset tags
    • Get a PAM asset tag
    • Update/create a PAM asset tag
  • PAM asset
    • Get list of PAM assets
    • Update/create several PAM assets
    • Create a new PAM asset
    • Get a PAM asset
    • Update/create a PAM asset
  • PAM asset reference file
    • Get a reference file
    • Upload a new reference file
    • Download a reference file
  • PAM asset variation file
    • Get a variation file
    • Upload a new variation file
    • Download a variation file
  • Association type
    • Get a list of association types
    • Update/create several association types
    • Create a new association type
    • Get an association type
    • Update/create an association type
  • Attribute group
    • Get list of attribute groups
    • Update/create several attribute groups
    • Create a new attribute group
    • Get an attribute group
    • Update/create an attribute group
  • Attribute
    • Get list of attributes
    • Update/create several attributes
    • Create a new attribute
    • Get an attribute
    • Update/create an attribute
  • Attribute option
    • Get list of attribute options
    • Update/create several attribute options
    • Create a new attribute option
    • Get an attribute option
    • Update/create an attribute option
  • Category
    • Get list of categories
    • Update/create several categories
    • Create a new category
    • Get a category
    • Update/create a category
    • Download a category media file [COMING SOON]
  • Channel
    • Get a list of channels
    • Update/create several channels
    • Create a new channel
    • Get a channel
    • Update/create a channel
  • Currency
    • Get a list of currencies
    • Get a currency
  • Family
    • Get list of families
    • Update/create several families
    • Create a new family
    • Get a family
    • Update/create a family
    • Create a new family variant
  • Family variant
    • Get list of family variants
    • Update/create several family variants
    • Get a family variant
    • Update/create a family variant
  • Locale
    • Get a list of locales
    • Get a locale
  • Measure family
    • Get list of measure familiy
    • Get a measure family
  • Measurement family
    • Get list of measurement families
    • Update/create several measurement families
  • Product media file
    • Get a list of product media files
    • Create a new product media file
    • Get a product media file
    • Download a product media file
  • Product model
    • Get list of product models
    • Update/create several product models
    • Create a new product model
    • Delete a product model
    • Get a product model
    • Update/create a product model
    • Get a draft
    • Submit a draft for approval
  • Product
    • Get list of products
    • Update/create several products
    • Create a new product
    • Delete a product
    • Get a product
    • Update/create a product
    • Get a draft
    • Submit a draft for approval
  • Published product
    • Get list of published products
    • Get a published product
  • Reference entity
    • Get list of reference entities
    • Get a reference entity
    • Update/create a reference entity
  • Reference entity media file
    • Create a new media file for a reference entity or a record
    • Download the media file associated to a reference entity or a record
  • Reference entity attribute
    • Get the list of attributes of a given reference entity
    • Get an attribute of a given reference entity
    • Update/create an attribute of a given reference entity
  • Reference entity attribute option
    • Get a list of attribute options of a given attribute for a given reference entity
    • Get an attribute option for a given attribute of a given reference entity
    • Update/create a reference entity attribute option
  • Reference entity record
    • Get the list of the records of a reference entity
      GET
    • Update/create several reference entity records
      PATCH
    • Get a record of a given reference entity
      GET
    • Update/create a record of a given reference entity
      PATCH
  • System
    • Get system information
    • Get system information
  • Catalogs
    • Get the list of owned catalogs
    • Create a new catalog
    • Delete a catalog
    • Get a catalog
    • Update a catalog
  • Catalog products
    • Get the list of product uuids
    • Get the list of products related to a catalog
    • Get a product related to a catalog
  • Product [identifier]
    • Get list of products
    • Update/create several products
    • Create a new product
    • Delete a product
    • Get a product
    • Update/create a product
    • Get a draft
    • Submit a draft for approval
  • Product [uuid]
    • Get list of products
    • Update/create several products
    • Create a new product
    • Delete a product
    • Get a product
    • Update/create a product
    • Get a draft
    • Submit a draft for approval
  1. Reference entity record

Update/create several reference entity records

PATCH
/api/rest/v1/reference-entities/{reference_entity_code}/records
Reference entity record
This endpoint allows you to update and/or create several records of one given reference entity at once. Learn more about Update behavior. Note that if the record does not already exist for the given reference entity, it creates it.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/rest/v1/reference-entities//records' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "code": "kartell",
        "values": {
            "collection_overview": [
                {
                    "channel": null,
                    "data": "5/1/d/8/51d81dc778ba1501a8f998f3ab5797569f3b9e25_img.png",
                    "locale": null
                }
            ],
            "country": [
                {
                    "channel": null,
                    "data": "italy",
                    "locale": null
                }
            ],
            "creation_year": [
                {
                    "channel": null,
                    "data": "1949",
                    "locale": null
                }
            ],
            "description": [
                {
                    "channel": null,
                    "data": "Kartell, the Italian furniture company that sells modern and remarkable pieces of furnitures.",
                    "locale": "en_US"
                },
                {
                    "channel": null,
                    "data": "Kartell, l'\''éditeur de meuble italien spécialisé dans la signature de belle pièces au design contemporain.",
                    "locale": "fr_FR"
                }
            ],
            "image": [
                {
                    "channel": null,
                    "data": "0/c/b/0/0cb0c0e115dedba676f8d1ad8343ec207ab54c7b_image.jpg",
                    "locale": null
                }
            ],
            "label": [
                {
                    "channel": null,
                    "data": "Kartell",
                    "locale": "en_US"
                }
            ]
        }
    },
    {
        "code": "ligneroset",
        "values": {
            "country": [
                {
                    "channel": null,
                    "data": "france",
                    "locale": null
                }
            ],
            "creation_year": [
                {
                    "channel": null,
                    "data": "1860",
                    "locale": null
                }
            ],
            "description": [
                {
                    "channel": null,
                    "data": "Very well known French brand of modern and luxury furniture",
                    "locale": "en_US"
                },
                {
                    "channel": null,
                    "data": "La marque renommée des meubles de luxe à la française",
                    "locale": "fr_FR"
                }
            ],
            "image": [
                {
                    "channel": null,
                    "data": "4/b/0/1/0cb0c0e115dedde78b8d1ad8343ec980cd5daa54_image.jpg",
                    "locale": null
                }
            ],
            "label": [
                {
                    "channel": null,
                    "data": "Ligne Roset",
                    "locale": "en_US"
                }
            ]
        }
    },
    {
        "code": "usm",
        "values": {
            "country": [
                {
                    "channel": null,
                    "data": "switzerland",
                    "locale": null
                }
            ],
            "creation_year": [
                {
                    "channel": null,
                    "data": "1885",
                    "locale": null
                }
            ],
            "description": [
                {
                    "channel": null,
                    "data": "Modular furniture from Switzerland for your home and office",
                    "locale": "en_US"
                },
                {
                    "channel": null,
                    "data": "L'\''éditeur de meubles modulaires suisse pour votre intérieur et pour les entreprises",
                    "locale": "fr_FR"
                }
            ],
            "image": [
                {
                    "channel": null,
                    "data": "9/c/g/1/0cb0c0e115dedba76f8d1ad8343ec897abc43bv4_image.jpg",
                    "locale": null
                }
            ],
            "label": [
                {
                    "channel": null,
                    "data": "USM",
                    "locale": "en_US"
                }
            ]
        }
    }
]'
Response Response Example
200 - Example 1
[
  {
    "code": "string",
    "message": "string",
    "status_code": 0
  }
]

Request

Path Params
reference_entity_code
string 
required
Code of the reference entity
Body Params application/json
array of:
code
string 
required
Code of the record
created
string <dateTime>
optional
Date of creation.
Default:
null
updated
string <dateTime>
optional
Date of the last update.
Default:
null
values
object 
optional
Record attributes values, see Reference entity record values section for more details
attributeCode
array [object {3}] 
optional
Examples

Responses

🟢200OK
application/json
Body
array of:
code
string 
optional
Resource code
message
string 
optional
Message explaining the error
status_code
integer 
optional
HTTP status code, see Client errors to understand the meaning of each code
🟠401Authentication required
🟠413Request Entity Too Large
🟠415Unsupported Media type
Modified at 2023-08-15 05:53:55
Previous
Get the list of the records of a reference entity
Next
Get a record of a given reference entity
Built with