Create a new category
POST/category
Create a new category
Request
- application/json
 
Body
projectId projectId (string)required
Unique identifier for Project
name categoryName (string)required
Possible values: <= 32 characters
Name of the category
parentId string
Unique identifier for Category
Responses
- 201
 - 400
 - 401
 - 403
 - 404
 - 500
 - default
 
Category successfully created
- application/json
 
- Schema
 - Example (from schema)
 
Schema
projectId projectId (string)required
Unique identifier for Project
name categoryName (string)required
Possible values: <= 32 characters
Name of the category
id string
Unique identifier for Category
parentId string
Unique identifier for Category
{
  "projectId": "p2Duhf5N6",
  "name": "Fantasy animals",
  "id": "C16w81Bvr0",
  "parentId": "CfxA0ZD0x"
}
Bad Request
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "Bad Request"
}
Unauthorized
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "Unauthorized access"
}
Forbidden
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "Forbidden access"
}
NotFound
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "A mandatory item was not found"
}
Internal Server Error
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "Internal Server Error"
}
Unexpected error
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
error string
{
  "error": "string"
}
{
  "error": "An unexpected error occured"
}
Loading...