SalamCRM icon

SalamCRM

Interact with SalamCRM API

Actions92

Worktime → WorkTimes_Update

AI-generated

Summary

Update an existing WorkTime record in SalamCRM by specifying its ID and providing the updated fields in JSON format.

Inputs

  • id (required) — The numeric ID of the WorkTime record to update (used as a path parameter).
  • body (required) — A JSON object representing the WorkTimeEditDto with the updated values for the WorkTime, such as Id, Name, and Duration.

Output shape

a single record representing the updated WorkTime object returned by the SalamCRM API

The operation sends a PUT request to /api/worktimes/{id} with the provided body JSON. The output corresponds to the updated WorkTime details as returned by SalamCRM.

Examples

Example 1: Update the name and duration of a WorkTime

Specify the WorkTime id to update and provide a JSON body with new values for Name and Duration.

Discussion