latestOpenAPI 3.0.02026-08-1284111344.5 KB

14666f4db0f8

Events

Update an existing Event

Updates an existing Event and returns the updated Event.

put/v2/event/{id}

Path parameters

idstring required
Example:EVT-Dxgp7NRjo6kXb5eG

The event ID (prefix EVT-).

Headers

Authorizationstring required
Example:Bearer <token>

Bearer Token

Request body

status'Done' | 'Open'

The status of the event.

titlestring

The title of the event.

descriptionstring

The description of the event.

startstring

The time & date when the event starts.

endstring

The time & date when the event ends.

isAllDayboolean

Whether the event is an all-day event.

techIdsstring[]

Array of tech IDs assigned to the event (prefix USR-). Pass an empty array to remove all technicians.

Example request

{
  "title": "Doctor appointment",
  "description": "Doctor appointment with Dr. Smith",
  "start": "2024-07-25 09:00:00",
  "end": "2024-07-25 11:00:00",
  "techIds": [
    "USR-83510a9930f203f4",
    "USR-a4f86bf1deefec12",
    "USR-d59dbcd34aa19dce"
  ]
}

Response

The updated Event.

idstring

The ID of the event (prefix EVT-).

status'Done' | 'Open'

The status of the event.

titlestring

The title of the event.

descriptionstring

The description of the event.

startstring

The time & date when the event starts.

endstring

The time & date when the event ends.

isAllDayboolean

Whether the event is an all-day event.

techIdsstring[]

Array of tech IDs assigned to the event (prefix USR-).

isDeletedboolean

Whether the event is deleted.

updatedAtstring

The date and time the event was updated.

createdAtstring

The date and time the event was created.

Example response

{
  "id": "EVT-Dxgp7NRjo6kXb5eG",
  "title": "Doctor appointment",
  "description": "Doctor appointment with Dr. Smith",
  "start": "2024-07-25 09:00:00",
  "end": "2024-07-25 11:00:00",
  "techIds": [
    "USR-83510a9930f203f4",
    "USR-a4f86bf1deefec12",
    "USR-d59dbcd34aa19dce"
  ],
  "updatedAt": "2024-07-25 09:00:00",
  "createdAt": "2024-07-25 09:00:00"
}