Skip to content

Screen groups API

Named sets of screens, stores and markets. All requests need a secret key; see REST API for keys, errors and limits.

List screen groups, newest first

GET /v1/screen-groups

Parameters

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
Terminal window
curl -X GET https://api.loomieo.com/v1/screen-groups \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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

Create a screen group, optionally with markets, stores and screens

POST /v1/screen-groups

Create a screen group, optionally with markets, stores and screens; it goes last in the order

Body

NameTypeDescription
namerequiredstring1 to 120 characters
locationIdslist of idStores: their screens, current and future, are members; the whole list. up to 500 items
scopeobjectWho it belongs to: everyone (org), a site or a store (location). Left out: everyone, or for a member scoped to one site or store, that one. A scoped member can only choose inside their scope.
screenIdslist of idIndividual screens; the whole list. up to 500 items
siteIdslist of idMarkets: the screens of their stores, current and future, are members; the whole list. up to 500 items
Terminal window
curl -X POST https://api.loomieo.com/v1/screen-groups \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'

Response 200

NameTypeDescription
screen_grouprequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: location_not_found, screen_not_found, site_not_found
  • 409: screen_group_limit_reached
  • 422: validation_failed
  • 429: rate_limited

Reorder groups

PUT /v1/screen-groups/order

Reorder groups: when a screen is in several, the first with content wins. Returns every group in the new order

Body

NameTypeDescription
groupIdsrequiredlist of idGroups in their new order, first wins. Groups not listed keep their order after these. up to 500 items
Terminal window
curl -X PUT https://api.loomieo.com/v1/screen-groups/order \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"groupIds":[]}'

Response 200

NameTypeDescription
screen_groupsrequiredlist of object
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: screen_group_not_found
  • 422: validation_failed
  • 429: rate_limited

Delete a screen group

DELETE /v1/screen-groups/{id}

Delete a screen group; its screens stay

Parameters

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

Response 200

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

One screen group

GET /v1/screen-groups/{id}

Parameters

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

Response 200

NameTypeDescription
screen_grouprequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: screen_group_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename a screen group

PATCH /v1/screen-groups/{id}

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
namerequiredstring1 to 120 characters
Terminal window
curl -X PATCH https://api.loomieo.com/v1/screen-groups/:id \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'

Response 200

NameTypeDescription
screen_grouprequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: screen_group_not_found
  • 422: validation_failed
  • 429: rate_limited

Set what a group's screens show

PUT /v1/screen-groups/{id}/assignment

Set what a group's screens show; a screen's own content still wins, and among groups the first in the group order wins

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
fallbackPlaylistIdid or nullPlays when the main playlist is empty or none is set; cached on the screen.
layoutIdid or nullPlays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).
playlistIdid or null
Terminal window
curl -X PUT https://api.loomieo.com/v1/screen-groups/:id/assignment \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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

Set a group's markets, stores and screens

PUT /v1/screen-groups/{id}/members

Set a group's markets, stores and screens (each the whole list); membership is live, so a new screen in a member store joins at once

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
locationIdslist of idStores: their screens, current and future, are members; the whole list. up to 500 items
screenIdslist of idIndividual screens; the whole list. up to 500 items
siteIdslist of idMarkets: the screens of their stores, current and future, are members; the whole list. up to 500 items
Terminal window
curl -X PUT https://api.loomieo.com/v1/screen-groups/:id/members \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
screen_grouprequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: location_not_found, screen_group_not_found, screen_not_found, site_not_found
  • 409: screen_group_limit_reached
  • 422: validation_failed
  • 429: rate_limited

Set a group's individual screens

PUT /v1/screen-groups/{id}/screens

Set a group's individual screens (the whole list); its markets and stores stay. Prefer PUT /screen-groups/:id/members

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
screenIdsrequiredlist of idup to 500 items
Terminal window
curl -X PUT https://api.loomieo.com/v1/screen-groups/:id/screens \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"screenIds":[]}'

Response 200

NameTypeDescription
screen_grouprequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: screen_group_not_found, screen_not_found
  • 409: screen_group_limit_reached
  • 422: validation_failed
  • 429: rate_limited