Edit a Category
PATCH/v1/categories/:id
Edit a Category
Request​
Path Parameters
id stringrequired
Id of the Category
- application/json
Body
required
name string
Example:
New Category name
Responses​
- 200
- 400
- 401
Successfully edited a Category
- application/json
- Schema
- Example (from schema)
Schema
data
object
id string
Example:
category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
name string
Example:
Environmental
imageUrl stringnullable
Example:
categories/3.png
createdAt date-time
Example:
2020-10-13T17:46:54.000Z
object string
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
code string
Example:
bad_request
title string
Example:
Bad request
message string
Example:
One or more of the inputs were invalid
reasons string[]
{
"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
Loading...