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 nameResponses​
- 200
- 400
- 401
Successfully edited a Category
- application/json
- Schema
- Example (from schema)
Schema
data
object
idstring
Example:
category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxnamestring
Example:
EnvironmentalimageUrlstringnullable
Example:
categories/3.pngcreatedAtdate-time
Example:
2020-10-13T17:46:54.000Zobjectstring
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_requesttitlestring
Example:
Bad requestmessagestring
Example:
One or more of the inputs were invalidreasonsstring[]
{
"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