Skip to main content
POST
/
admin
/
merchants
/
{merchantId}
/
custom-attributes
Create Custom Attribute (Admin)
curl --request POST \
  --url https://cdn.tailoredd.com/apiV2/admin/merchants/{merchantId}/custom-attributes \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "Size",
  "type": "select",
  "options": [
    "Small",
    "Medium",
    "Large",
    "XL"
  ],
  "required": false,
  "enabled": true,
  "displayOrder": 0
}
'
{
  "success": true,
  "data": {}
}
POST {BASE_URL}/admin/merchants/{merchantId}/custom-attributes

Body parameters

label
string
required
Display label shown to customers.
type
string
required
select or rating (text/number types are disabled).
options
array
Required for select type — array of option strings.
ratingScale
integer
For rating type: 3, 5, or 7.
required
boolean
Make field mandatory in the review form.
displayOrder
integer
Position in widget form.

Headers

Authorization
string

Path Parameters

merchantId
string
required

Body

application/json

The body is of type object.

Response

Successful response

success
boolean
required
Example:

true

data
object