{"info":{"description":"Multi-organization API — capabilities grouped by domain (see `tags`).","title":"lumieo","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/analytics/funnel":{"get":{"operationId":"analytics::funnel","parameters":[{"in":"query","name":"from","required":false,"schema":{"description":"First day, inclusive; defaults to 30 days ago.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"in":"query","name":"includeTest","required":false,"schema":{"description":"true: include pk_test_ traffic.","type":"string","enum":["true","false"]}},{"in":"query","name":"siteId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"to","required":false,"schema":{"description":"Last day, inclusive; defaults to yesterday.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"in":"query","name":"experienceId","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"in":"query","name":"videoId","required":false,"schema":{"description":"Only this video. Impressions aren't per video, so they read 0.","type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"funnel":{"type":"object","properties":{"days":{"type":"array","items":{"type":"object","properties":{"addToCart":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"impressions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"plays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productClicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"date":{"type":"string"}},"required":["addToCart","impressions","opens","plays","productClicks","date"],"additionalProperties":false}},"from":{"type":"string"},"to":{"type":"string"},"totals":{"type":"object","properties":{"addToCart":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"impressions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"plays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productClicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["addToCart","impressions","opens","plays","productClicks"],"additionalProperties":false}},"required":["days","from","to","totals"],"additionalProperties":false}},"required":["requestId","statusCode","success","funnel"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden, out_of_scope"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Impressions → opens → plays → product clicks → add-to-cart per day, from daily rollups","tags":["analytics"]}},"/v1/analytics/roi":{"get":{"operationId":"analytics::roi","parameters":[{"in":"query","name":"from","required":false,"schema":{"description":"First day, inclusive; defaults to 30 days ago.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"in":"query","name":"includeTest","required":false,"schema":{"description":"true: include pk_test_ traffic.","type":"string","enum":["true","false"]}},{"in":"query","name":"siteId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"to","required":false,"schema":{"description":"Last day, inclusive; defaults to yesterday.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"roi":{"type":"object","properties":{"currencies":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"directMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ordersWithVideo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"withVideoMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","directMinor","orders","ordersWithVideo","withVideoMinor"],"additionalProperties":false}},"from":{"type":"string"},"siteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"to":{"type":"string"}},"required":["currencies","from","siteId","to"],"additionalProperties":false}},"required":["requestId","statusCode","success","roi"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden, out_of_scope"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Direct revenue and orders with video per currency, refunds taken off; the two are never summed","tags":["analytics"]}},"/v1/analytics/screens":{"get":{"operationId":"analytics::screens","parameters":[{"in":"query","name":"from","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day, YYYY-MM-DD."}},{"in":"query","name":"locationId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"screenId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"to","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day, YYYY-MM-DD."}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"report":{"type":"object","properties":{"from":{"type":"string"},"screens":{"type":"array","items":{"type":"object","properties":{"carts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Adds to cart in the hosted page's video."},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Taps on products on the hosted page."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"name":{"type":"string"},"playMs":{"type":"number"},"plays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"boolean"},"revenue":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"number"}},"required":["currency","orders","revenueMinor"],"additionalProperties":false},"description":"Orders listing a session a QR scan started, within 7 days, net of refunds; per currency. Never blended with web attribution."},"scans":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uptime":{"type":"object","properties":{"expectedMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"onlineMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"playingMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ratio":{"type":["number","null"]}},"required":["expectedMinutes","onlineMinutes","playingMinutes","ratio"],"additionalProperties":false}},"required":["carts","clicks","id","locationId","locationName","name","playMs","plays","removed","revenue","scans","uptime"],"additionalProperties":false}},"slides":{"type":"array","items":{"type":"object","properties":{"durationMs":{"type":"number"},"kind":{"anyOf":[{"type":"string","enum":["video","image","product","price_list","promo","app"]},{"type":"null"}]},"mediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistName":{"type":["string","null"]},"plays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":["string","null"]}},"required":["durationMs","kind","mediaId","playlistId","playlistName","plays","screenId","title"],"additionalProperties":false}},"to":{"type":"string"}},"required":["from","screens","slides","to"],"additionalProperties":false}},"required":["requestId","statusCode","success","report"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Uptime and proof of play per screen, and plays per slide, over whole UTC days","tags":["analytics"]}},"/v1/analytics/usage":{"get":{"operationId":"analytics::usage","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"usage":{"type":"object","properties":{"allowance":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"periodEnd":{"type":["string","null"]},"periodStart":{"type":"string"},"plays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usageState":{"type":"string","enum":["ok","warn","over","paused"]}},"required":["allowance","periodEnd","periodStart","plays","usageState"],"additionalProperties":false}},"required":["requestId","statusCode","success","usage"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Plays counted this billing period against the plan's allowance","tags":["analytics"]}},"/v1/api-keys":{"get":{"operationId":"apikey::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"apikeys":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"enabled":{"type":"boolean"},"expiresAt":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"last4":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"name":{"type":["string","null"]},"permissions":{"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}},"prefix":{"type":["string","null"]},"siteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"start":{"type":["string","null"]}},"required":["createdAt","enabled","expiresAt","id","last4","lastUsedAt","name","permissions","prefix","siteId","start"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","apikeys"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden, out_of_scope"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the caller's organization's API keys (never returns the secret)","tags":["apikey"]},"post":{"operationId":"apikey::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"expiresInDays":{"type":"integer","minimum":1,"maximum":365},"name":{"type":"string","minLength":1,"maxLength":255},"permissions":{"minItems":1,"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}},"siteId":{"description":"Restrict the key to one site of the organization.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"type":"object","required":["permissions"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"apikey":{"type":"object","properties":{"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":["string","null"]},"permissions":{"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}},"prefix":{"type":"string"},"siteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["createdAt","expiresAt","id","key","name","permissions","prefix","siteId"],"additionalProperties":false}},"required":["requestId","statusCode","success","apikey"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["api_key_escalation","auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"api_key_escalation, auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["organization_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"organization_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Mint an org-owned API key — its permissions must be a subset of the caller's own","tags":["apikey"]}},"/v1/api-keys/{id}/revoke":{"post":{"operationId":"apikey::revoke","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"apikey":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","apikey"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["api_key_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"api_key_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Revoke (disable) one of the caller's organization's API keys","tags":["apikey"]}},"/v1/assignments":{"get":{"operationId":"assignment::list","parameters":[{"in":"query","name":"level","required":false,"schema":{"description":"Only assignments on this level.","type":"string","enum":["screen","group","location","site","org"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"assignments":{"type":"array","items":{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["fallbackPlaylistId","layoutId","playlistId","target","updatedAt"],"additionalProperties":false}}},"required":["requestId","statusCode","success","assignments"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden, out_of_scope"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Every content assignment (everyone, sites, stores, groups, screens), most specific level first","tags":["assignment"]}},"/v1/collections":{"get":{"operationId":"collection::list","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"collections":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"productCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","productCount"],"additionalProperties":false}}},"required":["requestId","statusCode","success","collections"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the shop collections the organization's products are in, for catalog slides that follow a collection","tags":["collection"]}},"/v1/connections":{"get":{"operationId":"connection::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"connections":{"type":"array","items":{"type":"object","properties":{"baseUrl":{"type":["string","null"]},"builtIn":{"type":"boolean"},"createdAt":{"type":"string"},"expiresAt":{"type":["string","null"]},"hasCredentials":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"platform":{"type":"string","enum":["feed","google_feed","shopify","spreadsheet","woocommerce","centra","lumieo"]},"productCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"siteCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sites":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncSummary":{"anyOf":[{"type":"object","properties":{"products":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skippedExample":{"type":"string"}},"required":["products","removed","skipped"],"additionalProperties":false},{"type":"null"}]},"lastSyncedAt":{"type":["string","null"]},"market":{"type":["string","null"]},"name":{"type":"string"}},"required":["currency","feedUrl","id","lastSyncError","lastSyncSummary","lastSyncedAt","market","name"],"additionalProperties":false}},"status":{"type":"string","enum":["active","reconnect_needed","disabled"]},"syncIntervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"}},"required":["baseUrl","builtIn","createdAt","expiresAt","hasCredentials","id","name","platform","productCount","settings","siteCount","sites","status","syncIntervalMinutes","updatedAt"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","connections"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the active organization's catalog connections","tags":["connection"]},"post":{"operationId":"connection::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"baseUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri","description":"Centra API URL or feed URL."},{"type":"null"}]},"credentials":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","minLength":1,"maxLength":4096},"description":"Platform credentials, e.g. { \"token\": \"…\" } for Centra. Stored encrypted; never returned."},"expiresAt":{"default":null,"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":120},"platform":{"type":"string","enum":["feed","google_feed","shopify","spreadsheet","woocommerce"]},"settings":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","maxLength":4096},"description":"Non-secret connector settings, as the connector's fields name them (GET /v1/connectors)."},"syncIntervalMinutes":{"type":"integer","minimum":5,"maximum":1440,"description":"Minutes between syncs of the connection's markets."}},"type":"object","required":["name","platform"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"connection":{"type":"object","properties":{"baseUrl":{"type":["string","null"]},"builtIn":{"type":"boolean"},"createdAt":{"type":"string"},"expiresAt":{"type":["string","null"]},"hasCredentials":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"platform":{"type":"string","enum":["feed","google_feed","shopify","spreadsheet","woocommerce","centra","lumieo"]},"productCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"siteCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sites":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncSummary":{"anyOf":[{"type":"object","properties":{"products":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skippedExample":{"type":"string"}},"required":["products","removed","skipped"],"additionalProperties":false},{"type":"null"}]},"lastSyncedAt":{"type":["string","null"]},"market":{"type":["string","null"]},"name":{"type":"string"}},"required":["currency","feedUrl","id","lastSyncError","lastSyncSummary","lastSyncedAt","market","name"],"additionalProperties":false}},"status":{"type":"string","enum":["active","reconnect_needed","disabled"]},"syncIntervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"}},"required":["baseUrl","builtIn","createdAt","expiresAt","hasCredentials","id","name","platform","productCount","settings","siteCount","sites","status","syncIntervalMinutes","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","connection"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_built_in"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_built_in"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a catalog connection (owner); credentials are stored encrypted","tags":["connection"]}},"/v1/connections/test":{"post":{"operationId":"connection::test","requestBody":{"content":{"application/json":{"schema":{"properties":{"baseUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri","description":"Centra API URL or feed URL."},{"type":"null"}]},"credentials":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","minLength":1,"maxLength":4096},"description":"Platform credentials, e.g. { \"token\": \"…\" } for Centra. Stored encrypted; never returned."},"platform":{"type":"string","enum":["feed","google_feed","shopify","spreadsheet","woocommerce"]},"sample":{"default":null,"anyOf":[{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"feedUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri","description":"Centra API URL or feed URL."},{"type":"null"}]},"market":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]}},"required":["currency"]},{"type":"null"}]},"settings":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","maxLength":4096},"description":"Non-secret connector settings, as the connector's fields name them (GET /v1/connectors)."}},"type":"object","required":["platform"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"connectionTest":{"type":"object","properties":{"account":{"type":"string"},"currency":{"type":"string"},"markets":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"key":{"type":"string"},"locale":{"type":"string"},"name":{"type":"string"}},"required":["currency","key","name"],"additionalProperties":false}},"message":{"type":"string"},"ok":{"type":"boolean"},"preview":{"type":"object","properties":{"products":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sample":{"type":"array","items":{"type":"object","properties":{"image":{"type":["string","null"]},"price":{"type":"string"},"title":{"type":"string"}},"required":["image","price","title"],"additionalProperties":false}},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skippedExample":{"type":"string"}},"required":["products","sample","skipped"],"additionalProperties":false}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","connectionTest"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Check unsaved connection details and preview a market's products; stores nothing","tags":["connection"]}},"/v1/connections/{id}":{"delete":{"operationId":"connection::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"connection":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","connection"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_built_in","connection_in_use"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_built_in, connection_in_use"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a catalog connection (owner); refused while a site still uses it","tags":["connection"]},"get":{"operationId":"connection::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"connection":{"type":"object","properties":{"baseUrl":{"type":["string","null"]},"builtIn":{"type":"boolean"},"createdAt":{"type":"string"},"expiresAt":{"type":["string","null"]},"hasCredentials":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"platform":{"type":"string","enum":["feed","google_feed","shopify","spreadsheet","woocommerce","centra","lumieo"]},"productCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"siteCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sites":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncSummary":{"anyOf":[{"type":"object","properties":{"products":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skippedExample":{"type":"string"}},"required":["products","removed","skipped"],"additionalProperties":false},{"type":"null"}]},"lastSyncedAt":{"type":["string","null"]},"market":{"type":["string","null"]},"name":{"type":"string"}},"required":["currency","feedUrl","id","lastSyncError","lastSyncSummary","lastSyncedAt","market","name"],"additionalProperties":false}},"status":{"type":"string","enum":["active","reconnect_needed","disabled"]},"syncIntervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"}},"required":["baseUrl","builtIn","createdAt","expiresAt","hasCredentials","id","name","platform","productCount","settings","siteCount","sites","status","syncIntervalMinutes","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","connection"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One catalog connection (credentials are never returned)","tags":["connection"]},"patch":{"operationId":"connection::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"baseUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri","description":"Centra API URL or feed URL."},{"type":"null"}]},"credentials":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","minLength":1,"maxLength":4096},"description":"Platform credentials, e.g. { \"token\": \"…\" } for Centra. Stored encrypted; never returned."},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":120},"settings":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","maxLength":4096},"description":"Non-secret connector settings, as the connector's fields name them (GET /v1/connectors)."},"status":{"type":"string","enum":["active","disabled"]},"syncIntervalMinutes":{"type":"integer","minimum":5,"maximum":1440,"description":"Minutes between syncs of the connection's markets."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"connection":{"type":"object","properties":{"baseUrl":{"type":["string","null"]},"builtIn":{"type":"boolean"},"createdAt":{"type":"string"},"expiresAt":{"type":["string","null"]},"hasCredentials":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"platform":{"type":"string","enum":["feed","google_feed","shopify","spreadsheet","woocommerce","centra","lumieo"]},"productCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"siteCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sites":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncSummary":{"anyOf":[{"type":"object","properties":{"products":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skippedExample":{"type":"string"}},"required":["products","removed","skipped"],"additionalProperties":false},{"type":"null"}]},"lastSyncedAt":{"type":["string","null"]},"market":{"type":["string","null"]},"name":{"type":"string"}},"required":["currency","feedUrl","id","lastSyncError","lastSyncSummary","lastSyncedAt","market","name"],"additionalProperties":false}},"status":{"type":"string","enum":["active","reconnect_needed","disabled"]},"syncIntervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"}},"required":["baseUrl","builtIn","createdAt","expiresAt","hasCredentials","id","name","platform","productCount","settings","siteCount","sites","status","syncIntervalMinutes","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","connection"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_built_in"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_built_in"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Update a catalog connection (owner); new credentials reconnect it, null clears them","tags":["connection"]}},"/v1/connections/{id}/markets":{"get":{"operationId":"connection::markets","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"markets":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"key":{"type":"string"},"locale":{"type":"string"},"name":{"type":"string"}},"required":["currency","key","name"],"additionalProperties":false}}},"required":["requestId","statusCode","success","markets"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_unreachable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_unreachable"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"The markets a connection offers, for a market to pick","tags":["connection"]}},"/v1/connections/{id}/sync":{"post":{"operationId":"connection::sync","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"sync":{"type":"array","items":{"type":"object","properties":{"error":{"type":["string","null"]},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"summary":{"anyOf":[{"type":"object","properties":{"products":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skippedExample":{"type":"string"}},"required":["products","removed","skipped"],"additionalProperties":false},{"type":"null"}]}},"required":["error","siteId","summary"],"additionalProperties":false}}},"required":["requestId","statusCode","success","sync"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_built_in"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_built_in"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Sync every market on the connection now, in full; answers each market's result","tags":["connection"]}},"/v1/connectors":{"get":{"operationId":"connector::list","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"connectors":{"type":"array","items":{"type":"object","properties":{"capabilities":{"type":"object","properties":{"collections":{"type":"boolean"},"markets":{"type":"boolean"},"stock":{"type":"boolean"},"variants":{"type":"boolean"}},"required":["collections","markets","stock","variants"],"additionalProperties":false},"category":{"type":"string","enum":["platform","feed"]},"defaultIntervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":{"type":"string"},"docsUrl":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"hint":{"type":"string"},"key":{"type":"string"},"kind":{"type":"string","enum":["text","url","secret"]},"label":{"type":"string"},"optional":{"type":"boolean"},"placeholder":{"type":"string"},"target":{"type":"string","enum":["baseUrl","credential","setting"]}},"required":["key","kind","label","target"],"additionalProperties":false}},"intervals":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"market":{"oneOf":[{"type":"object","properties":{"hint":{"type":"string"},"kind":{"type":"string","const":"feed_url"},"placeholder":{"type":"string"}},"required":["hint","kind","placeholder"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"market"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"none"}},"required":["kind"],"additionalProperties":false}]},"name":{"type":"string"},"platform":{"type":"string","enum":["feed","google_feed","shopify","spreadsheet","woocommerce"]},"status":{"type":"string","enum":["available","beta"]},"steps":{"type":"array","items":{"type":"string"}}},"required":["capabilities","category","defaultIntervalMinutes","description","fields","intervals","market","name","platform","status","steps"],"additionalProperties":false}}},"required":["requestId","statusCode","success","connectors"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"The product sources a connection can be made to, with the fields each asks for","tags":["connector"]}},"/v1/experiences/affected":{"get":{"operationId":"experience::affected","parameters":[{"in":"query","name":"keys","required":false,"schema":{"type":"string","description":"With themeId: the theme keys an edit changed (informational; every live experience on the theme is affected)."}},{"in":"query","name":"tagId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"themeId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"videoId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experiences":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"live":{"type":"boolean"},"liveVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"productFilter":{"type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["tagged","picked"]},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"],"additionalProperties":false}}},"required":["by","groups"],"additionalProperties":false,"description":"Stories circles: group by creator or product."},{"type":"null"}]},"syncError":{"type":["string","null"]},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"viewer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["createdAt","id","launcher","live","liveVersionId","name","productFilter","siteId","source","storyGroups","syncError","themeId","updatedAt","videoIds","viewer"],"additionalProperties":false}}},"required":["requestId","statusCode","success","experiences"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"The live widgets a tag, theme or video shows up in","tags":["experience"]}},"/v1/experiences/{id}":{"delete":{"operationId":"experience::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experience":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","experience"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_live"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_live"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete an experience that isn't live","tags":["experience"]},"get":{"operationId":"experience::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experience":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"live":{"type":"boolean"},"liveVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"productFilter":{"type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["tagged","picked"]},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"],"additionalProperties":false}}},"required":["by","groups"],"additionalProperties":false,"description":"Stories circles: group by creator or product."},{"type":"null"}]},"syncError":{"type":["string","null"]},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"viewer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["createdAt","id","launcher","live","liveVersionId","name","productFilter","siteId","source","storyGroups","syncError","themeId","updatedAt","videoIds","viewer"],"additionalProperties":false}},"required":["requestId","statusCode","success","experience"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One experience's draft settings","tags":["experience"]},"patch":{"operationId":"experience::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"]}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"default":{},"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}}},"type":{"type":"string","const":"carousel"}},"required":["type"]},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["type"]},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"]},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"]},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"]}},"required":["desktop","mobile"]}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["type"]}]},"name":{"type":"string","minLength":1,"maxLength":120},"productFilter":{"type":"boolean","description":"Show only the videos tagged with the product on the page (`<lumieo-experience product>`)."},"source":{"type":"string","enum":["tagged","picked"],"description":"Which videos it shows: `tagged` is every video with products, newest first; `picked` is its own `videoIds`, in order."},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"]}}},"required":["by"],"description":"Stories circles: group by creator or product."},{"type":"null"}],"description":"Stories circles: group by creator or product, in this order, renamed. Null groups by none (one circle per video)."},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"Null shows the site's default theme."},"videoIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"The widget's own videos, in order (shown when `source` is `picked`). Replaces the whole list."},"viewer":{"description":"How the viewer opens: `presentation` and `layout`, per breakpoint. Behaviour comes from the theme.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experience":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"live":{"type":"boolean"},"liveVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"productFilter":{"type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["tagged","picked"]},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"],"additionalProperties":false}}},"required":["by","groups"],"additionalProperties":false,"description":"Stories circles: group by creator or product."},{"type":"null"}]},"syncError":{"type":["string","null"]},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"viewer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["createdAt","id","launcher","live","liveVersionId","name","productFilter","siteId","source","storyGroups","syncError","themeId","updatedAt","videoIds","viewer"],"additionalProperties":false}},"required":["requestId","statusCode","success","experience"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"402":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["plan_required"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":402,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"plan_required"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found","feature_not_found","theme_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found, feature_not_found, theme_not_found, video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Save an experience's settings; when it is on, the save goes live within a minute (a republish that can't go out sets syncError)","tags":["experience"]}},"/v1/experiences/{id}/copy":{"post":{"operationId":"experience::copy","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site the copy goes to."}},"type":"object","required":["siteId"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experience":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"live":{"type":"boolean"},"liveVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"productFilter":{"type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["tagged","picked"]},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"],"additionalProperties":false}}},"required":["by","groups"],"additionalProperties":false,"description":"Stories circles: group by creator or product."},{"type":"null"}]},"syncError":{"type":["string","null"]},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"viewer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["createdAt","id","launcher","live","liveVersionId","name","productFilter","siteId","source","storyGroups","syncError","themeId","updatedAt","videoIds","viewer"],"additionalProperties":false}},"required":["requestId","statusCode","success","experience"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Copy an experience's settings, playlist and theme to another site, as a draft","tags":["experience"]}},"/v1/experiences/{id}/draft-payload":{"get":{"operationId":"experience::draft","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"draft":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}}},"required":["code","message","path"],"additionalProperties":false}},"payload":{"anyOf":[{"type":"object","properties":{"actions":{"maxItems":4,"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["style","surfaces","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["style","surfaces","behavior","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["style","surfaces","actionId","type"],"additionalProperties":false}]}},"branding":{"type":"boolean"},"defaultLocale":{"type":"string","enum":["sv","en"]},"fallback":{"type":"object","properties":{"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"viewer":{"oneOf":[{"type":"object","properties":{"aspect":{"default":"9:16","anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"default":true,"type":"boolean"},"captions":{"type":"object","properties":{"background":{"default":"box","type":"string","enum":["box","shadow"]},"position":{"default":"auto","type":"string","enum":["auto","bottom","top"]},"size":{"default":"m","type":"string","enum":["s","m","l"]}},"required":["background","position","size"],"additionalProperties":false},"captionsDefault":{"default":false,"type":"boolean"},"controls":{"type":"object","properties":{"arrangement":{"default":"corners","type":"string","enum":["corners","rail","bar"]},"captions":{"default":"with-sound","anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"close":{"default":"top-end","anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"creator":{"default":"top-start","anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"doubleTap":{"default":"none","type":"string","enum":["none","seek"]},"hold":{"default":"none","type":"string","enum":["none","pause"]},"navigation":{"default":"end","anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"playPause":{"default":"with-sound","anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"progress":{"default":"top","anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"progressColor":{"default":"white","type":"string","enum":["white","brand"]},"progressStyle":{"default":"bar","type":"string","enum":["bar","segmented","hairline","scrubber"]},"sound":{"default":"top-end","anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"style":{"default":"scrim","anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"tap":{"default":"pause","type":"string","enum":["pause","mute","controls","navigate"]},"title":{"default":"hidden","anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]}},"required":["arrangement","captions","close","creator","doubleTap","hold","navigation","playPause","progress","progressColor","progressStyle","sound","style","tap","title"],"additionalProperties":false},"direction":{"default":"vertical","type":"string","enum":["vertical","horizontal"]},"fit":{"default":"cover","type":"string","enum":["cover","contain"]},"layout":{"default":{"desktop":"side-panel","mobile":"overlay"},"type":"object","properties":{"desktop":{"default":"side-panel","type":"string","enum":["overlay","side-panel"]},"mobile":{"default":"overlay","type":"string","enum":["overlay","side-panel"]}},"required":["desktop","mobile"],"additionalProperties":false},"loop":{"default":"none","type":"string","enum":["none","video","playlist"]},"mode":{"default":"feed","type":"string","enum":["feed","stories"]},"presentation":{"default":{"desktop":"side-panel","mobile":"fullscreen"},"type":"object","properties":{"desktop":{"default":"side-panel","type":"string","enum":["modal","side-panel","fullscreen"]},"mobile":{"default":"fullscreen","type":"string","enum":["fullscreen","sheet"]}},"required":["desktop","mobile"],"additionalProperties":false},"products":{"type":"object","properties":{"delayS":{"default":0,"type":"integer","minimum":0,"maximum":10},"detailsMotion":{"default":"slide","type":"string","enum":["slide","fade","none"]},"detailsVideo":{"default":"pause","type":"string","enum":["pause","play"]},"display":{"default":"cards","type":"string","enum":["cards","list","pills"]},"highlight":{"default":"none","type":"string","enum":["none","pulse"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":10},"motion":{"default":"none","type":"string","enum":["none","fade","slide","pop"]},"sizePicker":{"default":"inline","type":"string","enum":["inline","step"]},"style":{"default":"panel","type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"timing":{"default":"always","type":"string","enum":["always","tagged"]}},"required":["delayS","detailsMotion","detailsVideo","display","highlight","max","motion","sizePicker","style","timing"],"additionalProperties":false},"soundDefault":{"default":"on","type":"string","enum":["on","off"]},"type":{"type":"string","const":"feed"}},"required":["aspect","autoAdvance","captions","captionsDefault","controls","direction","fit","layout","loop","mode","presentation","products","soundDefault","type"],"additionalProperties":false}]}},"additionalProperties":false},"float":{"type":"object","properties":{"mode":{"type":"string","const":"off"}},"required":["mode"],"additionalProperties":false},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"groups":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"cover":{"type":"string","format":"uri"},"id":{"type":"string","minLength":1,"maxLength":64},"itemIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["id","itemIds","title"],"additionalProperties":false}},"id":{"type":"string","minLength":1},"items":{"minItems":1,"maxItems":300,"type":"array","items":{"type":"object","properties":{"creator":{"type":"object","properties":{"avatar":{"type":"string","format":"uri"},"name":{"type":"string","minLength":1,"maxLength":80}},"required":["name"],"additionalProperties":false},"id":{"type":"string","minLength":1},"tags":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"endS":{"type":"number","minimum":0},"productId":{"type":"string","minLength":1,"maxLength":200},"startS":{"type":"number","minimum":0}},"required":["productId"],"additionalProperties":false}},"title":{"type":"string","minLength":1,"maxLength":120},"video":{"type":"object","properties":{"animatedPoster":{"type":"string","format":"uri"},"captions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1},"lang":{"type":"string","minLength":2,"maxLength":10},"src":{"type":"string","format":"uri"}},"required":["label","lang","src"],"additionalProperties":false}},"durationS":{"type":"number","exclusiveMinimum":0},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"hls":{"type":"string","format":"uri"},"poster":{"type":"string","format":"uri"},"uid":{"type":"string","minLength":1},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["captions","durationS","height","hls","poster","uid","width"],"additionalProperties":false}},"required":["id","tags","video"],"additionalProperties":false}},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"playlistId":{"type":"string","minLength":1},"productFilter":{"type":"boolean"},"products":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":200},"additionalProperties":{"type":"object","properties":{"available":{"type":"boolean"},"description":{"type":"string","maxLength":300},"externalId":{"type":"string","minLength":1,"maxLength":200},"images":{"maxItems":8,"type":"array","items":{"type":"string","format":"uri"}},"options":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"values":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"price":{"type":"object","properties":{"current":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amountMinor","currency"],"additionalProperties":false},"original":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amountMinor","currency"],"additionalProperties":false}},"required":["current"],"additionalProperties":false},"title":{"type":"string","minLength":1,"maxLength":200},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"url":{"type":"string","format":"uri"},"variants":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"externalId":{"type":"string","minLength":1,"maxLength":200},"image":{"type":"string","format":"uri"},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"price":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amountMinor","currency"],"additionalProperties":false},"sku":{"type":"string","maxLength":100}},"required":["available","externalId","options"],"additionalProperties":false}}},"required":["available","externalId","images","options","price","title","updatedAt","url","variants"],"additionalProperties":false}},"siteId":{"type":"string","minLength":1},"theme":{"type":"object","properties":{"buttonStyle":{"default":"solid","type":"string","enum":["solid","outline","ghost"]},"cardAlign":{"default":"start","type":"string","enum":["start","center","end"]},"cardPosition":{"default":"bottom","type":"string","enum":["bottom","top","side"]},"cardStyle":{"default":"compact","type":"string","enum":["compact","detailed","minimal"]},"cardSurface":{"default":"card","type":"string","enum":["card","plain","glass"]},"colorScheme":{"default":"light","type":"string","enum":["light","dark","auto"]},"iconSet":{"default":"filled","type":"string","enum":["filled","line","rounded"]},"playShape":{"default":"circle","type":"string","enum":["circle","rounded"]},"thumbAspect":{"default":"9:16","type":"string","enum":["9:16","4:5","1:1","16:9"]},"css":{"type":"string"},"customCss":{"type":"string","maxLength":16384},"font":{"type":"object","properties":{"files":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"style":{"type":"string","enum":["normal","italic"]},"url":{"type":"string","pattern":"^v1\\/fonts\\/[0-9a-f]{64}$"},"weight":{"type":"integer","minimum":100,"maximum":900}},"required":["style","url","weight"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["files","id"],"additionalProperties":false},"hash":{"type":"string","minLength":8},"iconOverrides":{"type":"object","propertyNames":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"mode":{"default":"fill","type":"string","enum":["fill","stroke"]},"path":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s-]+$"},"viewBox":{"default":"0 0 24 24","type":"string","pattern":"^-?\\d+(?:\\.\\d+)? -?\\d+(?:\\.\\d+)? (\\d+(?:\\.\\d+)?) (\\d+(?:\\.\\d+)?)$"}},"required":["mode","path","viewBox"],"additionalProperties":false}]}}},"required":["buttonStyle","cardAlign","cardPosition","cardStyle","cardSurface","colorScheme","iconSet","playShape","thumbAspect","css","hash"],"additionalProperties":false},"v":{"type":"number","const":1},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"viewer":{"oneOf":[{"type":"object","properties":{"aspect":{"default":"9:16","anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"default":true,"type":"boolean"},"captions":{"type":"object","properties":{"background":{"default":"box","type":"string","enum":["box","shadow"]},"position":{"default":"auto","type":"string","enum":["auto","bottom","top"]},"size":{"default":"m","type":"string","enum":["s","m","l"]}},"required":["background","position","size"],"additionalProperties":false},"captionsDefault":{"default":false,"type":"boolean"},"controls":{"type":"object","properties":{"arrangement":{"default":"corners","type":"string","enum":["corners","rail","bar"]},"captions":{"default":"with-sound","anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"close":{"default":"top-end","anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"creator":{"default":"top-start","anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"doubleTap":{"default":"none","type":"string","enum":["none","seek"]},"hold":{"default":"none","type":"string","enum":["none","pause"]},"navigation":{"default":"end","anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"playPause":{"default":"with-sound","anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"progress":{"default":"top","anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"progressColor":{"default":"white","type":"string","enum":["white","brand"]},"progressStyle":{"default":"bar","type":"string","enum":["bar","segmented","hairline","scrubber"]},"sound":{"default":"top-end","anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"style":{"default":"scrim","anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"tap":{"default":"pause","type":"string","enum":["pause","mute","controls","navigate"]},"title":{"default":"hidden","anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]}},"required":["arrangement","captions","close","creator","doubleTap","hold","navigation","playPause","progress","progressColor","progressStyle","sound","style","tap","title"],"additionalProperties":false},"direction":{"default":"vertical","type":"string","enum":["vertical","horizontal"]},"fit":{"default":"cover","type":"string","enum":["cover","contain"]},"layout":{"default":{"desktop":"side-panel","mobile":"overlay"},"type":"object","properties":{"desktop":{"default":"side-panel","type":"string","enum":["overlay","side-panel"]},"mobile":{"default":"overlay","type":"string","enum":["overlay","side-panel"]}},"required":["desktop","mobile"],"additionalProperties":false},"loop":{"default":"none","type":"string","enum":["none","video","playlist"]},"mode":{"default":"feed","type":"string","enum":["feed","stories"]},"presentation":{"default":{"desktop":"side-panel","mobile":"fullscreen"},"type":"object","properties":{"desktop":{"default":"side-panel","type":"string","enum":["modal","side-panel","fullscreen"]},"mobile":{"default":"fullscreen","type":"string","enum":["fullscreen","sheet"]}},"required":["desktop","mobile"],"additionalProperties":false},"products":{"type":"object","properties":{"delayS":{"default":0,"type":"integer","minimum":0,"maximum":10},"detailsMotion":{"default":"slide","type":"string","enum":["slide","fade","none"]},"detailsVideo":{"default":"pause","type":"string","enum":["pause","play"]},"display":{"default":"cards","type":"string","enum":["cards","list","pills"]},"highlight":{"default":"none","type":"string","enum":["none","pulse"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":10},"motion":{"default":"none","type":"string","enum":["none","fade","slide","pop"]},"sizePicker":{"default":"inline","type":"string","enum":["inline","step"]},"style":{"default":"panel","type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"timing":{"default":"always","type":"string","enum":["always","tagged"]}},"required":["delayS","detailsMotion","detailsVideo","display","highlight","max","motion","sizePicker","style","timing"],"additionalProperties":false},"soundDefault":{"default":"on","type":"string","enum":["on","off"]},"type":{"type":"string","const":"feed"}},"required":["aspect","autoAdvance","captions","captionsDefault","controls","direction","fit","layout","loop","mode","presentation","products","soundDefault","type"],"additionalProperties":false}]}},"required":["actions","defaultLocale","float","generatedAt","id","items","launcher","playlistId","products","siteId","theme","v","version","viewer"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}}},"required":["code","message","path"],"additionalProperties":false}}},"required":["errors","payload","warnings"],"additionalProperties":false}},"required":["requestId","statusCode","success","draft"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_unavailable"}},"summary":"The draft's payload as publish would build it, with its warnings and errors","tags":["experience"]}},"/v1/experiences/{id}/preview":{"post":{"operationId":"experience::preview","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"preview":{"type":"object","properties":{"experienceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}}},"required":["code","message","path"],"additionalProperties":false}}},"required":["experienceId","siteId","warnings"],"additionalProperties":false}},"required":["requestId","statusCode","success","preview"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_unavailable"}},"summary":"Write the draft for the site's pk_test_ key and ?version=draft; draft errors come back as 422","tags":["experience"]}},"/v1/experiences/{id}/publish":{"post":{"operationId":"experience::publish","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"publish":{"type":"object","properties":{"experienceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workflowId":{"type":"string"}},"required":["experienceId","version","workflowId"],"additionalProperties":false}},"required":["requestId","statusCode","success","publish"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"402":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["plan_required"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":402,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"plan_required"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found","feature_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found, feature_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["publish_in_progress"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"publish_in_progress"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["publish_unavailable","stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"publish_unavailable, stream_unavailable"}},"summary":"Publish the draft as the next version; draft errors come back as 422 and nothing is written","tags":["experience"]}},"/v1/experiences/{id}/unpublish":{"post":{"operationId":"experience::unpublish","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experience":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"live":{"type":"boolean"},"liveVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"productFilter":{"type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["tagged","picked"]},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"],"additionalProperties":false}}},"required":["by","groups"],"additionalProperties":false,"description":"Stories circles: group by creator or product."},{"type":"null"}]},"syncError":{"type":["string","null"]},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"viewer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["createdAt","id","launcher","live","liveVersionId","name","productFilter","siteId","source","storyGroups","syncError","themeId","updatedAt","videoIds","viewer"],"additionalProperties":false}},"required":["requestId","statusCode","success","experience"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Take the experience off the site (its element collapses); the draft is kept","tags":["experience"]}},"/v1/fonts":{"get":{"operationId":"font::list","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"fonts":{"type":"array","items":{"type":"object","properties":{"attestation":{"anyOf":[{"type":"object","properties":{"attestedAt":{"type":"string"},"attestedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"statement":{"type":"string"}},"required":["attestedAt","attestedBy","statement"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"family":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slot":{"type":"string","enum":["regular","bold","italic","boldItalic"]},"style":{"type":"string","enum":["normal","italic"]},"weight":{"anyOf":[{"type":"number","const":400},{"type":"number","const":700}]}},"required":["fileId","sizeBytes","slot","style","weight"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"updatedAt":{"type":"string"},"usedBy":{"type":"object","properties":{"themes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["themes"],"additionalProperties":false}},"required":["attestation","createdAt","family","files","id","updatedAt","usedBy"],"additionalProperties":false}}},"required":["requestId","statusCode","success","fonts"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"The organization's custom fonts, oldest first, with theme usage","tags":["font"]},"post":{"operationId":"font::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"family":{"type":"string","minLength":1,"maxLength":100},"licenceAttested":{"type":"boolean","const":true,"description":"The merchant confirms: \"I hold a web-font licence that covers embedding on my sites.\" Recorded with who and when."}},"type":"object","required":["family","licenceAttested"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"font":{"type":"object","properties":{"attestation":{"anyOf":[{"type":"object","properties":{"attestedAt":{"type":"string"},"attestedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"statement":{"type":"string"}},"required":["attestedAt","attestedBy","statement"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"family":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slot":{"type":"string","enum":["regular","bold","italic","boldItalic"]},"style":{"type":"string","enum":["normal","italic"]},"weight":{"anyOf":[{"type":"number","const":400},{"type":"number","const":700}]}},"required":["fileId","sizeBytes","slot","style","weight"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"updatedAt":{"type":"string"},"usedBy":{"type":"object","properties":{"themes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["themes"],"additionalProperties":false}},"required":["attestation","createdAt","family","files","id","updatedAt","usedBy"],"additionalProperties":false}},"required":["requestId","statusCode","success","font"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Add a font family with the licence attestation; then upload its faces","tags":["font"]}},"/v1/fonts/{id}":{"delete":{"operationId":"font::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"font":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","font"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["font_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"font_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["font_in_use"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"font_in_use"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a font no theme uses, with its files; its attestations are kept","tags":["font"]},"get":{"operationId":"font::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"font":{"type":"object","properties":{"attestation":{"anyOf":[{"type":"object","properties":{"attestedAt":{"type":"string"},"attestedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"statement":{"type":"string"}},"required":["attestedAt","attestedBy","statement"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"family":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slot":{"type":"string","enum":["regular","bold","italic","boldItalic"]},"style":{"type":"string","enum":["normal","italic"]},"weight":{"anyOf":[{"type":"number","const":400},{"type":"number","const":700}]}},"required":["fileId","sizeBytes","slot","style","weight"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"updatedAt":{"type":"string"},"usedBy":{"type":"object","properties":{"themes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["themes"],"additionalProperties":false}},"required":["attestation","createdAt","family","files","id","updatedAt","usedBy"],"additionalProperties":false}},"required":["requestId","statusCode","success","font"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["font_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"font_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One custom font","tags":["font"]}},"/v1/fonts/{id}/files/{slot}":{"put":{"operationId":"font::files::upload","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"path","name":"slot","required":true,"schema":{"type":"string","enum":["regular","bold","italic","boldItalic"]}}],"requestBody":{"content":{"font/woff2":{"schema":{"format":"binary","type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"font":{"type":"object","properties":{"attestation":{"anyOf":[{"type":"object","properties":{"attestedAt":{"type":"string"},"attestedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"statement":{"type":"string"}},"required":["attestedAt","attestedBy","statement"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"family":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slot":{"type":"string","enum":["regular","bold","italic","boldItalic"]},"style":{"type":"string","enum":["normal","italic"]},"weight":{"anyOf":[{"type":"number","const":400},{"type":"number","const":700}]}},"required":["fileId","sizeBytes","slot","style","weight"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"updatedAt":{"type":"string"},"usedBy":{"type":"object","properties":{"themes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["themes"],"additionalProperties":false}},"required":["attestation","createdAt","family","files","id","updatedAt","usedBy"],"additionalProperties":false}},"required":["requestId","statusCode","success","font"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request","font_file_invalid"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request, font_file_invalid"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["font_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"font_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["font_storage_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"font_storage_unavailable"}},"summary":"Upload one face as WOFF2 (≤ 500 kB), replacing the slot's file; stored in the EU bucket","tags":["font"]}},"/v1/images":{"get":{"operationId":"image::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"query","name":"status","required":false,"schema":{"type":"string","enum":["uploading","ready","failed"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"images":{"type":"array","items":{"type":"object","properties":{"contentType":{"type":"string"},"createdAt":{"type":"string"},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","ready","failed"]},"thumbnailUrl":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["contentType","createdAt","height","id","scope","sizeBytes","status","thumbnailUrl","title","updatedAt","url","width"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","images"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List images, newest first","tags":["image"]}},"/v1/images/uploads":{"post":{"operationId":"image::upload","requestBody":{"content":{"application/json":{"schema":{"properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"height":{"default":null,"description":"Measured in the browser.","anyOf":[{"type":"integer","minimum":1,"maximum":16384},{"type":"null"}]},"scope":{"type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"],"description":"Who 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."},"sizeBytes":{"type":"integer","minimum":1,"maximum":10485760},"title":{"type":"string","minLength":1,"maxLength":200},"width":{"default":null,"description":"Measured in the browser.","anyOf":[{"type":"integer","minimum":1,"maximum":16384},{"type":"null"}]}},"type":"object","required":["contentType","sizeBytes","title"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"upload":{"type":"object","properties":{"image":{"type":"object","properties":{"contentType":{"type":"string"},"createdAt":{"type":"string"},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","ready","failed"]},"thumbnailUrl":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["contentType","createdAt","height","id","scope","sizeBytes","status","thumbnailUrl","title","updatedAt","url","width"],"additionalProperties":false},"uploadUrl":{"type":"string"}},"required":["image","uploadUrl"],"additionalProperties":false}},"required":["requestId","statusCode","success","upload"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"502":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["images_upstream_error"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":502,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"images_upstream_error"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["images_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"images_unavailable"}},"summary":"Start an image upload: a one-time Cloudflare Images URL the browser posts the file to","tags":["image"]}},"/v1/images/{id}":{"delete":{"operationId":"image::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"image":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","image"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["image_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"image_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["image_in_use"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"image_in_use"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete an image no playlist shows","tags":["image"]},"get":{"operationId":"image::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"image":{"type":"object","properties":{"contentType":{"type":"string"},"createdAt":{"type":"string"},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","ready","failed"]},"thumbnailUrl":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["contentType","createdAt","height","id","scope","sizeBytes","status","thumbnailUrl","title","updatedAt","url","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","image"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["image_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"image_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One image","tags":["image"]},"patch":{"operationId":"image::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"scope":{"description":"Move it to everyone, a site or a store. A scoped member can move it only within their scope.","type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"]},"title":{"type":"string","minLength":1,"maxLength":200}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"image":{"type":"object","properties":{"contentType":{"type":"string"},"createdAt":{"type":"string"},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","ready","failed"]},"thumbnailUrl":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["contentType","createdAt","height","id","scope","sizeBytes","status","thumbnailUrl","title","updatedAt","url","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","image"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["image_not_found","location_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"image_not_found, location_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename an image or move it to another scope","tags":["image"]}},"/v1/images/{id}/complete":{"post":{"operationId":"image::complete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"image":{"type":"object","properties":{"contentType":{"type":"string"},"createdAt":{"type":"string"},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","ready","failed"]},"thumbnailUrl":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["contentType","createdAt","height","id","scope","sizeBytes","status","thumbnailUrl","title","updatedAt","url","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","image"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["image_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"image_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"502":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["images_upstream_error"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":502,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"images_upstream_error"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["images_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"images_unavailable"}},"summary":"The browser finished uploading: ready once Cloudflare has the file, failed if it never arrived","tags":["image"]}},"/v1/invites":{"get":{"operationId":"invite::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"query","name":"includeExpired","required":false,"schema":{"description":"Also list pending invites whose link has expired (default false).","type":"string","enum":["true","false"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"invites":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"email":{"type":"string"},"expired":{"type":"boolean"},"expiresAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invitedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"role":{"type":["string","null"]},"siteIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]}},"required":["createdAt","email","expired","expiresAt","id","invitedBy","locationIds","role","siteIds"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","invites"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the active organization's pending invites (owner); expired ones only with includeExpired=true","tags":["invite"]},"post":{"operationId":"invite::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"locationIds":{"description":"Scope the member to these stores: they see and run only these stores' screens and content. Store staff always have stores. Null clears it.","anyOf":[{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"siteIds":{"description":"Scope the member to these sites and their stores. Not for owners or store staff. Null clears it.","anyOf":[{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"role":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,62}$"}},"type":"object","required":["email","role"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"invite":{"type":"object","properties":{"email":{"type":"string"},"expiresAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"link":{"type":"string"},"role":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,62}$"}},"required":["email","expiresAt","id","link","role"],"additionalProperties":false}},"required":["requestId","statusCode","success","invite"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope","role_escalation"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope, role_escalation"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","organization_not_found","role_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, organization_not_found, role_not_found, site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["member_exists"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"member_exists"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Invite an email to the active organization with a role (owner); the link is returned only here and in the email, and expires in 7 days","tags":["invite"]}},"/v1/invites/accept":{"post":{"operationId":"invite::accept","requestBody":{"content":{"application/json":{"schema":{"properties":{"token":{"type":"string","minLength":1,"maxLength":128}},"type":"object","required":["token"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string"},"siteIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]}},"required":["id","locationIds","orgId","role","siteIds"],"additionalProperties":false}},"required":["requestId","statusCode","success","membership"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","invite_email_mismatch"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, invite_email_mismatch"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["invite_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"invite_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["invite_not_pending","member_exists"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"invite_not_pending, member_exists"},"410":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["invite_expired"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":410,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"invite_expired"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Accept an invite sent to the signed-in user's email, with the token from its link; switch to the organization with auth::switch","tags":["invite"]}},"/v1/invites/{id}":{"delete":{"operationId":"invite::cancel","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"invite":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","invite"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["invite_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"invite_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["invite_not_pending"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"invite_not_pending"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Cancel a pending invite (owner); its link stops working","tags":["invite"]}},"/v1/layouts":{"get":{"operationId":"layout::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"layouts":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait"]},"overlays":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["12h","24h"]},"kind":{"type":"string","const":"clock"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"showDate":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]}},"required":["format","kind","position","showDate","style"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"ticker"},"position":{"type":"string","enum":["top","bottom"]},"speed":{"type":"string","enum":["slow","normal","fast"]},"text":{"type":"string"}},"required":["kind","position","speed","text"],"additionalProperties":false},{"type":"object","properties":{"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"logo"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"size":{"type":"string","enum":["small","medium","large"]}},"required":["imageId","kind","position","size"],"additionalProperties":false}]}},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"zones":{"type":"array","items":{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","id","name","playlistId","width","x","y"],"additionalProperties":false}}},"required":["createdAt","id","name","orientation","overlays","scope","screenCount","updatedAt","zones"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","layouts"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List screen layouts, newest first","tags":["layout"]},"post":{"operationId":"layout::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"orientation":{"default":"landscape","type":"string","enum":["landscape","portrait"],"description":"Landscape draws on a 1920×1080 grid, portrait on 1080×1920."},"overlays":{"default":[],"maxItems":3,"type":"array","items":{"oneOf":[{"type":"object","properties":{"format":{"default":"24h","type":"string","enum":["12h","24h"]},"kind":{"type":"string","const":"clock"},"position":{"default":"top-right","type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"showDate":{"default":false,"type":"boolean"},"style":{"default":null,"description":"How screens draw the clock (docs/specs/screens.md §17); null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"ticker"},"position":{"default":"bottom","type":"string","enum":["top","bottom"]},"speed":{"default":"normal","type":"string","enum":["slow","normal","fast"]},"text":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","text"]},{"type":"object","properties":{"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"An uploaded image (PNG or WebP)."},"kind":{"type":"string","const":"logo"},"position":{"default":"top-left","type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"size":{"default":"medium","type":"string","enum":["small","medium","large"]}},"required":["imageId","kind"]}]},"description":"Drawn over every zone: a clock, a ticker, a logo."},"scope":{"type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"],"description":"Who 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."},"zones":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"object","properties":{"height":{"type":"integer","minimum":1,"maximum":1920},"name":{"type":"string","minLength":1,"maxLength":60},"playlistId":{"default":null,"description":"Null leaves the zone black.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"width":{"type":"integer","minimum":1,"maximum":1920},"x":{"type":"integer","minimum":0,"maximum":1919},"y":{"type":"integer","minimum":0,"maximum":1919}},"required":["height","name","width","x","y"]},"description":"In grid pixels, drawn in order (a later zone covers an earlier one)."}},"type":"object","required":["name","zones"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"layout":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait"]},"overlays":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["12h","24h"]},"kind":{"type":"string","const":"clock"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"showDate":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]}},"required":["format","kind","position","showDate","style"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"ticker"},"position":{"type":"string","enum":["top","bottom"]},"speed":{"type":"string","enum":["slow","normal","fast"]},"text":{"type":"string"}},"required":["kind","position","speed","text"],"additionalProperties":false},{"type":"object","properties":{"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"logo"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"size":{"type":"string","enum":["small","medium","large"]}},"required":["imageId","kind","position","size"],"additionalProperties":false}]}},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"zones":{"type":"array","items":{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","id","name","playlistId","width","x","y"],"additionalProperties":false}}},"required":["createdAt","id","name","orientation","overlays","scope","screenCount","updatedAt","zones"],"additionalProperties":false}},"required":["requestId","statusCode","success","layout"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["image_not_found","location_not_found","playlist_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"image_not_found, location_not_found, playlist_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a layout: zones, each with a playlist, and overlays","tags":["layout"]}},"/v1/layouts/{id}":{"delete":{"operationId":"layout::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"layout":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","layout"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a layout; screens showing it fall back, and schedule slots that play it go","tags":["layout"]},"get":{"operationId":"layout::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"layout":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait"]},"overlays":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["12h","24h"]},"kind":{"type":"string","const":"clock"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"showDate":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]}},"required":["format","kind","position","showDate","style"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"ticker"},"position":{"type":"string","enum":["top","bottom"]},"speed":{"type":"string","enum":["slow","normal","fast"]},"text":{"type":"string"}},"required":["kind","position","speed","text"],"additionalProperties":false},{"type":"object","properties":{"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"logo"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"size":{"type":"string","enum":["small","medium","large"]}},"required":["imageId","kind","position","size"],"additionalProperties":false}]}},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"zones":{"type":"array","items":{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","id","name","playlistId","width","x","y"],"additionalProperties":false}}},"required":["createdAt","id","name","orientation","overlays","scope","screenCount","updatedAt","zones"],"additionalProperties":false}},"required":["requestId","statusCode","success","layout"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One layout with its zones and overlays","tags":["layout"]},"patch":{"operationId":"layout::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"orientation":{"type":"string","enum":["landscape","portrait"],"description":"Landscape draws on a 1920×1080 grid, portrait on 1080×1920."},"overlays":{"maxItems":3,"type":"array","items":{"oneOf":[{"type":"object","properties":{"format":{"default":"24h","type":"string","enum":["12h","24h"]},"kind":{"type":"string","const":"clock"},"position":{"default":"top-right","type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"showDate":{"default":false,"type":"boolean"},"style":{"default":null,"description":"How screens draw the clock (docs/specs/screens.md §17); null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"ticker"},"position":{"default":"bottom","type":"string","enum":["top","bottom"]},"speed":{"default":"normal","type":"string","enum":["slow","normal","fast"]},"text":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","text"]},{"type":"object","properties":{"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"An uploaded image (PNG or WebP)."},"kind":{"type":"string","const":"logo"},"position":{"default":"top-left","type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"size":{"default":"medium","type":"string","enum":["small","medium","large"]}},"required":["imageId","kind"]}]},"description":"Drawn over every zone: a clock, a ticker, a logo."},"scope":{"description":"Move it to everyone, a site or a store. A scoped member can move it only within their scope.","type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"]},"zones":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"object","properties":{"height":{"type":"integer","minimum":1,"maximum":1920},"name":{"type":"string","minLength":1,"maxLength":60},"playlistId":{"default":null,"description":"Null leaves the zone black.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"width":{"type":"integer","minimum":1,"maximum":1920},"x":{"type":"integer","minimum":0,"maximum":1919},"y":{"type":"integer","minimum":0,"maximum":1919}},"required":["height","name","width","x","y"]},"description":"In grid pixels, drawn in order (a later zone covers an earlier one)."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"layout":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait"]},"overlays":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["12h","24h"]},"kind":{"type":"string","const":"clock"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"showDate":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]}},"required":["format","kind","position","showDate","style"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"ticker"},"position":{"type":"string","enum":["top","bottom"]},"speed":{"type":"string","enum":["slow","normal","fast"]},"text":{"type":"string"}},"required":["kind","position","speed","text"],"additionalProperties":false},{"type":"object","properties":{"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"logo"},"position":{"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]},"size":{"type":"string","enum":["small","medium","large"]}},"required":["imageId","kind","position","size"],"additionalProperties":false}]}},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"zones":{"type":"array","items":{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","id","name","playlistId","width","x","y"],"additionalProperties":false}}},"required":["createdAt","id","name","orientation","overlays","scope","screenCount","updatedAt","zones"],"additionalProperties":false}},"required":["requestId","statusCode","success","layout"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["image_not_found","layout_not_found","location_not_found","playlist_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"image_not_found, layout_not_found, location_not_found, playlist_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename a layout or replace its zones or overlays; screens showing it update at once","tags":["layout"]}},"/v1/locations":{"get":{"operationId":"location::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"locations":{"type":"array","items":{"type":"object","properties":{"address":{"type":"object","properties":{"city":{"type":"string","maxLength":200},"country":{"type":"string","minLength":2,"maxLength":2},"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"postalCode":{"type":"string","maxLength":20}},"additionalProperties":false},"alertEmails":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"offlineAlertMinutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"openingHours":{"type":"object","properties":{"fri":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"mon":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sat":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sun":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"thu":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"tue":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"wed":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}}},"additionalProperties":false,"description":"Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sleepOutsideHours":{"type":"boolean"},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"timeZone":{"type":"string"},"updatedAt":{"type":"string"}},"required":["address","alertEmails","createdAt","id","name","offlineAlertMinutes","openingHours","screenCount","siteId","sleepOutsideHours","themeId","timeZone","updatedAt"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","locations"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List stores, newest first, with their screen counts","tags":["location"]},"post":{"operationId":"location::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"address":{"default":{},"type":"object","properties":{"city":{"type":"string","maxLength":200},"country":{"type":"string","minLength":2,"maxLength":2},"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"postalCode":{"type":"string","maxLength":20}}},"alertEmails":{"default":[],"maxItems":5,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"description":"Who gets offline alerts; empty sends them to the organization's owners."},"name":{"type":"string","minLength":1,"maxLength":120},"offlineAlertMinutes":{"default":null,"anyOf":[{"type":"integer","minimum":5,"maximum":1440},{"type":"null"}],"description":"Email when a screen here has been silent this many minutes of opening hours (S-15); null is off."},"openingHours":{"default":{},"type":"object","properties":{"fri":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"mon":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"sat":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"sun":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"thu":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"tue":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"wed":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}}},"description":"Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them."},"siteId":{"description":"The site (market) whose language, currency and listings it uses; the organization's first site when omitted.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sleepOutsideHours":{"default":false,"description":"Screens here go dark outside the opening hours (when any are set).","type":"boolean"},"themeId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"timeZone":{"type":"string","minLength":1,"maxLength":64,"description":"IANA time zone, e.g. Europe/Stockholm."}},"type":"object","required":["name","timeZone"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"location":{"type":"object","properties":{"address":{"type":"object","properties":{"city":{"type":"string","maxLength":200},"country":{"type":"string","minLength":2,"maxLength":2},"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"postalCode":{"type":"string","maxLength":20}},"additionalProperties":false},"alertEmails":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"offlineAlertMinutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"openingHours":{"type":"object","properties":{"fri":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"mon":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sat":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sun":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"thu":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"tue":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"wed":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}}},"additionalProperties":false,"description":"Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sleepOutsideHours":{"type":"boolean"},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"timeZone":{"type":"string"},"updatedAt":{"type":"string"}},"required":["address","alertEmails","createdAt","id","name","offlineAlertMinutes","openingHours","screenCount","siteId","sleepOutsideHours","themeId","timeZone","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","location"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"402":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["plan_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":402,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"plan_limit_reached"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found","theme_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found, theme_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Add a store (owner)","tags":["location"]}},"/v1/locations/{id}":{"delete":{"operationId":"location::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"moveScreensTo","required":false,"schema":{"description":"Another store to move this store's screens to.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"removeScreens","required":false,"schema":{"description":"true removes this store's screens (their tokens stop working).","type":"string","enum":["true","false"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"location":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","location"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_last","screen_group_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_last, screen_group_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a store (owner): ?moveScreensTo=<store id> moves its screens, ?removeScreens=true removes them","tags":["location"]},"get":{"operationId":"location::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"location":{"type":"object","properties":{"address":{"type":"object","properties":{"city":{"type":"string","maxLength":200},"country":{"type":"string","minLength":2,"maxLength":2},"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"postalCode":{"type":"string","maxLength":20}},"additionalProperties":false},"alertEmails":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"offlineAlertMinutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"openingHours":{"type":"object","properties":{"fri":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"mon":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sat":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sun":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"thu":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"tue":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"wed":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}}},"additionalProperties":false,"description":"Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sleepOutsideHours":{"type":"boolean"},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"timeZone":{"type":"string"},"updatedAt":{"type":"string"}},"required":["address","alertEmails","createdAt","id","name","offlineAlertMinutes","openingHours","screenCount","siteId","sleepOutsideHours","themeId","timeZone","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","location"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One store","tags":["location"]},"patch":{"operationId":"location::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"address":{"type":"object","properties":{"city":{"type":"string","maxLength":200},"country":{"type":"string","minLength":2,"maxLength":2},"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"postalCode":{"type":"string","maxLength":20}}},"alertEmails":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"description":"Who gets offline alerts; empty sends them to the organization's owners."},"name":{"type":"string","minLength":1,"maxLength":120},"offlineAlertMinutes":{"anyOf":[{"type":"integer","minimum":5,"maximum":1440},{"type":"null"}],"description":"Email when a screen here has been silent this many minutes of opening hours (S-15); null is off."},"openingHours":{"type":"object","properties":{"fri":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"mon":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"sat":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"sun":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"thu":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"tue":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}},"wed":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"]}}},"description":"Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them."},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sleepOutsideHours":{"type":"boolean"},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"timeZone":{"type":"string","minLength":1,"maxLength":64,"description":"IANA time zone, e.g. Europe/Stockholm."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"location":{"type":"object","properties":{"address":{"type":"object","properties":{"city":{"type":"string","maxLength":200},"country":{"type":"string","minLength":2,"maxLength":2},"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"postalCode":{"type":"string","maxLength":20}},"additionalProperties":false},"alertEmails":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"offlineAlertMinutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"openingHours":{"type":"object","properties":{"fri":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"mon":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sat":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"sun":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"thu":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"tue":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}},"wed":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["close","open"],"additionalProperties":false}}},"additionalProperties":false,"description":"Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sleepOutsideHours":{"type":"boolean"},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"timeZone":{"type":"string"},"updatedAt":{"type":"string"}},"required":["address","alertEmails","createdAt","id","name","offlineAlertMinutes","openingHours","screenCount","siteId","sleepOutsideHours","themeId","timeZone","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","location"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","site_not_found","theme_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, site_not_found, theme_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Update a store (owner); its screens pick up a new time zone, site language or opening hours","tags":["location"]}},"/v1/locations/{id}/assignment":{"put":{"operationId":"location::assign","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"fallbackPlaylistId":{"default":null,"description":"Plays when the main playlist is empty or none is set; cached on the screen.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["fallbackPlaylistId","layoutId","playlistId","target","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"What the target now shows; null once cleared."}},"required":["requestId","statusCode","success","assignment"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","location_not_found","playlist_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, location_not_found, playlist_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Set what a store's screens show; a group or screen of their own still wins, and it beats the site and everyone. All null: clear it","tags":["location"]}},"/v1/members":{"get":{"operationId":"member::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"members":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"email":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"name":{"type":"string"},"role":{"type":"string"},"siteIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["createdAt","email","id","locationIds","name","role","siteIds","userId"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","members"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the active organization's members","tags":["member"]}},"/v1/members/{id}":{"delete":{"operationId":"member::remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"member":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","member"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope","role_escalation"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope, role_escalation"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["member_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"member_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["member_last_owner"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"member_last_owner"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Remove a member (owner); the last owner can't be removed","tags":["member"]},"patch":{"operationId":"member::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"locationIds":{"description":"Scope the member to these stores: they see and run only these stores' screens and content. Store staff always have stores. Null clears it.","anyOf":[{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"siteIds":{"description":"Scope the member to these sites and their stores. Not for owners or store staff. Null clears it.","anyOf":[{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"role":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,62}$"}},"type":"object","required":["role"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string"},"siteIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]}},"required":["id","locationIds","orgId","role","siteIds"],"additionalProperties":false}},"required":["requestId","statusCode","success","member"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope","role_escalation"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope, role_escalation"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","member_not_found","role_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, member_not_found, role_not_found, site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["member_last_owner"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"member_last_owner"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Change a member's role to one the caller covers, and their scope (sites or stores) to one inside the caller's; the last owner can't be demoted","tags":["member"]}},"/v1/orders":{"post":{"operationId":"order::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"externalOrderId":{"type":"string","minLength":1,"maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The line total after discounts, in minor units."},"productExternalId":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sessionId":{"description":"The Lumieo session id the host stored on this cart line at add-to-cart.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variantExternalId":{"type":"string","minLength":1,"maxLength":200}},"required":["amountMinor","productExternalId","quantity","variantExternalId"]}},"orderedAt":{"description":"When the order was placed; defaults to now.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"totalMinor":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The whole order total, in minor units."}},"type":"object","required":["currency","externalOrderId","lines","siteId","totalMinor"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"order":{"type":"object","properties":{"createdAt":{"type":"string"},"currency":{"type":"string"},"directMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"externalOrderId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lines":{"type":"array","items":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direct":{"type":"boolean"},"productExternalId":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sessionId":{"type":["string","null"]},"variantExternalId":{"type":"string"}},"required":["amountMinor","direct","productExternalId","quantity","sessionId","variantExternalId"],"additionalProperties":false}},"mode":{"type":"string","enum":["live","test"]},"orderedAt":{"type":"string"},"refundedDirectMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sessionIds":{"type":"array","items":{"type":"string"}},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"videoMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["createdAt","currency","directMinor","externalOrderId","id","lines","mode","orderedAt","refundedDirectMinor","refundedMinor","sessionIds","siteId","totalMinor","videoMinor"],"additionalProperties":false}},"required":["requestId","statusCode","success","order"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Report a placed order (idempotent per site and externalOrderId) and attribute it to Lumieo sessions","tags":["order"]}},"/v1/orders/{externalOrderId}/refunds":{"post":{"operationId":"order::refund","parameters":[{"in":"path","name":"externalOrderId","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"amountMinor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The refunded amount, in minor units."},"externalRefundId":{"type":"string","minLength":1,"maxLength":200,"description":"The host's refund id: a retried refund applies once."},"lines":{"description":"The refunded lines; their amounts on directly attributed lines come off direct revenue.","maxItems":500,"type":"array","items":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"variantExternalId":{"type":"string","minLength":1,"maxLength":200}},"required":["amountMinor","variantExternalId"]}},"refundedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"type":"object","required":["amountMinor","externalRefundId","siteId"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"order":{"type":"object","properties":{"createdAt":{"type":"string"},"currency":{"type":"string"},"directMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"externalOrderId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lines":{"type":"array","items":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"direct":{"type":"boolean"},"productExternalId":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sessionId":{"type":["string","null"]},"variantExternalId":{"type":"string"}},"required":["amountMinor","direct","productExternalId","quantity","sessionId","variantExternalId"],"additionalProperties":false}},"mode":{"type":"string","enum":["live","test"]},"orderedAt":{"type":"string"},"refundedDirectMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sessionIds":{"type":"array","items":{"type":"string"}},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"videoMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["createdAt","currency","directMinor","externalOrderId","id","lines","mode","orderedAt","refundedDirectMinor","refundedMinor","sessionIds","siteId","totalMinor","videoMinor"],"additionalProperties":false}},"required":["requestId","statusCode","success","order"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["order_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"order_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Refund part of a reported order (idempotent per externalRefundId); reduces attributed revenue","tags":["order"]}},"/v1/organization":{"delete":{"operationId":"org::delete","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"organization":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","organization"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["organization_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"organization_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete the caller's active organization (owner): keys stop working, sessions in it end","tags":["org"]},"get":{"operationId":"org::read","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"organization":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"logo":{"type":["string","null"]},"name":{"type":"string"},"slug":{"type":"string"}},"required":["createdAt","id","logo","name","slug"],"additionalProperties":false}},"required":["requestId","statusCode","success","organization"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["organization_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"organization_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"The caller's active organization","tags":["org"]},"patch":{"operationId":"org::update","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"type":"object","required":["name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"organization":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"logo":{"type":["string","null"]},"name":{"type":"string"},"slug":{"type":"string"}},"required":["createdAt","id","logo","name","slug"],"additionalProperties":false}},"required":["requestId","statusCode","success","organization"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["organization_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"organization_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename the caller's active organization (owner)","tags":["org"]}},"/v1/organization/assignment":{"put":{"operationId":"organization::assign","requestBody":{"content":{"application/json":{"schema":{"properties":{"fallbackPlaylistId":{"default":null,"description":"Plays when the main playlist is empty or none is set; cached on the screen.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["fallbackPlaylistId","layoutId","playlistId","target","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"What the target now shows; null once cleared."}},"required":["requestId","statusCode","success","assignment"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","playlist_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, playlist_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Set the organization default: what every screen shows when nothing more specific reaches it, instead of the idle screen. All null: back to the idle screen","tags":["organization"]}},"/v1/playlists":{"get":{"operationId":"playlist::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"playlists":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"app":{"anyOf":[{"oneOf":[{"type":"object","properties":{"name":{"type":"string","const":"youtube"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"advanceSeconds":{"default":10,"type":"integer","minimum":2,"maximum":300},"name":{"type":"string","const":"google_slides"},"url":{"type":"string","maxLength":2048}},"required":["advanceSeconds","name","url"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","const":"canva"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"maxItems":{"default":5,"type":"integer","minimum":1,"maximum":8},"name":{"type":"string","const":"rss"},"url":{"type":"string","format":"uri"}},"required":["maxItems","name","url"],"additionalProperties":false},{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","const":"weather"},"place":{"type":"string","minLength":1,"maxLength":80},"units":{"default":"celsius","type":"string","enum":["celsius","fahrenheit"]}},"required":["latitude","longitude","name","place","units"],"additionalProperties":false}]},{"type":"null"}]},"collection":{"type":["string","null"]},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"headline":{"type":["string","null"]},"hideSoldOut":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kind":{"type":"string","enum":["video","image","product","price_list","promo","app"]},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"productIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]},"subline":{"type":["string","null"]},"videoId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["app","collection","durationMs","headline","hideSoldOut","id","imageId","kind","limit","productIds","qr","style","subline","videoId"],"additionalProperties":false}},"name":{"type":"string"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["createdAt","id","items","name","scope","screenCount","updatedAt","videoIds"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","playlists"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List playlists with their slides in order","tags":["playlist"]},"post":{"operationId":"playlist::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"items":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"video"},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","videoId"]},{"type":"object","properties":{"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"image"}},"required":["imageId","kind"]},{"type":"object","properties":{"collection":{"default":null,"description":"Show this collection's products instead of `productIds`, following the collection as the shop changes it.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"headline":{"default":null,"description":"Price-list title or promo headline.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"hideSoldOut":{"default":false,"description":"Collection slides: leave out sold-out products.","type":"boolean"},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"product"},"limit":{"default":null,"description":"Collection slides: at most this many products; null shows as many as the slide fits.","anyOf":[{"type":"integer","minimum":1,"maximum":1},{"type":"null"}]},"productIds":{"default":[],"maxItems":1,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"default":false,"description":"Show a QR code that opens the hosted shoppable page for the slide's products.","type":"boolean"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]},"subline":{"default":null,"description":"A promo's second line.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"collection":{"default":null,"description":"Show this collection's products instead of `productIds`, following the collection as the shop changes it.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"headline":{"default":null,"description":"Price-list title or promo headline.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"hideSoldOut":{"default":false,"description":"Collection slides: leave out sold-out products.","type":"boolean"},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"price_list"},"limit":{"default":null,"description":"Collection slides: at most this many products; null shows as many as the slide fits.","anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"productIds":{"default":[],"maxItems":12,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"default":false,"description":"Show a QR code that opens the hosted shoppable page for the slide's products.","type":"boolean"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]},"subline":{"default":null,"description":"A promo's second line.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"collection":{"default":null,"description":"Show this collection's products instead of `productIds`, following the collection as the shop changes it.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"headline":{"default":null,"description":"Price-list title or promo headline.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"hideSoldOut":{"default":false,"description":"Collection slides: leave out sold-out products.","type":"boolean"},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"promo"},"limit":{"default":null,"description":"Collection slides: at most this many products; null shows as many as the slide fits.","anyOf":[{"type":"integer","minimum":1,"maximum":4},{"type":"null"}]},"productIds":{"default":[],"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"default":false,"description":"Show a QR code that opens the hosted shoppable page for the slide's products.","type":"boolean"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]},"subline":{"default":null,"description":"A promo's second line.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"app":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","const":"youtube"},"url":{"type":"string","maxLength":2048}},"required":["name","url"]},{"type":"object","properties":{"advanceSeconds":{"default":10,"type":"integer","minimum":2,"maximum":300},"name":{"type":"string","const":"google_slides"},"url":{"type":"string","maxLength":2048}},"required":["name","url"]},{"type":"object","properties":{"name":{"type":"string","const":"canva"},"url":{"type":"string","maxLength":2048}},"required":["name","url"]},{"type":"object","properties":{"maxItems":{"default":5,"type":"integer","minimum":1,"maximum":8},"name":{"type":"string","const":"rss"},"url":{"type":"string","format":"uri"}},"required":["name","url"]},{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","const":"weather"},"place":{"type":"string","minLength":1,"maxLength":80},"units":{"default":"celsius","type":"string","enum":["celsius","fahrenheit"]}},"required":["latitude","longitude","name","place"]}],"description":"The app and its settings: a YouTube, Google Slides or Canva link, an RSS feed, or a place for the weather."},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"app"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]}},"required":["app","kind"]}]},"description":"Slides in play order: videos, images, catalog slides and apps."},"name":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"],"description":"Who 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."},"videoIds":{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Video ids in play order (no durations)."}},"type":"object","required":["name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"playlist":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"app":{"anyOf":[{"oneOf":[{"type":"object","properties":{"name":{"type":"string","const":"youtube"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"advanceSeconds":{"default":10,"type":"integer","minimum":2,"maximum":300},"name":{"type":"string","const":"google_slides"},"url":{"type":"string","maxLength":2048}},"required":["advanceSeconds","name","url"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","const":"canva"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"maxItems":{"default":5,"type":"integer","minimum":1,"maximum":8},"name":{"type":"string","const":"rss"},"url":{"type":"string","format":"uri"}},"required":["maxItems","name","url"],"additionalProperties":false},{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","const":"weather"},"place":{"type":"string","minLength":1,"maxLength":80},"units":{"default":"celsius","type":"string","enum":["celsius","fahrenheit"]}},"required":["latitude","longitude","name","place","units"],"additionalProperties":false}]},{"type":"null"}]},"collection":{"type":["string","null"]},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"headline":{"type":["string","null"]},"hideSoldOut":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kind":{"type":"string","enum":["video","image","product","price_list","promo","app"]},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"productIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]},"subline":{"type":["string","null"]},"videoId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["app","collection","durationMs","headline","hideSoldOut","id","imageId","kind","limit","productIds","qr","style","subline","videoId"],"additionalProperties":false}},"name":{"type":"string"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["createdAt","id","items","name","scope","screenCount","updatedAt","videoIds"],"additionalProperties":false}},"required":["requestId","statusCode","success","playlist"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found","image_not_found","location_not_found","site_not_found","slide_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found, image_not_found, location_not_found, site_not_found, slide_not_found, video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a playlist, optionally with slides in order","tags":["playlist"]}},"/v1/playlists/{id}":{"delete":{"operationId":"playlist::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"playlist":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","playlist"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["playlist_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"playlist_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a playlist (its videos and images stay)","tags":["playlist"]},"get":{"operationId":"playlist::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"playlist":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"app":{"anyOf":[{"oneOf":[{"type":"object","properties":{"name":{"type":"string","const":"youtube"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"advanceSeconds":{"default":10,"type":"integer","minimum":2,"maximum":300},"name":{"type":"string","const":"google_slides"},"url":{"type":"string","maxLength":2048}},"required":["advanceSeconds","name","url"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","const":"canva"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"maxItems":{"default":5,"type":"integer","minimum":1,"maximum":8},"name":{"type":"string","const":"rss"},"url":{"type":"string","format":"uri"}},"required":["maxItems","name","url"],"additionalProperties":false},{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","const":"weather"},"place":{"type":"string","minLength":1,"maxLength":80},"units":{"default":"celsius","type":"string","enum":["celsius","fahrenheit"]}},"required":["latitude","longitude","name","place","units"],"additionalProperties":false}]},{"type":"null"}]},"collection":{"type":["string","null"]},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"headline":{"type":["string","null"]},"hideSoldOut":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kind":{"type":"string","enum":["video","image","product","price_list","promo","app"]},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"productIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]},"subline":{"type":["string","null"]},"videoId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["app","collection","durationMs","headline","hideSoldOut","id","imageId","kind","limit","productIds","qr","style","subline","videoId"],"additionalProperties":false}},"name":{"type":"string"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["createdAt","id","items","name","scope","screenCount","updatedAt","videoIds"],"additionalProperties":false}},"required":["requestId","statusCode","success","playlist"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["playlist_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"playlist_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One playlist, with its slides and the screens showing it","tags":["playlist"]},"patch":{"operationId":"playlist::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"items":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"video"},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","videoId"]},{"type":"object","properties":{"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"image"}},"required":["imageId","kind"]},{"type":"object","properties":{"collection":{"default":null,"description":"Show this collection's products instead of `productIds`, following the collection as the shop changes it.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"headline":{"default":null,"description":"Price-list title or promo headline.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"hideSoldOut":{"default":false,"description":"Collection slides: leave out sold-out products.","type":"boolean"},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"product"},"limit":{"default":null,"description":"Collection slides: at most this many products; null shows as many as the slide fits.","anyOf":[{"type":"integer","minimum":1,"maximum":1},{"type":"null"}]},"productIds":{"default":[],"maxItems":1,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"default":false,"description":"Show a QR code that opens the hosted shoppable page for the slide's products.","type":"boolean"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]},"subline":{"default":null,"description":"A promo's second line.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"collection":{"default":null,"description":"Show this collection's products instead of `productIds`, following the collection as the shop changes it.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"headline":{"default":null,"description":"Price-list title or promo headline.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"hideSoldOut":{"default":false,"description":"Collection slides: leave out sold-out products.","type":"boolean"},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"price_list"},"limit":{"default":null,"description":"Collection slides: at most this many products; null shows as many as the slide fits.","anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"productIds":{"default":[],"maxItems":12,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"default":false,"description":"Show a QR code that opens the hosted shoppable page for the slide's products.","type":"boolean"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]},"subline":{"default":null,"description":"A promo's second line.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"collection":{"default":null,"description":"Show this collection's products instead of `productIds`, following the collection as the shop changes it.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"headline":{"default":null,"description":"Price-list title or promo headline.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"hideSoldOut":{"default":false,"description":"Collection slides: leave out sold-out products.","type":"boolean"},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"promo"},"limit":{"default":null,"description":"Collection slides: at most this many products; null shows as many as the slide fits.","anyOf":[{"type":"integer","minimum":1,"maximum":4},{"type":"null"}]},"productIds":{"default":[],"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"default":false,"description":"Show a QR code that opens the hosted shoppable page for the slide's products.","type":"boolean"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]},"subline":{"default":null,"description":"A promo's second line.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["kind"]},{"type":"object","properties":{"app":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","const":"youtube"},"url":{"type":"string","maxLength":2048}},"required":["name","url"]},{"type":"object","properties":{"advanceSeconds":{"default":10,"type":"integer","minimum":2,"maximum":300},"name":{"type":"string","const":"google_slides"},"url":{"type":"string","maxLength":2048}},"required":["name","url"]},{"type":"object","properties":{"name":{"type":"string","const":"canva"},"url":{"type":"string","maxLength":2048}},"required":["name","url"]},{"type":"object","properties":{"maxItems":{"default":5,"type":"integer","minimum":1,"maximum":8},"name":{"type":"string","const":"rss"},"url":{"type":"string","format":"uri"}},"required":["name","url"]},{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","const":"weather"},"place":{"type":"string","minLength":1,"maxLength":80},"units":{"default":"celsius","type":"string","enum":["celsius","fahrenheit"]}},"required":["latitude","longitude","name","place"]}],"description":"The app and its settings: a YouTube, Google Slides or Canva link, an RSS feed, or a place for the weather."},"durationMs":{"default":null,"description":"Slide time in ms; null uses the default.","anyOf":[{"type":"integer","minimum":1000,"maximum":86400000},{"type":"null"}]},"id":{"description":"The id of one of this playlist's slides, to keep it: its QR code and its play reports stay. The slide must keep its kind, and its video or image. Left out, the slide is new.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"app"},"style":{"default":null,"description":"How screens draw the slide (docs/specs/screens.md §17): a style of its kind (`GET` the contract's SCREEN_STYLES) and its options. Null is the default style.","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]},{"type":"null"}]}},"required":["app","kind"]}]},"description":"Slides in play order: videos, images, catalog slides and apps."},"name":{"type":"string","minLength":1,"maxLength":120},"scope":{"description":"Move it to everyone, a site or a store. A scoped member can move it only within their scope.","type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"]},"videoIds":{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Video ids in play order (no durations)."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"playlist":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"app":{"anyOf":[{"oneOf":[{"type":"object","properties":{"name":{"type":"string","const":"youtube"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"advanceSeconds":{"default":10,"type":"integer","minimum":2,"maximum":300},"name":{"type":"string","const":"google_slides"},"url":{"type":"string","maxLength":2048}},"required":["advanceSeconds","name","url"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","const":"canva"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"maxItems":{"default":5,"type":"integer","minimum":1,"maximum":8},"name":{"type":"string","const":"rss"},"url":{"type":"string","format":"uri"}},"required":["maxItems","name","url"],"additionalProperties":false},{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","const":"weather"},"place":{"type":"string","minLength":1,"maxLength":80},"units":{"default":"celsius","type":"string","enum":["celsius","fahrenheit"]}},"required":["latitude","longitude","name","place","units"],"additionalProperties":false}]},{"type":"null"}]},"collection":{"type":["string","null"]},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"headline":{"type":["string","null"]},"hideSoldOut":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kind":{"type":"string","enum":["video","image","product","price_list","promo","app"]},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"productIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]},"subline":{"type":["string","null"]},"videoId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["app","collection","durationMs","headline","hideSoldOut","id","imageId","kind","limit","productIds","qr","style","subline","videoId"],"additionalProperties":false}},"name":{"type":"string"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["createdAt","id","items","name","scope","screenCount","updatedAt","videoIds"],"additionalProperties":false}},"required":["requestId","statusCode","success","playlist"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["experience_not_found","image_not_found","location_not_found","playlist_not_found","site_not_found","slide_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"experience_not_found, image_not_found, location_not_found, playlist_not_found, site_not_found, slide_not_found, video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename a playlist or set its slides (the list replaces the order); screens showing it update at once","tags":["playlist"]}},"/v1/playlists/{id}/duplicate":{"post":{"operationId":"playlist::duplicate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"The copy's name; left out, the original's.","type":"string","minLength":1,"maxLength":120},"scope":{"type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"],"description":"Who 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."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"playlist":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"app":{"anyOf":[{"oneOf":[{"type":"object","properties":{"name":{"type":"string","const":"youtube"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"advanceSeconds":{"default":10,"type":"integer","minimum":2,"maximum":300},"name":{"type":"string","const":"google_slides"},"url":{"type":"string","maxLength":2048}},"required":["advanceSeconds","name","url"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","const":"canva"},"url":{"type":"string","maxLength":2048}},"required":["name","url"],"additionalProperties":false},{"type":"object","properties":{"maxItems":{"default":5,"type":"integer","minimum":1,"maximum":8},"name":{"type":"string","const":"rss"},"url":{"type":"string","format":"uri"}},"required":["maxItems","name","url"],"additionalProperties":false},{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","const":"weather"},"place":{"type":"string","minLength":1,"maxLength":80},"units":{"default":"celsius","type":"string","enum":["celsius","fahrenheit"]}},"required":["latitude","longitude","name","place","units"],"additionalProperties":false}]},{"type":"null"}]},"collection":{"type":["string","null"]},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"headline":{"type":["string","null"]},"hideSoldOut":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kind":{"type":"string","enum":["video","image","product","price_list","promo","app"]},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"productIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"qr":{"type":"boolean"},"style":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"options":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","options"],"additionalProperties":false},{"type":"null"}]},"subline":{"type":["string","null"]},"videoId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["app","collection","durationMs","headline","hideSoldOut","id","imageId","kind","limit","productIds","qr","style","subline","videoId"],"additionalProperties":false}},"name":{"type":"string"},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["createdAt","id","items","name","scope","screenCount","updatedAt","videoIds"],"additionalProperties":false}},"required":["requestId","statusCode","success","playlist"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","playlist_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, playlist_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Copy a playlist you can see, slides and all, into everyone, a site or a store (Duplicate for site); the copy is yours to change","tags":["playlist"]}},"/v1/products":{"get":{"operationId":"product::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"query","name":"collection","required":false,"schema":{"description":"Only products in this collection.","type":"string","minLength":1,"maxLength":100}},{"in":"query","name":"connectionId","required":false,"schema":{"description":"Only products of this catalog connection.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"ids","required":false,"schema":{"description":"Only these products: up to 100 comma-separated ids.","type":"string","pattern":"^[0-9a-f-]{36}(,[0-9a-f-]{36})*$"}},{"in":"query","name":"notSold","required":false,"schema":{"description":"true: only products with no active listing.","type":"string","enum":["true","false"]}},{"in":"query","name":"q","required":false,"schema":{"description":"Search: a listing title or the external id contains this, ignoring case.","type":"string","minLength":1,"maxLength":100}},{"in":"query","name":"unavailable","required":false,"schema":{"description":"true: only products out of stock on a site that sells them.","type":"string","enum":["true","false"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"products":{"type":"array","items":{"type":"object","properties":{"collections":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"image":{"type":["string","null"]},"listings":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"originalPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removedAt":{"type":["string","null"]},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","removed"]},"title":{"type":"string"},"url":{"type":"string"}},"required":["available","originalPriceMinor","priceMinor","removedAt","siteId","status","title","url"],"additionalProperties":false}},"title":{"type":["string","null"]}},"required":["collections","connectionId","createdAt","externalId","id","image","listings","title"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","products"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the organization's products with their listing on each site (removed ones included)","tags":["product"]},"post":{"operationId":"product::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"collections":{"description":"Collections it is in, by name (e.g. \"New in\"); catalog slides can follow a collection.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"images":{"default":[],"maxItems":8,"type":"array","items":{"type":"string","format":"uri"}},"options":{"default":[],"maxItems":3,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"values":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["name","values"]},"description":"Options such as Size. Every combination of values is one variant; none gives one default variant."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"product":{"type":"object","properties":{"builtIn":{"type":"boolean"},"collections":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"images":{"type":"array","items":{"type":"string"}},"listings":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"description":{"type":["string","null"]},"originalPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removedAt":{"type":["string","null"]},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","removed"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["available","priceMinor","stock","variantId"],"additionalProperties":false}}},"required":["available","description","originalPriceMinor","priceMinor","removedAt","siteId","status","title","updatedAt","url","variants"],"additionalProperties":false}},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["name","values"],"additionalProperties":false}},"updatedAt":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"sku":{"type":["string","null"]}},"required":["externalId","id","options","sku"],"additionalProperties":false}}},"required":["builtIn","collections","connectionId","createdAt","externalId","id","images","listings","options","updatedAt","variants"],"additionalProperties":false}},"required":["requestId","statusCode","success","product"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found","product_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found, product_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_read_only"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_read_only"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a product in the built-in catalog; without options it gets one default variant","tags":["product"]}},"/v1/products/collections":{"post":{"operationId":"product::collections","requestBody":{"content":{"application/json":{"schema":{"properties":{"add":{"description":"Collections it is in, by name (e.g. \"New in\"); catalog slides can follow a collection.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"ids":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"remove":{"description":"Collections it is in, by name (e.g. \"New in\"); catalog slides can follow a collection.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"type":"object","required":["ids"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"productCollections":{"type":"object","properties":{"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["skipped","updated"],"additionalProperties":false}},"required":["requestId","statusCode","success","productCollections"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Add or remove collections on up to 100 built-in products at once; synced products are skipped","tags":["product"]}},"/v1/products/import":{"post":{"operationId":"product::import","requestBody":{"content":{"application/json":{"schema":{"properties":{"csv":{"type":"string","minLength":1,"maxLength":10000000,"description":"The file's text: CSV or TSV with a header row (Google Shopping columns, or friendly and Nordic names such as Namn, Pris, Storlek), or a Google Shopping XML feed."},"dryRun":{"default":true,"description":"true previews what the import would do and writes nothing; false imports.","type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The market whose prices the file holds; it must use the built-in catalog."}},"type":"object","required":["csv","siteId"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"productImport":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"imported":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}},"sample":{"type":"array","items":{"type":"object","properties":{"image":{"type":["string","null"]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["image","priceMinor","title"],"additionalProperties":false}},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created","imported","reasons","sample","skipped","updated"],"additionalProperties":false}},"required":["requestId","statusCode","success","productImport"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found, site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_read_only"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_read_only"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Import products from a CSV into the built-in catalog for one market: preview first (dryRun), then import. Rows with an existing id update that product","tags":["product"]}},"/v1/products/{id}":{"delete":{"operationId":"product::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"product":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","product"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_in_use","product_read_only"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_in_use, product_read_only"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a built-in product with its listings; refused while videos are tagged with it","tags":["product"]},"get":{"operationId":"product::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"product":{"type":"object","properties":{"builtIn":{"type":"boolean"},"collections":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"images":{"type":"array","items":{"type":"string"}},"listings":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"description":{"type":["string","null"]},"originalPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removedAt":{"type":["string","null"]},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","removed"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["available","priceMinor","stock","variantId"],"additionalProperties":false}}},"required":["available","description","originalPriceMinor","priceMinor","removedAt","siteId","status","title","updatedAt","url","variants"],"additionalProperties":false}},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["name","values"],"additionalProperties":false}},"updatedAt":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"sku":{"type":["string","null"]}},"required":["externalId","id","options","sku"],"additionalProperties":false}}},"required":["builtIn","collections","connectionId","createdAt","externalId","id","images","listings","options","updatedAt","variants"],"additionalProperties":false}},"required":["requestId","statusCode","success","product"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"A product with its variants and its listing on each site","tags":["product"]},"patch":{"operationId":"product::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"collections":{"description":"Collections it is in, by name (e.g. \"New in\"); catalog slides can follow a collection.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"images":{"maxItems":8,"type":"array","items":{"type":"string","format":"uri"}},"options":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"values":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["name","values"]},"description":"Options such as Size. Every combination of values is one variant; none gives one default variant."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"product":{"type":"object","properties":{"builtIn":{"type":"boolean"},"collections":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"images":{"type":"array","items":{"type":"string"}},"listings":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"description":{"type":["string","null"]},"originalPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removedAt":{"type":["string","null"]},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","removed"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["available","priceMinor","stock","variantId"],"additionalProperties":false}}},"required":["available","description","originalPriceMinor","priceMinor","removedAt","siteId","status","title","updatedAt","url","variants"],"additionalProperties":false}},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["name","values"],"additionalProperties":false}},"updatedAt":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"sku":{"type":["string","null"]}},"required":["externalId","id","options","sku"],"additionalProperties":false}}},"required":["builtIn","collections","connectionId","createdAt","externalId","id","images","listings","options","updatedAt","variants"],"additionalProperties":false}},"required":["requestId","statusCode","success","product"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_read_only"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_read_only"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Edit a built-in product's collections, images or options; variants follow the options","tags":["product"]}},"/v1/products/{id}/listings/{siteId}":{"delete":{"operationId":"listing::remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"path","name":"siteId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"product":{"type":"object","properties":{"builtIn":{"type":"boolean"},"collections":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"images":{"type":"array","items":{"type":"string"}},"listings":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"description":{"type":["string","null"]},"originalPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removedAt":{"type":["string","null"]},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","removed"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["available","priceMinor","stock","variantId"],"additionalProperties":false}}},"required":["available","description","originalPriceMinor","priceMinor","removedAt","siteId","status","title","updatedAt","url","variants"],"additionalProperties":false}},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["name","values"],"additionalProperties":false}},"updatedAt":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"sku":{"type":["string","null"]}},"required":["externalId","id","options","sku"],"additionalProperties":false}}},"required":["builtIn","collections","connectionId","createdAt","externalId","id","images","listings","options","updatedAt","variants"],"additionalProperties":false}},"required":["requestId","statusCode","success","product"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_read_only"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_read_only"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Stop selling a built-in product on a site; it shows as unavailable at once and leaves at the next publish","tags":["listing"]},"put":{"operationId":"listing::put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"path","name":"siteId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"available":{"default":true,"type":"boolean"},"description":{"default":null,"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"originalPriceMinor":{"default":null,"description":"The pre-sale price, shown struck through.","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Integer amount in the site's currency: 29900 is 299.00."},"title":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","format":"uri","description":"The product page on the site."},"variants":{"description":"Per-variant availability, price and stock. A variant left out takes the listing's availability and price.","maxItems":100,"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"priceMinor":{"default":null,"description":"Null: the listing price.","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"stock":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["available","variantId"]}}},"type":"object","required":["priceMinor","title","url"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"product":{"type":"object","properties":{"builtIn":{"type":"boolean"},"collections":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"images":{"type":"array","items":{"type":"string"}},"listings":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"description":{"type":["string","null"]},"originalPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removedAt":{"type":["string","null"]},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","removed"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"url":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"available":{"type":"boolean"},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["available","priceMinor","stock","variantId"],"additionalProperties":false}}},"required":["available","description","originalPriceMinor","priceMinor","removedAt","siteId","status","title","updatedAt","url","variants"],"additionalProperties":false}},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["name","values"],"additionalProperties":false}},"updatedAt":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"sku":{"type":["string","null"]}},"required":["externalId","id","options","sku"],"additionalProperties":false}}},"required":["builtIn","collections","connectionId","createdAt","externalId","id","images","listings","options","updatedAt","variants"],"additionalProperties":false}},"required":["requestId","statusCode","success","product"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found, site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_read_only"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_read_only"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Sell a built-in product on a site, or replace its title, link, price and per-variant stock there","tags":["listing"]}},"/v1/roles":{"get":{"operationId":"role::list","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"roles":{"type":"array","items":{"type":"object","properties":{"builtIn":{"type":"boolean"},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permissions":{"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}},"role":{"type":"string"}},"required":["builtIn","members","permissions","role"],"additionalProperties":false}}},"required":["requestId","statusCode","success","roles"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the organization's roles — built-in and custom — with their permissions","tags":["role"]},"post":{"operationId":"role::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"permissions":{"minItems":1,"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}},"role":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,62}$"}},"type":"object","required":["permissions","role"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"role":{"type":"object","properties":{"builtIn":{"type":"boolean"},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permissions":{"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}},"role":{"type":"string"}},"required":["builtIn","members","permissions","role"],"additionalProperties":false}},"required":["requestId","statusCode","success","role"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope","role_escalation"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope, role_escalation"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["role_conflict","role_reserved"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"role_conflict, role_reserved"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Define a custom role — its permissions must be a subset of the caller's own","tags":["role"]}},"/v1/roles/{role}":{"delete":{"operationId":"role::delete","parameters":[{"in":"path","name":"role","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,62}$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"role":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","role"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["role_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"role_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["role_in_use","role_reserved"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"role_in_use, role_reserved"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a custom role that no member or pending invite names","tags":["role"]},"put":{"operationId":"role::update","parameters":[{"in":"path","name":"role","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,62}$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"permissions":{"minItems":1,"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}}},"type":"object","required":["permissions"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"role":{"type":"object","properties":{"builtIn":{"type":"boolean"},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permissions":{"type":"array","items":{"type":"string","enum":["auth::signup","auth::login","auth::logout","apikey::create","apikey::list","apikey::revoke","analytics::read","org::read","org::update","org::delete","member::list","member::update","member::remove","invite::create","invite::list","invite::cancel","product::list","product::write","site::list","site::create","site::update","site::delete","site::rotate","connection::list","connection::create","connection::update","connection::delete","video::list","video::write","tag::list","tag::write","playlist::list","playlist::write","theme::list","theme::write","experience::list","experience::write","location::list","location::write","screen::list","screen::create","screen::update","screen::delete","schedule::list","schedule::write","layout::list","layout::write","order::write","role::create","role::list","role::update","role::delete"]}},"role":{"type":"string"}},"required":["builtIn","members","permissions","role"],"additionalProperties":false}},"required":["requestId","statusCode","success","role"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope","role_escalation"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope, role_escalation"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["role_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"role_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["role_reserved"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"role_reserved"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Replace a custom role's permissions; members get them on their next request","tags":["role"]}},"/v1/schedules":{"get":{"operationId":"schedule::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"query","name":"groupId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"level","required":false,"schema":{"description":"Only schedules on this level of target.","type":"string","enum":["screen","group","location","site","org"]}},{"in":"query","name":"locationId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"screenId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"siteId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"schedules":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"entries":{"type":"array","items":{"type":"object","properties":{"endDate":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startDate":{"type":["string","null"]},"startTime":{"type":["string","null"]},"weekdays":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["endDate","endTime","id","layoutId","playlistId","priority","startDate","startTime","weekdays"],"additionalProperties":false}},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"screenId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["createdAt","entries","groupId","id","name","screenId","target","updatedAt"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","schedules"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List schedules, newest first; filter by level, site, store, group or screen","tags":["schedule"]},"post":{"operationId":"schedule::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"entries":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"endDate":{"default":null,"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"YYYY-MM-DD, inclusive."},{"type":"null"}]},"endTime":{"default":null,"description":"At or before startTime, the slot runs past midnight into the next day.","anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"HH:MM, local to the screen's location."},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"priority":{"default":0,"description":"Higher wins when entries overlap.","type":"integer","minimum":0,"maximum":100},"startDate":{"default":null,"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"YYYY-MM-DD, inclusive."},{"type":"null"}]},"startTime":{"default":null,"description":"With endTime null too, the entry runs all day.","anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"HH:MM, local to the screen's location."},{"type":"null"}]},"weekdays":{"description":"ISO weekdays: 1 = Monday … 7 = Sunday.","minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["weekdays"]}},"name":{"type":"string","minLength":1,"maxLength":120},"groupId":{"description":"Same as target { level: group }; kept for older clients.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"screenId":{"description":"Same as target { level: screen }; kept for older clients.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"default":null,"description":"The site, store (location), group or screen; null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["level"],"description":"Who it's for, most specific wins: a screen, a group, a store (location), a site or everyone (org)."}},"type":"object","required":["name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"schedule":{"type":"object","properties":{"createdAt":{"type":"string"},"entries":{"type":"array","items":{"type":"object","properties":{"endDate":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startDate":{"type":["string","null"]},"startTime":{"type":["string","null"]},"weekdays":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["endDate","endTime","id","layoutId","playlistId","priority","startDate","startTime","weekdays"],"additionalProperties":false}},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"screenId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["createdAt","entries","groupId","id","name","screenId","target","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","schedule"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","location_not_found","playlist_not_found","screen_group_not_found","screen_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, location_not_found, playlist_not_found, screen_group_not_found, screen_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a schedule for everyone, a site, a store, a group or a screen; its screens switch on time from then on","tags":["schedule"]}},"/v1/schedules/{id}":{"delete":{"operationId":"schedule::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"schedule":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","schedule"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["schedule_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"schedule_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a schedule; its screens go back to their default content","tags":["schedule"]},"get":{"operationId":"schedule::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"schedule":{"type":"object","properties":{"createdAt":{"type":"string"},"entries":{"type":"array","items":{"type":"object","properties":{"endDate":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startDate":{"type":["string","null"]},"startTime":{"type":["string","null"]},"weekdays":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["endDate","endTime","id","layoutId","playlistId","priority","startDate","startTime","weekdays"],"additionalProperties":false}},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"screenId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["createdAt","entries","groupId","id","name","screenId","target","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","schedule"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["schedule_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"schedule_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One schedule with its entries","tags":["schedule"]},"patch":{"operationId":"schedule::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"entries":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"endDate":{"default":null,"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"YYYY-MM-DD, inclusive."},{"type":"null"}]},"endTime":{"default":null,"description":"At or before startTime, the slot runs past midnight into the next day.","anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"HH:MM, local to the screen's location."},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"priority":{"default":0,"description":"Higher wins when entries overlap.","type":"integer","minimum":0,"maximum":100},"startDate":{"default":null,"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"YYYY-MM-DD, inclusive."},{"type":"null"}]},"startTime":{"default":null,"description":"With endTime null too, the entry runs all day.","anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"HH:MM, local to the screen's location."},{"type":"null"}]},"weekdays":{"description":"ISO weekdays: 1 = Monday … 7 = Sunday.","minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["weekdays"]}},"name":{"type":"string","minLength":1,"maxLength":120},"groupId":{"description":"Same as target { level: group }; kept for older clients.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"screenId":{"description":"Same as target { level: screen }; kept for older clients.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"default":null,"description":"The site, store (location), group or screen; null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["level"],"description":"Who it's for, most specific wins: a screen, a group, a store (location), a site or everyone (org)."}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"schedule":{"type":"object","properties":{"createdAt":{"type":"string"},"entries":{"type":"array","items":{"type":"object","properties":{"endDate":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startDate":{"type":["string","null"]},"startTime":{"type":["string","null"]},"weekdays":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["endDate","endTime","id","layoutId","playlistId","priority","startDate","startTime","weekdays"],"additionalProperties":false}},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"screenId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["createdAt","entries","groupId","id","name","screenId","target","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","schedule"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","location_not_found","playlist_not_found","schedule_not_found","screen_group_not_found","screen_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, location_not_found, playlist_not_found, schedule_not_found, screen_group_not_found, screen_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename a schedule, move it to another target, or replace its entries; screens update at once","tags":["schedule"]}},"/v1/screen-groups":{"get":{"operationId":"screengroup::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_groups":{"type":"array","items":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","screen_groups"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List screen groups, newest first","tags":["screengroup"]},"post":{"operationId":"screengroup::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"locationIds":{"default":[],"description":"Stores: their screens, current and future, are members; the whole list.","maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"screenIds":{"default":[],"description":"Individual screens; the whole list.","maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"default":[],"description":"Markets: the screens of their stores, current and future, are members; the whole list.","maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string","minLength":1,"maxLength":120},"scope":{"type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"],"description":"Who 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."}},"type":"object","required":["name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_group":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen_group"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","screen_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, screen_not_found, site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a screen group, optionally with markets, stores and screens; it goes last in the order","tags":["screengroup"]}},"/v1/screen-groups/order":{"put":{"operationId":"screengroup::reorder","requestBody":{"content":{"application/json":{"schema":{"properties":{"groupIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Groups in their new order, first wins. Groups not listed keep their order after these."}},"type":"object","required":["groupIds"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_groups":{"type":"array","items":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}}},"required":["requestId","statusCode","success","screen_groups"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Reorder groups: when a screen is in several, the first with content wins. Returns every group in the new order","tags":["screengroup"]}},"/v1/screen-groups/{id}":{"delete":{"operationId":"screengroup::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_group":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen_group"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a screen group; its screens stay","tags":["screengroup"]},"get":{"operationId":"screengroup::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_group":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen_group"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One screen group","tags":["screengroup"]},"patch":{"operationId":"screengroup::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"type":"object","required":["name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_group":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen_group"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename a screen group","tags":["screengroup"]}},"/v1/screen-groups/{id}/assignment":{"put":{"operationId":"screengroup::assign","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"fallbackPlaylistId":{"default":null,"description":"Plays when the main playlist is empty or none is set; cached on the screen.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_group":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen_group"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","playlist_not_found","screen_group_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, playlist_not_found, screen_group_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Set what a group's screens show; a screen's own content still wins, and among groups the first in the group order wins","tags":["screengroup"]}},"/v1/screen-groups/{id}/members":{"put":{"operationId":"screengroup::members","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"locationIds":{"default":[],"description":"Stores: their screens, current and future, are members; the whole list.","maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"screenIds":{"default":[],"description":"Individual screens; the whole list.","maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"default":[],"description":"Markets: the screens of their stores, current and future, are members; the whole list.","maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_group":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen_group"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","screen_group_not_found","screen_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, screen_group_not_found, screen_not_found, site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"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","tags":["screengroup"]}},"/v1/screen-groups/{id}/screens":{"put":{"operationId":"screengroup::screens","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"screenIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"type":"object","required":["screenIds"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen_group":{"type":"object","properties":{"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"name":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"siteIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"updatedAt":{"type":"string"}},"required":["assignment","createdAt","id","locationIds","name","position","scope","screenCount","screenIds","siteIds","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen_group"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_not_found","screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_not_found, screen_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Set a group's individual screens (the whole list); its markets and stores stay. Prefer PUT /screen-groups/:id/members","tags":["screengroup"]}},"/v1/screens":{"get":{"operationId":"screen::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"query","name":"groupId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"includeRemoved","required":false,"schema":{"type":"string","enum":["true","false"]}},{"in":"query","name":"locationId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screens":{"type":"array","items":{"type":"object","properties":{"appVersion":{"type":["string","null"]},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"content":{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"level":{"type":"string","enum":["screen","group","location","site","org"]},"name":{"type":["string","null"]}},"required":["id","level","name"],"additionalProperties":false},{"type":"null"}],"description":"The assignment it comes from: its level and target (for `org`, everyone: the organization's id and no name). Null: nothing reaches the screen and it shows the idle screen."}},"required":["fallbackPlaylistId","layoutId","playlistId","groupId","source"],"additionalProperties":false},"createdAt":{"type":"string"},"groupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"groups":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["screen","location","site"]}},"required":["groupId","via"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastHeartbeat":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"lastSeenAt":{"type":["string","null"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manifest":{"type":"object","properties":{"publishedAt":{"type":["string","null"]},"synced":{"type":"boolean"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["publishedAt","synced","version"],"additionalProperties":false},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"pairedAt":{"type":"string"},"resolution":{"anyOf":[{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","width"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["online","offline","needs_plan","removed"]},"updatedAt":{"type":"string"},"userAgent":{"type":["string","null"]}},"required":["appVersion","assignment","content","createdAt","groupIds","groups","id","lastHeartbeat","lastSeenAt","locationId","manifest","name","orientation","pairedAt","resolution","status","updatedAt","userAgent"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","screens"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List screens, newest first, with status (online: a heartbeat in the last 3 minutes)","tags":["screen"]}},"/v1/screens/claim":{"post":{"operationId":"screen::claim","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","minLength":6,"maxLength":8,"description":"The code the screen shows; spaces and dashes are ignored."},"content":{"default":{"fallbackPlaylistId":null,"layoutId":null,"playlistId":null},"type":"object","properties":{"fallbackPlaylistId":{"default":null,"description":"Plays when the main playlist is empty or none is set; cached on the screen.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}}},"groupIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"locationId":{"description":"The store it's in; the organization's first store (of yours, when you're limited to stores) when omitted.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"orientation":{"default":"landscape","type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]}},"type":"object","required":["code","name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen":{"type":"object","properties":{"appVersion":{"type":["string","null"]},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"content":{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"level":{"type":"string","enum":["screen","group","location","site","org"]},"name":{"type":["string","null"]}},"required":["id","level","name"],"additionalProperties":false},{"type":"null"}],"description":"The assignment it comes from: its level and target (for `org`, everyone: the organization's id and no name). Null: nothing reaches the screen and it shows the idle screen."}},"required":["fallbackPlaylistId","layoutId","playlistId","groupId","source"],"additionalProperties":false},"createdAt":{"type":"string"},"groupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"groups":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["screen","location","site"]}},"required":["groupId","via"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastHeartbeat":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"lastSeenAt":{"type":["string","null"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manifest":{"type":"object","properties":{"publishedAt":{"type":["string","null"]},"synced":{"type":"boolean"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["publishedAt","synced","version"],"additionalProperties":false},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"pairedAt":{"type":"string"},"resolution":{"anyOf":[{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","width"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["online","offline","needs_plan","removed"]},"updatedAt":{"type":"string"},"userAgent":{"type":["string","null"]}},"required":["appVersion","assignment","content","createdAt","groupIds","groups","id","lastHeartbeat","lastSeenAt","locationId","manifest","name","orientation","pairedAt","resolution","status","updatedAt","userAgent"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"402":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["plan_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":402,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"plan_limit_reached"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","location_not_found","pairing_code_not_found","playlist_not_found","screen_group_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, location_not_found, pairing_code_not_found, playlist_not_found, screen_group_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["pairing_code_claimed","screen_group_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"pairing_code_claimed, screen_group_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Add a screen by the code it shows; it starts playing within about a minute","tags":["screen"]}},"/v1/screens/{id}":{"delete":{"operationId":"screen::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Remove a screen (owner): its token stops working and it shows a new pairing code","tags":["screen"]},"get":{"operationId":"screen::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen":{"type":"object","properties":{"appVersion":{"type":["string","null"]},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"content":{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"level":{"type":"string","enum":["screen","group","location","site","org"]},"name":{"type":["string","null"]}},"required":["id","level","name"],"additionalProperties":false},{"type":"null"}],"description":"The assignment it comes from: its level and target (for `org`, everyone: the organization's id and no name). Null: nothing reaches the screen and it shows the idle screen."}},"required":["fallbackPlaylistId","layoutId","playlistId","groupId","source"],"additionalProperties":false},"createdAt":{"type":"string"},"groupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"groups":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["screen","location","site"]}},"required":["groupId","via"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastHeartbeat":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"lastSeenAt":{"type":["string","null"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manifest":{"type":"object","properties":{"publishedAt":{"type":["string","null"]},"synced":{"type":"boolean"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["publishedAt","synced","version"],"additionalProperties":false},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"pairedAt":{"type":"string"},"resolution":{"anyOf":[{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","width"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["online","offline","needs_plan","removed"]},"updatedAt":{"type":"string"},"userAgent":{"type":["string","null"]}},"required":["appVersion","assignment","content","createdAt","groupIds","groups","id","lastHeartbeat","lastSeenAt","locationId","manifest","name","orientation","pairedAt","resolution","status","updatedAt","userAgent"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One screen with its last heartbeat","tags":["screen"]},"patch":{"operationId":"screen::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"groupIds":{"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen":{"type":"object","properties":{"appVersion":{"type":["string","null"]},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"content":{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"level":{"type":"string","enum":["screen","group","location","site","org"]},"name":{"type":["string","null"]}},"required":["id","level","name"],"additionalProperties":false},{"type":"null"}],"description":"The assignment it comes from: its level and target (for `org`, everyone: the organization's id and no name). Null: nothing reaches the screen and it shows the idle screen."}},"required":["fallbackPlaylistId","layoutId","playlistId","groupId","source"],"additionalProperties":false},"createdAt":{"type":"string"},"groupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"groups":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["screen","location","site"]}},"required":["groupId","via"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastHeartbeat":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"lastSeenAt":{"type":["string","null"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manifest":{"type":"object","properties":{"publishedAt":{"type":["string","null"]},"synced":{"type":"boolean"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["publishedAt","synced","version"],"additionalProperties":false},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"pairedAt":{"type":"string"},"resolution":{"anyOf":[{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","width"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["online","offline","needs_plan","removed"]},"updatedAt":{"type":"string"},"userAgent":{"type":["string","null"]}},"required":["appVersion","assignment","content","createdAt","groupIds","groups","id","lastHeartbeat","lastSeenAt","locationId","manifest","name","orientation","pairedAt","resolution","status","updatedAt","userAgent"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","screen_group_not_found","screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, screen_group_not_found, screen_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_group_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_group_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename a screen, move it to a store or set its groups","tags":["screen"]}},"/v1/screens/{id}/assignment":{"put":{"operationId":"screen::assign","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"fallbackPlaylistId":{"default":null,"description":"Plays when the main playlist is empty or none is set; cached on the screen.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen":{"type":"object","properties":{"appVersion":{"type":["string","null"]},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"content":{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"level":{"type":"string","enum":["screen","group","location","site","org"]},"name":{"type":["string","null"]}},"required":["id","level","name"],"additionalProperties":false},{"type":"null"}],"description":"The assignment it comes from: its level and target (for `org`, everyone: the organization's id and no name). Null: nothing reaches the screen and it shows the idle screen."}},"required":["fallbackPlaylistId","layoutId","playlistId","groupId","source"],"additionalProperties":false},"createdAt":{"type":"string"},"groupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"groups":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["screen","location","site"]}},"required":["groupId","via"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastHeartbeat":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"lastSeenAt":{"type":["string","null"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manifest":{"type":"object","properties":{"publishedAt":{"type":["string","null"]},"synced":{"type":"boolean"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["publishedAt","synced","version"],"additionalProperties":false},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"pairedAt":{"type":"string"},"resolution":{"anyOf":[{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","width"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["online","offline","needs_plan","removed"]},"updatedAt":{"type":"string"},"userAgent":{"type":["string","null"]}},"required":["appVersion","assignment","content","createdAt","groupIds","groups","id","lastHeartbeat","lastSeenAt","locationId","manifest","name","orientation","pairedAt","resolution","status","updatedAt","userAgent"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","playlist_not_found","screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, playlist_not_found, screen_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Set what one screen shows; it overrides its groups. Both null: follow the groups again","tags":["screen"]}},"/v1/screens/{id}/commands":{"post":{"operationId":"screen::command","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"kind":{"type":"string","enum":["reload-content","restart","clear-cache","snapshot"],"description":"reload-content fetches the manifest now; restart reloads the app; clear-cache drops cached media and downloads it again; snapshot reports what each zone shows."}},"type":"object","required":["kind"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"command":{"type":"object","properties":{"completedAt":{"type":["string","null"]},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"expiresAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"issuedAt":{"type":"string"},"kind":{"type":"string","enum":["reload-content","restart","clear-cache","snapshot"]},"screenId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snapshot":{"anyOf":[{"type":"object","properties":{"at":{"type":"string"},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"manifestVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"state":{"type":"string","enum":["playing","idle","sleeping"]},"zones":{"type":"array","items":{"type":"object","properties":{"box":{"type":"object","properties":{"height":{"type":"number"},"width":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["height","width","x","y"],"additionalProperties":false},"name":{"type":"string"},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"slideId":{"type":["string","null"]},"still":{"type":["string","null"]}},"required":["box","name","playlistId","slideId","still"],"additionalProperties":false}}},"required":["at","layoutId","manifestVersion","orientation","state","zones"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["pending","done","failed","expired"]}},"required":["completedAt","error","expiresAt","id","issuedAt","kind","screenId","snapshot","status"],"additionalProperties":false}},"required":["requestId","statusCode","success","command"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Send a screen a live command: reload content, restart, clear cache or snapshot","tags":["screen"]}},"/v1/screens/{id}/commands/{commandId}":{"get":{"operationId":"screen::command::read","parameters":[{"in":"path","name":"commandId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"command":{"type":"object","properties":{"completedAt":{"type":["string","null"]},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"expiresAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"issuedAt":{"type":"string"},"kind":{"type":"string","enum":["reload-content","restart","clear-cache","snapshot"]},"screenId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snapshot":{"anyOf":[{"type":"object","properties":{"at":{"type":"string"},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"manifestVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"state":{"type":"string","enum":["playing","idle","sleeping"]},"zones":{"type":"array","items":{"type":"object","properties":{"box":{"type":"object","properties":{"height":{"type":"number"},"width":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["height","width","x","y"],"additionalProperties":false},"name":{"type":"string"},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"slideId":{"type":["string","null"]},"still":{"type":["string","null"]}},"required":["box","name","playlistId","slideId","still"],"additionalProperties":false}}},"required":["at","layoutId","manifestVersion","orientation","state","zones"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["pending","done","failed","expired"]}},"required":["completedAt","error","expiresAt","id","issuedAt","kind","screenId","snapshot","status"],"additionalProperties":false}},"required":["requestId","statusCode","success","command"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_command_not_found","screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_command_not_found, screen_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"How a live command went, and a snapshot's report","tags":["screen"]}},"/v1/screens/{id}/refresh":{"post":{"operationId":"screen::refresh","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"screen":{"type":"object","properties":{"appVersion":{"type":["string","null"]},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["fallbackPlaylistId","layoutId","playlistId"],"additionalProperties":false},{"type":"null"}]},"content":{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"groupId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"level":{"type":"string","enum":["screen","group","location","site","org"]},"name":{"type":["string","null"]}},"required":["id","level","name"],"additionalProperties":false},{"type":"null"}],"description":"The assignment it comes from: its level and target (for `org`, everyone: the organization's id and no name). Null: nothing reaches the screen and it shows the idle screen."}},"required":["fallbackPlaylistId","layoutId","playlistId","groupId","source"],"additionalProperties":false},"createdAt":{"type":"string"},"groupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"groups":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["screen","location","site"]}},"required":["groupId","via"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastHeartbeat":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"lastSeenAt":{"type":["string","null"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manifest":{"type":"object","properties":{"publishedAt":{"type":["string","null"]},"synced":{"type":"boolean"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["publishedAt","synced","version"],"additionalProperties":false},"name":{"type":"string"},"orientation":{"type":"string","enum":["landscape","portrait","landscape-flipped","portrait-flipped"]},"pairedAt":{"type":"string"},"resolution":{"anyOf":[{"type":"object","properties":{"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["height","width"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["online","offline","needs_plan","removed"]},"updatedAt":{"type":"string"},"userAgent":{"type":["string","null"]}},"required":["appVersion","assignment","content","createdAt","groupIds","groups","id","lastHeartbeat","lastSeenAt","locationId","manifest","name","orientation","pairedAt","resolution","status","updatedAt","userAgent"],"additionalProperties":false}},"required":["requestId","statusCode","success","screen"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["screen_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"screen_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rebuild a screen's manifest now","tags":["screen"]}},"/v1/sites":{"get":{"operationId":"site::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"sites":{"type":"array","items":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["style","surfaces","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["style","surfaces","behavior","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["style","surfaces","actionId","type"],"additionalProperties":false}]}},{"type":"null"}]},"allowedOrigins":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"currency":{"type":"string"},"defaultThemeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncedAt":{"type":["string","null"]},"locale":{"type":"string"},"market":{"type":["string","null"]},"mode":{"type":"string","enum":["live","demo"]},"name":{"type":"string"},"publishableKeys":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"createdAt":{"type":"string"},"environment":{"type":"string","enum":["live","test"]},"expiresAt":{"type":["string","null"]},"key":{"type":"string"}},"required":["active","createdAt","environment","expiresAt","key"],"additionalProperties":false}},"updatedAt":{"type":"string"}},"required":["actions","allowedOrigins","connectionId","createdAt","currency","defaultThemeId","feedUrl","id","lastSyncError","lastSyncedAt","locale","market","mode","name","publishableKeys","updatedAt"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","sites"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the active organization's sites with their publishable keys","tags":["site"]},"post":{"operationId":"site::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"actions":{"default":null,"anyOf":[{"maxItems":4,"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"]},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["type"]},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"]},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["type"]},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"]},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["actionId","type"]}]}},{"type":"null"}],"description":"Product card buttons on this market's widgets. Null: the catalog's default (view product, plus add to cart when the shop has a cart)."},"allowedOrigins":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":255}},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 code, e.g. SEK."},"defaultThemeId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}],"description":"This site's catalog feed (feed connections)."},"locale":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$","description":"BCP 47 language tag, e.g. sv or en-GB."},"market":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Market id within the connection (Centra)."},"name":{"type":"string","minLength":1,"maxLength":120},"connectionId":{"default":null,"description":"The catalog source; defaults to the organization's built-in Lumieo catalog.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"type":"object","required":["currency","locale","name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"site":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["style","surfaces","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["style","surfaces","behavior","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["style","surfaces","actionId","type"],"additionalProperties":false}]}},{"type":"null"}]},"allowedOrigins":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"currency":{"type":"string"},"defaultThemeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncedAt":{"type":["string","null"]},"locale":{"type":"string"},"market":{"type":["string","null"]},"mode":{"type":"string","enum":["live","demo"]},"name":{"type":"string"},"publishableKeys":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"createdAt":{"type":"string"},"environment":{"type":"string","enum":["live","test"]},"expiresAt":{"type":["string","null"]},"key":{"type":"string"}},"required":["active","createdAt","environment","expiresAt","key"],"additionalProperties":false}},"updatedAt":{"type":"string"}},"required":["actions","allowedOrigins","connectionId","createdAt","currency","defaultThemeId","feedUrl","id","lastSyncError","lastSyncedAt","locale","market","mode","name","publishableKeys","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","site"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"402":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["plan_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":402,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"plan_limit_reached"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a site on a catalog connection (owner); it gets one pk_live_ and one pk_test_ key","tags":["site"]}},"/v1/sites/{id}":{"delete":{"operationId":"site::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"site":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","site"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_in_use"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_in_use"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a site (owner): its publishable keys stop working and its listings go. A site stores still use can't be deleted (site_in_use, with storeCount)","tags":["site"]},"get":{"operationId":"site::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"site":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["style","surfaces","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["style","surfaces","behavior","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["style","surfaces","actionId","type"],"additionalProperties":false}]}},{"type":"null"}]},"allowedOrigins":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"currency":{"type":"string"},"defaultThemeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncedAt":{"type":["string","null"]},"locale":{"type":"string"},"market":{"type":["string","null"]},"mode":{"type":"string","enum":["live","demo"]},"name":{"type":"string"},"publishableKeys":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"createdAt":{"type":"string"},"environment":{"type":"string","enum":["live","test"]},"expiresAt":{"type":["string","null"]},"key":{"type":"string"}},"required":["active","createdAt","environment","expiresAt","key"],"additionalProperties":false}},"updatedAt":{"type":"string"}},"required":["actions","allowedOrigins","connectionId","createdAt","currency","defaultThemeId","feedUrl","id","lastSyncError","lastSyncedAt","locale","market","mode","name","publishableKeys","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","site"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One site with its publishable keys","tags":["site"]},"patch":{"operationId":"site::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"actions":{"anyOf":[{"maxItems":4,"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"]},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["type"]},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"]},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["type"]},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"]},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["actionId","type"]}]}},{"type":"null"}],"description":"Product card buttons on this market's widgets. Null: the catalog's default (view product, plus add to cart when the shop has a cart)."},"allowedOrigins":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":255}},"currency":{"description":"Fixed at create: any other value answers site_currency_locked.","type":"string","pattern":"^[A-Z]{3}$"},"defaultThemeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}],"description":"This site's catalog feed (feed connections)."},"locale":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$","description":"BCP 47 language tag, e.g. sv or en-GB."},"market":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Market id within the connection (Centra)."},"name":{"type":"string","minLength":1,"maxLength":120}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"site":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["style","surfaces","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["style","surfaces","behavior","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["style","surfaces","actionId","type"],"additionalProperties":false}]}},{"type":"null"}]},"allowedOrigins":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"currency":{"type":"string"},"defaultThemeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncedAt":{"type":["string","null"]},"locale":{"type":"string"},"market":{"type":["string","null"]},"mode":{"type":"string","enum":["live","demo"]},"name":{"type":"string"},"publishableKeys":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"createdAt":{"type":"string"},"environment":{"type":"string","enum":["live","test"]},"expiresAt":{"type":["string","null"]},"key":{"type":"string"}},"required":["active","createdAt","environment","expiresAt","key"],"additionalProperties":false}},"updatedAt":{"type":"string"}},"required":["actions","allowedOrigins","connectionId","createdAt","currency","defaultThemeId","feedUrl","id","lastSyncError","lastSyncedAt","locale","market","mode","name","publishableKeys","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","site"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_currency_locked"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_currency_locked"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Update a site (owner): name, language, origins; new origins apply to its keys at once, the currency can't change","tags":["site"]}},"/v1/sites/{id}/assignment":{"put":{"operationId":"site::assign","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"fallbackPlaylistId":{"default":null,"description":"Plays when the main playlist is empty or none is set; cached on the screen.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"default":null,"description":"Plays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"assignment":{"anyOf":[{"type":"object","properties":{"fallbackPlaylistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"layoutId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"playlistId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"target":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["screen","group","location","site","org"]}},"required":["id","level"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["fallbackPlaylistId","layoutId","playlistId","target","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"What the target now shows; null once cleared."}},"required":["requestId","statusCode","success","assignment"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["layout_not_found","playlist_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"layout_not_found, playlist_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Set what the screens of a site's stores show; a store, group or screen of their own still wins. All null: clear it","tags":["site"]}},"/v1/sites/{id}/keys/{environment}/rotate":{"post":{"operationId":"site::rotate","parameters":[{"in":"path","name":"environment","required":true,"schema":{"type":"string","enum":["live","test"]}},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"site":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["style","surfaces","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["style","surfaces","behavior","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["style","surfaces","actionId","type"],"additionalProperties":false}]}},{"type":"null"}]},"allowedOrigins":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"currency":{"type":"string"},"defaultThemeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncedAt":{"type":["string","null"]},"locale":{"type":"string"},"market":{"type":["string","null"]},"mode":{"type":"string","enum":["live","demo"]},"name":{"type":"string"},"publishableKeys":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"createdAt":{"type":"string"},"environment":{"type":"string","enum":["live","test"]},"expiresAt":{"type":["string","null"]},"key":{"type":"string"}},"required":["active","createdAt","environment","expiresAt","key"],"additionalProperties":false}},"updatedAt":{"type":"string"}},"required":["actions","allowedOrigins","connectionId","createdAt","currency","defaultThemeId","feedUrl","id","lastSyncError","lastSyncedAt","locale","market","mode","name","publishableKeys","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","site"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rotate a site's pk_live_ or pk_test_ key (owner); the old key keeps working for 7 days","tags":["site"]}},"/v1/sites/{id}/setup":{"get":{"operationId":"site::setup","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"setup":{"type":"object","properties":{"activeListings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowedOrigins":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"embedSeen":{"type":"boolean"},"liveExperiences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["activeListings","allowedOrigins","embedSeen","liveExperiences"],"additionalProperties":false}},"required":["requestId","statusCode","success","setup"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"The site's setup checklist: products, allowed origins, embed seen, a live experience","tags":["site"]}},"/v1/sites/{id}/source":{"post":{"operationId":"site::switch","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The new source; null is the built-in Lumieo catalog."},"feedUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}],"description":"This site's catalog feed (feed connections)."},"market":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Market id within the connection (Centra)."}},"type":"object","required":["connectionId"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"sourceSwitch":{"type":"object","properties":{"liveExperiences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removedListings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"site":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"oneOf":[{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"type":{"type":"string","const":"add-to-cart"}},"required":["style","surfaces","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"behavior":{"default":"navigate","type":"string","enum":["navigate","details"]},"type":{"type":"string","const":"view-product"}},"required":["style","surfaces","behavior","type"],"additionalProperties":false},{"type":"object","properties":{"icon":{"type":"string","maxLength":40},"label":{"type":"object","properties":{"en":{"type":"string","minLength":1,"maxLength":40},"sv":{"type":"string","minLength":1,"maxLength":40}},"required":["en","sv"],"additionalProperties":false},"style":{"default":"secondary","type":"string","enum":["primary","secondary","icon"]},"surfaces":{"default":["card","details"],"minItems":1,"type":"array","items":{"type":"string","enum":["card","details"]}},"actionId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"type":{"type":"string","const":"custom"},"url":{"type":"string","format":"uri"}},"required":["style","surfaces","actionId","type"],"additionalProperties":false}]}},{"type":"null"}]},"allowedOrigins":{"type":"array","items":{"type":"string"}},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"currency":{"type":"string"},"defaultThemeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"feedUrl":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSyncError":{"type":["string","null"]},"lastSyncedAt":{"type":["string","null"]},"locale":{"type":"string"},"market":{"type":["string","null"]},"mode":{"type":"string","enum":["live","demo"]},"name":{"type":"string"},"publishableKeys":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"createdAt":{"type":"string"},"environment":{"type":"string","enum":["live","test"]},"expiresAt":{"type":["string","null"]},"key":{"type":"string"}},"required":["active","createdAt","environment","expiresAt","key"],"additionalProperties":false}},"updatedAt":{"type":"string"}},"required":["actions","allowedOrigins","connectionId","createdAt","currency","defaultThemeId","feedUrl","id","lastSyncError","lastSyncedAt","locale","market","mode","name","publishableKeys","updatedAt"],"additionalProperties":false}},"required":["liveExperiences","removedListings","site"],"additionalProperties":false}},"required":["requestId","statusCode","success","sourceSwitch"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["connection_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"connection_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Switch a site's catalog source (owner): its listings and product snapshots are removed, and live experiences show no products until re-tagged","tags":["site"]}},"/v1/sites/{siteId}/experiences":{"get":{"operationId":"experience::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"path","name":"siteId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experiences":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"live":{"type":"boolean"},"liveVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"productFilter":{"type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["tagged","picked"]},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"],"additionalProperties":false}}},"required":["by","groups"],"additionalProperties":false,"description":"Stories circles: group by creator or product."},{"type":"null"}]},"syncError":{"type":["string","null"]},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"viewer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["createdAt","id","launcher","live","liveVersionId","name","productFilter","siteId","source","storyGroups","syncError","themeId","updatedAt","videoIds","viewer"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","experiences"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List a site's experiences","tags":["experience"]},"post":{"operationId":"experience::create","parameters":[{"in":"path","name":"siteId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"launcher":{"default":{"type":"carousel"},"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"]}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"default":{},"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}}},"type":{"type":"string","const":"carousel"}},"required":["type"]},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["type"]},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"]},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"]},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"]}},"required":["desktop","mobile"]}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["type"]}]},"name":{"type":"string","minLength":1,"maxLength":120},"productFilter":{"default":false,"type":"boolean","description":"Show only the videos tagged with the product on the page (`<lumieo-experience product>`)."},"source":{"default":"tagged","type":"string","enum":["tagged","picked"],"description":"Which videos it shows: `tagged` is every video with products, newest first; `picked` is its own `videoIds`, in order."},"storyGroups":{"default":null,"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"]}}},"required":["by"],"description":"Stories circles: group by creator or product."},{"type":"null"}],"description":"Stories circles: group by creator or product, in this order, renamed. Null groups by none (one circle per video)."},"themeId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"Null shows the site's default theme."},"videoIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"The widget's own videos, in order (shown when `source` is `picked`). Replaces the whole list."},"viewer":{"default":{"type":"feed"},"description":"How the viewer opens: `presentation` and `layout`, per breakpoint. Behaviour comes from the theme.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"type":"object","required":["name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"experience":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"launcher":{"oneOf":[{"type":"object","properties":{"height":{"default":{"desktop":360,"mobile":300},"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"preview":{"default":"autoplay","type":"string","enum":["autoplay","hover","tap","off"]},"previewSource":{"default":"video","type":"string","enum":["video","animated-thumbnail","poster"]},"tileCaption":{"default":"overlay","type":"string","enum":["overlay","below"]},"tileProducts":{"type":"object","properties":{"display":{"default":"caption","type":"string","enum":["caption","pills","thumbs"]},"max":{"default":3,"type":"integer","minimum":1,"maximum":3},"show":{"default":"first","type":"string","enum":["none","first","all"]}},"required":["display","max","show"],"additionalProperties":false},"type":{"type":"string","const":"carousel"}},"required":["height","preview","previewSource","tileCaption","tileProducts","type"],"additionalProperties":false},{"type":"object","properties":{"shape":{"default":"circle","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"ringPulse":{"default":false,"type":"boolean"},"ringStyle":{"default":"brand-gradient","type":"string","enum":["brand-gradient","solid","none"]},"title":{"default":"below","type":"string","enum":["below","hidden"]},"type":{"type":"string","const":"stories"}},"required":["shape","size","ringPulse","ringStyle","title","type"],"additionalProperties":false},{"type":"object","properties":{"corner":{"default":"bottom-end","type":"string","enum":["bottom-end","bottom-start","top-end","top-start"]},"delay":{"default":0,"type":"integer","minimum":0,"maximum":30},"offset":{"default":{"x":16,"y":16},"anyOf":[{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"desktop":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false},"mobile":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":200},"y":{"type":"integer","minimum":0,"maximum":200}},"required":["x","y"],"additionalProperties":false}},"required":["desktop","mobile"],"additionalProperties":false}]},"scrollTrigger":{"default":"off","anyOf":[{"type":"string","const":"off"},{"type":"integer","minimum":0,"maximum":100}]},"shape":{"default":"portrait","type":"string","enum":["circle","rounded","portrait"]},"size":{"default":"m","type":"string","enum":["s","m","l"]},"type":{"type":"string","const":"bubble"}},"required":["corner","delay","offset","scrollTrigger","shape","size","type"],"additionalProperties":false}]},"live":{"type":"boolean"},"liveVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"productFilter":{"type":"boolean"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["tagged","picked"]},"storyGroups":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["creator","product"]},"groups":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":80}},"required":["key"],"additionalProperties":false}}},"required":["by","groups"],"additionalProperties":false,"description":"Stories circles: group by creator or product."},{"type":"null"}]},"syncError":{"type":["string","null"]},"themeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"updatedAt":{"type":"string"},"videoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"viewer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["createdAt","id","launcher","live","liveVersionId","name","productFilter","siteId","source","storyGroups","syncError","themeId","updatedAt","videoIds","viewer"],"additionalProperties":false}},"required":["requestId","statusCode","success","experience"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found","theme_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found, theme_not_found, video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create an experience on a site; unset settings take the player defaults","tags":["experience"]}},"/v1/sites/{siteId}/products":{"put":{"operationId":"product::push","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"products":{"type":"object","properties":{"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"upserted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["removed","upserted"],"additionalProperties":false}},"required":["requestId","statusCode","success","products"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Upsert up to 500 products (catalog feed v1) on a site, applied at once; others are left as they are","tags":["product"]}},"/v1/tags":{"get":{"operationId":"tag::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"query","name":"productId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"videoId","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"tags":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"endMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"updatedAt":{"type":"string"},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["createdAt","endMs","id","liveExperienceCount","productId","startMs","updatedAt","videoId"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","tags"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List product tags, optionally for one video or one product","tags":["tag"]},"post":{"operationId":"tag::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"endMs":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":3600000},{"type":"null"}]},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startMs":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":3600000},{"type":"null"}]},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"type":"object","required":["productId","videoId"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"tag":{"type":"object","properties":{"createdAt":{"type":"string"},"endMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"updatedAt":{"type":"string"},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["createdAt","endMs","id","liveExperienceCount","productId","startMs","updatedAt","videoId"],"additionalProperties":false}},"required":["requestId","statusCode","success","tag"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found, video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["tag_exists","tag_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"tag_exists, tag_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Tag a video with a product, optionally for a span (startMs–endMs); one tag per video and product","tags":["tag"]}},"/v1/tags/bulk":{"post":{"operationId":"tag::bulk","requestBody":{"content":{"application/json":{"schema":{"properties":{"productIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"videoIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"type":"object","required":["productIds","videoIds"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"tags":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created"],"additionalProperties":false}},"required":["requestId","statusCode","success","tags"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found, video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["tag_limit_reached"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"tag_limit_reached"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Tag several videos with several products (whole video); existing pairs are kept","tags":["tag"]}},"/v1/tags/replace":{"post":{"operationId":"tag::replace","requestBody":{"content":{"application/json":{"schema":{"properties":{"products":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"endMs":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":3600000},{"type":"null"}]},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startMs":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":3600000},{"type":"null"}]}},"required":["productId"]}},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"type":"object","required":["products","videoId"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"tags":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"endMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"updatedAt":{"type":"string"},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["createdAt","endMs","id","liveExperienceCount","productId","startMs","updatedAt","videoId"],"additionalProperties":false}}},"required":["requestId","statusCode","success","tags"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["product_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"product_not_found, video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Set a video's products in one go: unlisted tags go, new ones are added, spans are updated","tags":["tag"]}},"/v1/tags/{id}":{"delete":{"operationId":"tag::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"tag":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","tag"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["tag_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"tag_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Remove a product tag","tags":["tag"]},"get":{"operationId":"tag::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"tag":{"type":"object","properties":{"createdAt":{"type":"string"},"endMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"updatedAt":{"type":"string"},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["createdAt","endMs","id","liveExperienceCount","productId","startMs","updatedAt","videoId"],"additionalProperties":false}},"required":["requestId","statusCode","success","tag"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["tag_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"tag_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One product tag, with its live experience count","tags":["tag"]},"patch":{"operationId":"tag::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"endMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":3600000},{"type":"null"}]},"startMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":3600000},{"type":"null"}]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"tag":{"type":"object","properties":{"createdAt":{"type":"string"},"endMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"updatedAt":{"type":"string"},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["createdAt","endMs","id","liveExperienceCount","productId","startMs","updatedAt","videoId"],"additionalProperties":false}},"required":["requestId","statusCode","success","tag"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["tag_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"tag_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Change a tag's span; null clears a bound","tags":["tag"]}},"/v1/themes":{"get":{"operationId":"theme::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"themes":{"type":"array","items":{"type":"object","properties":{"behavior":{"type":"object","properties":{"tileProducts.display":{"type":"string","enum":["caption","pills","thumbs"]},"tileProducts.max":{"type":"integer","minimum":1,"maximum":3},"tileProducts.show":{"type":"string","enum":["none","first","all"]},"aspect":{"anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"type":"boolean"},"captionsDefault":{"type":"boolean"},"direction":{"type":"string","enum":["vertical","horizontal"]},"fit":{"type":"string","enum":["cover","contain"]},"loop":{"type":"string","enum":["none","video","playlist"]},"soundDefault":{"type":"string","enum":["on","off"]},"captions.background":{"type":"string","enum":["box","shadow"]},"captions.position":{"type":"string","enum":["auto","bottom","top"]},"captions.size":{"type":"string","enum":["s","m","l"]},"controls.arrangement":{"type":"string","enum":["corners","rail","bar"]},"controls.captions":{"anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.close":{"anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.creator":{"anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.doubleTap":{"type":"string","enum":["none","seek"]},"controls.hold":{"type":"string","enum":["none","pause"]},"controls.navigation":{"anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.playPause":{"anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progress":{"anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progressColor":{"type":"string","enum":["white","brand"]},"controls.progressStyle":{"type":"string","enum":["bar","segmented","hairline","scrubber"]},"controls.sound":{"anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.style":{"anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.tap":{"type":"string","enum":["pause","mute","controls","navigate"]},"controls.title":{"anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"products.delayS":{"type":"integer","minimum":0,"maximum":10},"products.detailsMotion":{"type":"string","enum":["slide","fade","none"]},"products.detailsVideo":{"type":"string","enum":["pause","play"]},"products.display":{"type":"string","enum":["cards","list","pills"]},"products.highlight":{"type":"string","enum":["none","pulse"]},"products.max":{"type":"integer","minimum":1,"maximum":10},"products.motion":{"type":"string","enum":["none","fade","slide","pop"]},"products.sizePicker":{"type":"string","enum":["inline","step"]},"products.style":{"type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"products.timing":{"type":"string","enum":["always","tagged"]}},"additionalProperties":false,"description":"Player settings over the player style, by registry key (e.g. `controls.tap`)."},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"playerStyle":{"type":"string","enum":["auto","standard","swipe","loop","clip","story","watch"]},"preset":{"type":"string","enum":["minimal","bold","editorial","pulse","bloom","zest","theater","studio","glass"]},"screen":{"type":"object","properties":{"sale":{"default":null,"anyOf":[{"type":"string","pattern":"^#[0-9a-f]{6}$"},{"type":"null"}]},"scheme":{"default":"dark","type":"string","enum":["dark","light"]}},"required":["sale","scheme"],"additionalProperties":false},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tokens":{"type":"object","properties":{"borderWidth":{"type":"integer","minimum":0,"maximum":4},"brand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"danger":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"focusColor":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"fontFamily":{"anyOf":[{"type":"string","enum":["inherit","sans","serif","rounded"]},{"type":"object","properties":{"custom":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["custom"],"additionalProperties":false}]},"fontScale":{"type":"number","minimum":0.8,"maximum":1.4},"fontWeightTitle":{"type":"integer","minimum":100,"maximum":900,"multipleOf":100},"gap":{"type":"integer","minimum":0,"maximum":32},"iconOverrides":{"type":"object","propertyNames":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"mode":{"default":"fill","type":"string","enum":["fill","stroke"]},"path":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s-]+$"},"viewBox":{"default":"0 0 24 24","type":"string","pattern":"^-?\\d+(?:\\.\\d+)? -?\\d+(?:\\.\\d+)? (\\d+(?:\\.\\d+)?) (\\d+(?:\\.\\d+)?)$"}},"required":["mode","path","viewBox"],"additionalProperties":false}]}},"launcherHeight":{"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"motion":{"type":"string","enum":["full","reduced"]},"muted":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onBrand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onSurface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"radiusButton":{"anyOf":[{"type":"integer","minimum":0,"maximum":32},{"type":"string","const":"pill"}]},"radiusCard":{"type":"integer","minimum":0,"maximum":32},"radiusThumb":{"type":"integer","minimum":0,"maximum":32},"scrim":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"shadow":{"type":"string","enum":["none","soft","strong"]},"success":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"surface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"textCase":{"type":"string","enum":["none","uppercase"]},"buttonStyle":{"type":"string","enum":["solid","outline","ghost"]},"cardAlign":{"type":"string","enum":["start","center","end"]},"cardPosition":{"type":"string","enum":["bottom","top","side"]},"cardStyle":{"type":"string","enum":["compact","detailed","minimal"]},"cardSurface":{"type":"string","enum":["card","plain","glass"]},"colorScheme":{"type":"string","enum":["light","dark","auto"]},"iconSet":{"type":"string","enum":["filled","line","rounded"]},"playShape":{"type":"string","enum":["circle","rounded"]},"thumbAspect":{"type":"string","enum":["9:16","4:5","1:1","16:9"]},"customCss":{"type":"string","maxLength":4096}},"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["behavior","createdAt","id","liveExperienceCount","name","playerStyle","preset","screen","screenCount","tokens","updatedAt"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","themes"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List themes","tags":["theme"]},"post":{"operationId":"theme::create","requestBody":{"content":{"application/json":{"schema":{"properties":{"behavior":{"default":{},"type":"object","properties":{"tileProducts.display":{"type":"string","enum":["caption","pills","thumbs"]},"tileProducts.max":{"type":"integer","minimum":1,"maximum":3},"tileProducts.show":{"type":"string","enum":["none","first","all"]},"aspect":{"anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"type":"boolean"},"captionsDefault":{"type":"boolean"},"direction":{"type":"string","enum":["vertical","horizontal"]},"fit":{"type":"string","enum":["cover","contain"]},"loop":{"type":"string","enum":["none","video","playlist"]},"soundDefault":{"type":"string","enum":["on","off"]},"captions.background":{"type":"string","enum":["box","shadow"]},"captions.position":{"type":"string","enum":["auto","bottom","top"]},"captions.size":{"type":"string","enum":["s","m","l"]},"controls.arrangement":{"type":"string","enum":["corners","rail","bar"]},"controls.captions":{"anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"]}]},"controls.close":{"anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"]}]},"controls.creator":{"anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"]}]},"controls.doubleTap":{"type":"string","enum":["none","seek"]},"controls.hold":{"type":"string","enum":["none","pause"]},"controls.navigation":{"anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"]}]},"controls.playPause":{"anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"]}]},"controls.progress":{"anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"]}]},"controls.progressColor":{"type":"string","enum":["white","brand"]},"controls.progressStyle":{"type":"string","enum":["bar","segmented","hairline","scrubber"]},"controls.sound":{"anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"]}]},"controls.style":{"anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"]}]},"controls.tap":{"type":"string","enum":["pause","mute","controls","navigate"]},"controls.title":{"anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"]}]},"products.delayS":{"type":"integer","minimum":0,"maximum":10},"products.detailsMotion":{"type":"string","enum":["slide","fade","none"]},"products.detailsVideo":{"type":"string","enum":["pause","play"]},"products.display":{"type":"string","enum":["cards","list","pills"]},"products.highlight":{"type":"string","enum":["none","pulse"]},"products.max":{"type":"integer","minimum":1,"maximum":10},"products.motion":{"type":"string","enum":["none","fade","slide","pop"]},"products.sizePicker":{"type":"string","enum":["inline","step"]},"products.style":{"type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"products.timing":{"type":"string","enum":["always","tagged"]}},"additionalProperties":false,"description":"Player settings over the player style, by registry key (e.g. `controls.tap`)."},"name":{"type":"string","minLength":1,"maxLength":120},"playerStyle":{"default":"auto","type":"string","enum":["auto","standard","swipe","loop","clip","story","watch"],"description":"The player style: `auto` (match each widget's format: carousels and bubbles play Standard, stories play Story) or a named style."},"preset":{"default":"minimal","type":"string","enum":["minimal","bold","editorial","pulse","bloom","zest","theater","studio","glass"]},"screen":{"default":{"sale":null,"scheme":"dark"},"type":"object","properties":{"sale":{"default":null,"anyOf":[{"type":"string","pattern":"^#[0-9a-f]{6}$"},{"type":"null"}]},"scheme":{"default":"dark","type":"string","enum":["dark","light"]}},"description":"How screens draw this theme (docs/specs/screens.md §16): `scheme` (`dark`, the default, or `light`) and a `sale` colour (`#rrggbb`, or null for a red that reads)."},"tokens":{"default":{},"type":"object","properties":{"borderWidth":{"type":"integer","minimum":0,"maximum":4},"brand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"danger":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"focusColor":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"fontFamily":{"anyOf":[{"type":"string","enum":["inherit","sans","serif","rounded"]},{"type":"object","properties":{"custom":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["custom"],"additionalProperties":false}]},"fontScale":{"type":"number","minimum":0.8,"maximum":1.4},"fontWeightTitle":{"type":"integer","minimum":100,"maximum":900,"multipleOf":100},"gap":{"type":"integer","minimum":0,"maximum":32},"iconOverrides":{"type":"object","propertyNames":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"mode":{"default":"fill","type":"string","enum":["fill","stroke"]},"path":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s-]+$"},"viewBox":{"default":"0 0 24 24","type":"string","pattern":"^-?\\d+(?:\\.\\d+)? -?\\d+(?:\\.\\d+)? (\\d+(?:\\.\\d+)?) (\\d+(?:\\.\\d+)?)$"}},"required":["path"],"additionalProperties":false}]}},"launcherHeight":{"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"]}]},"motion":{"type":"string","enum":["full","reduced"]},"muted":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"onBrand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"onSurface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"radiusButton":{"anyOf":[{"type":"integer","minimum":0,"maximum":32},{"type":"string","const":"pill"}]},"radiusCard":{"type":"integer","minimum":0,"maximum":32},"radiusThumb":{"type":"integer","minimum":0,"maximum":32},"scrim":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"shadow":{"type":"string","enum":["none","soft","strong"]},"success":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"surface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"textCase":{"type":"string","enum":["none","uppercase"]},"buttonStyle":{"type":"string","enum":["solid","outline","ghost"]},"cardAlign":{"type":"string","enum":["start","center","end"]},"cardPosition":{"type":"string","enum":["bottom","top","side"]},"cardStyle":{"type":"string","enum":["compact","detailed","minimal"]},"cardSurface":{"type":"string","enum":["card","plain","glass"]},"colorScheme":{"type":"string","enum":["light","dark","auto"]},"iconSet":{"type":"string","enum":["filled","line","rounded"]},"playShape":{"type":"string","enum":["circle","rounded"]},"thumbAspect":{"type":"string","enum":["9:16","4:5","1:1","16:9"]},"customCss":{"type":"string","maxLength":4096}}}},"type":"object","required":["name"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"theme":{"type":"object","properties":{"behavior":{"type":"object","properties":{"tileProducts.display":{"type":"string","enum":["caption","pills","thumbs"]},"tileProducts.max":{"type":"integer","minimum":1,"maximum":3},"tileProducts.show":{"type":"string","enum":["none","first","all"]},"aspect":{"anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"type":"boolean"},"captionsDefault":{"type":"boolean"},"direction":{"type":"string","enum":["vertical","horizontal"]},"fit":{"type":"string","enum":["cover","contain"]},"loop":{"type":"string","enum":["none","video","playlist"]},"soundDefault":{"type":"string","enum":["on","off"]},"captions.background":{"type":"string","enum":["box","shadow"]},"captions.position":{"type":"string","enum":["auto","bottom","top"]},"captions.size":{"type":"string","enum":["s","m","l"]},"controls.arrangement":{"type":"string","enum":["corners","rail","bar"]},"controls.captions":{"anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.close":{"anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.creator":{"anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.doubleTap":{"type":"string","enum":["none","seek"]},"controls.hold":{"type":"string","enum":["none","pause"]},"controls.navigation":{"anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.playPause":{"anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progress":{"anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progressColor":{"type":"string","enum":["white","brand"]},"controls.progressStyle":{"type":"string","enum":["bar","segmented","hairline","scrubber"]},"controls.sound":{"anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.style":{"anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.tap":{"type":"string","enum":["pause","mute","controls","navigate"]},"controls.title":{"anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"products.delayS":{"type":"integer","minimum":0,"maximum":10},"products.detailsMotion":{"type":"string","enum":["slide","fade","none"]},"products.detailsVideo":{"type":"string","enum":["pause","play"]},"products.display":{"type":"string","enum":["cards","list","pills"]},"products.highlight":{"type":"string","enum":["none","pulse"]},"products.max":{"type":"integer","minimum":1,"maximum":10},"products.motion":{"type":"string","enum":["none","fade","slide","pop"]},"products.sizePicker":{"type":"string","enum":["inline","step"]},"products.style":{"type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"products.timing":{"type":"string","enum":["always","tagged"]}},"additionalProperties":false,"description":"Player settings over the player style, by registry key (e.g. `controls.tap`)."},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"playerStyle":{"type":"string","enum":["auto","standard","swipe","loop","clip","story","watch"]},"preset":{"type":"string","enum":["minimal","bold","editorial","pulse","bloom","zest","theater","studio","glass"]},"screen":{"type":"object","properties":{"sale":{"default":null,"anyOf":[{"type":"string","pattern":"^#[0-9a-f]{6}$"},{"type":"null"}]},"scheme":{"default":"dark","type":"string","enum":["dark","light"]}},"required":["sale","scheme"],"additionalProperties":false},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tokens":{"type":"object","properties":{"borderWidth":{"type":"integer","minimum":0,"maximum":4},"brand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"danger":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"focusColor":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"fontFamily":{"anyOf":[{"type":"string","enum":["inherit","sans","serif","rounded"]},{"type":"object","properties":{"custom":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["custom"],"additionalProperties":false}]},"fontScale":{"type":"number","minimum":0.8,"maximum":1.4},"fontWeightTitle":{"type":"integer","minimum":100,"maximum":900,"multipleOf":100},"gap":{"type":"integer","minimum":0,"maximum":32},"iconOverrides":{"type":"object","propertyNames":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"mode":{"default":"fill","type":"string","enum":["fill","stroke"]},"path":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s-]+$"},"viewBox":{"default":"0 0 24 24","type":"string","pattern":"^-?\\d+(?:\\.\\d+)? -?\\d+(?:\\.\\d+)? (\\d+(?:\\.\\d+)?) (\\d+(?:\\.\\d+)?)$"}},"required":["mode","path","viewBox"],"additionalProperties":false}]}},"launcherHeight":{"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"motion":{"type":"string","enum":["full","reduced"]},"muted":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onBrand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onSurface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"radiusButton":{"anyOf":[{"type":"integer","minimum":0,"maximum":32},{"type":"string","const":"pill"}]},"radiusCard":{"type":"integer","minimum":0,"maximum":32},"radiusThumb":{"type":"integer","minimum":0,"maximum":32},"scrim":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"shadow":{"type":"string","enum":["none","soft","strong"]},"success":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"surface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"textCase":{"type":"string","enum":["none","uppercase"]},"buttonStyle":{"type":"string","enum":["solid","outline","ghost"]},"cardAlign":{"type":"string","enum":["start","center","end"]},"cardPosition":{"type":"string","enum":["bottom","top","side"]},"cardStyle":{"type":"string","enum":["compact","detailed","minimal"]},"cardSurface":{"type":"string","enum":["card","plain","glass"]},"colorScheme":{"type":"string","enum":["light","dark","auto"]},"iconSet":{"type":"string","enum":["filled","line","rounded"]},"playShape":{"type":"string","enum":["circle","rounded"]},"thumbAspect":{"type":"string","enum":["9:16","4:5","1:1","16:9"]},"customCss":{"type":"string","maxLength":4096}},"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["behavior","createdAt","id","liveExperienceCount","name","playerStyle","preset","screen","screenCount","tokens","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","theme"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Create a theme from a preset (minimal, bold, editorial) with optional token overrides","tags":["theme"]}},"/v1/themes/{id}":{"delete":{"operationId":"theme::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"theme":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}},"required":["requestId","statusCode","success","theme"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["theme_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"theme_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Delete a theme; sites using it as their default fall back to none","tags":["theme"]},"get":{"operationId":"theme::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"theme":{"type":"object","properties":{"behavior":{"type":"object","properties":{"tileProducts.display":{"type":"string","enum":["caption","pills","thumbs"]},"tileProducts.max":{"type":"integer","minimum":1,"maximum":3},"tileProducts.show":{"type":"string","enum":["none","first","all"]},"aspect":{"anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"type":"boolean"},"captionsDefault":{"type":"boolean"},"direction":{"type":"string","enum":["vertical","horizontal"]},"fit":{"type":"string","enum":["cover","contain"]},"loop":{"type":"string","enum":["none","video","playlist"]},"soundDefault":{"type":"string","enum":["on","off"]},"captions.background":{"type":"string","enum":["box","shadow"]},"captions.position":{"type":"string","enum":["auto","bottom","top"]},"captions.size":{"type":"string","enum":["s","m","l"]},"controls.arrangement":{"type":"string","enum":["corners","rail","bar"]},"controls.captions":{"anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.close":{"anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.creator":{"anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.doubleTap":{"type":"string","enum":["none","seek"]},"controls.hold":{"type":"string","enum":["none","pause"]},"controls.navigation":{"anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.playPause":{"anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progress":{"anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progressColor":{"type":"string","enum":["white","brand"]},"controls.progressStyle":{"type":"string","enum":["bar","segmented","hairline","scrubber"]},"controls.sound":{"anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.style":{"anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.tap":{"type":"string","enum":["pause","mute","controls","navigate"]},"controls.title":{"anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"products.delayS":{"type":"integer","minimum":0,"maximum":10},"products.detailsMotion":{"type":"string","enum":["slide","fade","none"]},"products.detailsVideo":{"type":"string","enum":["pause","play"]},"products.display":{"type":"string","enum":["cards","list","pills"]},"products.highlight":{"type":"string","enum":["none","pulse"]},"products.max":{"type":"integer","minimum":1,"maximum":10},"products.motion":{"type":"string","enum":["none","fade","slide","pop"]},"products.sizePicker":{"type":"string","enum":["inline","step"]},"products.style":{"type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"products.timing":{"type":"string","enum":["always","tagged"]}},"additionalProperties":false,"description":"Player settings over the player style, by registry key (e.g. `controls.tap`)."},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"playerStyle":{"type":"string","enum":["auto","standard","swipe","loop","clip","story","watch"]},"preset":{"type":"string","enum":["minimal","bold","editorial","pulse","bloom","zest","theater","studio","glass"]},"screen":{"type":"object","properties":{"sale":{"default":null,"anyOf":[{"type":"string","pattern":"^#[0-9a-f]{6}$"},{"type":"null"}]},"scheme":{"default":"dark","type":"string","enum":["dark","light"]}},"required":["sale","scheme"],"additionalProperties":false},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tokens":{"type":"object","properties":{"borderWidth":{"type":"integer","minimum":0,"maximum":4},"brand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"danger":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"focusColor":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"fontFamily":{"anyOf":[{"type":"string","enum":["inherit","sans","serif","rounded"]},{"type":"object","properties":{"custom":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["custom"],"additionalProperties":false}]},"fontScale":{"type":"number","minimum":0.8,"maximum":1.4},"fontWeightTitle":{"type":"integer","minimum":100,"maximum":900,"multipleOf":100},"gap":{"type":"integer","minimum":0,"maximum":32},"iconOverrides":{"type":"object","propertyNames":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"mode":{"default":"fill","type":"string","enum":["fill","stroke"]},"path":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s-]+$"},"viewBox":{"default":"0 0 24 24","type":"string","pattern":"^-?\\d+(?:\\.\\d+)? -?\\d+(?:\\.\\d+)? (\\d+(?:\\.\\d+)?) (\\d+(?:\\.\\d+)?)$"}},"required":["mode","path","viewBox"],"additionalProperties":false}]}},"launcherHeight":{"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"motion":{"type":"string","enum":["full","reduced"]},"muted":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onBrand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onSurface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"radiusButton":{"anyOf":[{"type":"integer","minimum":0,"maximum":32},{"type":"string","const":"pill"}]},"radiusCard":{"type":"integer","minimum":0,"maximum":32},"radiusThumb":{"type":"integer","minimum":0,"maximum":32},"scrim":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"shadow":{"type":"string","enum":["none","soft","strong"]},"success":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"surface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"textCase":{"type":"string","enum":["none","uppercase"]},"buttonStyle":{"type":"string","enum":["solid","outline","ghost"]},"cardAlign":{"type":"string","enum":["start","center","end"]},"cardPosition":{"type":"string","enum":["bottom","top","side"]},"cardStyle":{"type":"string","enum":["compact","detailed","minimal"]},"cardSurface":{"type":"string","enum":["card","plain","glass"]},"colorScheme":{"type":"string","enum":["light","dark","auto"]},"iconSet":{"type":"string","enum":["filled","line","rounded"]},"playShape":{"type":"string","enum":["circle","rounded"]},"thumbAspect":{"type":"string","enum":["9:16","4:5","1:1","16:9"]},"customCss":{"type":"string","maxLength":4096}},"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["behavior","createdAt","id","liveExperienceCount","name","playerStyle","preset","screen","screenCount","tokens","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","theme"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["theme_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"theme_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One theme, with its live experience count","tags":["theme"]},"patch":{"operationId":"theme::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"behavior":{"type":"object","properties":{"tileProducts.display":{"type":"string","enum":["caption","pills","thumbs"]},"tileProducts.max":{"type":"integer","minimum":1,"maximum":3},"tileProducts.show":{"type":"string","enum":["none","first","all"]},"aspect":{"anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"type":"boolean"},"captionsDefault":{"type":"boolean"},"direction":{"type":"string","enum":["vertical","horizontal"]},"fit":{"type":"string","enum":["cover","contain"]},"loop":{"type":"string","enum":["none","video","playlist"]},"soundDefault":{"type":"string","enum":["on","off"]},"captions.background":{"type":"string","enum":["box","shadow"]},"captions.position":{"type":"string","enum":["auto","bottom","top"]},"captions.size":{"type":"string","enum":["s","m","l"]},"controls.arrangement":{"type":"string","enum":["corners","rail","bar"]},"controls.captions":{"anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"]}]},"controls.close":{"anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"]}]},"controls.creator":{"anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"]}]},"controls.doubleTap":{"type":"string","enum":["none","seek"]},"controls.hold":{"type":"string","enum":["none","pause"]},"controls.navigation":{"anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"]}]},"controls.playPause":{"anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"]}]},"controls.progress":{"anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"]}]},"controls.progressColor":{"type":"string","enum":["white","brand"]},"controls.progressStyle":{"type":"string","enum":["bar","segmented","hairline","scrubber"]},"controls.sound":{"anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"]}]},"controls.style":{"anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"]}]},"controls.tap":{"type":"string","enum":["pause","mute","controls","navigate"]},"controls.title":{"anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"]}]},"products.delayS":{"type":"integer","minimum":0,"maximum":10},"products.detailsMotion":{"type":"string","enum":["slide","fade","none"]},"products.detailsVideo":{"type":"string","enum":["pause","play"]},"products.display":{"type":"string","enum":["cards","list","pills"]},"products.highlight":{"type":"string","enum":["none","pulse"]},"products.max":{"type":"integer","minimum":1,"maximum":10},"products.motion":{"type":"string","enum":["none","fade","slide","pop"]},"products.sizePicker":{"type":"string","enum":["inline","step"]},"products.style":{"type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"products.timing":{"type":"string","enum":["always","tagged"]}},"additionalProperties":false,"description":"Player settings over the player style, by registry key (e.g. `controls.tap`)."},"name":{"type":"string","minLength":1,"maxLength":120},"playerStyle":{"type":"string","enum":["auto","standard","swipe","loop","clip","story","watch"],"description":"The player style: `auto` (match each widget's format: carousels and bubbles play Standard, stories play Story) or a named style."},"preset":{"type":"string","enum":["minimal","bold","editorial","pulse","bloom","zest","theater","studio","glass"]},"screen":{"type":"object","properties":{"sale":{"default":null,"anyOf":[{"type":"string","pattern":"^#[0-9a-f]{6}$"},{"type":"null"}]},"scheme":{"default":"dark","type":"string","enum":["dark","light"]}},"description":"How screens draw this theme (docs/specs/screens.md §16): `scheme` (`dark`, the default, or `light`) and a `sale` colour (`#rrggbb`, or null for a red that reads)."},"tokens":{"type":"object","properties":{"borderWidth":{"type":"integer","minimum":0,"maximum":4},"brand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"danger":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"focusColor":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"fontFamily":{"anyOf":[{"type":"string","enum":["inherit","sans","serif","rounded"]},{"type":"object","properties":{"custom":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["custom"],"additionalProperties":false}]},"fontScale":{"type":"number","minimum":0.8,"maximum":1.4},"fontWeightTitle":{"type":"integer","minimum":100,"maximum":900,"multipleOf":100},"gap":{"type":"integer","minimum":0,"maximum":32},"iconOverrides":{"type":"object","propertyNames":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"mode":{"default":"fill","type":"string","enum":["fill","stroke"]},"path":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s-]+$"},"viewBox":{"default":"0 0 24 24","type":"string","pattern":"^-?\\d+(?:\\.\\d+)? -?\\d+(?:\\.\\d+)? (\\d+(?:\\.\\d+)?) (\\d+(?:\\.\\d+)?)$"}},"required":["path"],"additionalProperties":false}]}},"launcherHeight":{"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"]}]},"motion":{"type":"string","enum":["full","reduced"]},"muted":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"onBrand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"onSurface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"radiusButton":{"anyOf":[{"type":"integer","minimum":0,"maximum":32},{"type":"string","const":"pill"}]},"radiusCard":{"type":"integer","minimum":0,"maximum":32},"radiusThumb":{"type":"integer","minimum":0,"maximum":32},"scrim":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"shadow":{"type":"string","enum":["none","soft","strong"]},"success":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"surface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"]},"textCase":{"type":"string","enum":["none","uppercase"]},"buttonStyle":{"type":"string","enum":["solid","outline","ghost"]},"cardAlign":{"type":"string","enum":["start","center","end"]},"cardPosition":{"type":"string","enum":["bottom","top","side"]},"cardStyle":{"type":"string","enum":["compact","detailed","minimal"]},"cardSurface":{"type":"string","enum":["card","plain","glass"]},"colorScheme":{"type":"string","enum":["light","dark","auto"]},"iconSet":{"type":"string","enum":["filled","line","rounded"]},"playShape":{"type":"string","enum":["circle","rounded"]},"thumbAspect":{"type":"string","enum":["9:16","4:5","1:1","16:9"]},"customCss":{"type":"string","maxLength":4096}}}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"theme":{"type":"object","properties":{"behavior":{"type":"object","properties":{"tileProducts.display":{"type":"string","enum":["caption","pills","thumbs"]},"tileProducts.max":{"type":"integer","minimum":1,"maximum":3},"tileProducts.show":{"type":"string","enum":["none","first","all"]},"aspect":{"anyOf":[{"type":"string","enum":["9:16","4:5","1:1","16:9"]},{"type":"string","const":"source"}]},"autoAdvance":{"type":"boolean"},"captionsDefault":{"type":"boolean"},"direction":{"type":"string","enum":["vertical","horizontal"]},"fit":{"type":"string","enum":["cover","contain"]},"loop":{"type":"string","enum":["none","video","playlist"]},"soundDefault":{"type":"string","enum":["on","off"]},"captions.background":{"type":"string","enum":["box","shadow"]},"captions.position":{"type":"string","enum":["auto","bottom","top"]},"captions.size":{"type":"string","enum":["s","m","l"]},"controls.arrangement":{"type":"string","enum":["corners","rail","bar"]},"controls.captions":{"anyOf":[{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]},"mobile":{"type":"string","enum":["with-sound","top-start","top-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.close":{"anyOf":[{"type":"string","enum":["top-end","top-start"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start"]},"mobile":{"type":"string","enum":["top-end","top-start"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.creator":{"anyOf":[{"type":"string","enum":["top-start","bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-start","bottom-start","hidden"]},"mobile":{"type":"string","enum":["top-start","bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.doubleTap":{"type":"string","enum":["none","seek"]},"controls.hold":{"type":"string","enum":["none","pause"]},"controls.navigation":{"anyOf":[{"type":"string","enum":["end","start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["end","start","hidden"]},"mobile":{"type":"string","enum":["end","start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.playPause":{"anyOf":[{"type":"string","enum":["with-sound","center","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["with-sound","center","hidden"]},"mobile":{"type":"string","enum":["with-sound","center","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progress":{"anyOf":[{"type":"string","enum":["top","bottom","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top","bottom","hidden"]},"mobile":{"type":"string","enum":["top","bottom","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.progressColor":{"type":"string","enum":["white","brand"]},"controls.progressStyle":{"type":"string","enum":["bar","segmented","hairline","scrubber"]},"controls.sound":{"anyOf":[{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]},"mobile":{"type":"string","enum":["top-end","top-start","bottom-end","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.style":{"anyOf":[{"type":"string","enum":["scrim","bare","grouped"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["scrim","bare","grouped"]},"mobile":{"type":"string","enum":["scrim","bare","grouped"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"controls.tap":{"type":"string","enum":["pause","mute","controls","navigate"]},"controls.title":{"anyOf":[{"type":"string","enum":["bottom-start","hidden"]},{"type":"object","properties":{"desktop":{"type":"string","enum":["bottom-start","hidden"]},"mobile":{"type":"string","enum":["bottom-start","hidden"]}},"required":["desktop","mobile"],"additionalProperties":false}]},"products.delayS":{"type":"integer","minimum":0,"maximum":10},"products.detailsMotion":{"type":"string","enum":["slide","fade","none"]},"products.detailsVideo":{"type":"string","enum":["pause","play"]},"products.display":{"type":"string","enum":["cards","list","pills"]},"products.highlight":{"type":"string","enum":["none","pulse"]},"products.max":{"type":"integer","minimum":1,"maximum":10},"products.motion":{"type":"string","enum":["none","fade","slide","pop"]},"products.sizePicker":{"type":"string","enum":["inline","step"]},"products.style":{"type":"string","enum":["panel","anchor","sticker","tray","attachment","shelf"]},"products.timing":{"type":"string","enum":["always","tagged"]}},"additionalProperties":false,"description":"Player settings over the player style, by registry key (e.g. `controls.tap`)."},"createdAt":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveExperienceCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"playerStyle":{"type":"string","enum":["auto","standard","swipe","loop","clip","story","watch"]},"preset":{"type":"string","enum":["minimal","bold","editorial","pulse","bloom","zest","theater","studio","glass"]},"screen":{"type":"object","properties":{"sale":{"default":null,"anyOf":[{"type":"string","pattern":"^#[0-9a-f]{6}$"},{"type":"null"}]},"scheme":{"default":"dark","type":"string","enum":["dark","light"]}},"required":["sale","scheme"],"additionalProperties":false},"screenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tokens":{"type":"object","properties":{"borderWidth":{"type":"integer","minimum":0,"maximum":4},"brand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"danger":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"focusColor":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"fontFamily":{"anyOf":[{"type":"string","enum":["inherit","sans","serif","rounded"]},{"type":"object","properties":{"custom":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["custom"],"additionalProperties":false}]},"fontScale":{"type":"number","minimum":0.8,"maximum":1.4},"fontWeightTitle":{"type":"integer","minimum":100,"maximum":900,"multipleOf":100},"gap":{"type":"integer","minimum":0,"maximum":32},"iconOverrides":{"type":"object","propertyNames":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","enum":["close","play","pause","mute","unmute","captions","previous","next","cart","details","custom"]}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"mode":{"default":"fill","type":"string","enum":["fill","stroke"]},"path":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s-]+$"},"viewBox":{"default":"0 0 24 24","type":"string","pattern":"^-?\\d+(?:\\.\\d+)? -?\\d+(?:\\.\\d+)? (\\d+(?:\\.\\d+)?) (\\d+(?:\\.\\d+)?)$"}},"required":["mode","path","viewBox"],"additionalProperties":false}]}},"launcherHeight":{"anyOf":[{"type":"integer","minimum":0,"maximum":800},{"type":"object","properties":{"desktop":{"type":"integer","minimum":0,"maximum":800},"mobile":{"type":"integer","minimum":0,"maximum":800}},"required":["desktop","mobile"],"additionalProperties":false}]},"motion":{"type":"string","enum":["full","reduced"]},"muted":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onBrand":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"onSurface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"radiusButton":{"anyOf":[{"type":"integer","minimum":0,"maximum":32},{"type":"string","const":"pill"}]},"radiusCard":{"type":"integer","minimum":0,"maximum":32},"radiusThumb":{"type":"integer","minimum":0,"maximum":32},"scrim":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"shadow":{"type":"string","enum":["none","soft","strong"]},"success":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"surface":{"type":"object","properties":{"dark":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"},"light":{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}},"required":["dark","light"],"additionalProperties":false},"textCase":{"type":"string","enum":["none","uppercase"]},"buttonStyle":{"type":"string","enum":["solid","outline","ghost"]},"cardAlign":{"type":"string","enum":["start","center","end"]},"cardPosition":{"type":"string","enum":["bottom","top","side"]},"cardStyle":{"type":"string","enum":["compact","detailed","minimal"]},"cardSurface":{"type":"string","enum":["card","plain","glass"]},"colorScheme":{"type":"string","enum":["light","dark","auto"]},"iconSet":{"type":"string","enum":["filled","line","rounded"]},"playShape":{"type":"string","enum":["circle","rounded"]},"thumbAspect":{"type":"string","enum":["9:16","4:5","1:1","16:9"]},"customCss":{"type":"string","maxLength":4096}},"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["behavior","createdAt","id","liveExperienceCount","name","playerStyle","preset","screen","screenCount","tokens","updatedAt"],"additionalProperties":false}},"required":["requestId","statusCode","success","theme"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["theme_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"theme_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Rename a theme, switch its preset or player style, or replace its token or behaviour overrides","tags":["theme"]}},"/v1/videos":{"get":{"operationId":"video::list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string","enum":["createdAt"]}},{"in":"query","name":"sortDir","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"in":"query","name":"status","required":false,"schema":{"type":"string","enum":["uploading","processing","ready","failed"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","nextCursor"],"additionalProperties":false},"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"videos":{"type":"array","items":{"type":"object","properties":{"captions":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"source":{"type":"string","enum":["generated","uploaded"]},"status":{"type":"string","enum":["inprogress","ready","error"]}},"required":["language","source","status"],"additionalProperties":false}},"createdAt":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"errorCode":{"type":["string","null"]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"posterPct":{"type":"number"},"posterUrl":{"type":["string","null"]},"previewUrl":{"type":["string","null"]},"readyAt":{"type":["string","null"]},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"shared":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"streamUid":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"uploadExpiresAt":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["captions","createdAt","durationMs","errorCode","height","id","posterPct","posterUrl","previewUrl","readyAt","scope","shared","sizeBytes","status","streamUid","title","updatedAt","uploadExpiresAt","width"],"additionalProperties":false}}},"required":["pagination","requestId","statusCode","success","videos"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"List the organization's videos, newest first","tags":["video"]}},"/v1/videos/uploads":{"post":{"operationId":"video::upload","requestBody":{"content":{"application/json":{"schema":{"properties":{"scope":{"type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"],"description":"Who 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."},"sizeBytes":{"type":"integer","minimum":1,"maximum":524288000,"description":"The file's exact size; TUS needs it up front."},"title":{"type":"string","minLength":1,"maxLength":200}},"type":"object","required":["sizeBytes","title"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"upload":{"type":"object","properties":{"uploadUrl":{"type":"string"},"video":{"type":"object","properties":{"captions":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"source":{"type":"string","enum":["generated","uploaded"]},"status":{"type":"string","enum":["inprogress","ready","error"]}},"required":["language","source","status"],"additionalProperties":false}},"createdAt":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"errorCode":{"type":["string","null"]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"posterPct":{"type":"number"},"posterUrl":{"type":["string","null"]},"previewUrl":{"type":["string","null"]},"readyAt":{"type":["string","null"]},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"shared":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"streamUid":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"uploadExpiresAt":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["captions","createdAt","durationMs","errorCode","height","id","posterPct","posterUrl","previewUrl","readyAt","scope","shared","sizeBytes","status","streamUid","title","updatedAt","uploadExpiresAt","width"],"additionalProperties":false}},"required":["uploadUrl","video"],"additionalProperties":false}},"required":["requestId","statusCode","success","upload"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","site_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, site_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"502":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_upstream_error"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":502,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_upstream_error"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_unavailable"}},"summary":"Start an upload: a one-time Stream TUS URL (≤ 500 MB, ≤ 3 min, ~30 min to start) and the video in `uploading`","tags":["video"]}},"/v1/videos/{id}":{"delete":{"operationId":"video::delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"deletion":{"type":"object","properties":{"republish":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"experienceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workflowId":{"type":"string"},"status":{"type":"string","const":"started"}},"required":["experienceId","version","workflowId","status"],"additionalProperties":false},{"type":"object","properties":{"experienceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string","const":"not_live"},"status":{"type":"string","const":"skipped"}},"required":["experienceId","reason","status"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},"experienceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","const":"failed"}},"required":["error","experienceId","status"],"additionalProperties":false}]}},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["republish","videoId"],"additionalProperties":false}},"required":["requestId","statusCode","success","deletion"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_shared"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_shared"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["publish_unavailable","stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"publish_unavailable, stream_unavailable"}},"summary":"Delete a video: out of its playlists, republish the live experiences that showed it, then off Stream after a grace period","tags":["video"]},"get":{"operationId":"video::read","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"video":{"type":"object","properties":{"captions":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"source":{"type":"string","enum":["generated","uploaded"]},"status":{"type":"string","enum":["inprogress","ready","error"]}},"required":["language","source","status"],"additionalProperties":false}},"createdAt":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"errorCode":{"type":["string","null"]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"posterPct":{"type":"number"},"posterUrl":{"type":["string","null"]},"previewUrl":{"type":["string","null"]},"readyAt":{"type":["string","null"]},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"shared":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"streamUid":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"uploadExpiresAt":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["captions","createdAt","durationMs","errorCode","height","id","posterPct","posterUrl","previewUrl","readyAt","scope","shared","sizeBytes","status","streamUid","title","updatedAt","uploadExpiresAt","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","video"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"One video, with its processing status","tags":["video"]},"patch":{"operationId":"video::update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"posterPct":{"description":"Poster frame as a fraction of the duration.","type":"number","minimum":0,"maximum":1},"scope":{"description":"Move it to everyone, a site or a store. A scoped member can move it only within their scope.","type":"object","properties":{"id":{"default":null,"description":"The site or store (location); null for org (everyone).","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["level"]},"title":{"type":"string","minLength":1,"maxLength":200}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"video":{"type":"object","properties":{"captions":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"source":{"type":"string","enum":["generated","uploaded"]},"status":{"type":"string","enum":["inprogress","ready","error"]}},"required":["language","source","status"],"additionalProperties":false}},"createdAt":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"errorCode":{"type":["string","null"]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"posterPct":{"type":"number"},"posterUrl":{"type":["string","null"]},"previewUrl":{"type":["string","null"]},"readyAt":{"type":["string","null"]},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"shared":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"streamUid":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"uploadExpiresAt":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["captions","createdAt","durationMs","errorCode","height","id","posterPct","posterUrl","previewUrl","readyAt","scope","shared","sizeBytes","status","streamUid","title","updatedAt","uploadExpiresAt","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","video"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["location_not_found","site_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"location_not_found, site_not_found, video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_ready","video_shared"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_ready, video_shared"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"502":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_upstream_error"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":502,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_upstream_error"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_unavailable"}},"summary":"Rename a video, pick its poster frame (poster needs `ready`) or move it to another scope","tags":["video"]}},"/v1/videos/{id}/captions/{language}":{"put":{"operationId":"video::captions::upload","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"path","name":"language","required":true,"schema":{"type":"string","enum":["sv","en"]}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"vtt":{"type":"string","maxLength":10485760}},"type":"object","required":["vtt"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"video":{"type":"object","properties":{"captions":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"source":{"type":"string","enum":["generated","uploaded"]},"status":{"type":"string","enum":["inprogress","ready","error"]}},"required":["language","source","status"],"additionalProperties":false}},"createdAt":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"errorCode":{"type":["string","null"]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"posterPct":{"type":"number"},"posterUrl":{"type":["string","null"]},"previewUrl":{"type":["string","null"]},"readyAt":{"type":["string","null"]},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"shared":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"streamUid":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"uploadExpiresAt":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["captions","createdAt","durationMs","errorCode","height","id","posterPct","posterUrl","previewUrl","readyAt","scope","shared","sizeBytes","status","streamUid","title","updatedAt","uploadExpiresAt","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","video"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_ready","video_shared"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_ready, video_shared"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"502":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_upstream_error"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":502,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_upstream_error"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_unavailable"}},"summary":"Upload a WebVTT caption track (≤ 10 MB), e.g. Swedish, which Stream can't generate","tags":["video"]}},"/v1/videos/{id}/captions/{language}/generate":{"post":{"operationId":"video::captions::generate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"path","name":"language","required":true,"schema":{"type":"string","enum":["en"],"description":"Stream auto-captions; it can't generate Swedish."}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"video":{"type":"object","properties":{"captions":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"source":{"type":"string","enum":["generated","uploaded"]},"status":{"type":"string","enum":["inprogress","ready","error"]}},"required":["language","source","status"],"additionalProperties":false}},"createdAt":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"errorCode":{"type":["string","null"]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"posterPct":{"type":"number"},"posterUrl":{"type":["string","null"]},"previewUrl":{"type":["string","null"]},"readyAt":{"type":["string","null"]},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"shared":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"streamUid":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"uploadExpiresAt":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["captions","createdAt","durationMs","errorCode","height","id","posterPct","posterUrl","previewUrl","readyAt","scope","shared","sizeBytes","status","streamUid","title","updatedAt","uploadExpiresAt","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","video"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_ready","video_shared"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_ready, video_shared"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"502":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_upstream_error"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":502,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_upstream_error"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["stream_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"stream_unavailable"}},"summary":"Ask Stream for auto-captions (English); the track is `inprogress` until ready","tags":["video"]}},"/v1/videos/{id}/consents":{"get":{"operationId":"video::consents::list","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"consents":{"type":"array","items":{"type":"object","properties":{"agreementKey":{"type":["string","null"]},"attestedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"creatorEmail":{"type":["string","null"]},"creatorHandle":{"type":["string","null"]},"creatorName":{"type":"string"},"endsOn":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rights":{"type":"string","enum":["own_site"]},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["agreementKey","attestedBy","createdAt","creatorEmail","creatorHandle","creatorName","endsOn","id","rights","videoId"],"additionalProperties":false}}},"required":["requestId","statusCode","success","consents"],"additionalProperties":false}}},"description":"ok"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["forbidden"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"forbidden"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"A video's consent attestations, newest first","tags":["video"]},"post":{"operationId":"video::consents::attest","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"agreementKey":{"description":"From `PUT /videos/{id}/consents/agreement`","type":"string","minLength":1,"maxLength":300},"creatorEmail":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"creatorHandle":{"type":"string","minLength":1,"maxLength":100},"creatorName":{"type":"string","minLength":1,"maxLength":200},"endsOn":{"description":"Last day the rights hold; open-ended if absent","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"rights":{"default":"own_site","description":"Use on the merchant's own site","type":"string","enum":["own_site"]}},"type":"object","required":["creatorName"]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"consent":{"type":"object","properties":{"agreementKey":{"type":["string","null"]},"attestedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"creatorEmail":{"type":["string","null"]},"creatorHandle":{"type":["string","null"]},"creatorName":{"type":"string"},"endsOn":{"type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rights":{"type":"string","enum":["own_site"]},"videoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["agreementKey","attestedBy","createdAt","creatorEmail","creatorHandle","creatorName","endsOn","id","rights","videoId"],"additionalProperties":false}},"required":["requestId","statusCode","success","consent"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["agreement_not_found","video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"agreement_not_found, video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_shared"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_shared"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["consent_storage_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"consent_storage_unavailable"}},"summary":"Attest the creator's consent; appended, so a correction is a new attestation","tags":["video"]}},"/v1/videos/{id}/consents/agreement":{"put":{"operationId":"video::consents::agreement","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/pdf":{"schema":{"format":"binary","type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"agreement":{"type":"object","properties":{"agreementKey":{"type":"string"}},"required":["agreementKey"],"additionalProperties":false}},"required":["requestId","statusCode","success","agreement"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_found"},"409":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_shared"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":409,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_shared"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["consent_storage_unavailable"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":503,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"consent_storage_unavailable"}},"summary":"Store a signed agreement PDF (≤ 10 MB) in the EU bucket, sweeping the video's unattested ones over a day old; attest with its key","tags":["video"]}},"/v1/videos/{id}/uploaded":{"post":{"operationId":"video::uploaded","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number"},"success":{"type":"boolean","const":true},"video":{"type":"object","properties":{"captions":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"source":{"type":"string","enum":["generated","uploaded"]},"status":{"type":"string","enum":["inprogress","ready","error"]}},"required":["language","source","status"],"additionalProperties":false}},"createdAt":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"errorCode":{"type":["string","null"]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"posterPct":{"type":"number"},"posterUrl":{"type":["string","null"]},"previewUrl":{"type":["string","null"]},"readyAt":{"type":["string","null"]},"scope":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"level":{"type":"string","enum":["org","site","location"]}},"required":["id","level"],"additionalProperties":false,"description":"Who it belongs to: everyone (org), a site or a store (location). Members scoped elsewhere see everyone's content read-only."},"shared":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"streamUid":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"},"uploadExpiresAt":{"type":["string","null"]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["captions","createdAt","durationMs","errorCode","height","id","posterPct","posterUrl","previewUrl","readyAt","scope","shared","sizeBytes","status","streamUid","title","updatedAt","uploadExpiresAt","width"],"additionalProperties":false}},"required":["requestId","statusCode","success","video"],"additionalProperties":false}}},"description":"ok"},"400":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["bad_request"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":400,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"bad_request"},"401":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_unauthenticated"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":401,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_unauthenticated"},"403":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["auth_csrf_rejected","forbidden","out_of_scope"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":403,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"auth_csrf_rejected, forbidden, out_of_scope"},"404":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["video_not_found"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":404,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"video_not_found"},"422":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["validation_failed"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":422,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"validation_failed"},"429":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{},"type":"object"},"errorCode":{"enum":["rate_limited"],"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"statusCode":{"const":429,"type":"integer"},"success":{"const":false,"type":"boolean"}},"required":["requestId","statusCode","success","errorCode","message"],"type":"object"}}},"description":"rate_limited"}},"summary":"Report that the browser finished the TUS upload; the video moves to `processing`","tags":["video"]}}},"tags":[{"name":"analytics"},{"name":"apikey"},{"name":"assignment"},{"name":"auth"},{"name":"collection"},{"name":"connection"},{"name":"connector"},{"name":"experience"},{"name":"font"},{"name":"image"},{"name":"invite"},{"name":"layout"},{"name":"listing"},{"name":"location"},{"name":"member"},{"name":"order"},{"name":"org"},{"name":"organization"},{"name":"playlist"},{"name":"product"},{"name":"role"},{"name":"schedule"},{"name":"screen"},{"name":"screengroup"},{"name":"site"},{"name":"tag"},{"name":"theme"},{"name":"video"}],"servers":[{"url":"https://api.loomieo.com"}]}