API Sections Resource types Resource type Categories Category
Create a new subcategory, the table below details the fields and their data type
URL : /v3/resource-types/{resource_type_id}/categories/{category_ud}/subcategories
Method : POST
Fields :
Name | Type | Required | Description |
---|---|---|---|
name | string | Yes | The name of the subcategory |
description | string | Yes | A description of the subcategory |
Code : 200 OK
Content :
{
"id": "OwAnNrnBvj",
"name": "Clothes & Food etc.",
"description": "Those things that nobody can do without.",
"created": "2018-09-06 22:04:47"
}
Code : 422 OK
Content :
{
"message": "Validation error.",
"fields": {
"name": {
"errors": [
"The name must be a string."
]
},
"description": {
"errors": [
"The description field is required."
]
}
}
}