Departments
Edit Department
As with the user edit endpoint - pass only the fields you want to update and we'll only update those.
A rejection returns an ErrorStatus and an ErrorMessage. NotPermitted means the department does not exist or belongs to another organisation, or you are not allowed to edit it. NothingToDo means the request produced no change. InvalidValue and Failed mean a supplied value was rejected — check ErrorMessage.
Model validation fails before any of that, and returns a different 400 body: an object keyed by field name, each holding an array of messages. Check for ErrorStatus to tell the two apart.
post/api/departments/edit/{id}
Request
- Base URL: https://app.timetastic.co.uk (the document declares no server; this is the origin it was published from)
- URL: https://app.timetastic.co.uk/api/departments/edit/{id}
- Auth: none declared
Path parameters
idinteger required
The ID of the department to update.
Request body
Response
The department was updated.
Changes
No recorded changes to this operation across all 1 revision of this API.