v1

latestSwagger 2.02026-07-13137761.0 MB
Reference entity attribute option

Update/create a reference entity attribute option

This endpoint allows you to update a given option for a given attribute and a given reference entity. Learn more about <a href="/documentation/update.html#patch-reference-entity-record-values">Update behavior</a>. Note that if the option does not already exist for the given attribute of the given reference entity, it creates it.

patch/api/rest/v1/reference-entities/{reference_entity_code}/attributes/{attribute_code}/options/{code}

Path parameters

reference_entity_codestring required

Code of the reference entity

attribute_codestring required

Code of the attribute

codestring required

Code of the resource

Request body

codestring required

Attribute's option code

Example request

{
  "code": "global_nomad",
  "labels": {
    "en_US": "Global Nomad",
    "fr_FR": "Nomade du Monde"
  }
}

Response

Created