Actions92
- Appointment Actions
- Appointments_GetAll
- Appointments_Create
- Appointments_GetById
- Appointments_Delete
- Appointments_Schedule
- Appointments_SetAppointment
- Appointments_MyAppointment
- Appointments_Toggle
- Appointments_SetStatus
- Appointments_MergeAppointments
- Appointments_GetSets
- Appointments_SubmitDeposit
- Appointments_DeleteDeposit
- Appointments_SubmitServices
- Appointments_DeleteServices
- Appointments_SetReminder
- Appointments_UpdateReminder
- Appointments_DeleteReminder
- Appointments_GetSetsCalendar
- Appointments_GetCalendar
- Appointments_GetOperators
- Appointments_GetOperatorWorkTimes
- Appointments_AddOperatorWorkTime
- Appointments_RemoveOperatorWorkTime
- Categorie Actions
- Customer Actions
- Department Actions
- Form Actions
- Invoice Actions
- Lead Actions
- Manufacturer Actions
- Product Actions
- Provider Actions
- Turn Actions
- User Actions
- Worktime Actions
Department → Departments_Update
AI-generatedSummary
Update an existing Department by specifying its ID and providing the updated Department data in JSON format.
Inputs
- id (required) — The numeric ID of the Department to update, used as a path parameter in the API request.
- body (required) — A JSON object representing the DepartmentEditDto containing the updated fields for the Department, such as Id and Name.
Output shape
a single record representing the updated Department as returned by the API
The output is the JSON response from the SalamCRM API after updating the Department. Errors may occur if the ID is invalid or the body is malformed.
Examples
Example 1: Update Department with ID 5 to change its name to 'New Department Name'
Set 'id' parameter to 5 and 'body' to JSON {"Id":5, "Name":"New Department Name"}