Update a department
Renames a product department; only name is applied and it must stay unique. Returns the department directly (no status/message envelope), or not found if it does not exist.
How to use it
- Get the department ID from List departments.
- Send the new name; only the name is changed and it must stay unique.
- The department is returned directly, without the status/message envelope; not found if the ID does not exist.
BearerAuthAuthorizationBearer <JWT>id*integerID of the record.
int64application/json- body
id?|Numeric department ID. Set by the server; use it as departmentId on items.
int64name*stringDepartment name, e.g. the top-level grouping of items in the catalog. Required, must be unique and not blank.
modifiedTime*stringTimestamp stored when the department was created (ISO 8601). Renaming it does not change it.
date-timeOK
*/*- response
id?|Numeric department ID. Set by the server; use it as departmentId on items.
int64name*stringDepartment name, e.g. the top-level grouping of items in the catalog. Required, must be unique and not blank.
modifiedTime*stringTimestamp stored when the department was created (ISO 8601). Renaming it does not change it.
date-timecurl -X PUT 'https://beta.iotoms.com/api/v1/catalog/attributes/departments/0' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "modifiedTime": "2019-08-24T14:15:22Z"}'{ "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z"}