Update Category

PUT {{baseUrl}}/categories/:category

This endpoint allows you to update category details by providing the ID of the category you want to update its details in the category path parameter.

Scope: categories.read_write- Categories Read & Write

Request Body

{"name"=>"<string>", "parent_id"=>"<number>", "sort_order"=>"<number>", "status"=>"active", "metadata_title"=>"<string>", "metadata_description "=>"<string>", "metadata_url"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;urls&quot;:{&quot;customer&quot;:&quot;\u003cstring\u003e&quot;,&quot;admin&quot;:&quot;\u003cstring\u003e&quot;},&quot;items&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Category detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Category detected\u003e&quot;}],&quot;parent_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;sort_order&quot;:&quot;\u003cinteger\u003e&quot;,&quot;status&quot;:&quot;hidden&quot;,&quot;metadata_title&quot;:&quot;\u003cstring\u003e&quot;,&quot;metadata_description &quot;:&quot;\u003cstring\u003e&quot;,&quot;metadata_url&quot;:&quot;\u003cstring\u003e&quot;}}