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.

🌐 Multi-Lang Support

The following are translate-able by the Header Values, such as ACCEPT-LANGUAGE & CONTENT-LANGUAGE:

Variable Title
name
OAuth Scopes


categories.read_write

Request Body

{"name"=>"Dress", "parent_id"=>213320125, "sort_order"=>5}

HEADERS

KeyDatatypeRequiredDescription
ACCEPT-LANGUAGEstringSet Language Code you want to get the response with. Retrieve a list of supported languages using the Language Endpoint. Use the iso_code value you get from the language endpoint as a value in this header.
CONTENT-LANGUAGEstring(OPTIONAL) Show the used language of the response. Note that not passing a value here or passing the default value of the iso_code as ar will not appear in the response.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"status":201,"success":true,"data":{"id":1114613300,"name":"Hayat","urls":{"customer":"https://shtara.com/profile","admin":"https://shtara.com/profiles"},"sort_order":5,"items":[]}}