Skip to main content

Read Schedules and Calendars and manage Ad Hoc Slots through the API

Read Schedules, Calendars and Slots; create, update and remove Ad Hoc Slots with the Public API.

Written by Logan Bowlby

Overview

Use the Public API to read Schedules and Calendars, query their Slots, and manage separate Ad Hoc Slots. A Schedule describes assigned work; a Calendar supplies timing rules; a Slot represents a period when work is available.

Schedule and Calendar endpoints in this guide are read-only. Slot writes create, update or remove Ad Hoc Slots; they do not edit Calendar patterns or recurring Schedules.

At a glance

Who can do this

An integration with an API key. Writes require a key that is not Read-only.

Where

/api/customers/schedules, /calendars and /slots

Works on

Public API

Availability

Public API access is enabled per organization by Mobaro — ask your CSM.


Before you start

Use HTTPS with the base URL https://app.mobaro.com/api/customers. The examples below use paths under that base URL. Send x-api-key: YOUR_API_KEY on every request. Replace all fictional IDs, dates and key placeholders before use.

A Read-only key is enough for GET requests. POST, PUT and DELETE require a key with write access; a Read-only key receives 403 for writes. Create and manage API keys explains setup. An API key acts with Super User access to its organization; it does not inherit its creator’s Role or Location access. Keep it in a secure server-side store. Mobaro API access and limits explains access and limits.

For the complete request and response schemas, open Mobaro API documentation. The images in this article are source-derived examples, not successful live API responses.


Read Schedules, Calendars and Slots

1. Read Schedules and Calendars

Send GET /api/customers/schedules and GET /api/customers/calendars. Use Limit from 1–128 and Offset from 0; the default Limit is 128. Both support OrderBy=name or -name.

These lists return offset, amount, total and items. Increase Offset until you have retrieved the matching records. Fetch one with GET /schedules/{id} or GET /calendars/{id}, using its ID suffix in the path. Keep full returned IDs in your own data and relation fields.

Schedules include their Calendars, Checklists, targets, assignees, reviewers and time zone. Calendars include patterns, specific periods and exclusions. Read generated Slots to work with actual dated work periods.

2. Query Slots in a bounded date range

Send GET /api/customers/slots with required StartsAfter and StartsBefore values. Use ISO 8601 dates with a time zone and a range of no more than 31 days. The end of the range must not be before its start.

GET /api/customers/slots?StartsAfter=2027-01-11T00:00:00Z&StartsBefore=2027-01-18T00:00:00Z&Type=AdHocScheduleSlot
x-api-key: YOUR_API_KEY

Parameter

Use

Type

AdHocScheduleSlot or CalendarScheduleSlot.

Targets

Filter by target IDs.

Assignee / Checklist

Filter by assignee or Checklist IDs. These parameter names are singular.

Schedules / Calendars

Filter by Schedule or Calendar IDs.

ExpandToUnits

Request expanded units for individual Checklist and target combinations; check the schema for the resulting detail.

The range selects Slots whose start is after StartsAfter and at or before StartsBefore; it is not an overlap query for every Slot active in the period. The Slot list returns an array, not the paged envelope used by Schedules and Calendars. It does not use Limit or Offset. Split longer periods into date windows. Use GET /slots/{id} to read one Slot; this lookup also accepts its external ID.


Manage an Ad Hoc Slot

3. Create the Slot

Send POST /api/customers/slots with JSON. Supply start, end, assignees, checklists and targets. Use full Mobaro IDs for relations. Choose a future start; Due, if supplied, must fall between Start and End.

POST /api/customers/slots
x-api-key: YOUR_WRITE_API_KEY
Content-Type: application/json

{"start":"2027-01-12T08:00:00Z","due":"2027-01-12T09:00:00Z","end":"2027-01-12T10:00:00Z","assignees":["users/101-A"],"checklists":["checklists/202-A"],"targets":["locations/303-A"],"message":"Extra restraint inspection"}

Targets can contain Locations and Location Groups, or Assets. Do not mix Assets with Location or Location Group IDs in one request. Asset targeting clears Location targets and target exclusions. The successful create response is 200 with an id; store it and read the Slot back.

Optional settings include reviewers, owners, required Competencies and their enforcement, validation rules, reminders, early start, missing Result handling, visibility and time registration. Use the current schema to set them deliberately rather than relying on omitted values.

4. Update or remove the Slot

Use PUT /api/customers/slots/{id} with JSON for an Ad Hoc Slot, or DELETE /api/customers/slots/{id} to remove it. Use the Slot’s ID suffix, such as 404-A. These operations return 200 without an updated object; read the Slot back to verify the effect.

⚠️ Heads-up: Known issue: for an update, include the complete intended targets and current message. In the current implementation, omitting Targets can clear Asset targeting, and omitting Message can clear its text. Do not use a minimal update on an Asset-based Slot without checking those values in a test environment.

A Slot that has ended or is archived cannot be updated. A rescheduled Slot has additional restrictions: its Checklists and targets cannot be changed through this update. Check the current Slot before you send a write.

🛑 Critical: Deleting a future Ad Hoc Slot removes it. If it has started, deletion can end its remaining availability and set it to ignore missing Results instead. Archived Slots cannot be deleted. A rescheduled Slot follows the missing Result approval reversal workflow. Confirm the Slot and its purpose before removal.


Best practices

  • Test writes on planned, fictional work before connecting an automated integration.

  • Keep returned IDs and verify every write with a GET request.

  • Use bounded date windows for Slots and page Schedule and Calendar lists. Stay below 10 requests per second per key; back off on 429.


Frequently asked questions

Why does my Slot query return 400?

Supply both StartsAfter and StartsBefore. Use a range in the correct order and no longer than 31 days. Check Type against AdHocScheduleSlot or CalendarScheduleSlot, and use the documented query names.

Can I create or edit recurring Schedules through these calls?

No. These Schedule and Calendar routes read records. The write routes in this article manage Ad Hoc Slots, not Calendar patterns or recurring Schedules.

Why did a small Slot update change my targets?

The current update mapping can clear Asset targeting when Targets is omitted. Include the full intended targets and current message, then read back the Slot. Verify this behavior in a test environment before automated updates.

Why is a deleted Slot still retrievable?

Deletion is time-dependent. A future Slot is removed; one that has started can be ended and set to ignore missing Results instead. Read the current fields rather than treating continued lookup as proof that removal failed.

Did this answer your question?