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