Get event types
Returns all event types that can be assigned to calendar events.
- HTTP Method:
GET
- Endpoint:
/rest-api/1/event-calendar/event-types
Request example:
fetch("https://<site-url>/rest-api/1/event-calendar/event-types", {
method: "GET",
headers: {
"X-AldevaDigital-Rest-Token": "your-access-token",
"Content-Type": "application/json",
},
});
Response example:
{
"status": true,
"data": [
{
"id": 1,
"name": "Meeting",
"is_default": true,
"is_active": true,
"color": null,
},
{
"id": 2,
"name": "Workshop",
...
}
]
}
Response data contents
Key | Type | Nullable | Description |
---|---|---|---|
id | number | No | Unique identifier for the event type. |
name | string | No | Name of the event type (e.g., “Meeting”). |
is_default | boolean | No | Indicates if it’s system default or user created. |
is_active | boolean | No | Indicates if the event type was disabled by jira admin. |
color | string or null | Yes | Represents the associated color (e.g., “#FF5733”), or null if no color is assigned. |