# Deal set attribute by id

Warning

Deprecated endpoint. This endpoint will be removed in the future. Please, stop using this one and use update instead.

You can set a custom attribute for a specific deal using a deal_custom_id.

POST /deals-by-id/:custom_id/set_attribute/

Attributes Type Required Description
custom_id string yes The unique identifier for the deal which is provided by the client.
attribute string yes The name of your attribute. Has to be at least 1 character, and cannot be longer than 255 characters.
value various types yes A possible attribute types: boolean, fixed, string, date, datetime, integer, float to json

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X POST -H "Authorization: Token <your_64_char_api_key>" -H "Content-Type: application/json" 
       -H "Accept: */*; version=2" -d '{
  "attribute": "Name of the attribute",
  "value": "Value for the attribute"
}' "https://<your_app_subdomain>.user.com/api/public/deals-by-id/:custom_id/set_attribute/"