Rename Unit
PATCH
/units/{unitId}
Renames an existing Unit. The parent Space must be active. Name validation (non-empty, trimmed) is enforced by the domain layer.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” unitId
required
string
Header Parameters
Section titled “Header Parameters ” X-Space-Id
required
string format: uuid
UUID of the target Space (tenant boundary). Validated against user access.
Request Body required
Section titled “Request Body required ”object
name
required
New name for the Unit
string
Example
Logistics DepartmentResponses
Section titled “ Responses ”Unauthorized — missing or invalid JWT
Forbidden — insufficient permissions
Resource not found
Validation failed — invalid input