Salta ai contenuti

Upsert attribute (create or update)

POST
/v2/product-catalog/attributes
curl --request POST \
--url https://api-crm-staging.divinea.com/api/v2/product-catalog/attributes \
--header 'APIKey: <APIKey>' \
--header 'Content-Type: application/json' \
--data '{ "applicableToTypes": [ "example" ], "attributeId": 1, "code": "example", "displayOrder": 1, "isVisible": true, "names": { "additionalProperty": "example" }, "valueType": "example" }'

Request

Media typeapplication/json
UpsertAttributeRequest
object
applicableToTypes
Array<string>
attributeId
integer format: int64
code
string
displayOrder
integer format: int32
isVisible
boolean
names
object
key
additional properties
string
valueType
string
Examplegenerated
{
"applicableToTypes": [
"example"
],
"attributeId": 1,
"code": "example",
"displayOrder": 1,
"isVisible": true,
"names": {
"additionalProperty": "example"
},
"valueType": "example"
}

OK

Media type*/*
CreationResponse
object
id
string
message
string
status
string