Update the label, the description or the options of a custom property of the spot. Its type and its slug never change.
Body
Required
-
The label of the custom property. Its slug does not change.
-
The description of the custom property.
-
Every option of a SingleSelect or MultipleSelect custom property, 2 to 100: a kept option by its slug, a new one without slug; the options left out are removed. Ignored for the other types.
PUT
/v1/customProperties/{customPropertyId}
curl \
--request PUT 'https://openapi.meltingspot.io/v1/customProperties/{customPropertyId}' \
--header "Content-Type: application/json" \
--data '{
"label": "string",
"description": "string",
"possibleValues": [
{
"label": "string",
"order": 42,
"slug": "string"
}
]
}'
Request examples
{
"label": "string",
"description": "string",
"possibleValues": [
{
"label": "string",
"order": 42,
"slug": "string"
}
]
}
Response examples (200)
{
"id": "string",
"slug": "string",
"label": "string",
"description": "string",
"type": "Text",
"possibleValues": [
"string"
]
}