Skip to content

Schedules API

When content plays on screens. All requests need a secret key; see REST API for keys, errors and limits.

List schedules, newest first

GET /v1/schedules

List schedules, newest first; filter by level, site, store, group or screen

Parameters

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
groupIdqueryid
levelquery"screen" | "group" | "location" | "site" | "org"Only schedules on this level of target.
locationIdqueryid
screenIdqueryid
siteIdqueryid
Terminal window
curl -X GET https://api.loomieo.com/v1/schedules \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
paginationrequiredobject
schedulesrequiredlist of object
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: rate_limited

Create a schedule for everyone, a site, a store, a group or a screen

POST /v1/schedules

Create a schedule for everyone, a site, a store, a group or a screen; its screens switch on time from then on

Body

NameTypeDescription
namerequiredstring1 to 120 characters
entrieslist of objectup to 50 items
groupIdid or nullSame as target { level: group }; kept for older clients.
screenIdid or nullSame as target { level: screen }; kept for older clients.
targetobjectWho it's for, most specific wins: a screen, a group, a store (location), a site or everyone (org).
Terminal window
curl -X POST https://api.loomieo.com/v1/schedules \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'

Response 200

NameTypeDescription
schedulerequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: layout_not_found, location_not_found, playlist_not_found, screen_group_not_found, screen_not_found, site_not_found
  • 422: validation_failed
  • 429: rate_limited

Delete a schedule

DELETE /v1/schedules/{id}

Delete a schedule; its screens go back to their default content

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X DELETE https://api.loomieo.com/v1/schedules/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
schedulerequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: schedule_not_found
  • 422: validation_failed
  • 429: rate_limited

One schedule with its entries

GET /v1/schedules/{id}

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X GET https://api.loomieo.com/v1/schedules/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
schedulerequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: schedule_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename a schedule, move it to another target, or replace its entries

PATCH /v1/schedules/{id}

Rename a schedule, move it to another target, or replace its entries; screens update at once

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
entrieslist of objectup to 50 items
groupIdid or nullSame as target { level: group }; kept for older clients.
namestring1 to 120 characters
screenIdid or nullSame as target { level: screen }; kept for older clients.
targetobjectWho it's for, most specific wins: a screen, a group, a store (location), a site or everyone (org).
Terminal window
curl -X PATCH https://api.loomieo.com/v1/schedules/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
schedulerequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: layout_not_found, location_not_found, playlist_not_found, schedule_not_found, screen_group_not_found, screen_not_found, site_not_found
  • 422: validation_failed
  • 429: rate_limited