curl --request POST \
--url https://api.breakcold.com/rest/attribute \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"id_object": "<string>",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"currency": "<string>",
"type": "TEXT",
"isMultiSelect": true,
"select_options": [
{
"name": "<string>",
"color": "<string>"
}
]
}'
{
"type": "TEXT",
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"isMultiSelect": true,
"isSystem": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id_space": "<string>",
"attribute_definitions_select_options_order": [
"<string>"
],
"object_definitionsId": "<string>"
}
curl --request POST \
--url https://api.breakcold.com/rest/attribute \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"id_object": "<string>",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"currency": "<string>",
"type": "TEXT",
"isMultiSelect": true,
"select_options": [
{
"name": "<string>",
"color": "<string>"
}
]
}'
{
"type": "TEXT",
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"isMultiSelect": true,
"isSystem": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id_space": "<string>",
"attribute_definitions_select_options_order": [
"<string>"
],
"object_definitionsId": "<string>"
}
Successful response
The response is of type object
.