Modo Claro
Update Category
PUT
/categories/{category}Last modified: 4 days ago
This endpoint allows you to update category details by passing the category
as a path parameter.
Request
Parâmetros Path
category
integer
requerido
The Category ID. List of Category ID can be found here
Parâmetros Bodyapplication/json
No schema defined
Exemplo
{
"name": "طعام قطط",
"image": "https://salla-dev.s3.eu-central-1.amazonaws.com/Mvyk/dBmLWHOfKm3tRfQ3Txqs3l96SjI6jdbf6rCsYYQu.jpg",
"status": "hidden",
"metadata_title": "Dress",
"metadata_description": "Amazing Dress",
"metadata_url": "cat-food",
"show_in": {
"app": true
},
"products": [
{
"id": 1212,
"sort": 1
}
],
"translations": {
"en": {
"name": "cat food",
"metadata_title": "cat food",
"metadata_description": "welcome",
"metadata_url": "cat-food"
}
}
}
Request samples
Respostas
Created(201)
Record Not Found(404)
Error Validation(422)
HTTP Code: 201
Content Type : JSONapplication/json
Esquema de Dados
No schema defined
Exemplo
{
"status": 201,
"success": true,
"data": {
"id": 707972603,
"name": "Dress 101",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiles"
},
"sort_order": 0,
"items": [],
"parent_id": 516861512,
"status": "hidden",
"metadata": {
"title": "Dress",
"description": "Amazing Dress",
"url": "https://dress.com"
}
}
}
Last modified: 4 days ago