Parameters

category
dictionary
name
string
image_path
string
parent
number
active
boolean
order_by
number
type
string
POST/v1/categories
curl https://api.tradly.app/v1/categories \
  -H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
  "category": {
    "name": "Sports",
    "image_path": "https://storage.cloud.google.com/tradlyapp/assets/category_images/table_tennis.png",
    "parent": 0,
    "active": true,
    "order_by": 1,
    "type": "listings"
  }
}'
RESPONSE
{
  "status": true,
  "data": {
    "category": {
      "id": 1
    }
  }
}