# Set multiple attributes

You can set a custom attribute for a specific product. The attribute needs to exist before proceeding.

POST /products-by-id/:custom_id/set_multiple_attributes/

Attributes Type Required Description
custom_id integer yes A unique identifier for the product 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 and json

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X POST -H "Authorization: Token <your_64_char_api_key>" -H "Content-Type: application/json" -d '{
    "first attribute": "This is the content for first attribute",
    "second attribute": "This is the content for second attribute"
  }' "https://<your_app_subdomain>.user.com/api/public/products-by-id/:custom_id/set_multiple_attributes/"