Parameter | Description | Type |
---|---|---|
id | ID | integer |
Parameter | Description | Type |
---|---|---|
name* | department name | string |
*
are requiredStatus | Description |
---|---|
ok | Department updated |
Department with this id does not exist. |
Status | Description |
---|---|
422 | Invalid parameters (see example on the right) |
{
"id": 12345,
"department_id": 6789,
"status": "ok"
}
{
"error": "Invalid format",
"details": {
"name": "The property {property} is required"
}
}
id
or department_id
is invalid (422), returns:{
"error": "Department not found"
}
curl --location --request PUT 'https://api.mpc.dev.placewise.com/v3/infinity-mall/stores/departments/1' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: '
{}