Update a category

PATCH {{baseUrl}}/categories/:id

This operation updates a category.

Only the fields that are sent in the request body will be updated.

Request Body

{"category"=>{"name"=>"My first category", "description"=>"This is a category description", "parent_id"=>"cb65a918-ad7d-406a-80d8-09c9c8d0dbb"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"category":{"id":"cb65a918-ad7d-406a-80d8-09c9c8d0dbbd","name":"My first category","description":"This is a category description.","parent_id":"cb65a918-ad7d-406a-80d8-09c9c8d0dbb"}}