Edit a Category
PATCH/v1/categories/:id
Edit a Category
Request​
Path Parameters
id stringrequired
Id of the Category
- application/json
Body
required
namestring
Example:
New Category name
Responses​
- 200
- 400
- 401
Successfully edited a Category
- application/json
- Schema
- Example (from schema)
Schema
data
object
idstring
Example:
category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
namestring
Example:
Environmental
imageUrlstringnullable
Example:
categories/3.png
createdAtdate-time
Example:
2020-10-13T17:46:54.000Z
objectstring
Example:
Category
{
"data": {
"id": "category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Environmental",
"imageUrl": "categories/3.png",
"createdAt": "2020-10-13T17:46:54.000Z"
},
"object": "Category"
}
Error validating inputs
- application/json
- Schema
- Example (from schema)
Schema
error
object
codestring
Example:
bad_request
titlestring
Example:
Bad request
messagestring
Example:
One or more of the inputs were invalid
reasonsstring[]
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
Unauthorized