Miridia
Portal
Logistics

Schedules

The schedules operations of the Core API.

Base URL: https://api.miridia.io. Read Authentication and Conventions before you call these operations.

MethodPathOperation
GET/api/v1/schedule/eventsGet schedule events
POST/api/v1/schedule/eventsCreate schedule event
GET/api/v1/schedule/events/{scheduleEventId}Get schedule event
PUT/api/v1/schedule/events/{scheduleEventId}Update schedule event
DELETE/api/v1/schedule/events/{scheduleEventId}Delete schedule event

Get schedule events

GET/api/v1/schedule/events

Access. Send a bearer token or an API key. The caller needs the Schedule view permission.

Parameters

NameInTypeRequiredDescription
fromquerystring (date-time)No
toquerystring (date-time)No
minequerybooleanNoDefault: false.

Response

200. Returns a PagedResult envelope. Each item in data is ScheduleEventOccurrenceResponse.

Request
curl -X GET "https://api.miridia.io/api/v1/schedule/events" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID"
Response
{
  "count": 0,
  "totalCount": 0,
  "page": 0,
  "finalPage": 0,
  "pageSize": 0,
  "hasMore": true,
  "statusCode": "OK",
  "data": [
    {
      "seriesId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "title": "string",
      "description": "string",
      "type": "Dispatch",
      "occurrenceStart": "2026-09-29T08:00:00Z",
      "occurrenceEnd": "2026-09-29T08:00:00Z",
      "isRecurring": true,
      "assignees": [
        {}
      ],
      "createdByUser": {}
    }
  ],
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ]
}

Create schedule event

POST/api/v1/schedule/events

Access. Send a bearer token or an API key. The caller needs the Schedule modify permission.

Request body

Send JSON with the shape CreateScheduleEventCommand.

FieldTypeRequiredDescription
titlestringYes
descriptionstringNo
typeenum ScheduleEventTypeNoOne of: Dispatch, Incoming, Task, Production.
startAtstring (date-time)No
endAtstring (date-time)No
recurrenceScheduleRecurrenceRequestNo
assigneesScheduleEventAssigneeRequest[]No

Response

200. Returns a SingleResult envelope. The data field is ScheduleEventResponse.

Request
curl -X POST "https://api.miridia.io/api/v1/schedule/events" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "string",
  "description": "string",
  "type": "Dispatch",
  "startAt": "2026-09-29T08:00:00Z",
  "endAt": "2026-09-29T08:00:00Z",
  "recurrence": {
    "frequency": "Daily",
    "interval": 0,
    "daysOfWeek": [
      "Sunday"
    ],
    "until": "2026-09-29T08:00:00Z"
  },
  "assignees": [
    {
      "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "teamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ]
}'
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "title": "string",
    "description": "string",
    "type": "Dispatch",
    "startAt": "2026-09-29T08:00:00Z",
    "endAt": "2026-09-29T08:00:00Z",
    "isRecurring": true,
    "recurrence": {
      "frequency": "Daily",
      "interval": 0,
      "daysOfWeek": [
        "Sunday"
      ],
      "until": "2026-09-29T08:00:00Z"
    },
    "assignees": [
      {}
    ],
    "exceptionDates": [
      "2026-09-29"
    ],
    "createdByUser": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "displayName": "string",
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "phoneNumber": "string"
    },
    "dateCreated": "2026-09-29T08:00:00Z",
    "dateModified": "2026-09-29T08:00:00Z"
  },
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Get schedule event

GET/api/v1/schedule/events/{scheduleEventId}

Access. Send a bearer token or an API key. The caller needs the Schedule view permission.

Parameters

NameInTypeRequiredDescription
scheduleEventIdpathstring (uuid)Yes

Response

200. Returns a SingleResult envelope. The data field is ScheduleEventResponse.

Request
curl -X GET "https://api.miridia.io/api/v1/schedule/events/{scheduleEventId}" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID"
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "title": "string",
    "description": "string",
    "type": "Dispatch",
    "startAt": "2026-09-29T08:00:00Z",
    "endAt": "2026-09-29T08:00:00Z",
    "isRecurring": true,
    "recurrence": {
      "frequency": "Daily",
      "interval": 0,
      "daysOfWeek": [
        "Sunday"
      ],
      "until": "2026-09-29T08:00:00Z"
    },
    "assignees": [
      {}
    ],
    "exceptionDates": [
      "2026-09-29"
    ],
    "createdByUser": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "displayName": "string",
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "phoneNumber": "string"
    },
    "dateCreated": "2026-09-29T08:00:00Z",
    "dateModified": "2026-09-29T08:00:00Z"
  },
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Update schedule event

PUT/api/v1/schedule/events/{scheduleEventId}

Access. Send a bearer token or an API key. The caller needs the Schedule modify permission.

Parameters

NameInTypeRequiredDescription
scheduleEventIdpathstring (uuid)Yes

Request body

Send JSON with the shape UpdateScheduleEventCommand.

FieldTypeRequiredDescription
titlestringYes
descriptionstringNo
typeenum ScheduleEventTypeNoOne of: Dispatch, Incoming, Task, Production.
startAtstring (date-time)No
endAtstring (date-time)No
recurrenceScheduleRecurrenceRequestNo
assigneesScheduleEventAssigneeRequest[]No

Response

200. Returns a SingleResult envelope. The data field is ScheduleEventResponse.

Request
curl -X PUT "https://api.miridia.io/api/v1/schedule/events/{scheduleEventId}" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "string",
  "description": "string",
  "type": "Dispatch",
  "startAt": "2026-09-29T08:00:00Z",
  "endAt": "2026-09-29T08:00:00Z",
  "recurrence": {
    "frequency": "Daily",
    "interval": 0,
    "daysOfWeek": [
      "Sunday"
    ],
    "until": "2026-09-29T08:00:00Z"
  },
  "assignees": [
    {
      "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "teamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ]
}'
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "title": "string",
    "description": "string",
    "type": "Dispatch",
    "startAt": "2026-09-29T08:00:00Z",
    "endAt": "2026-09-29T08:00:00Z",
    "isRecurring": true,
    "recurrence": {
      "frequency": "Daily",
      "interval": 0,
      "daysOfWeek": [
        "Sunday"
      ],
      "until": "2026-09-29T08:00:00Z"
    },
    "assignees": [
      {}
    ],
    "exceptionDates": [
      "2026-09-29"
    ],
    "createdByUser": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "displayName": "string",
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "phoneNumber": "string"
    },
    "dateCreated": "2026-09-29T08:00:00Z",
    "dateModified": "2026-09-29T08:00:00Z"
  },
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Delete schedule event

DELETE/api/v1/schedule/events/{scheduleEventId}

Access. Send a bearer token or an API key. The caller needs the Schedule delete permission.

Parameters

NameInTypeRequiredDescription
scheduleEventIdpathstring (uuid)Yes
scopequeryenum ScheduleEventDeleteScopeNoOne of: Occurrence, Series.
occurrenceDatequerystring (date)No

Response

200. Returns a SingleResult envelope. The data field is boolean.

Request
curl -X DELETE "https://api.miridia.io/api/v1/schedule/events/{scheduleEventId}" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID"
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": true,
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Models

The operations on this page use these object types. Select a type to see its fields.

PrimitiveUserResponse
FieldTypeDescription
idstring (uuid)
displayNamestring
firstNamestring
lastNamestring
emailstring
phoneNumberstring
ScheduleEventAssigneeRequest

One assignee on a create or update command: exactly one of userId/teamId is set.

FieldTypeDescription
userIdstring (uuid)
teamIdstring (uuid)
ScheduleEventAssigneeResponse

Exactly one of userId/teamId is set. name is resolved live, never snapshotted.

FieldTypeDescription
userIdstring (uuid)
teamIdstring (uuid)
namestring
ScheduleEventOccurrenceResponse

One expanded instance of a series. The shape the calendar range read returns.

FieldTypeDescription
seriesIdstring (uuid)
titlestring
descriptionstring
typeenum ScheduleEventTypeOne of: Dispatch, Incoming, Task, Production.
occurrenceStartstring (date-time)
occurrenceEndstring (date-time)
isRecurringboolean
assigneesScheduleEventAssigneeResponse[]
createdByUserPrimitiveUserResponse
ScheduleEventResponse

The full series. The shape a create/update/get-one response returns, for the edit modal.

FieldTypeDescription
idstring (uuid)
titlestring
descriptionstring
typeenum ScheduleEventTypeOne of: Dispatch, Incoming, Task, Production.
startAtstring (date-time)
endAtstring (date-time)
isRecurringboolean
recurrenceScheduleRecurrenceResponse
assigneesScheduleEventAssigneeResponse[]
exceptionDatesstring (date)[]
createdByUserPrimitiveUserResponse
dateCreatedstring (date-time)
dateModifiedstring (date-time)
ScheduleRecurrenceRequest

The recurrence rule of a create or update command.

FieldTypeDescription
frequencyenum ScheduleRecurrenceFrequencyOne of: None, Daily, Weekly, Monthly.
intervalinteger (int32)
daysOfWeekenum DayOfWeek[]Weekly recurrence only. Empty means the series repeats on the start date's own weekday. One of: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
untilstring (date-time)
ScheduleRecurrenceResponse
FieldTypeDescription
frequencyenum ScheduleRecurrenceFrequencyOne of: None, Daily, Weekly, Monthly.
intervalinteger (int32)
daysOfWeekenum DayOfWeek[]One of: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
untilstring (date-time)