{"openapi":"3.1.0","info":{"title":"Stellar AIO Public API","version":"1.0.0","description":"REST API for the Stellar AIO desktop app: task groups, tasks, start and stop, statuses and logs.\n\nBase URL: `https://api.stellaraio.com/v1`\n\n## Quick start\n\n1. In the desktop app open Settings, Account, Public API. Create a key and copy it. It is shown once.\n2. On the same page turn on Allow Public API. Do this on every computer the key should reach.\n3. Call the API with the key:\n\n```\ncurl https://api.stellaraio.com/v1/instances \\\n  -H \"Authorization: Bearer YOUR_API_KEY\"\n```\n\nTake an instance `id` from the answer. Every other endpoint is under `/instances/{instanceId}`.\n\n## How it works\n\nThe API does not store your tasks. Each request is passed to your running desktop app, which does the work and\nanswers. So the app has to be open and online, and a request can fail because the app is closed\n(`not_found`), went away mid-request (`instance_offline`) or was too slow (`instance_timeout`).\n\nIds are opaque strings. Do not parse them.\n\n## Keys and scopes\n\nA key belongs to your account and reaches every instance on it that has Allow Public API on. Pick scopes when you\ncreate the key:\n\n| Scope | Allows |\n| --- | --- |\n| `read` | instances, task groups, tasks, statuses, logs, schema, proxy and profile group names |\n| `tasks.write` | create, edit and delete tasks and task groups |\n| `tasks.run` | start, stop and restart tasks |\n\nDeleting a key in the app stops it working right away. A key never gives access to profiles, cards, proxies or\naccount passwords: the API returns ids and names only.\n\n## Responses\n\nSuccess is `200` or `201` with the result under `data`:\n\n```\n{ \"data\": { \"ok\": true, \"created\": 2, \"ids\": [\"BHvEKT0Xn0ipaD7dSShYW\", \"3Fa78xg2K5yvK4l6V1BI-\"] } }\n```\n\nFailure is a 4xx or 5xx status with an `error`:\n\n```\n{ \"error\": { \"code\": \"api_disabled\", \"message\": \"Allow Public API is switched off on this instance\" } }\n```\n\nBranch on `code`. `message` is for people and can change.\n\n| Status | Code | Meaning |\n| --- | --- | --- |\n| 400 | `bad_request` | A parameter or the body is wrong. The message names the field. |\n| 401 | `unauthorized` | No key, a malformed key, or a key that was removed. |\n| 403 | `missing_scope` | The key lacks the scope the endpoint needs. |\n| 403 | `api_disabled` | Allow Public API is off on that instance. |\n| 404 | `not_found` | No such endpoint, online instance, group, task or site. |\n| 409 | `key_limit` | The account already has the maximum number of keys. |\n| 409 | `instance_offline` | The app went offline. |\n| 409 | `request_in_progress` | A request with the same Idempotency-Key is still running. |\n| 422 | `instance_rejected` | The app refused the change. The message is its reason. |\n| 429 | `rate_limited` | Too many requests. See Retry-After. |\n| 502 | `instance_failed` | The app could not complete the request. |\n| 503 | `unavailable` | Too many requests in flight. Try again. |\n| 504 | `instance_timeout` | The app did not answer in time. A write may still have gone through. |\n\nWhen the app itself turns a change down, for example a task with a required field missing, the code is\n`bad_request` or `instance_rejected` and the message is the one the app would show.\n\n## Rate limits\n\nPer key, per minute:\n\n| Requests | Limit |\n| --- | --- |\n| Reads | 300 |\n| Status snapshots and stream opens | 60 |\n| Writes, including start, stop and restart | 60 |\n\nOver the limit you get `429` with a `Retry-After` header in seconds. Many requests with a wrong key block the\nsending IP address for a minute.\n\n## Retrying writes\n\nSend an `Idempotency-Key` header (8 to 128 characters) with a write. If you repeat the request with the same key\nand the same body, you get the first result back and nothing runs twice. That holds for up to ten minutes, less\nwhen the app is busy, and not across a restart of the app. The same key with a different body counts as a new\nrequest.\n\nAfter `instance_timeout` on a write, read the current state before you retry without a key.\n"},"servers":[{"url":"https://api.stellaraio.com/v1"}],"security":[{"apiKey":[]}],"tags":[{"name":"Instances"},{"name":"Task groups"},{"name":"Tasks"},{"name":"Run"},{"name":"Statuses and logs"},{"name":"Schema"},{"name":"Proxies and profiles"}],"paths":{"/instances":{"get":{"operationId":"listInstances","tags":["Instances"],"summary":"List online instances","description":"The desktop apps running on your account right now. An app that is closed is not in the list. Only instances with `apiEnabled: true` answer the other endpoints.\n\nScope: `read`.","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Instance"}}}},"example":{"data":[{"id":"1pEEAi_F52IXhCtSUJfC","license":"S-••••••-••••••••-E581B8W","online":true,"apiEnabled":true,"appVersion":"4.0.42","engineVersion":"9.0.94","platform":"win32","runningTasks":12,"runningGroups":2,"connectedAt":1795435516335}]}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups":{"get":{"operationId":"listTaskGroups","tags":["Task groups"],"summary":"List task groups","description":"Scope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["groups"],"properties":{"groups":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroup"}}}}}},"example":{"data":{"groups":[{"id":"IcySETxKJIfH1fXVG7iRg","name":"Argos consoles","site":"Argos","isFavorite":false,"favoriteSortIndex":0,"sortIndex":0,"created":1795435713020,"webhooks":null,"taskCount":2}]}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}},"post":{"operationId":"createTaskGroup","tags":["Task groups"],"summary":"Create a task group","description":"A group holds tasks of one site. Take the site name from `GET /schema`.\n\nScope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"site":{"type":"string","minLength":1,"maxLength":64}},"required":["name","site"],"additionalProperties":false},"example":{"name":"Argos consoles","site":"Argos"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["ok","id","name","site"],"properties":{"ok":{"type":"boolean","const":true},"id":{"type":"string","description":"Id of the new group."},"name":{"type":"string","description":"Its name."},"site":{"type":"string","description":"Its site."}}}}},"example":{"data":{"ok":true,"id":"IcySETxKJIfH1fXVG7iRg","name":"Argos consoles","site":"Argos"}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}":{"patch":{"operationId":"renameTaskGroup","tags":["Task groups"],"summary":"Rename a task group","description":"Scope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100}},"required":["name"],"additionalProperties":false},"example":{"name":"Argos consoles (night)"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["ok","id","name"],"properties":{"ok":{"type":"boolean","const":true},"id":{"type":"string","description":"Group id."},"name":{"type":"string","description":"The new name."}}}}},"example":{"data":{"ok":true,"id":"IcySETxKJIfH1fXVG7iRg","name":"Argos consoles (night)"}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}},"delete":{"operationId":"deleteTaskGroup","tags":["Task groups"],"summary":"Delete a task group","description":"Stops and deletes every task in the group, then the group.\n\nScope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/tasks":{"get":{"operationId":"listTasks","tags":["Tasks"],"summary":"List the tasks of a group","description":"Returns one page. While `nextCursor` is not null, send it back as `cursor` for the next page. `q` filters by text. For the full settings of a task use `GET /tasks/{taskId}`.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["group","tasks","nextCursor","total"],"properties":{"group":{"$ref":"#/components/schemas/TaskGroup"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/TaskSummary"}},"nextCursor":{"type":["string","null"],"description":"Cursor of the next page, null on the last one."},"total":{"type":"integer","description":"Number of tasks that match."}}}}},"example":{"data":{"group":{"id":"IcySETxKJIfH1fXVG7iRg","name":"Argos consoles","site":"Argos","isFavorite":false,"favoriteSortIndex":0,"sortIndex":0,"created":1795435713020,"webhooks":null},"tasks":[{"id":"BHvEKT0Xn0ipaD7dSShYW","name":"","identifier":"1234567","mode":"normal","site":"Argos","profileName":"Home UK","checkoutSet":"resi uk"}],"nextCursor":null,"total":1}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}},"post":{"operationId":"createTasks","tags":["Tasks"],"summary":"Create tasks","description":"Creates tasks for the site of the group. `mode` is a mode from `GET /schema/{site}` and `details` holds the fields of that mode, keyed by field `name`.\n\nYou get one task per entry in `profileIds`, times `copies`. A profile is written `<profileGroupId>:<profileId>`, both from `GET /profile-groups`. Modes that take no profile need no `profileIds`. `monitorSetId`, `checkoutSetId` and `queueSetId` are ids from `GET /proxy-groups`.\n\nSend every required field, including those the schema lists with a `defaultValue`: defaults are what the app form starts with, the API does not fill them in. The app checks the task the same way its New Task form does and its message tells you what is missing.\n\nScope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","maxLength":100},"profileIds":{"maxItems":2000,"type":"array","items":{"type":"string","pattern":"^[^:]{1,128}:[^:]{1,128}$"}},"accountIds":{"maxItems":2000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},"profileSetId":{"type":"string","maxLength":128},"profileId":{"type":"string","maxLength":128},"monitorSetId":{"type":"string","maxLength":128},"checkoutSetId":{"type":"string","maxLength":128},"queueSetId":{"type":"string","maxLength":128},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"copies":{"type":"integer","minimum":1,"maximum":1000},"csvList":{"type":"string","maxLength":200000},"csvSeparator":{"type":"string","minLength":1,"maxLength":3}},"required":["mode"],"additionalProperties":false},"example":{"mode":"normal","profileIds":["3717c65f-03f2-42a0-8efe-943fefa4fc5a:d0f313d2-f9a6-46e8-a4d7-fea770504b99"],"checkoutSetId":"10b9b77d-7104-49d9-9937-cc48b66978ad","details":{"sku":"1234567","qty":"1","delay":"3000"},"copies":2}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["ok","created","ids"],"properties":{"ok":{"type":"boolean","const":true},"created":{"type":"integer","description":"Number of tasks created."},"ids":{"type":"array","items":{"type":"string"},"description":"Their ids."}}}}},"example":{"data":{"ok":true,"created":2,"ids":["BHvEKT0Xn0ipaD7dSShYW","3Fa78xg2K5yvK4l6V1BI-"]}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"Delay is required"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/tasks/bulk-edit":{"post":{"operationId":"bulkEditTasks","tags":["Tasks"],"summary":"Edit many tasks","description":"Applies one `patch` to every task in `taskIds`. The tasks can be in different groups. `details` is merged into the settings of each task, `clearDetails` names settings to remove.\n\nScope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"taskIds":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},"patch":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"profileSetId":{"type":"string","maxLength":128},"profileId":{"type":"string","maxLength":128},"monitorSetId":{"type":"string","maxLength":128},"checkoutSetId":{"type":"string","maxLength":128},"queueSetId":{"type":"string","maxLength":128},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"clearDetails":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":64}}},"additionalProperties":false}},"required":["taskIds","patch"],"additionalProperties":false},"example":{"taskIds":["BHvEKT0Xn0ipaD7dSShYW","3Fa78xg2K5yvK4l6V1BI-"],"patch":{"checkoutSetId":"10b9b77d-7104-49d9-9937-cc48b66978ad","details":{"delay":"2500"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["ok","updated"],"properties":{"ok":{"type":"boolean","const":true},"updated":{"type":"integer","description":"Number of tasks changed."}}}}},"example":{"data":{"ok":true,"updated":2}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/tasks/bulk-delete":{"post":{"operationId":"bulkDeleteTasks","tags":["Tasks"],"summary":"Delete many tasks","description":"Stops and deletes the listed tasks of this group. To delete all of them, delete the group.\n\nScope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"taskIds":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}},"required":["taskIds"],"additionalProperties":false},"example":{"taskIds":["BHvEKT0Xn0ipaD7dSShYW","3Fa78xg2K5yvK4l6V1BI-"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["ok","deleted"],"properties":{"ok":{"type":"boolean","const":true},"deleted":{"type":"integer","description":"Number of tasks deleted."}}}}},"example":{"data":{"ok":true,"deleted":2}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/tasks/{taskId}":{"get":{"operationId":"getTask","tags":["Tasks"],"summary":"Get a task","description":"Scope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Task"}}},"example":{"data":{"id":"BHvEKT0Xn0ipaD7dSShYW","groupId":"IcySETxKJIfH1fXVG7iRg","groupName":"Argos consoles","name":"","mode":"normal","site":"Argos","identifier":"1234567","profileSetId":"3717c65f-03f2-42a0-8efe-943fefa4fc5a","profileId":"d0f313d2-f9a6-46e8-a4d7-fea770504b99","monitorSetId":"","checkoutSetId":"10b9b77d-7104-49d9-9937-cc48b66978ad","queueSetId":"","details":{"sku":"1234567","qty":1,"delay":3000,"startTime":[],"endTime":[]},"profileName":"Home UK","monitorSet":"","checkoutSet":"resi uk","queueSet":""}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}},"patch":{"operationId":"editTask","tags":["Tasks"],"summary":"Edit a task","description":"Send only what changes. `details` is merged into the settings of the task, `clearDetails` names settings to remove. A running task picks up fields the schema marks `liveEditable`; other changes apply on the next start.\n\nScope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"profileSetId":{"type":"string","maxLength":128},"profileId":{"type":"string","maxLength":128},"monitorSetId":{"type":"string","maxLength":128},"checkoutSetId":{"type":"string","maxLength":128},"queueSetId":{"type":"string","maxLength":128},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"clearDetails":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":64}},"mode":{"type":"string","minLength":1,"maxLength":64},"identifier":{"type":"string","maxLength":500}},"additionalProperties":false},"example":{"details":{"qty":"2"},"checkoutSetId":"10b9b77d-7104-49d9-9937-cc48b66978ad"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"nothing to change"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}},"delete":{"operationId":"deleteTask","tags":["Tasks"],"summary":"Delete a task","description":"Stops the task first if it is running.\n\nScope: `tasks.write`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.write scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/start":{"post":{"operationId":"startTaskGroup","tags":["Run"],"summary":"Start a task group","description":"With no body, every task in the group is started. Send `taskIds` to pick some. Ids that are not in this group are ignored, and the request is refused when none of them are. To start in batches, send `staggerBatchSize` and `staggerDelayMs`, for example `{ \"staggerBatchSize\": 10, \"staggerDelayMs\": 2500 }` starts 10 tasks every 2.5 seconds. The call returns once the app has taken the command. Follow the result through the statuses.\n\nScope: `tasks.run`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"taskIds":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},"staggerBatchSize":{"type":"integer","minimum":1,"maximum":10000},"staggerDelayMs":{"type":"integer","minimum":1,"maximum":600000}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.run scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"none of these tasks are in this group"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/tasks/{taskId}/start":{"post":{"operationId":"startTask","tags":["Run"],"summary":"Start one task","description":"Scope: `tasks.run`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.run scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/stop":{"post":{"operationId":"stopTaskGroup","tags":["Run"],"summary":"Stop a task group","description":"With no body, every task in the group is stopped. Send `taskIds` to pick some. Ids that are not in this group are ignored, and the request is refused when none of them are. The call returns once the app has taken the command. Follow the result through the statuses.\n\nScope: `tasks.run`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"taskIds":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},"staggerBatchSize":{"type":"integer","minimum":1,"maximum":10000},"staggerDelayMs":{"type":"integer","minimum":1,"maximum":600000}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.run scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"none of these tasks are in this group"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/tasks/{taskId}/stop":{"post":{"operationId":"stopTask","tags":["Run"],"summary":"Stop one task","description":"Scope: `tasks.run`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.run scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/restart":{"post":{"operationId":"restartTaskGroup","tags":["Run"],"summary":"Restart a task group","description":"With no body, every task in the group is restarted. Send `taskIds` to pick some. Ids that are not in this group are ignored, and the request is refused when none of them are. The call returns once the app has taken the command. Follow the result through the statuses.\n\nScope: `tasks.run`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"taskIds":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},"staggerBatchSize":{"type":"integer","minimum":1,"maximum":10000},"staggerDelayMs":{"type":"integer","minimum":1,"maximum":600000}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.run scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"none of these tasks are in this group"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/tasks/{taskId}/restart":{"post":{"operationId":"restartTask","tags":["Run"],"summary":"Restart one task","description":"Scope: `tasks.run`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Lets you repeat this request without running it twice. See Retrying writes.","schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Ok"}}},"example":{"data":{"ok":true}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the tasks.run scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline. `request_in_progress`: A request with the same Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}},"request_in_progress":{"value":{"error":{"code":"request_in_progress","message":"a request with this Idempotency-Key is still running"}}}}}}},"422":{"description":"`instance_rejected`: The app refused the change. The message is its reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_rejected":{"value":{"error":{"code":"instance_rejected","message":"This mode requires a profile!"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/statuses":{"get":{"operationId":"listTaskStatuses","tags":["Statuses and logs"],"summary":"Get the task statuses of a group","description":"The current status of every task in the group that has one. A task that has not run since the app started has none and is left out. Limited to 60 requests per minute; to follow a group, use the stream.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TaskStatus"}}}},"example":{"data":[{"taskId":"BHvEKT0Xn0ipaD7dSShYW","groupId":"IcySETxKJIfH1fXVG7iRg","isRunning":true,"type":"INFO","message":"Adding to Cart (1)","productIdentifier":"1234567","queuePosition":0,"runtimeProfileId":"","runtimeAccountId":"","canOpenBrowser":{"canOpen":false,"url":""}},{"taskId":"3Fa78xg2K5yvK4l6V1BI-","groupId":"IcySETxKJIfH1fXVG7iRg","isRunning":false,"type":"STOP","message":"Stopped","productIdentifier":"1234567","queuePosition":0,"runtimeProfileId":"","runtimeAccountId":"","canOpenBrowser":{"canOpen":false,"url":""}}]}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/events":{"get":{"operationId":"streamTaskStatuses","tags":["Statuses and logs"],"summary":"Stream the task statuses of a group","description":"Server-Sent Events. The stream has three events:\n\n- `snapshot`: `{ groupId, statuses }` with the full status of every task that has one. Sent first, and again later now and then. Replace what you hold for those tasks.\n- `status`: `{ groupId, statuses }` with the tasks that changed. A row has `taskId` and the fields that changed. Merge it into what you hold.\n- `end`: `{ code, message }`, then the stream closes. Sent when the app goes offline, Allow Public API is switched off or the key is removed, within about 30 seconds of it happening.\n\nLines starting with `:` are keep-alives. Nothing is replayed after a dropped connection: reconnect and take the new snapshot. A key can hold 5 streams open at a time.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"type":"string"},"example":"event: snapshot\ndata: {\"groupId\":\"IcySETxKJIfH1fXVG7iRg\",\"statuses\":[{\"taskId\":\"BHvEKT0Xn0ipaD7dSShYW\",\"groupId\":\"IcySETxKJIfH1fXVG7iRg\",\"isRunning\":true,\"type\":\"INFO\",\"message\":\"Getting Home Page\",\"productIdentifier\":\"1234567\",\"queuePosition\":0,\"runtimeProfileId\":\"\",\"runtimeAccountId\":\"\",\"canOpenBrowser\":{\"canOpen\":false,\"url\":\"\"}}]}\n\nevent: status\ndata: {\"groupId\":\"IcySETxKJIfH1fXVG7iRg\",\"statuses\":[{\"taskId\":\"BHvEKT0Xn0ipaD7dSShYW\",\"isRunning\":true,\"type\":\"INFO\",\"message\":\"Adding to Cart (1)\"}]}\n\n: ping\n\nevent: status\ndata: {\"groupId\":\"IcySETxKJIfH1fXVG7iRg\",\"statuses\":[{\"taskId\":\"BHvEKT0Xn0ipaD7dSShYW\",\"type\":\"STOP\",\"message\":\"Stopped\",\"isRunning\":false,\"queuePosition\":0,\"runtimeProfileId\":\"\"}]}\n\nevent: end\ndata: {\"code\":\"instance_offline\",\"message\":\"the instance is offline\"}\n"}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/tasks/{taskId}/logs":{"get":{"operationId":"getTaskLogs","tags":["Statuses and logs"],"summary":"Get the log of a task","description":"Newest lines first. While `hasMore` is true, send the returned `before` back to get older lines.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"before","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":2000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["entries","hasMore","before"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/LogEntry"}},"hasMore":{"type":"boolean","description":"Whether older lines exist."},"before":{"type":["integer","null"],"description":"Date of the oldest line returned, null when there are none."}}}}},"example":{"data":{"entries":[{"date":1795435959670,"level":"INFO","message":"Adding to Cart (1)"},{"date":1795435957110,"level":"INFO","message":"Getting Product (1)"},{"date":1795435955020,"level":"INFO","message":"Getting Home Page"},{"date":1795435954800,"level":"INFO","message":"Starting"}],"hasMore":false,"before":1795435954800}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/task-groups/{groupId}/logs":{"get":{"operationId":"getTaskGroupLogs","tags":["Statuses and logs"],"summary":"Summarise the logs of a group","description":"Counts the log lines of all tasks in the group between `since` and `until` and returns the most frequent ones. Use it to see what a group is stuck on without reading every task.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"until","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"topN","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["groupId","taskCount","tasksWithLogs","totalLines","uniqueMessages","truncated","from","to","top"],"properties":{"groupId":{"type":"string","description":"Group id."},"taskCount":{"type":"integer","description":"Tasks in the group."},"tasksWithLogs":{"type":"integer","description":"Tasks that logged anything in the range."},"totalLines":{"type":"integer","description":"Lines counted."},"uniqueMessages":{"type":"integer","description":"Distinct lines."},"truncated":{"type":"boolean","description":"True when the range held more lines than were counted."},"from":{"type":["integer","null"],"description":"Date of the first line counted."},"to":{"type":["integer","null"],"description":"Date of the last line counted."},"top":{"type":"array","items":{"$ref":"#/components/schemas/LogSummaryRow"},"description":"Most frequent lines first."}}}}},"example":{"data":{"groupId":"IcySETxKJIfH1fXVG7iRg","taskCount":15,"tasksWithLogs":15,"totalLines":4810,"uniqueMessages":9,"truncated":false,"from":1795435954800,"to":1795436859670,"top":[{"message":"Adding to Cart (1) : proxy banned - rotating","level":"INFO","hits":3120,"taskCount":15,"firstOccurrence":1795435960100,"lastOccurrence":1795436859670,"pct":64.9}]}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/schema":{"get":{"operationId":"listSites","tags":["Schema"],"summary":"List the sites an instance supports","description":"Sites differ between app versions, so read them from the instance you are going to use.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["version","sites"],"properties":{"version":{"type":"string","description":"Changes whenever the task schema of the instance does."},"sites":{"type":"array","items":{"type":"string"},"description":"Site names."}}}}},"example":{"data":{"version":"42f9491c4fb66d36","sites":["Adafruit","Amazon","Apple","Argos","Asda"]}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/schema/{site}":{"get":{"operationId":"getSiteSchema","tags":["Schema"],"summary":"Get the modes and task fields of a site","description":"The modes of a site and the fields a task takes in each. A field `name` is its key in a task `details`. `uiParams` says whether the mode takes a profile and proxy groups. The site name is not case sensitive.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}},{"name":"site","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9 _.&'+-]{1,64}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["version","site","modes"],"properties":{"version":{"type":"string","description":"Schema version."},"site":{"type":"string","description":"Site name as the instance spells it."},"modes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SiteMode"},"description":"Modes by name."}}}}},"example":{"data":{"version":"42f9491c4fb66d36","site":"Argos","modes":{"normal":{"uiParams":{"profile":{"required":true,"enabled":true},"checkoutSet":{"required":false,"enabled":true},"monitorSet":{"required":false,"enabled":false}},"taskParams":[{"type":"input","name":"sku","message":"SKU","hint":"Product SKU","required":true},{"type":"number","name":"qty","message":"Qty","hint":"Quantity of the item you want to buy.","required":true,"defaultValue":"1"},{"type":"number","name":"delay","message":"Delay","hint":"Amount of time before retrying after an error.","required":true,"defaultValue":"3000","liveEditable":true}]}}}}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/proxy-groups":{"get":{"operationId":"listProxyGroups","tags":["Proxies and profiles"],"summary":"List proxy groups","description":"Ids and names only, never the proxies. Use an id as `monitorSetId`, `checkoutSetId` or `queueSetId`.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NamedGroup"}}}},"example":{"data":[{"id":"10b9b77d-7104-49d9-9937-cc48b66978ad","name":"resi uk"},{"id":"3da65276-a70e-4ef6-8b3c-5d628e1c5f7c","name":"isp monitor"}]}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}},"/instances/{instanceId}/profile-groups":{"get":{"operationId":"listProfileGroups","tags":["Proxies and profiles"],"summary":"List profile groups and their profiles","description":"Ids and names only, never addresses or cards. A task takes a profile as `<groupId>:<profileId>`.\n\nScope: `read`.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProfileGroup"}}}},"example":{"data":[{"id":"3717c65f-03f2-42a0-8efe-943fefa4fc5a","name":"UK","profiles":[{"id":"d0f313d2-f9a6-46e8-a4d7-fea770504b99","name":"Home UK"}]}]}}}},"400":{"description":"`bad_request`: A parameter or the body is wrong. The message names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"bad_request":{"value":{"error":{"code":"bad_request","message":"limit: Too big: expected number to be <=500"}}}}}}},"401":{"description":"`unauthorized`: No key, a malformed key, or a key that was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unauthorized":{"value":{"error":{"code":"unauthorized","message":"missing or invalid API key"}}}}}}},"403":{"description":"`missing_scope`: The key lacks the scope the endpoint needs. `api_disabled`: Allow Public API is off on that instance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_scope":{"value":{"error":{"code":"missing_scope","message":"this key lacks the read scope"}}},"api_disabled":{"value":{"error":{"code":"api_disabled","message":"Allow Public API is switched off on this instance"}}}}}}},"404":{"description":"`not_found`: No such endpoint, online instance, group, task or site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"no such online instance on this account"}}}}}}},"409":{"description":"`instance_offline`: The app went offline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_offline":{"value":{"error":{"code":"instance_offline","message":"the instance is offline"}}}}}}},"429":{"description":"`rate_limited`: Too many requests. See Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"too many requests, slow down"}}}}}}},"502":{"description":"`instance_failed`: The app could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_failed":{"value":{"error":{"code":"instance_failed","message":"the instance could not complete the request"}}}}}}},"503":{"description":"`unavailable`: Too many requests in flight. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unavailable":{"value":{"error":{"code":"unavailable","message":"too many requests in flight, try again"}}}}}}},"504":{"description":"`instance_timeout`: The app did not answer in time. A write may still have gone through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"instance_timeout":{"value":{"error":{"code":"instance_timeout","message":"the instance did not answer in time"}}}}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Settings, Account, Public API."}},"schemas":{"Instance":{"type":"object","required":["id","license","online","apiEnabled","appVersion","engineVersion","platform","runningTasks","runningGroups","connectedAt"],"properties":{"id":{"type":"string","description":"Instance id. Use it as `instanceId`."},"license":{"type":"string","description":"The license key the app runs on, masked."},"online":{"type":"boolean","description":"Always true: offline instances are not listed."},"apiEnabled":{"type":"boolean","description":"Whether Allow Public API is on in that app. When false, every other endpoint answers `api_disabled`."},"appVersion":{"type":"string","description":"Desktop app version."},"engineVersion":{"type":"string","description":"Engine version."},"platform":{"type":"string","description":"`win32`, `darwin` or `linux`."},"runningTasks":{"type":"integer","description":"Tasks running right now."},"runningGroups":{"type":"integer","description":"Task groups with at least one running task."},"connectedAt":{"type":"integer","description":"When the app connected. Unix time in milliseconds."}}},"TaskGroup":{"type":"object","required":["id","name","site"],"properties":{"id":{"type":"string","description":"Group id. Use it as `groupId`."},"name":{"type":"string","description":"Group name."},"site":{"type":"string","description":"Site the group belongs to."},"isFavorite":{"type":"boolean","description":"Pinned in the app."},"favoriteSortIndex":{"type":"integer","description":"Position among pinned groups."},"sortIndex":{"type":"integer","description":"Position in the group list."},"created":{"type":"integer","description":"When the group was created. Unix time in milliseconds."},"taskCount":{"type":"integer","description":"Number of tasks in the group. Only in the group list."},"webhooks":{"description":"Per-group webhook settings, or null."}}},"TaskSummary":{"type":"object","required":["id","name","identifier","mode","site","profileName","checkoutSet"],"properties":{"id":{"type":"string","description":"Task id. Use it as `taskId`."},"name":{"type":"string","description":"Task name, often empty."},"identifier":{"type":"string","description":"What the task targets: a SKU, URL or keyword, depending on the site."},"mode":{"type":"string","description":"Mode of the site."},"site":{"type":"string","description":"Site."},"profileName":{"type":"string","description":"Name of the profile, empty when the mode uses none."},"checkoutSet":{"type":"string","description":"Name of the checkout proxy group."}}},"Task":{"type":"object","required":["id","groupId","groupName","name","mode","site","identifier","profileSetId","profileId","monitorSetId","checkoutSetId","queueSetId","details","profileName","monitorSet","checkoutSet","queueSet"],"properties":{"id":{"type":"string","description":"Task id."},"groupId":{"type":"string","description":"Id of the group the task is in."},"groupName":{"type":"string","description":"Name of that group."},"name":{"type":"string","description":"Task name, often empty."},"mode":{"type":"string","description":"Mode of the site."},"site":{"type":"string","description":"Site."},"identifier":{"type":"string","description":"What the task targets: a SKU, URL or keyword, depending on the site."},"profileSetId":{"type":"string","description":"Profile group id, empty when none."},"profileId":{"type":"string","description":"Profile id, empty when none."},"monitorSetId":{"type":"string","description":"Monitor proxy group id, empty when none."},"checkoutSetId":{"type":"string","description":"Checkout proxy group id, empty when none."},"queueSetId":{"type":"string","description":"Queue proxy group id, empty when none."},"details":{"type":"object","additionalProperties":true,"description":"The fields of the mode, keyed by field `name` from the site schema."},"profileName":{"type":"string","description":"Name of the profile."},"monitorSet":{"type":"string","description":"Name of the monitor proxy group."},"checkoutSet":{"type":"string","description":"Name of the checkout proxy group."},"queueSet":{"type":"string","description":"Name of the queue proxy group."}}},"TaskStatus":{"type":"object","required":["taskId"],"properties":{"taskId":{"type":"string","description":"Task the status belongs to."},"groupId":{"type":"string","description":"Group of the task. Present in snapshots."},"isRunning":{"type":"boolean","description":"Whether the task is running."},"type":{"type":"string","description":"Kind of status, for example `INFO` or `STOP`."},"message":{"type":"string","description":"Status text as the app shows it, for example `Adding to Cart (1)`."},"productIdentifier":{"type":"string","description":"Product the task is working on, when known."},"queuePosition":{"type":"integer","description":"Position in a site queue, 0 when not queued."},"runtimeProfileId":{"type":"string","description":"Profile the task is using right now."},"runtimeAccountId":{"type":"string","description":"Account the task is using right now."},"canOpenBrowser":{"type":"object","required":["canOpen","url"],"properties":{"canOpen":{"type":"boolean","description":"Whether the task has a page to open."},"url":{"type":"string","description":"That page."}}}},"additionalProperties":true},"LogEntry":{"type":"object","required":["date","level","message"],"properties":{"date":{"type":"integer","description":"When the line was logged. Unix time in milliseconds."},"level":{"type":"string","description":"`INFO`, `WARN`, `ERROR` and so on."},"message":{"type":"string","description":"Log line."}}},"LogSummaryRow":{"type":"object","required":["message","level","hits","taskCount","firstOccurrence","lastOccurrence","pct"],"properties":{"message":{"type":"string","description":"Log line."},"level":{"type":"string","description":"Level of the line."},"hits":{"type":"integer","description":"How many times it was logged."},"taskCount":{"type":"integer","description":"How many tasks logged it."},"firstOccurrence":{"type":"integer","description":"First time it was logged. Unix time in milliseconds."},"lastOccurrence":{"type":"integer","description":"Last time it was logged. Unix time in milliseconds."},"pct":{"type":"number","description":"Share of all lines, in percent."}}},"SiteField":{"type":"object","required":["type","name"],"properties":{"type":{"type":"string","description":"Input type: `input`, `number`, `confirm`, `list`, `account`, `daytime` and others."},"name":{"type":"string","description":"Key of the field in a task `details`."},"message":{"type":"string","description":"Label in the app."},"hint":{"type":"string","description":"Help text in the app."},"required":{"type":"boolean","description":"Whether a task must have it."},"defaultValue":{"description":"Value the app form starts with. The API does not fill it in."},"choices":{"type":"array","items":{},"description":"Allowed values of a `list` field."},"liveEditable":{"type":"boolean","description":"Whether a running task picks up a change."}},"additionalProperties":true},"SiteMode":{"type":"object","required":["taskParams"],"properties":{"uiParams":{"type":"object","additionalProperties":true,"description":"Whether the mode takes a profile, a checkout proxy group and a monitor proxy group."},"taskParams":{"type":"array","items":{"$ref":"#/components/schemas/SiteField"}}}},"NamedGroup":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Group id."},"name":{"type":"string","description":"Group name."}}},"ProfileGroup":{"type":"object","required":["id","name","profiles"],"properties":{"id":{"type":"string","description":"Profile group id."},"name":{"type":"string","description":"Profile group name."},"profiles":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Profile id."},"name":{"type":"string","description":"Profile name."}}}}}},"Ok":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean","const":true}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized","missing_scope","bad_request","not_found","key_limit","api_disabled","instance_offline","instance_timeout","instance_failed","instance_rejected","request_in_progress","rate_limited","unavailable"],"description":"Stable. Branch on this."},"message":{"type":"string","description":"For people. Can change."}}}}}}}}