SalamCRM icon

SalamCRM

Interact with SalamCRM API

Actions92

Department → Departments_Update

AI-generated

Summary

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"}

Discussion