v1

latestSwagger 2.02026-07-13137761.0 MB
Reference entity

Update/create a reference entity

This endpoint allows you to update a given reference entity. Note that if the reference entity does not already exist, it creates it.

patch/api/rest/v1/reference-entities/{code}

Path parameters

codestring required

Code of the resource

Request body

codestring required

Reference entity code

imagestring

Code of the reference entity image

Example request

{
  "code": "brands",
  "labels": {
    "en_US": "Brands",
    "fr_FR": "Marques"
  },
  "image": "0/2/d/6/54d81dc888ba1501a8g765f3ab5797569f3bv756c_ref_img.png"
}

Response

Created