| Parameter | Description | Type |
|---|---|---|
| name* | department name | string |
| department_id* | department/mall id | integer |
* are required| Status | Description |
|---|---|
| ok | Department was created |
| Department with this id already exists. |
| 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"
}
}curl --location --request POST 'https://api.mpc.dev.placewise.com/v3/infinity-mall/stores/departments' \
--header 'X-User-Agent: ApiDog' \
--header 'X-Product-Name: default' \
--header 'X-Loyalty-Club-Slug: infinity-mall' \
--header 'X-Customer: 447' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json'{}