Skip to main content

Update Property

Update mutable fields on a property. field_key and data_type cannot be changed after creation.

Endpoint

PATCH /properties/:id

Returns: 200 OK

Path Parameters

ParameterTypeDescription
idstringThe property ID

Body Parameters

All fields optional. Only the fields you provide are updated.

ParameterTypeDescription
display_namestringNew display name. Max 255 characters.
descriptionstring | nullNew description. Set to null to clear. Max 500 characters.
fallback_valuestring | nullNew fallback for merge tags. Set to null to clear. Max 2000 characters.
Immutable fields

field_key and data_type are fixed at creation. To change them, delete the property and create a new one.

Response

Returns the updated property — see Create Property for the shape.


Examples

curl -X PATCH "https://api.arsel.sa/v1/properties/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"display_name": "Lifetime Revenue (USD)"
}'

Error Responses

{
"status_code": 404,
"name": "not_found",
"message": "Property with id \"...\" not found"
}