Parameters
attribute
dictionary
name
string
field_type
number
optional
boolean
active
boolean
type
string
category_id
array
private
boolean
attribute_group_id
number
POST/v1/attributes
bash
curl https://api.tradly.app/v1/attributes \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"attribute": {
"name": "Capacity",
"field_type": 1,
"optional": false,
"active": true,
"type": "listings",
"category_id": [
237
],
"private": false,
"attribute_group_id": 2
}
}'RESPONSE
json
{
"status": true,
"data": {
"attribute": {
"id": 1
}
}
}