Upsert attribute option
Creates or updates an option on a select-type attribute (upsert). Returns 201 if created, 200 if updated. Only supported for manually-managed attributes.
Authorization<token>
API key authentication using Bearer token format. Use: Bearer
In: header
Path Parameters
keystring
Attribute key (entity.key)
valuestring
Option value
Fields to update or create
label?string
value?string
Response Body
curl -X PATCH "https://api.emfas.ai/v1/attributes/string/options/string" \
-H "Content-Type: application/json" \
-d '{}'{
"result": {
"label": "Cotton",
"value": "cotton"
}
}{
"result": {
"label": "Cotton",
"value": "cotton"
}
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}