latestOpenAPI 3.0.02026-08-1284111344.5 KB

14666f4db0f8

Events

Create a new Event

Creates a new Event and returns the created Event object.

post/v2/event

Headers

Authorizationstring required
Example:Bearer <token>

Bearer Token

Request body

status'Done' | 'Open'

The status of the event.

titlestring required

The title of the event.

descriptionstring

The description of the event.

startstring required

The time & date when the event starts. Must be before the end date.

endstring required

The time & date when the event ends. Must be after the start date.

isAllDayobject

Whether the event is an all-day event.

techIdsstring[]

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

Example request

{
  "status": "Open",
  "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 created 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"
}