Update a category
PUT/categories/:id
Update a category
Request
Path Parameters
id stringrequired
- application/json
Body
required
name stringrequired
Responses
- 200
- 404
Successfully updated the category
- */*
- Schema
- Example (from schema)
Schema
id uuid
name string
created_at date-time
updated_at date-time
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"created_at": "2024-03-23T09:23:32.858Z",
"updated_at": "2024-03-23T09:23:32.858Z"
}
Category not found
- */*
- Schema
- Example (from schema)
Schema
id uuid
name string
created_at date-time
updated_at date-time
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"created_at": "2024-03-23T09:23:32.858Z",
"updated_at": "2024-03-23T09:23:32.858Z"
}
Loading...