Create a new category
POST/category
Create a new category
Request
- application/json
Body
name stringrequired
Name of the category
projectId projectId (string)required
Unique identifier for Project
parentId string
Unique identifier for Category
Responses
- 201
- 400
- 401
- 403
- 404
- 500
- default
Category successfully created
- application/json
- Schema
- Example (from schema)
Schema
name stringrequired
Name of the category
projectId projectId (string)required
Unique identifier for Project
id string
Unique identifier for Category
parentId string
Unique identifier for Category
{
"name": "Fantasy animals",
"projectId": "p2Duhf5N6",
"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...