{"openapi":"3.1.0","info":{"title":"DilliC","description":"Planning and change management for organisations.\n\nEverything the web app and the phone app do, they do through this API. Sign in with an access token in the `Authorization` header. Send an `Idempotency-Key` header with a POST or a PATCH to make it safe to repeat.\n\nA response marked `x-dillic-recorded` was read off the answers the test suite received, not declared in the code: a field the suite never saw is missing from it. `/openapi/index.json` lists this description in parts small enough to read one at a time.","version":"1.0.0"},"paths":{"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Sign in with an email address and a password. A browser gets the\nsession cookie; a sign-in that names a device gets a device token in the\nbody instead, shown once. Either answers with the person's id, email and\nfull name.\n\nAn account that owes a second factor gets neither. The answer is then an\n`mfa` challenge: a handle, what it waits for, how it may be answered and\nhow long it lasts. Too many attempts are refused for a time, and the\nreply says how long to wait.","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"expires_at":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"},"mfa":{"properties":{"action":{"type":"string"},"challenge":{"type":"string"},"expires_in":{"type":"integer"},"methods":{"items":{"type":"string"},"type":"array"}},"required":["action","challenge","expires_in","methods"],"type":"object"},"token":{"type":"string"},"token_id":{"type":"integer"}},"required":[],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/password":{"put":{"tags":["auth"],"summary":"Change Password","description":"A new password for whoever is signed in, on proof of the old one.\n\nThe proof is the point: a session is not a password, and a screen left\nopen must not be a way to lock its owner out.","operationId":"change_password_api_v1_auth_password_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordIn"}}},"required":true},"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/password/forgot":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Ask for a letter with a link to choose a new password.\n\nThe same answer whether or not anybody has that address, and a throttle\nthat counts requests rather than accounts, so nothing here can be used to\nfind out who has a DilliC account. See services/passwords.py.","operationId":"forgot_password_api_v1_auth_password_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"message":{"type":"string"},"minutes":{"type":"integer"}},"required":["email","message","minutes"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/password/reset":{"post":{"tags":["auth"],"summary":"Reset Password","description":"Choose the new password the letter was for.\n\nNo session comes back: owning the mailbox is not the whole proof on an\naccount that asks for a second factor, so the end of the road is the\nsign-in screen with the address already typed.","operationId":"reset_password_api_v1_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"End the session and forget the cookie; and revoke the device token,\nwhen that is what came.\n\nEnding the session is the half that matters. Clearing the cookie tells one\nbrowser to stop sending it; ending the row it names means a copy of it\nanywhere else stops working too - see services/sessions.py. A cookie that\ndoes not decode, or names a session already ended, is cleared and nothing\nmore is said: the end state the caller asked for is the end state.\n\nOnly a device token is revoked, never an API token. A script that calls\nthis holding the token it was given for the purpose should not find that\ntoken dead afterwards: a sign-out is a phone's gesture, and a phone's\ncredential is the only one it is about. Unauthenticated, as it always was -\nwhoever is holding the credential may end it.","operationId":"logout_api_v1_auth_logout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"dillic_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dillic Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout/elsewhere":{"post":{"tags":["auth"],"summary":"Logout Elsewhere","description":"End every other browser session this person holds, and keep this one.\n\nFor the laptop left signed in at the office and the shared machine somebody\nforgot. The phone's device tokens are not touched - they are listed and\nrevoked one by one on the Security screen, because a phone is a named\npossession and a browser session is not.","operationId":"logout_elsewhere_api_v1_auth_logout_elsewhere_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ended":{"type":"integer"}},"required":["ended"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","description":"Describe whoever is signed in: the person, with their second-factor\nstatus, and the account, with its plan, currency and the modules it\nruns. Also answers with the organisation's own terms, the ids of the\nentities the person may see, and their sidebar pins.","operationId":"me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"account":{"properties":{"ai_enabled":{"type":"boolean"},"currency":{"type":"string"},"external_collaboration":{"type":"boolean"},"id":{"type":"integer"},"initiative_prioritisation":{"type":"string"},"modules":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"plan":{"type":"string"},"quadrant_texts":{"properties":{"opportunity_strength":{"type":"string"},"threat_weakness":{"type":"string"}},"required":[],"type":"object"},"safe_level":{"type":"string"},"storage_limit_bytes":{"type":"integer"},"user_license_count":{"type":"integer"}},"required":["ai_enabled","currency","external_collaboration","id","initiative_prioritisation","modules","name","plan","quadrant_texts","safe_level","storage_limit_bytes","user_license_count"],"type":"object"},"person":{"properties":{"avatar_url":{"type":["null","string"]},"email":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"},"is_account_admin":{"type":"boolean"},"is_operator":{"type":"boolean"},"joined_at":{"type":"string"},"keeps_groups":{"type":"boolean"},"last_sign_in_at":{"type":["null","string"]},"letter_locale":{"type":["null","string"]},"mfa":{"properties":{"confirmed_at":{"type":["null","string"]},"enforced":{"type":"boolean"},"enrolled":{"type":"boolean"},"has_second_factor":{"type":"boolean"},"issuer":{"type":"string"},"passkeys":{"items":{"properties":{"backed_up":{"type":"boolean"},"created_at":{"type":"string"},"id":{"type":"integer"},"last_used_at":{"type":"string"},"name":{"type":"string"}},"required":["backed_up","created_at","id","last_used_at","name"],"type":"object"},"type":"array"},"policy":{"type":"string"},"recovery_codes_left":{"type":"integer"},"required":{"type":"boolean"},"required_of_administrators":{"type":"boolean"},"setup_in_progress":{"type":"boolean"}},"required":["confirmed_at","enforced","enrolled","has_second_factor","issuer","passkeys","policy","recovery_codes_left","required","required_of_administrators","setup_in_progress"],"type":"object"},"preferred_assistant":{"type":["null","string"]},"title":{"type":"string"},"title_from_directory":{"type":"boolean"}},"required":["avatar_url","email","full_name","id","is_account_admin","is_operator","joined_at","keeps_groups","last_sign_in_at","letter_locale","mfa","preferred_assistant","title","title_from_directory"],"type":"object"},"pins":{"items":{"properties":{"kind":{"type":"string"},"target":{"type":"string"}},"required":["kind","target"],"type":"object"},"type":"array"},"terms":{"properties":{"assessment":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"category":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"change_request":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"factor":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"goal":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"initiative":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"kpi":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"pi_objective":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"planning_interval":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"risk":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"service":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"solution":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"sprint":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"value_stream":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"version":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"}},"required":["assessment","category","change_request","factor","goal","initiative","kpi","pi_objective","planning_interval","risk","service","solution","sprint","value_stream","version"],"type":"object"},"visible_entity_ids":{"items":{"type":"integer"},"type":"array"}},"required":["account","person","pins","terms","visible_entity_ids"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/me/language":{"put":{"tags":["auth"],"summary":"Set Language","description":"What language this product writes to this person in.\n\nIts own endpoint rather than a field on the notification preferences,\nwhich is where the same setting is offered as a control. That screen sends\nits whole body on every change - deliberately, so saving one thing cannot\nreset another - and the caller here has nothing to send but the language:\nit is the app noticing, a moment after somebody signed in, that they picked\na language on the way in and their account still says something else.\nMaking it fetch and re-send seven unrelated settings to say one word would\nbe a race with whatever they change next.\n\nEmpty means English and is stored as null, so that \"never said\" and \"asked\nfor English\" stay different answers - see `Person.letter_locale`.","operationId":"set_language_api_v1_auth_me_language_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageIn"}}},"required":true},"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/me/pins":{"post":{"tags":["auth"],"summary":"Add Pin","description":"Keep something within reach. Idempotent: pinning what is already pinned\nis what a double click on a toggle is, and it should not make two rows.","operationId":"add_pin_api_v1_auth_me_pins_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"kind":{"type":"string"},"target":{"type":"string"}},"required":["kind","target"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/me/pins/{kind}/{target}":{"delete":{"tags":["auth"],"summary":"Remove Pin","description":"Unpin. Silent when there was nothing there, because the end state the\ncaller asked for is the end state either way.","operationId":"remove_pin_api_v1_auth_me_pins__kind___target__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities":{"get":{"tags":["entities"],"summary":"List Entities","description":"Every entity the caller can see, flat, with enough shape to build a tree.","operationId":"list_entities_api_v1_entities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Entities Api V1 Entities Get"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/entities/{entity_id}":{"get":{"tags":["entities"],"summary":"Get Entity","description":"Read one entity: its name, description, type and status, the path of\nentities above it, and its children with their weights. Settings it\ninherits, such as time zone, sprint length and hourly cost, come back\nresolved, with the rights the caller holds on it.","operationId":"get_entity_api_v1_entities__entity_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archive_after_days":{"type":"integer"},"children":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"weight_pct":{"type":"null"}},"required":["id","name","weight_pct"],"type":"object"},"type":"array"},"children_weighted":{"type":"boolean"},"cost_rate_cents":{"type":["null","integer"]},"description":{"type":"string"},"entity_type_name":{"type":"string"},"id":{"type":"integer"},"logo_from":{"type":["null","string"]},"logo_own":{"type":"boolean"},"logo_url":{"type":["null","string"]},"name":{"type":"string"},"parent_entity_id":{"type":["null","integer"]},"path":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"sprint_length_days":{"type":"integer"},"status":{"type":"string"},"timezone":{"type":"string"},"weight_pct":{"type":"null"},"work_item_prefix":{"type":"string"}},"required":["archive_after_days","children","children_weighted","cost_rate_cents","description","entity_type_name","id","logo_from","logo_own","logo_url","name","parent_entity_id","path","permissions","sprint_length_days","status","timezone","weight_pct","work_item_prefix"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/audit":{"get":{"tags":["entities"],"summary":"Entity Audit","description":"List an entity's recent audit events, newest first: what was done, to\nwhat, by whom and when. `limit` caps how many are read, and events about\nthings the caller may not see are left out.\n\n`via` is null when the actor did it at a browser. Otherwise it gives the\n`kind` of credential the act came through (`assistant`, `token` or\n`device`) and its `name`: an AI assistant connected as the actor, an\naccess token of theirs, or their phone.","operationId":"entity_audit_api_v1_entities__entity_id__audit_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Entity Audit Api V1 Entities  Entity Id  Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/entity-types":{"get":{"tags":["admin"],"summary":"List Entity Types","description":"The levels of the account's hierarchy, top level first: each entity\ntype with its parent type, its sort order and the number of entities of\nthat type. Any signed-in person may read it.","operationId":"list_entity_types_api_v1_admin_entity_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Entity Types Api V1 Admin Entity Types Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Entity Type","description":"Add a level to the hierarchy: an entity type with a name and the type\nit sits under. Answers with the new type's id, name and parent.\n\nAdministrators only. The hierarchy has one top level, so a type with no\nparent is refused while another holds that place.","operationId":"create_entity_type_api_v1_admin_entity_types_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTypeIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Entity Type Api V1 Admin Entity Types Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/entity-types/{type_id}":{"put":{"tags":["admin"],"summary":"Update Entity Type","description":"Replace an entity type's name, parent type and sort order. Answers\nwith its id, name and parent.\n\nAdministrators only. A parent that would loop the hierarchy, or leave it\nwith two top levels, is refused.","operationId":"update_entity_type_api_v1_admin_entity_types__type_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"type_id","in":"path","required":true,"schema":{"type":"integer","title":"Type Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTypeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Entity Type Api V1 Admin Entity Types  Type Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Entity Type","description":"Remove a level from the hierarchy. Answers `{\"ok\": true}`.\n\nAdministrators only. Refused while any entity is of this type, and while\nanother type sits under it.","operationId":"delete_entity_type_api_v1_admin_entity_types__type_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"type_id","in":"path","required":true,"schema":{"type":"integer","title":"Type Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Entity Type Api V1 Admin Entity Types  Type Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/entities":{"post":{"tags":["admin"],"summary":"Create Entity","description":"Create an entity: a part of the organisation, with its type, name\nand parent, and optionally its weight, leader, time zone, archive and\nsprint lengths, cost rate and work item prefix. Answers with the new\nentity's id and name.\n\nAdministrators only. The parent must be an entity of the type above\nthis one's. Where any child of a parent carries a weight, all must, and\nthe weights must total 100%.","operationId":"create_entity_api_v1_admin_entities_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/entities/{entity_id}":{"put":{"tags":["admin"],"summary":"Update Entity","description":"Replace every setting of an entity: its type, name, description,\nparent, weight, leader, time zone, archive and sprint lengths, cost\nrate, work item prefix and status. An inactive entity keeps what it\nholds and takes no new work. Answers with the entity's id and name.\n\nAdministrators only. A move beneath itself is refused, and the rules\nfor parents and sibling weights hold as they do on creation.","operationId":"update_entity_api_v1_admin_entities__entity_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Entity","description":"Delete an entity that holds nothing. Answers `{\"ok\": true}`.\n\nAdministrators only. Refused while the entity has child entities, while\nit holds assessments, work or other records, and when it is the\naccount's last entity. An entity with records is made inactive instead,\nthrough `PUT /admin/entities/{entity_id}`.","operationId":"delete_entity_api_v1_admin_entities__entity_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people":{"get":{"tags":["admin"],"summary":"List People","description":"Everybody, for the pickers that still choose from the whole list. The\nadmin screens read `/people/page`, which does not send everybody.","operationId":"list_people_api_v1_admin_people_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List People Api V1 Admin People Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Person","description":"Add a person to the account by email address and full name,\noptionally as an administrator and with a job title. An active person\nis emailed a welcome letter with a link to choose a password. Answers\nwith the new person's id and email.\n\nAdministrators only. Refused when the email address is already in use,\nand when every seat on the subscription is taken.","operationId":"create_person_api_v1_admin_people_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__admin__PersonIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"id":{"type":"integer"}},"required":["email","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/people/page":{"get":{"tags":["admin"],"summary":"Page People","description":"The people list for Admin -> People, searched, filtered, sorted and paged\nby the database rather than by the browser.\n\nSearching looks at what the row shows: the name, the email, the status,\n\"admin\" for an administrator, and the names of the entities and roles\nsomebody holds - so \"support lead\" finds whoever leads Support. Every word\nhas to be found somewhere. The filter narrows to a status, or to everybody\nholding one role anywhere.\n\nSorted by the column asked for, with the name after it so two rows that\ntie come out in a settled order. Somebody who has never signed in sorts\nlast whichever way \"last seen\" runs, and somebody holding no role sorts\nlast by roles: never is not the same as long ago.","operationId":"page_people_api_v1_admin_people_page_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["name","email","roles","seen","status"],"type":"string","default":"name","title":"Sort"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}},{"name":"status_is","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PersonStatus"},{"type":"null"}],"title":"Status Is"}},{"name":"role_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Role Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"has_more":{"type":"boolean"},"matched":{"type":"integer"},"people":{"items":{"properties":{"email":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"},"is_account_admin":{"type":"boolean"},"joined_at":{"type":"string"},"last_sign_in_at":{"type":["null","string"]},"memberships":{"items":{"properties":{"entity_id":{"type":"integer"},"id":{"type":"integer"},"role_id":{"type":"integer"}},"required":["entity_id","id","role_id"],"type":"object"},"type":"array"},"status":{"type":"string"},"title":{"type":"string"},"title_from_directory":{"type":"boolean"}},"required":["email","full_name","id","is_account_admin","joined_at","last_sign_in_at","memberships","status","title","title_from_directory"],"type":"object"},"type":"array"},"total":{"type":"integer"}},"required":["has_more","matched","people","total"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/{person_id}":{"put":{"tags":["admin"],"summary":"Update Person","description":"Replace a person's name, email address, status and administrator\nflag, and optionally their job title and password. Deactivating\nsomebody, or setting their password, signs them out everywhere. Any\nchange unlocks an account locked by failed sign-ins. Answers with the\nperson's id.\n\nAdministrators only. Refused when reactivating somebody would exceed\nthe subscription's seats, and when it would leave the account without\nan administrator.","operationId":"update_person_api_v1_admin_people__person_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__admin__PersonIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/memberships":{"post":{"tags":["admin"],"summary":"Create Membership","description":"Give a person a role on an entity. A person holds one role on each\nentity, so where they already hold one there, the new role replaces it.\nAnswers with the membership's id.\n\nAdministrators only.","operationId":"create_membership_api_v1_admin_memberships_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Membership Api V1 Admin Memberships Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/memberships/{membership_id}":{"delete":{"tags":["admin"],"summary":"Delete Membership","description":"Take a person's role on an entity away by deleting the membership.\nAnswers `{\"ok\": true}`.\n\nAdministrators only.","operationId":"delete_membership_api_v1_admin_memberships__membership_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"integer","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Membership Api V1 Admin Memberships  Membership Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/permissions":{"get":{"tags":["admin"],"summary":"List Permissions","description":"What a role may be given, grouped for the editor.\n\nOnly the rights of the modules this organisation runs: a right in a module\nthat is switched off means nothing to anybody, so it is not offered. A\nrole that already holds one keeps it - the editor sends back what it was\ngiven - and it is offered again the day the module comes back.","operationId":"list_permissions_api_v1_admin_permissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"all":{"items":{"type":"string"},"type":"array"},"groups":{"properties":{"Administration":{"items":{"type":"string"},"type":"array"},"Adoption":{"items":{"type":"string"},"type":"array"},"Assessments":{"items":{"type":"string"},"type":"array"},"Change enablement":{"items":{"type":"string"},"type":"array"},"Delivery":{"items":{"type":"string"},"type":"array"},"Factors and objectives":{"items":{"type":"string"},"type":"array"},"Groups":{"items":{"type":"string"},"type":"array"},"Initiatives":{"items":{"type":"string"},"type":"array"},"Pages":{"items":{"type":"string"},"type":"array"},"Reporting":{"items":{"type":"string"},"type":"array"},"Root cause analysis":{"items":{"type":"string"},"type":"array"},"Scaled delivery":{"items":{"type":"string"},"type":"array"}},"required":["Administration","Assessments","Factors and objectives","Groups","Initiatives","Reporting","Root cause analysis"],"type":"object"}},"required":["all","groups"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/roles":{"get":{"tags":["admin"],"summary":"List Roles","description":"The account's roles in name order, each with its description and\nthe permissions it grants. Any signed-in person may read it.","operationId":"list_roles_api_v1_admin_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Roles Api V1 Admin Roles Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Role","description":"Create a role from a name, a description and a list of permissions.\n`GET /admin/permissions` lists the permissions on offer. Answers with\nthe new role's id and name.\n\nAdministrators only. An unknown permission is refused by name.","operationId":"create_role_api_v1_admin_roles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/roles/{role_id}":{"put":{"tags":["admin"],"summary":"Update Role","description":"Replace a role's name, description and permissions. Everybody who\nholds the role holds the new permissions at once. Answers with the\nrole's id.\n\nAdministrators only. An unknown permission is refused by name.","operationId":"update_role_api_v1_admin_roles__role_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","title":"Role Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Role","description":"Delete a role nobody holds. Answers `{\"ok\": true}`.\n\nAdministrators only. Refused while any membership still assigns the\nrole.","operationId":"delete_role_api_v1_admin_roles__role_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","title":"Role Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/terminology":{"get":{"tags":["admin"],"summary":"List Terminology","description":"The vocabulary, in the order the product introduces the nouns.\n\nRead from the shipped list rather than from the table, so a term added to\nthe product after this account was created is offered rather than missing -\nand so the order is the one somebody reading the screen expects, not\nwhatever order the rows happen to have been written in.\n\nThe scaled-delivery words - planning interval, PI objective, risk, value\nstream - appear on an organisation running SAFe and nowhere else, and they\narrive not editable. They are SAFe's nouns rather than this organisation's\n(services/terms.SAFE_TERMS), and the screen says so by showing the word and\nrefusing the edit: an administrator wondering where \"PI objective\" comes\nfrom finds it here, answered, rather than finding nothing.","operationId":"list_terminology_api_v1_admin_terminology_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Terminology Api V1 Admin Terminology Get"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/terminology/{key}":{"put":{"tags":["admin"],"summary":"Upsert Terminology","description":"Rename one of the product's nouns for this account, by its key: the\nword and its plural. A plural left empty beside a label is the label\nwith an \"s\". An empty label resets the term to the word DilliC ships.\nAnswers with the term's id, key, label and plural.\n\nAdministrators only. SAFe's own terms are refused, and so are the keys\nthat are now levels of the work item breakdown.","operationId":"upsert_terminology_api_v1_admin_terminology__key__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminologyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"plural":{"type":"string"}},"required":["id","key","label","plural"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/safe-level":{"get":{"tags":["admin"],"summary":"Get Safe Level","description":"The level, and the catalogue of what each one means.\n\nReadable by anyone rather than by admins alone: every screen that draws a\nscaled-delivery tab needs the level, and the catalogue is what an\nadministrator is shown before changing it.","operationId":"get_safe_level_api_v1_admin_safe_level_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Safe Level Api V1 Admin Safe Level Get"}}}}},"security":[{"session":[]},{"token":[]}]},"put":{"tags":["admin"],"summary":"Set Safe Level","description":"Raise or lower the level.\n\nRaising provisions what the level needs and moves nothing. Lowering writes\nthe new level and takes nothing away - the rungs, the kanban and every row\nanybody wrote stay exactly where they are, so coming back up a level finds\nthe work still there. See services.provisioning.apply_safe_level.","operationId":"set_safe_level_api_v1_admin_safe_level_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeLevelIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"added":{"properties":{"dropped_levels":{"items":{"type":"string"},"type":"array"},"from":{"type":"string"},"levels":{"items":{"type":"string"},"type":"array"},"portfolio_kanban":{"type":"boolean"},"portfolio_module":{"type":"boolean"},"renamed_epics":{"type":"boolean"},"renamed_sprints":{"type":"boolean"},"terms":{"items":{"type":"string"},"type":"array"},"to":{"type":"string"}},"required":["dropped_levels","from","levels","portfolio_kanban","portfolio_module","renamed_epics","renamed_sprints","terms","to"],"type":"object"},"level":{"type":"string"},"unchanged":{"type":"boolean"}},"required":["added","level","unchanged"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/safe-level/preview":{"post":{"tags":["admin"],"summary":"Preview Safe Level","description":"What changing to this level would do. Changes nothing.","operationId":"preview_safe_level_api_v1_admin_safe_level_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeLevelIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"dropped_levels":{"type":"array"},"from":{"type":"string"},"levels":{"items":{"type":"string"},"type":"array"},"lowering":{"type":"boolean"},"portfolio_kanban":{"type":"boolean"},"renamed_epics":{"type":"boolean"},"renamed_sprints":{"type":"boolean"},"to":{"type":"string"},"work_items_moved":{"type":"integer"}},"required":["dropped_levels","from","levels","lowering","portfolio_kanban","renamed_epics","renamed_sprints","to","work_items_moved"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/modules":{"get":{"tags":["admin"],"summary":"Get Modules","description":"Which modules this organisation runs, in the order the screen draws them.\n\nEverybody else learns the answer from their own permissions, which carry\nthe modules that are on; this is the administrator's list of all of them.","operationId":"get_modules_api_v1_admin_modules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"foundation":{"items":{"type":"string"},"type":"array"},"modules":{"items":{"properties":{"enabled":{"type":"boolean"},"key":{"type":"string"},"parent":{"type":["null","string"]}},"required":["enabled","key","parent"],"type":"object"},"type":"array"}},"required":["foundation","modules"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"put":{"tags":["admin"],"summary":"Set Modules","description":"Switch modules on and off for the whole organisation.\n\nTurning one off deletes nothing: its screens, sections and controls go, and\nthe API refuses what they would have asked, but every row written under it\nis where it was when the module comes back on.","operationId":"set_modules_api_v1_admin_modules_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModulesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"foundation":{"items":{"type":"string"},"type":"array"},"modules":{"items":{"properties":{"enabled":{"type":"boolean"},"key":{"type":"string"},"parent":{"type":["null","string"]}},"required":["enabled","key","parent"],"type":"object"},"type":"array"}},"required":["foundation","modules"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/scales/{kind}":{"get":{"tags":["admin"],"summary":"List Scale","description":"One scale, in rank order, for anyone: every delivery screen that offers a\npriority or a size reads it to know what to offer and how to sort it.","operationId":"list_scale_api_v1_admin_scales__kind__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ScaleKind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Scale Api V1 Admin Scales  Kind  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Set Scale","description":"Replace a scale.\n\nOptions are matched by key, so an existing rung is edited rather than\nswapped: what is already sitting on it stays there while its label and its\nnumber change underneath. A rung dropped from the list is deleted, unless\nwork is on it - see services.scales, which refuses that with the count.","operationId":"set_scale_api_v1_admin_scales__kind__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ScaleKind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScaleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Set Scale Api V1 Admin Scales  Kind  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tags/{kind}":{"get":{"tags":["admin"],"summary":"List Tags","description":"One list, for anyone: the item dialog offers both.","operationId":"list_tags_api_v1_admin_tags__kind__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/TagKind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Tags Api V1 Admin Tags  Kind  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Tag","description":"Add a component or a label, as `kind` says, to the account's list.\nA component also takes a description. Answers with the new tag's id,\nkind and name.\n\nAdministrators only. The name runs to 60 characters at most. A name\nalready on that list, in any letter case, is refused.","operationId":"create_tag_api_v1_admin_tags__kind__post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/TagKind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["description","id","kind","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tags/{kind}/{tag_id}":{"put":{"tags":["admin"],"summary":"Update Tag","description":"Rename one. The items carrying it keep carrying it: what is stored is the\ntag, not the word, so a rename reaches every item at once.","operationId":"update_tag_api_v1_admin_tags__kind___tag_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/TagKind"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["description","id","kind","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Tag","description":"Remove one, and take it off everything carrying it.\n\nUnlike a priority or a link reason, this is allowed while in use: a tag is\nan annotation rather than a field with a value, so an item that loses one\nstill says everything it said before, minus a note. The count is returned so\nthe administrator can see what they have just done.","operationId":"delete_tag_api_v1_admin_tags__kind___tag_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/TagKind"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"removed":{"type":"boolean"},"taken_off":{"type":"integer"}},"required":["id","removed","taken_off"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/link-types":{"get":{"tags":["admin"],"summary":"List Link Types","description":"The reasons, for anyone: the item dialog offers them.","operationId":"list_link_types_api_v1_admin_link_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Link Types Api V1 Admin Link Types Get"}}}}},"security":[{"session":[]},{"token":[]}]},"put":{"tags":["admin"],"summary":"Set Link Types","description":"Replace the set, matched by key.\n\nSaved whole for the reason a scale is: the list is what a reader chooses\nfrom, and half of it applied is a vocabulary with holes. A reason still\nholding links cannot be dropped - those links would be left saying nothing.","operationId":"set_link_types_api_v1_admin_link_types_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkTypesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Set Link Types Api V1 Admin Link Types Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/fields":{"get":{"tags":["admin"],"summary":"List Fields","description":"Every field, retired ones included, for anyone.\n\nNot admin-only: the item dialog and the query builder both read these, and\nwhat questions an organisation asks itself is not a secret from the people\nanswering them.","operationId":"list_fields_api_v1_admin_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Fields Api V1 Admin Fields Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Field","description":"Add a custom field for work items: its label, description and kind,\nthe options of a select or multi-select, and the levels of the\nbreakdown it is asked on, each required or not. The field joins the end\nof the order. Answers with the field as saved, its generated key\nincluded.\n\nAdministrators only. The kind is fixed once the field exists.","operationId":"create_field_api_v1_admin_fields_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"description":{"type":"string"},"filter_key":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"levels":{"items":{"properties":{"level_key":{"type":"string"},"required":{"type":"boolean"}},"required":["level_key","required"],"type":"object"},"type":"array"},"options":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"}},"required":["id","key","label"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["archived_at","description","filter_key","id","key","kind","label","levels","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/fields/order":{"put":{"tags":["admin"],"summary":"Order Fields","description":"The order the questions are asked in.\n\nIts own endpoint rather than a number on each field, because reordering is\none action on a list: sending five updates to move one field up is five\nchances for the list to end up in a state nobody asked for.\n\nDeclared above the {field_id} routes on purpose - \"order\" would otherwise\nbe read as a field id by the first pattern that matched it.","operationId":"order_fields_api_v1_admin_fields_order_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldOrderIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Order Fields Api V1 Admin Fields Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/fields/{field_id}":{"put":{"tags":["admin"],"summary":"Update Field","description":"Rename it, re-word it, change its options or where it is asked.\n\nWhat cannot change is its kind. A field's kind decides which column every\nanswer was written to, so changing it would not convert anything - it would\nleave every answer already given sitting in a column nothing reads any\nmore, which is worse than losing them because it looks like nothing\nhappened. An organisation that wants the same question asked differently\nwrites a new field and retires this one, and keeps its answers.","operationId":"update_field_api_v1_admin_fields__field_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"integer","title":"Field Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"description":{"type":"string"},"filter_key":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"levels":{"items":{"properties":{"level_key":{"type":"string"},"required":{"type":"boolean"}},"required":["level_key","required"],"type":"object"},"type":"array"},"options":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"}},"required":["id","key","label"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["archived_at","description","filter_key","id","key","kind","label","levels","options","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Field","description":"Remove the question and every answer to it.\n\nAllowed, and it says what it cost. Retiring is the option that keeps the\nanswers, and it is offered first on the screen - but a field somebody\ncreated by mistake this morning should not have to be carried for ever, and\na count in the response is more honest than a confirmation nobody reads.","operationId":"delete_field_api_v1_admin_fields__field_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"integer","title":"Field Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answers_lost":{"type":"integer"},"id":{"type":"integer"},"removed":{"type":"boolean"}},"required":["answers_lost","id","removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/fields/{field_id}/archive":{"post":{"tags":["admin"],"summary":"Archive Field","description":"Retire the question, and keep every answer to it.\n\nThe middle option between leaving a field nobody fills in on every dialog\nand deleting the evidence. A retired field is asked of nothing new and\nstill reads on the items that answered it.","operationId":"archive_field_api_v1_admin_fields__field_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"integer","title":"Field Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"string"},"description":{"type":"string"},"filter_key":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"levels":{"items":{"properties":{"level_key":{"type":"string"},"required":{"type":"boolean"}},"required":["level_key","required"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["archived_at","description","filter_key","id","key","kind","label","levels","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/fields/{field_id}/restore":{"post":{"tags":["admin"],"summary":"Restore Field","description":"Ask it again. Where it is asked is whatever it was when it was retired.","operationId":"restore_field_api_v1_admin_fields__field_id__restore_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"integer","title":"Field Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"description":{"type":"string"},"filter_key":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"levels":{"items":{"properties":{"level_key":{"type":"string"},"required":{"type":"boolean"}},"required":["level_key","required"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["archived_at","description","filter_key","id","key","kind","label","levels","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/work-item-levels":{"get":{"tags":["admin"],"summary":"List Work Item Levels","description":"The ladder as configured, for anyone - the rules are not a secret, and\nthe delivery screens read them to know what to ask for.","operationId":"list_work_item_levels_api_v1_admin_work_item_levels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Work Item Levels Api V1 Admin Work Item Levels Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Add Work Item Level","description":"Add a rung beside an existing one.\n\nBeside, not above or below: the ladder's depths are what `check_rung`\nwalks, and a rung at a depth of its own would need a parent nobody has.\nA new kind sits at the depth of the rung it is modelled on and reads\ndirectly after it.","operationId":"add_work_item_level_api_v1_admin_work_item_levels_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"available":{"type":"boolean"},"checklist":{"type":"boolean"},"custom":{"type":"boolean"},"depth":{"type":"integer"},"estimate_scale":{"type":"string"},"estimated":{"type":"boolean"},"has_acceptance_criteria":{"type":"boolean"},"id":{"type":"integer"},"items":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"plural":{"type":"string"},"prioritisation":{"type":"string"},"renameable":{"type":"boolean"},"requires_parent":{"type":"boolean"},"schedulable":{"type":"boolean"},"shows_on_board":{"type":"boolean"},"sizes":{"type":"array"},"sort_order":{"type":"integer"}},"required":["available","checklist","custom","depth","estimate_scale","estimated","has_acceptance_criteria","id","items","key","label","plural","prioritisation","renameable","requires_parent","schedulable","shows_on_board","sizes","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/work-item-levels/{key}":{"delete":{"tags":["admin"],"summary":"Remove Work Item Level","description":"Take a rung the organisation added off the ladder again.\n\nOnly its own, and only while nothing is filed under it: an item on a rung\nthat no longer exists would be an item nothing could read, and the rungs\nthe product ships are what every other rule is written against.","operationId":"remove_work_item_level_api_v1_admin_work_item_levels__key__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Rename Work Item Level","description":"Rename a rung of the ladder.\n\nHere rather than in the vocabulary, and that is the whole reason epic, story\nand task are not terms: a rung is more than a word. Its depth, its unit of\nestimate and whether it gets a card of its own live on this row, so the word\nlives with them and there is one place to change it rather than two that can\ndisagree.\n\nThe key is untouched. It is what every item on the rung is stored against,\nand what an export column, an API field and a webhook are written against -\nso a rename changes what people read and nothing a script is parsing.\n\nA rung SAFe names is refused while SAFe is running, on the rule the\nvocabulary applies to the framework's nouns. The organisation's own word for\nit, if it had one, is still in this row and is what the rung goes back to\nreading when the level is lowered - so this refuses an edit rather than\nlosing one.","operationId":"rename_work_item_level_api_v1_admin_work_item_levels__key__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelNameIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"available":{"type":"boolean"},"checklist":{"type":"boolean"},"depth":{"type":"integer"},"estimate_scale":{"type":"string"},"estimated":{"type":"boolean"},"has_acceptance_criteria":{"type":"boolean"},"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"plural":{"type":"string"},"prioritisation":{"type":"string"},"renameable":{"type":"boolean"},"requires_parent":{"type":"boolean"},"schedulable":{"type":"boolean"},"shows_on_board":{"type":"boolean"},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["available","checklist","depth","estimate_scale","estimated","has_acceptance_criteria","id","key","label","plural","prioritisation","renameable","requires_parent","schedulable","shows_on_board","sizes","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/work-item-levels/{key}/estimate-scale":{"put":{"tags":["admin"],"summary":"Set Estimate Scale","description":"Switch a rung between points and T-shirt sizes.\n\nThe estimates already on that rung are cleared, because they are written in\nthe old unit and there is no honest conversion: an L is not eight points,\nit is the size somebody chose while deliberately not saying a number. So the\nrung is re-estimated rather than converted, and the count of items that lost\nan estimate is returned for the admin to see what they have asked for.","operationId":"set_estimate_scale_api_v1_admin_work_item_levels__key__estimate_scale_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelEstimateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"cleared":{"type":"integer"},"estimate_scale":{"type":"string"},"key":{"type":"string"}},"required":["cleared","estimate_scale","key"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/work-item-levels/{key}/prioritisation":{"put":{"tags":["admin"],"summary":"Set Prioritisation","description":"Choose how one rung of the ladder decides what to pick up next.\n\nPriority, RICE, ICE or WSJF, per rung, because an organisation does not\norder its defects the way it orders its epics. It was one boolean - WSJF or\nnot - and before that it was not a choice at all: a rung's answer was a\nconsequence of the account's SAFe level.\n\nAsk a technique of the rungs somebody chooses between. A story is pulled\nfrom an epic that has already been chosen, so three or four more numbers\nthere is three or four more numbers and no more information.\n\nA checklist rung is refused outright rather than offered the choice. A\nsub-task is not prioritised at all - it is a line in the breakdown of the\nitem above it, done in the order the breakdown is in, and that order is a\nposition under its parent rather than a judgement about it. It carries no\npriority for the same reason it carries no estimate (services/decomposition\nPLANNING_FIELDS), so offering it a technique would be offering a way to\nanswer a question nothing asks.\n\nSwitching methods clears nothing. The components of the method being left\nstay on the items that carry them, so a rung moved to RICE and back finds\nits WSJF numbers where they were - and what is *shown* is only ever the\nmethod the rung currently asks for, so nothing stale is read as current.\nScoring an item is where the other methods' columns are cleared, because\nthat is the moment somebody has actually said what the new numbers are.","operationId":"set_prioritisation_api_v1_admin_work_item_levels__key__prioritisation_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrioritisationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"available":{"type":"boolean"},"checklist":{"type":"boolean"},"depth":{"type":"integer"},"estimate_scale":{"type":"string"},"estimated":{"type":"boolean"},"has_acceptance_criteria":{"type":"boolean"},"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"plural":{"type":"string"},"prioritisation":{"type":"string"},"renameable":{"type":"boolean"},"requires_parent":{"type":"boolean"},"schedulable":{"type":"boolean"},"shows_on_board":{"type":"boolean"},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["available","checklist","depth","estimate_scale","estimated","has_acceptance_criteria","id","key","label","plural","prioritisation","renameable","requires_parent","schedulable","shows_on_board","sizes","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/initiative-prioritisation":{"put":{"tags":["admin"],"summary":"Set Initiative Prioritisation","description":"Choose how initiatives are ordered against one another.\n\nThe same choice a rung gets, held on the account because an initiative is\nnot a rung: it sits above the ladder, one answer per organisation rather\nthan one per level. The admin screen draws it as the top row of the same\ncard, which is where somebody comparing the levels looks for it.","operationId":"set_initiative_prioritisation_api_v1_admin_initiative_prioritisation_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrioritisationIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"prioritisation":{"type":"string"}},"required":["prioritisation"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/currency":{"put":{"tags":["admin"],"summary":"Set Currency","description":"What this organisation keeps its budgets in.\n\nOne default per account; a value stream may say otherwise for itself.\nChanging it converts nothing - a budget already written in dollars is\nstill in dollars, and says so - it decides what a new budget starts as.","operationId":"set_currency_api_v1_admin_currency_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"currency":{"type":"string"}},"required":["currency"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/kpis":{"get":{"tags":["admin"],"summary":"List Kpis","description":"The account's KPI library in name order: each KPI's unit, whether\nlower is better, the bounds and rounding of a reading, how it rolls up\nand the source its readings come from. Any signed-in person may read\nit.","operationId":"list_kpis_api_v1_admin_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Kpis Api V1 Admin Kpis Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Kpi","description":"Add a KPI to the account's library: a name and a unit, and\noptionally its direction, the bounds and decimal places of a reading,\nits roll-up rule and a source to derive its readings from. Answers with\nthe KPI as saved.\n\nAdministrators only. A KPI with a source takes its direction, bounds,\nrounding and roll-up from that source, whatever the body says.","operationId":"create_kpi_api_v1_admin_kpis_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KpiIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"decimal_places":{"type":["null","integer"]},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":["null","number"]},"range_low":{"type":["null","number"]},"rollup":{"type":"string"},"source":{"type":["null","string"]},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","rollup","source","unit"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/kpis/{kpi_id}":{"put":{"tags":["admin"],"summary":"Update Kpi","description":"Replace a KPI's definition: its name, unit, direction, bounds,\ndecimal places, roll-up rule and source. Answers with the KPI as saved.\n\nAdministrators only. The source cannot change once the KPI has\nreadings. A KPI with a source takes its direction, bounds, rounding\nand roll-up from that source, and its readings for the months already\nfinished are derived at once.","operationId":"update_kpi_api_v1_admin_kpis__kpi_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kpi_id","in":"path","required":true,"schema":{"type":"integer","title":"Kpi Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KpiIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":["null","number"]},"range_low":{"type":"number"},"rollup":{"type":"string"},"source":{"type":"null"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","rollup","source","unit"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Kpi","description":"Removed only once nothing measures itself by it.\n\nA KPI still on a factor or an initiative is what their targets are read\nagainst, and deleting it would leave those numbers meaning nothing in\nparticular. So the refusal names what is using it, which is the thing\nsomebody needs to know to go and change it.","operationId":"delete_kpi_api_v1_admin_kpis__kpi_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kpi_id","in":"path","required":true,"schema":{"type":"integer","title":"Kpi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/statuses":{"get":{"tags":["admin"],"summary":"List Statuses","description":"One workflow's statuses, the moves between them and the gates on those\nmoves. Readable by anyone, because every board configuration screen has to\nname them.","operationId":"list_statuses_api_v1_admin_statuses_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"work_item","title":"Kind"}},{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entities_may_extend":{"type":"boolean"},"from_anywhere":{"items":{"properties":{"gate_id":{"type":"null"},"name":{"type":"string"},"to_state_id":{"type":"integer"},"to_state_name":{"type":"string"}},"required":["gate_id","name","to_state_id","to_state_name"],"type":"object"},"type":"array"},"gates":{"items":{"properties":{"allow_self_approval":{"type":"boolean"},"approver_role_id":{"type":["null","integer"]},"description":{"type":"string"},"id":{"type":"integer"},"min_approvals":{"type":"integer"},"name":{"type":"string"},"stands_on":{"items":{"type":"string"},"type":"array"}},"required":["allow_self_approval","approver_role_id","description","id","min_approvals","name","stands_on"],"type":"object"},"type":"array"},"statuses":{"items":{"properties":{"boards":{"items":{"type":"string"},"type":"array"},"entity_id":{"type":"null"},"id":{"type":"integer"},"is_initial":{"type":"boolean"},"item_count":{"type":"integer"},"leads_to":{"items":{"properties":{"gate_id":{"type":["null","integer"]},"name":{"type":"string"},"to_state_id":{"type":"integer"}},"required":["gate_id","name","to_state_id"],"type":"object"},"type":"array"},"name":{"type":"string"},"owner":{"type":"string"},"sort_order":{"type":"integer"},"state":{"type":"string"}},"required":["boards","entity_id","id","is_initial","item_count","leads_to","name","owner","sort_order","state"],"type":"object"},"type":"array"},"workflow":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"},"workflows":{"items":{"properties":{"boards":{"type":"integer"},"id":{"type":"integer"},"is_default":{"type":"boolean"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["boards","id","is_default","kind","name"],"type":"object"},"type":"array"}},"required":["entities_may_extend","from_anywhere","gates","statuses","workflow","workflows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Status","description":"Add a status to the organisation's library, with its rules.\n\nIt is not put on any board: which entities draw it is each board's own\ndecision, and adding one to the library is not a decision about any of them.","operationId":"create_status_api_v1_admin_statuses_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"work_item","title":"Kind"}},{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"state":{"type":"string"}},"required":["id","name","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/statuses/extends":{"put":{"tags":["admin"],"summary":"Set Entities Extend","description":"Let the organisation's entities add statuses and moves of their own, or\nstop them.\n\nOne switch for the organisation. Who may use it where is still a role's\nbusiness: somebody adding a status needs `Perm.WORKFLOW_EXTEND` on the\nentity as well, so an administrator decides whether the organisation's\nworkflow may be extended at all, and roles decide by whom.\n\nSwitching it off leaves everything already added exactly where it is.\nDeleting it would take work out from under a team without anybody there\nhaving asked; off means no more may be added, not that what was added was\nwrong. What is there is removed one at a time, or adopted if it turned out\nto be right.","operationId":"set_entities_extend_api_v1_admin_statuses_extends_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entities_may_extend":{"type":"boolean"}},"required":["entities_may_extend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/statuses/{state_id}":{"put":{"tags":["admin"],"summary":"Update Status","description":"Rename a status, or change what it is.\n\nThe change reaches every board at once, which is the point of the library:\na status renamed here is renamed everywhere it is drawn, and a status that\nstops meaning finished stops meaning finished on every report.","operationId":"update_status_api_v1_admin_statuses__state_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"state_id","in":"path","required":true,"schema":{"type":"integer","title":"State Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"state":{"type":"string"}},"required":["id","name","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Status","description":"Remove a status from the library.\n\nRefused while anything still depends on it: work sitting in it would be left\npointing at nothing, and a board drawing it would lose a column without\nanyone on that board having asked for it. Both are somebody else's to\nresolve first, which is why the refusal says which.","operationId":"delete_status_api_v1_admin_statuses__state_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"state_id","in":"path","required":true,"schema":{"type":"integer","title":"State Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/statuses/{state_id}/transitions":{"put":{"tags":["admin"],"summary":"Set Status Transitions","description":"What may come after this status, and which of those moves needs a gate.\n\nThis is where a workflow stops being a list of words. A move that is not\nhere cannot be made - services/workflow refuses anything undeclared - and a\nmove that names a gate never applies on the spot: it opens an approval and\nthe card stays where it was.","operationId":"set_status_transitions_api_v1_admin_statuses__state_id__transitions_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"state_id","in":"path","required":true,"schema":{"type":"integer","title":"State Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/statuses/{state_id}/adopt":{"post":{"tags":["admin"],"summary":"Adopt Status","description":"Make a status one team invented into the organisation's own.\n\nThis is what team self-service is for. A team names the thing it has been\ndoing all along, other teams turn out to be doing it too, and at that point\nthe word is the organisation's whether or not anybody has said so. Adopting\nit is saying so: the row stops belonging to one board and starts being\noffered to all of them.\n\nNothing moves and nothing is re-read. The status keeps its id, so every\nitem sitting in it stays where it is, every event that named it still names\nit, and every report already written about it reads the same afterwards -\nwhich is the difference between this and the alternative of adding a\nmatching organisation status and asking the team to migrate.\n\nThe team's own moves in and out of it are left alone, and that is\ndeliberate rather than an oversight. The word is now everybody's; the rules\nthat team wrote about when to use it are still that team's, and adopting a\nstatus is not a decision that every board should follow one team's process.\nAn administrator who wants the moves organisation-wide adds them here,\nwhere the rest of the organisation's moves live.","operationId":"adopt_status_api_v1_admin_statuses__state_id__adopt_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"state_id","in":"path","required":true,"schema":{"type":"integer","title":"State Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"boards":{"items":{"type":"string"},"type":"array"},"entity_id":{"type":"null"},"id":{"type":"integer"},"is_initial":{"type":"boolean"},"item_count":{"type":"integer"},"leads_to":{"type":"array"},"name":{"type":"string"},"owner":{"type":"string"},"sort_order":{"type":"integer"},"state":{"type":"string"}},"required":["boards","entity_id","id","is_initial","item_count","leads_to","name","owner","sort_order","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workflows":{"get":{"tags":["admin"],"summary":"List Workflows","description":"The account's work item workflows, the default first: each one's\nid, name, whether it is the default and how many boards use it.\n\nAdministrators only.","operationId":"list_workflows_api_v1_admin_workflows_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"workflows":{"items":{"properties":{"boards":{"type":"integer"},"id":{"type":"integer"},"is_default":{"type":"boolean"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["boards","id","is_default","kind","name"],"type":"object"},"type":"array"}},"required":["workflows"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Workflow","description":"A new delivery workflow, copied from one that exists.\n\nThe organisation's statuses and moves are copied, gates included; a team's\nown words are not, because they were that team's addition to the other\nworkflow and no board uses this one yet.","operationId":"create_workflow_api_v1_admin_workflows_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/workflows/{workflow_id}":{"put":{"tags":["admin"],"summary":"Update Workflow","description":"Rename a delivery workflow, or make it the one new boards start on.\n\nThere is always exactly one default, so it is chosen rather than\nunchosen: making another the default is how this one stops being it.","operationId":"update_workflow_api_v1_admin_workflows__workflow_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Workflow","description":"Remove a delivery workflow nothing uses.\n\nRefused while it is the default, while a board uses it, and while any work\nsits in one of its statuses - each is somebody's to resolve first, and the\nrefusal says which.","operationId":"delete_workflow_api_v1_admin_workflows__workflow_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/gates":{"get":{"tags":["admin"],"summary":"List Gates","description":"The account's gates. Readable by anyone, because a status screen and an\nitem waiting on one both have to name it.","operationId":"list_gates_api_v1_admin_gates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"gates":{"items":{"properties":{"allow_self_approval":{"type":"boolean"},"approver_role_id":{"type":["null","integer"]},"description":{"type":"string"},"id":{"type":"integer"},"min_approvals":{"type":"integer"},"name":{"type":"string"},"stands_on":{"items":{"type":"string"},"type":"array"}},"required":["allow_self_approval","approver_role_id","description","id","min_approvals","name","stands_on"],"type":"object"},"type":"array"},"roles":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"}},"required":["gates","roles"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Gate","description":"Add a gate. It stands on nothing until a status names it.","operationId":"create_gate_api_v1_admin_gates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"allow_self_approval":{"type":"boolean"},"approver_role_id":{"type":"null"},"description":{"type":"string"},"id":{"type":"integer"},"min_approvals":{"type":"integer"},"name":{"type":"string"},"stands_on":{"type":"array"}},"required":["allow_self_approval","approver_role_id","description","id","min_approvals","name","stands_on"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/gates/{gate_id}":{"put":{"tags":["admin"],"summary":"Update Gate","description":"Change a gate.\n\nReaches every move it stands on and every approval still open on it, which\nis the point of a gate being one row: an organisation that decides two\npeople have to authorise a release says so once.","operationId":"update_gate_api_v1_admin_gates__gate_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"gate_id","in":"path","required":true,"schema":{"type":"integer","title":"Gate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Gate Api V1 Admin Gates  Gate Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Gate","description":"Remove a gate.\n\nRefused while a move stands on it or an approval is still open against it.\nDeleting it out from under either would turn a decision somebody is waiting\non into a move anybody can make, which is the one thing a gate exists to\nprevent.","operationId":"delete_gate_api_v1_admin_gates__gate_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"gate_id","in":"path","required":true,"schema":{"type":"integer","title":"Gate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/identity/providers":{"get":{"tags":["admin"],"summary":"List Providers","description":"The account's single sign-on connections, with what a directory's\nadministrator needs to set one up: DilliC's SAML entity id, assertion\nconsumer URL and metadata URL. Answers too with the email domain the\naccount claims, whether it is verified, and the DNS TXT record that\nverifies it. A client secret is never returned, only whether one is\nset.\n\nAdministrators only.","operationId":"list_providers_api_v1_admin_identity_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"domain_record":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"type":["null","object"]},"domain_verified":{"type":"boolean"},"email_domain":{"type":["null","string"]},"providers":{"items":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"},"created_at":{"type":"string"},"email_claim":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"idp_certificates":{"type":"array"},"idp_entity_id":{"type":"string"},"idp_sso_url":{"type":"string"},"issuer":{"type":"string"},"jit_entity_id":{"type":"null"},"jit_provisioning":{"type":"boolean"},"jit_role_id":{"type":"null"},"kind":{"type":"string"},"name":{"type":"string"},"name_claim":{"type":"string"},"redirect_uri":{"type":"string"},"scopes":{"type":"string"},"sign_in_url":{"type":"string"},"title_claim":{"type":"string"}},"required":["client_id","client_secret_set","created_at","email_claim","enabled","id","idp_certificates","idp_entity_id","idp_sso_url","issuer","jit_entity_id","jit_provisioning","jit_role_id","kind","name","name_claim","redirect_uri","scopes","sign_in_url","title_claim"],"type":"object"},"type":"array"},"service_provider":{"properties":{"acs_url":{"type":"string"},"entity_id":{"type":"string"},"metadata_url":{"type":"string"}},"required":["acs_url","entity_id","metadata_url"],"type":"object"}},"required":["domain_record","domain_verified","email_domain","providers","service_provider"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Provider","description":"Add a single sign-on connection, OpenID Connect or SAML. OpenID\nConnect needs an https issuer and a client id; SAML needs the identity\nprovider's entity id, sign-on URL and signing certificate. Answers with\nthe connection as saved, its redirect URI and sign-in URL included.\n\nAdministrators only. Creating people on first sign-in needs a role and\nan entity to give them.","operationId":"create_provider_api_v1_admin_identity_providers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"},"created_at":{"type":"string"},"email_claim":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"idp_certificates":{"type":"array"},"idp_entity_id":{"type":"string"},"idp_sso_url":{"type":"string"},"issuer":{"type":"string"},"jit_entity_id":{"type":"null"},"jit_provisioning":{"type":"boolean"},"jit_role_id":{"type":"null"},"kind":{"type":"string"},"name":{"type":"string"},"name_claim":{"type":"string"},"redirect_uri":{"type":"string"},"scopes":{"type":"string"},"sign_in_url":{"type":"string"},"title_claim":{"type":"string"}},"required":["client_id","client_secret_set","created_at","email_claim","enabled","id","idp_certificates","idp_entity_id","idp_sso_url","issuer","jit_entity_id","jit_provisioning","jit_role_id","kind","name","name_claim","redirect_uri","scopes","sign_in_url","title_claim"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/identity/domain/verify":{"post":{"tags":["admin"],"summary":"Verify Domain","description":"Look for the TXT record that proves the organisation runs its domain.","operationId":"verify_domain_api_v1_admin_identity_domain_verify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"domain_verified":{"type":"boolean"},"email_domain":{"type":"string"}},"required":["domain_verified","email_domain"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/identity/providers/{provider_id}":{"put":{"tags":["admin"],"summary":"Update Provider","description":"Replace a single sign-on connection's settings, under the rules\nthat hold when one is added. An omitted `client_secret` keeps the\nstored secret; an empty one clears it. Answers with the connection as\nsaved.\n\nAdministrators only.","operationId":"update_provider_api_v1_admin_identity_providers__provider_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"},"created_at":{"type":"string"},"email_claim":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"idp_certificates":{"type":"array"},"idp_entity_id":{"type":"string"},"idp_sso_url":{"type":"string"},"issuer":{"type":"string"},"jit_entity_id":{"type":"null"},"jit_provisioning":{"type":"boolean"},"jit_role_id":{"type":"null"},"kind":{"type":"string"},"name":{"type":"string"},"name_claim":{"type":"string"},"redirect_uri":{"type":"string"},"scopes":{"type":"string"},"sign_in_url":{"type":"string"},"title_claim":{"type":"string"}},"required":["client_id","client_secret_set","created_at","email_claim","enabled","id","idp_certificates","idp_entity_id","idp_sso_url","issuer","jit_entity_id","jit_provisioning","jit_role_id","kind","name","name_claim","redirect_uri","scopes","sign_in_url","title_claim"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Provider","description":"Delete a single sign-on connection, and with it any sign-in under\nway through it. Answers with no content.\n\nAdministrators only.","operationId":"delete_provider_api_v1_admin_identity_providers__provider_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/identity/scim-tokens":{"get":{"tags":["admin"],"summary":"List Scim Tokens","description":"The account's SCIM provisioning tokens, revoked ones included: each\none's name, prefix, and when it was created, last used and revoked.\nAnswers too with the SCIM base URL to point a directory at. No token's\nsecret is returned.\n\nAdministrators only.","operationId":"list_scim_tokens_api_v1_admin_identity_scim_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"base_url":{"type":"string"},"tokens":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"last_used_at":{"type":"null"},"name":{"type":"string"},"prefix":{"type":"string"},"revoked_at":{"type":"null"}},"required":["created_at","id","last_used_at","name","prefix","revoked_at"],"type":"object"},"type":"array"}},"required":["base_url","tokens"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["admin"],"summary":"Create Scim Token","description":"Issue a SCIM provisioning token under a name, \"Provisioning\" when\nnone is given. Answers with the token's secret, this once: only its\nhash is stored, so it cannot be read again.\n\nAdministrators only.","operationId":"create_scim_token_api_v1_admin_identity_scim_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScimTokenIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"prefix":{"type":"string"},"token":{"type":"string"}},"required":["created_at","id","name","prefix","token"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/identity/scim-tokens/{token_id}/revoke":{"post":{"tags":["admin"],"summary":"Revoke Scim Token","description":"Revoke a SCIM provisioning token, so that a directory can no longer\nuse it. The token stays on the list, marked revoked. Answers with its\nid and when it was revoked.\n\nAdministrators only.","operationId":"revoke_scim_token_api_v1_admin_identity_scim_tokens__token_id__revoke_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"revoked_at":{"type":"string"}},"required":["id","revoked_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/identity/mfa":{"get":{"tags":["admin"],"summary":"Mfa Settings","description":"The policy, how many it covers and how, and whether the deployment\nmeans it. Who is covered is a page at a time from the route below.","operationId":"mfa_settings_api_v1_admin_identity_mfa_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"administrators_always":{"type":"boolean"},"counts":{"properties":{"enrolled":{"type":"integer"},"everybody":{"type":"integer"},"through_directory":{"type":"integer"},"without":{"type":"integer"}},"required":["enrolled","everybody","through_directory","without"],"type":"object"},"enforced":{"type":"boolean"},"policy":{"type":"string"},"sso_connections":{"type":"integer"}},"required":["administrators_always","counts","enforced","policy","sso_connections"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"put":{"tags":["admin"],"summary":"Set Mfa Policy","description":"Turn insistence on or off.\n\nSwitching to `required` locks nobody out: somebody without an authenticator\nis asked to set one up at their next sign-in rather than refused, which is\nwhat makes this safe to turn on during a working day.","operationId":"set_mfa_policy_api_v1_admin_identity_mfa_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaPolicyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"administrators_always":{"type":"boolean"},"enforced":{"type":"boolean"},"policy":{"type":"string"}},"required":["administrators_always","enforced","policy"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/identity/mfa/people":{"get":{"tags":["admin"],"summary":"Page Mfa People","description":"Who the policy covers, searched, filtered and paged by the database\nrather than by the screen, the way Admin -> People is.\n\nSearching looks at the name and the email; every word has to be found in\none of them. The filter narrows to one standing: those with an\nauthenticator, those with none who are not through the directory (the\ngap the policy is about), those through the directory, or the\nadministrators, whom a deployment may ask regardless.","operationId":"page_mfa_people_api_v1_admin_identity_mfa_people_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"standing","in":"query","required":false,"schema":{"anyOf":[{"enum":["enrolled","without","directory","administrators"],"type":"string"},{"type":"null"}],"title":"Standing"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"has_more":{"type":"boolean"},"matched":{"type":"integer"},"people":{"items":{"properties":{"email":{"type":"string"},"enrolled":{"type":"boolean"},"full_name":{"type":"string"},"id":{"type":"integer"},"is_account_admin":{"type":"boolean"},"recovery_codes_left":{"type":"integer"},"signs_in_through_directory":{"type":"boolean"},"status":{"type":"string"}},"required":["email","enrolled","full_name","id","is_account_admin","recovery_codes_left","signs_in_through_directory","status"],"type":"object"},"type":"array"},"total":{"type":"integer"}},"required":["has_more","matched","people","total"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/identity/mfa/{person_id}/reset":{"post":{"tags":["admin"],"summary":"Reset Mfa","description":"Clear somebody's authenticator, because their phone is gone.\n\nThe one thing an administrator can do to a second factor. It grants nothing\n- the person still needs their password, and on a `required` account they\nare made to enrol again at the next sign-in - and it is recorded against the\nadministrator who did it, because \"somebody's second factor was removed\" is\nexactly the entry an investigation goes looking for.","operationId":"reset_mfa_api_v1_admin_identity_mfa__person_id__reset_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"enrolled":{"type":"boolean"},"id":{"type":"integer"}},"required":["enrolled","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/survey-scale":{"get":{"tags":["admin"],"summary":"Survey Scale","description":"Every scale this account's people will be shown.","operationId":"survey_scale_api_v1_admin_survey_scale_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"agreement_labels":{"items":{"type":"string"},"type":"array"},"agreement_scale":{"items":{"properties":{"label":{"type":"string"},"score":{"type":"integer"}},"required":["label","score"],"type":"object"},"type":"array"},"applies_to":{"properties":{"agreement_labels":{"type":"string"},"ot_labels":{"type":"string"},"sw_labels":{"type":"string"}},"required":["agreement_labels","ot_labels","sw_labels"],"type":"object"},"include_neutral":{"type":"boolean"},"ot_labels":{"items":{"type":"string"},"type":"array"},"quadrant_texts":{"properties":{},"required":[],"type":"object"},"scores":{"items":{"type":"integer"},"type":"array"},"survey_mode":{"type":"string"},"survey_scores":{"items":{"type":"integer"},"type":"array"},"sw_labels":{"items":{"type":"string"},"type":"array"}},"required":["agreement_labels","agreement_scale","applies_to","include_neutral","ot_labels","quadrant_texts","scores","survey_mode","survey_scores","sw_labels"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"put":{"tags":["admin"],"summary":"Set Survey Scale","description":"Reword a scale, or put Neutral on it and take it off.\n\nAnswers already given are left exactly as they are. A survey is a record of\nwhat people said when they were asked, and rewriting old answers to fit a\nsetting changed afterwards would be inventing opinions. The scores are\nuntouched by a rewording anyway - a -3 is a -3 - so every mean, matrix and\ncomparison reads as it always did; what moves is the word beside them.","operationId":"set_survey_scale_api_v1_admin_survey_scale_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyScaleIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"agreement_labels":{"items":{"type":"string"},"type":"array"},"agreement_scale":{"items":{"properties":{"label":{"type":"string"},"score":{"type":"integer"}},"required":["label","score"],"type":"object"},"type":"array"},"applies_to":{"properties":{"agreement_labels":{"type":"string"},"ot_labels":{"type":"string"},"sw_labels":{"type":"string"}},"required":["agreement_labels","ot_labels","sw_labels"],"type":"object"},"include_neutral":{"type":"boolean"},"ot_labels":{"items":{"type":"string"},"type":"array"},"quadrant_texts":{"properties":{"opportunity_strength":{"type":"string"},"threat_weakness":{"type":"string"}},"required":[],"type":"object"},"scores":{"items":{"type":"integer"},"type":"array"},"survey_mode":{"type":"string"},"survey_scores":{"items":{"type":"integer"},"type":"array"},"sw_labels":{"items":{"type":"string"},"type":"array"}},"required":["agreement_labels","agreement_scale","applies_to","include_neutral","ot_labels","quadrant_texts","scores","survey_mode","survey_scores","sw_labels"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/entities/{entity_id}/adoption":{"get":{"tags":["adoption"],"summary":"Overview","description":"Every live initiative here and beneath, with the state of its change.","operationId":"overview_api_v1_entities__entity_id__adoption_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"initiatives":{"items":{"properties":{"activities_done":{"type":"integer"},"activities_total":{"type":"integer"},"effective":{"properties":{"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"kpi":{"type":"string"},"kpi_id":{"type":"integer"},"met":{"type":"boolean"},"reading_count":{"type":"integer"},"target_value":{"type":"number"},"trend":{"type":"string"},"unit":{"type":"string"}},"required":["current_source","current_value","days_since_reading","kpi","kpi_id","met","reading_count","target_value","trend","unit"],"type":["null","object"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"groups":{"type":"integer"},"initiative_id":{"type":"integer"},"name":{"type":"string"},"readiness":{"type":"null"},"resistance_open":{"type":"integer"},"rounds":{"type":"integer"},"status":{"type":"string"},"targets":{"type":"integer"},"targets_met":{"type":"integer"}},"required":["activities_done","activities_total","effective","entity_id","entity_name","groups","initiative_id","name","readiness","resistance_open","rounds","status","targets","targets_met"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"}},"required":["initiatives","permissions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/change-saturation":{"get":{"tags":["adoption"],"summary":"Change Saturation","description":"The saturation heatmap: for this entity and each one beneath it, how\nmuch change lands in each of the last `months` months, 1 to 24 and six\nby default. A cell sums the impact weights of the live initiatives that\ntouch a group there, and names those initiatives.\n\nNeeds `adoption.view` on the entity.","operationId":"change_saturation_api_v1_entities__entity_id__change_saturation_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"hottest":{"type":"integer"},"months":{"items":{"type":"string"},"type":"array"},"rows":{"items":{"properties":{"cells":{"items":{"properties":{"initiatives":{"type":"array"},"month":{"type":"string"},"weight":{"type":"integer"}},"required":["initiatives","month","weight"],"type":"object"},"type":"array"},"entity":{"type":"string"},"entity_id":{"type":"integer"}},"required":["cells","entity","entity_id"],"type":"object"},"type":"array"}},"required":["hottest","months","rows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/adoption":{"get":{"tags":["adoption"],"summary":"Initiative Adoption","description":"Everything about one initiative's change: its summary, the groups it\nhappens to and where each stands, its readiness rounds with their\nresults, its communications and training activities, its resistance log\nand its adoption targets. Answers too with the caller's rights on the\ninitiative's entity.\n\nNeeds `adoption.view` on the initiative's entity.","operationId":"initiative_adoption_api_v1_initiatives__initiative_id__adoption_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"activities":{"items":{"properties":{"actual_at":{"type":"string"},"channel":{"type":"string"},"description":{"type":"string"},"group_ids":{"items":{"type":"integer"},"type":"array"},"group_names":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"kind":{"type":"string"},"owner_id":{"type":"null"},"owner_name":{"type":"null"},"planned_at":{"type":"string"},"reach":{"type":"integer"},"status":{"type":"string"},"title":{"type":"string"}},"required":["actual_at","channel","description","group_ids","group_names","id","kind","owner_id","owner_name","planned_at","reach","status","title"],"type":"object"},"type":"array"},"activities_done":{"type":"integer"},"activities_total":{"type":"integer"},"dimensions":{"items":{"properties":{"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"effective":{"properties":{"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"kpi":{"type":"string"},"kpi_id":{"type":"integer"},"met":{"type":["null","boolean"]},"reading_count":{"type":"integer"},"target_value":{"type":["null","number"]},"trend":{"type":["null","string"]},"unit":{"type":"string"}},"required":["current_source","current_value","days_since_reading","kpi","kpi_id","met","reading_count","target_value","trend","unit"],"type":["null","object"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"groups":{"type":"integer"},"initiative_id":{"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"type":"string"},"type":"array"},"readiness":{"type":["null","number"]},"readiness_invite":{"properties":{"body":{"type":"string"},"subject":{"type":"string"}},"required":["body","subject"],"type":"object"},"resistance":{"items":{"properties":{"created_at":{"type":"string"},"group_id":{"type":"integer"},"group_name":{"type":"string"},"heard":{"type":"string"},"id":{"type":"integer"},"owner_id":{"type":"null"},"owner_name":{"type":"null"},"response":{"type":"string"},"root_cause":{"type":"string"},"status":{"type":"string"},"updated_at":{"type":"string"}},"required":["created_at","group_id","group_name","heard","id","owner_id","owner_name","response","root_cause","status","updated_at"],"type":"object"},"type":"array"},"resistance_open":{"type":"integer"},"rounds":{"items":{"properties":{"answered":{"type":"integer"},"answers":{"type":"integer"},"by_dimension":{"items":{"properties":{"answers":{"type":"integer"},"average":{"type":["null","number"]},"key":{"type":"string"},"label":{"type":"string"}},"required":["answers","average","key","label"],"type":"object"},"type":"array"},"closed_at":{"type":"null"},"comments":{"items":{"type":"string"},"type":"array"},"dimensions":{"items":{"properties":{"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"group_id":{"type":"integer"},"group_name":{"type":"string"},"hidden":{"type":"boolean"},"id":{"type":"integer"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"invited":{"type":"integer"},"last_reminded_at":{"type":"null"},"min_answers":{"type":"integer"},"name":{"type":"string"},"opened_at":{"type":"string"},"overall":{"type":["null","number"]},"per_person":{"type":"boolean"},"remind_after":{"type":["null","string"]},"response_rate":{"type":["null","number"]},"skipped_inactive":{"type":"integer"},"skipped_outside_unpaid":{"type":"integer"},"skipped_unsubscribed":{"type":"integer"},"withdrawn":{"type":"integer"}},"required":["answered","answers","by_dimension","closed_at","comments","dimensions","group_id","group_name","hidden","id","invite_body","invite_subject","invited","last_reminded_at","min_answers","name","opened_at","overall","per_person","remind_after","response_rate","skipped_inactive","skipped_outside_unpaid","skipped_unsubscribed","withdrawn"],"type":"object"},"type":"array"},"stakeholders":{"items":{"properties":{"group":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"counts":{"properties":{"contacts":{"type":"integer"},"people":{"type":"integer"},"total":{"type":"integer"}},"required":["contacts","people","total"],"type":"object"},"description":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"owner_entity_id":{"type":"integer"},"owner_entity_name":{"type":"string"},"rule":{"properties":{"beneath":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"role_id":{"type":"null"},"role_name":{"type":"null"},"title":{"type":"string"}},"required":["beneath","entity_id","entity_name","role_id","role_name","title"],"type":"object"}},"required":["archived_at","archived_by","counts","description","id","name","owner_entity_id","owner_entity_name","rule"],"type":"object"},"id":{"type":"integer"},"impact":{"properties":{"location":{"type":"string"},"process":{"type":"string"},"role":{"type":"string"},"skills":{"type":"string"},"tools":{"type":"string"}},"required":["location","process","role","skills","tools"],"type":"object"},"impact_weight":{"type":"integer"},"influence":{"type":"integer"},"notes":{"type":"string"},"sponsor_id":{"type":"integer"},"sponsor_name":{"type":"string"},"support":{"type":"integer"}},"required":["group","id","impact","impact_weight","influence","notes","sponsor_id","sponsor_name","support"],"type":"object"},"type":"array"},"status":{"type":"string"},"targets":{"items":{"properties":{"created_at":{"type":"string"},"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"drift":{"type":["null","number"]},"id":{"type":"integer"},"initiative_id":{"type":"integer"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"string"},"met":{"type":"boolean"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"target_date":{"type":"null"},"target_value":{"type":"number"},"trend":{"type":"string"}},"required":["created_at","current_source","current_value","days_since_reading","drift","id","initiative_id","kpi","kpi_source","last_measured_on","met","reading_count","readings","target_date","target_value","trend"],"type":"object"},"type":"array"},"targets_met":{"type":"integer"}},"required":["activities","activities_done","activities_total","dimensions","effective","entity_id","entity_name","groups","initiative_id","name","permissions","readiness","readiness_invite","resistance","resistance_open","rounds","stakeholders","status","targets","targets_met"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/stakeholders":{"post":{"tags":["adoption"],"summary":"Add Stakeholder","description":"Place a group from the account's library on an initiative as a\nstakeholder, with its influence and support from 1 to 5, the impact on\nit by area, a sponsor and notes. Answers with the new row's id.\n\nNeeds `adoption.manage` on the initiative's entity. A group already on\nthe initiative is refused.","operationId":"add_stakeholder_api_v1_initiatives__initiative_id__stakeholders_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StakeholderIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiative-stakeholders/{row_id}":{"put":{"tags":["adoption"],"summary":"Update Stakeholder","description":"Replace a stakeholder group's influence, support, impact, sponsor and\nnotes on its initiative. Answers with the row's id. The group itself\nstays as it was placed, whatever `group_id` the body carries.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"update_stakeholder_api_v1_initiative_stakeholders__row_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StakeholderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Stakeholder Api V1 Initiative Stakeholders  Row Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["adoption"],"summary":"Remove Stakeholder","description":"Take a stakeholder group off its initiative. The group stays in the\naccount's library. Answers `{\"removed\": true}`.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"remove_stakeholder_api_v1_initiative_stakeholders__row_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Stakeholder Api V1 Initiative Stakeholders  Row Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/readiness-rounds":{"post":{"tags":["adoption"],"summary":"Open Round","description":"Open a round for a group: each member sent their own link, or one\nshared link. The shared link is answered with here, once - the raw token\nis not stored, so this is the only time it can be read. Personal links\nare only ever in the letters (services/readiness.py).","operationId":"open_round_api_v1_initiatives__initiative_id__readiness_rounds_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__adoption__RoundIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"invited":{"type":"integer"},"link":{"type":["null","string"]},"name":{"type":"string"},"per_person":{"type":"boolean"},"skipped_inactive":{"type":"integer"},"skipped_outside_unpaid":{"type":"integer"},"skipped_unsubscribed":{"type":"integer"}},"required":["id","invited","link","name","per_person","skipped_inactive","skipped_outside_unpaid","skipped_unsubscribed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/readiness-rounds/{round_id}":{"get":{"tags":["adoption"],"summary":"Get Round","description":"One readiness round: its group, its questions, when it opened and\nclosed, and its progress as counts of people invited, answered and\nwithdrawn. The average scores and the comments appear once three\nanswers are in; below that only the count of answers shows.\n\nNeeds `adoption.view` on the initiative's entity.","operationId":"get_round_api_v1_readiness_rounds__round_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answered":{"type":"integer"},"answers":{"type":"integer"},"by_dimension":{"items":{"properties":{"answers":{"type":"integer"},"average":{"type":["null","number"]},"key":{"type":"string"},"label":{"type":"string"}},"required":["answers","average","key","label"],"type":"object"},"type":"array"},"closed_at":{"type":"null"},"comments":{"items":{"type":"string"},"type":"array"},"dimensions":{"items":{"properties":{"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"group_id":{"type":"integer"},"group_name":{"type":"string"},"hidden":{"type":"boolean"},"id":{"type":"integer"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"invited":{"type":"integer"},"last_reminded_at":{"type":["null","string"]},"min_answers":{"type":"integer"},"name":{"type":"string"},"opened_at":{"type":"string"},"overall":{"type":["null","number"]},"per_person":{"type":"boolean"},"remind_after":{"type":["null","string"]},"response_rate":{"type":["null","number"]},"skipped_inactive":{"type":"integer"},"skipped_outside_unpaid":{"type":"integer"},"skipped_unsubscribed":{"type":"integer"},"withdrawn":{"type":"integer"}},"required":["answered","answers","by_dimension","closed_at","comments","dimensions","group_id","group_name","hidden","id","invite_body","invite_subject","invited","last_reminded_at","min_answers","name","opened_at","overall","per_person","remind_after","response_rate","skipped_inactive","skipped_outside_unpaid","skipped_unsubscribed","withdrawn"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/readiness-rounds/{round_id}/invitations":{"get":{"tags":["adoption"],"summary":"List Round Invitations","description":"Who was sent a link, and whether they have answered - never what.","operationId":"list_round_invitations_api_v1_readiness_rounds__round_id__invitations_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"invitations":{"items":{"properties":{"anonymised":{"type":"boolean"},"answered":{"type":"boolean"},"contact_id":{"type":"null"},"email":{"type":"string"},"id":{"type":"integer"},"invited_at":{"type":"string"},"kind":{"type":"string"},"last_reminded_at":{"type":["null","string"]},"letter":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"reminders":{"type":"integer"},"unsubscribed":{"type":"boolean"},"withdrawn_at":{"type":["null","string"]}},"required":["anonymised","answered","contact_id","email","id","invited_at","kind","last_reminded_at","letter","name","person_id","reminders","unsubscribed","withdrawn_at"],"type":"object"},"type":"array"}},"required":["invitations"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/readiness-rounds/{round_id}/remind":{"post":{"tags":["adoption"],"summary":"Remind Round","description":"Email a reminder, with a new link, to everybody invited to a round\nwho has yet to answer and was last written to at least 24 hours ago.\nThe link each of them held before stops working. Answers with how many\nwere reminded, how many are waiting, how many were written to too\nrecently and how many could not be reached.\n\nNeeds `adoption.manage` on the initiative's entity. Refused on a closed\nround, on a round with one shared link, and when nobody is due a\nreminder.","operationId":"remind_round_api_v1_readiness_rounds__round_id__remind_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"quiet":{"type":"integer"},"reminded":{"type":"integer"},"unreachable":{"type":"integer"},"waiting":{"type":"integer"}},"required":["quiet","reminded","unreachable","waiting"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/readiness-rounds/{round_id}/invite-new":{"post":{"tags":["adoption"],"summary":"Invite New To Round","description":"Send their own link to the members of a round's group who have none\non this round: those who joined since it opened. A subject or body in\nthe request replaces the wording the round's invitations go out in.\nAnswers with how many were invited and how many were skipped, by reason.\n\nNeeds `adoption.manage` on the initiative's entity. Refused on a closed\nround and on a round with one shared link. Somebody whose link was\nwithdrawn is not invited again.","operationId":"invite_new_to_round_api_v1_readiness_rounds__round_id__invite_new_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InviteNewIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"invited":{"type":"integer"},"skipped_inactive":{"type":"integer"},"skipped_outside_unpaid":{"type":"integer"},"skipped_unsubscribed":{"type":"integer"}},"required":["invited","skipped_inactive","skipped_outside_unpaid","skipped_unsubscribed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/readiness-invitations/{invitation_id}/withdraw":{"post":{"tags":["adoption"],"summary":"Withdraw Invitation","description":"Withdraw one person's link to a readiness round, so that it takes no\nanswer. Answers with the invitation's id and when it was withdrawn.\n\nNeeds `adoption.manage` on the initiative's entity. Refused once the\nperson has answered.","operationId":"withdraw_invitation_api_v1_readiness_invitations__invitation_id__withdraw_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"integer","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"withdrawn_at":{"type":"string"}},"required":["id","withdrawn_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/readiness-rounds/{round_id}/close":{"post":{"tags":["adoption"],"summary":"Close Round","description":"Close a readiness round, after which its links take no more answers.\nAnswers with the round's id and when it closed. A round already closed\nkeeps the time it first closed.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"close_round_api_v1_readiness_rounds__round_id__close_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"closed_at":{"type":"string"},"id":{"type":"integer"}},"required":["closed_at","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/activities":{"post":{"tags":["adoption"],"summary":"Add Activity","description":"Plan an activity on an initiative: a communication, training,\ncoaching or an event, with a title, a channel, an owner, the groups it\nis for and when it is planned. Answers with the new activity's id.\n\nNeeds `adoption.manage` on the initiative's entity. Times given without\na zone are read in the entity's time zone. An activity saved as done\nwith no actual time takes the present one.","operationId":"add_activity_api_v1_initiatives__initiative_id__activities_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activities/{activity_id}":{"put":{"tags":["adoption"],"summary":"Update Activity","description":"Replace every field of a planned activity: its kind, title,\ndescription, channel, owner, groups, planned and actual times, status\nand reach. Answers with the activity's id.\n\nNeeds `adoption.manage` on the initiative's entity. An activity saved\nas done with no actual time takes the present one.","operationId":"update_activity_api_v1_activities__activity_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"activity_id","in":"path","required":true,"schema":{"type":"integer","title":"Activity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["adoption"],"summary":"Remove Activity","description":"Delete an activity from its initiative's plan. Answers\n`{\"removed\": true}`.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"remove_activity_api_v1_activities__activity_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"activity_id","in":"path","required":true,"schema":{"type":"integer","title":"Activity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Activity Api V1 Activities  Activity Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/resistance":{"post":{"tags":["adoption"],"summary":"Log Resistance","description":"Log resistance to an initiative: what was heard, and optionally the\ngroup it came from, its root cause, the response, an owner and a status\nof open, addressed or closed. Answers with the new entry's id.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"log_resistance_api_v1_initiatives__initiative_id__resistance_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResistanceIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resistance/{entry_id}":{"put":{"tags":["adoption"],"summary":"Update Resistance","description":"Replace every field of a resistance entry: what was heard, its\ngroup, root cause, response, owner and status. Answers with the entry's\nid.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"update_resistance_api_v1_resistance__entry_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResistanceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/adoption-targets":{"post":{"tags":["adoption"],"summary":"Add Target","description":"Set an adoption target on an initiative: a KPI from the account's\nlibrary, the value to reach and optionally the date to reach it by.\nAnswers with the target and where it stands.\n\nNeeds `adoption.manage` on the initiative's entity. A KPI that is\nalready a target on the initiative is refused.","operationId":"add_target_api_v1_initiatives__initiative_id__adoption_targets_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__adoption__TargetIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"current_source":{"type":"null"},"current_value":{"type":"null"},"days_since_reading":{"type":"null"},"drift":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":"integer"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"null"},"met":{"type":"null"},"reading_count":{"type":"integer"},"readings":{"type":"array"},"target_date":{"type":["null","string"]},"target_value":{"type":"number"},"trend":{"type":"string"}},"required":["created_at","current_source","current_value","days_since_reading","drift","id","initiative_id","kpi","kpi_source","last_measured_on","met","reading_count","readings","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/adoption-targets/{target_id}":{"put":{"tags":["adoption"],"summary":"Update Target","description":"Move a target. A different KPI starts a fresh series, because the\nseries is the readings under the KPI the target has now; the old\nreadings stay on record.","operationId":"update_target_api_v1_adoption_targets__target_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__adoption__TargetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"current_source":{"type":["null","string"]},"current_value":{"type":["null","number"]},"days_since_reading":{"type":["null","integer"]},"drift":{"type":["null","number"]},"id":{"type":"integer"},"initiative_id":{"type":"integer"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":["null","string"]},"met":{"type":["null","boolean"]},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"target_date":{"type":"null"},"target_value":{"type":"number"},"trend":{"type":"string"}},"required":["created_at","current_source","current_value","days_since_reading","drift","id","initiative_id","kpi","kpi_source","last_measured_on","met","reading_count","readings","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["adoption"],"summary":"Remove Target","description":"Delete an adoption target and every reading recorded against it.\nAnswers `{\"removed\": true}`.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"remove_target_api_v1_adoption_targets__target_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"removed":{"type":"boolean"}},"required":["removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/adoption-targets/{target_id}/readings":{"get":{"tags":["adoption"],"summary":"List Target Readings","description":"One adoption target with its readings, oldest first: its KPI, target\nvalue and date, current value, trend and whether the target is met.\nThe readings are the latest 200 live ones; `include_voided=true` lists\nthem all, the withdrawn ones among them.\n\nNeeds `adoption.view` on the initiative's entity.","operationId":"list_target_readings_api_v1_adoption_targets__target_id__readings_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"include_voided","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Voided"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"drift":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":"integer"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"string"},"met":{"type":"boolean"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":["null","string"]},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"target_date":{"type":"null"},"target_value":{"type":"number"},"trend":{"type":"string"}},"required":["created_at","current_source","current_value","days_since_reading","drift","id","initiative_id","kpi","kpi_source","last_measured_on","met","reading_count","readings","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["adoption"],"summary":"Record Target Reading","description":"Record a reading of an adoption target's KPI: a value, the day it\nwas measured (today when omitted) and a note. Answers with the new\nreading and the target as it now stands.\n\nNeeds `adoption.manage` on the initiative's entity. Refused for a date\nin the future, and for a KPI whose readings are derived from its\nsource.","operationId":"record_target_reading_api_v1_adoption_targets__target_id__readings_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"drift":{"type":["null","number"]},"id":{"type":"integer"},"initiative_id":{"type":"integer"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"string"},"met":{"type":"boolean"},"reading":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"target_date":{"type":"null"},"target_value":{"type":"number"},"trend":{"type":"string"}},"required":["created_at","current_source","current_value","days_since_reading","drift","id","initiative_id","kpi","kpi_source","last_measured_on","met","reading","reading_count","readings","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/adoption-targets/{target_id}/readings/{reading_id}/void":{"post":{"tags":["adoption"],"summary":"Void Target Reading","description":"Withdraw a reading recorded against an adoption target, with an\noptional reason. The reading stays on record, marked void, and no\nlonger counts towards the target. Answers with the reading's id.\nVoiding a reading twice changes nothing.\n\nNeeds `adoption.manage` on the initiative's entity.","operationId":"void_target_reading_api_v1_adoption_targets__target_id__readings__reading_id__void_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"reading_id","in":"path","required":true,"schema":{"type":"integer","title":"Reading Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"voided":{"type":"boolean"}},"required":["id","voided"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/readiness/{token}":{"get":{"tags":["adoption"],"summary":"Readiness Page","description":"What a readiness link opens, for whoever holds it, without signing\nin: the round's name, its initiative and group, the questions to\nanswer, and whether the link is open, answered, withdrawn or closed.\n`personal` says whether the link is one person's own or the round's\nshared one. An unknown link is not found.","operationId":"readiness_page_api_v1_readiness__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"dimensions":{"items":{"properties":{"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"group":{"type":"string"},"initiative":{"type":"string"},"name":{"type":"string"},"open":{"type":"boolean"},"personal":{"type":"boolean"},"state":{"type":"string"}},"required":["dimensions","group","initiative","name","open","personal","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["adoption"],"summary":"Answer Readiness","description":"An answer, from nobody in particular. On a personal link the link is\nmarked answered and the answer written in one commit, and the answer\nnames neither - not even by its time, which is the round's opening. No\naudit event and no notification: either would say who answered when.","operationId":"answer_readiness_api_v1_readiness__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__adoption__AnswerIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answered":{"type":"boolean"}},"required":["answered"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/apps":{"get":{"tags":["apps"],"summary":"List Apps","description":"What is installed, and every scope an app could be granted.","operationId":"list_apps_api_v1_apps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"all_scopes":{"items":{"type":"string"},"type":"array"},"apps":{"items":{"properties":{"base_url":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"installed_at":{"type":"string"},"name":{"type":"string"},"panels":{"type":"array"},"person_id":{"type":"integer"},"person_status":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"},"usable":{"type":"boolean"},"vendor":{"type":"string"}},"required":["base_url","description","enabled","id","installed_at","name","panels","person_id","person_status","scopes","usable","vendor"],"type":"object"},"type":"array"},"panel_kinds":{"items":{"type":"string"},"type":"array"},"panel_where":{"items":{"type":"string"},"type":"array"}},"required":["all_scopes","apps","panel_kinds","panel_where"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["apps"],"summary":"Install App","description":"Install one. Both secrets are in this response and in no other.","operationId":"install_app_api_v1_apps_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"base_url":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"installed_at":{"type":"string"},"name":{"type":"string"},"panels":{"type":"array"},"person_id":{"type":"integer"},"person_status":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"},"secret":{"type":"string"},"shown_once":{"type":"string"},"token":{"type":"string"},"usable":{"type":"boolean"},"vendor":{"type":"string"}},"required":["base_url","description","enabled","id","installed_at","name","panels","person_id","person_status","scopes","secret","shown_once","token","usable","vendor"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/apps/{app_id}":{"put":{"tags":["apps"],"summary":"Update App","description":"Rename it, move it, or change what it may reach.\n\nChanging the scopes rewrites the token's, because the token *is* the app's\npermission and two lists that could disagree would be two answers to what\nit may do.","operationId":"update_app_api_v1_apps__app_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update App Api V1 Apps  App Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["apps"],"summary":"Uninstall App","description":"Remove it, its panels and what it pushed.\n\nIts *person* is deactivated rather than deleted, and that is the whole of\nthe care here: the audit trail names it for everything it ever did, and a\nrow that vanished would take the explanation of those entries with it.\n\nA field the app owns holds it back. Deleting one deletes every answer\nanybody gave it, which is a real loss and somebody else's decision - so the\nrefusal names the fields and stops.","operationId":"uninstall_app_api_v1_apps__app_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/apps/{app_id}/enabled":{"post":{"tags":["apps"],"summary":"Set Enabled","description":"Stop it without losing what it has pushed.\n\nOff rather than uninstalled, because the first thing somebody wants when an\napp starts behaving oddly is for it to stop - not for a decision about\nwhether to keep its data.","operationId":"set_enabled_api_v1_apps__app_id__enabled_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"base_url":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"installed_at":{"type":"string"},"name":{"type":"string"},"panels":{"items":{"properties":{"height":{"type":"integer"},"id":{"type":"integer"},"kind":{"type":"string"},"path":{"type":"string"},"title":{"type":"string"},"where":{"type":"string"}},"required":["height","id","kind","path","title","where"],"type":"object"},"type":"array"},"person_id":{"type":"integer"},"person_status":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"},"usable":{"type":"boolean"},"vendor":{"type":"string"}},"required":["base_url","description","enabled","id","installed_at","name","panels","person_id","person_status","scopes","usable","vendor"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/apps/{app_id}/panels":{"post":{"tags":["apps"],"summary":"Add Panel","description":"Give an app somewhere to render.\n\nRegistered by the administrator rather than claimed by the app, on purpose:\nwhere a third party appears in this product is the account's decision, and\nan app that could add its own panels could add six.","operationId":"add_panel_api_v1_apps__app_id__panels_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanelIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"base_url":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"installed_at":{"type":"string"},"name":{"type":"string"},"panels":{"items":{"properties":{"height":{"type":"integer"},"id":{"type":"integer"},"kind":{"type":"string"},"path":{"type":"string"},"title":{"type":"string"},"where":{"type":"string"}},"required":["height","id","kind","path","title","where"],"type":"object"},"type":"array"},"person_id":{"type":"integer"},"person_status":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"},"usable":{"type":"boolean"},"vendor":{"type":"string"}},"required":["base_url","description","enabled","id","installed_at","name","panels","person_id","person_status","scopes","usable","vendor"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/apps/{app_id}/panels/{panel_id}":{"delete":{"tags":["apps"],"summary":"Remove Panel","description":"Remove one of an app's panels, with the data the app stored for it,\nand return the app as it now stands.\n\nAdministrators only.","operationId":"remove_panel_api_v1_apps__app_id__panels__panel_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}},{"name":"panel_id","in":"path","required":true,"schema":{"type":"integer","title":"Panel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Panel Api V1 Apps  App Id  Panels  Panel Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/apps/me":{"get":{"tags":["apps"],"summary":"Who Am I","description":"What an app can find out about its own installation.\n\nThe first call anybody writing one makes, and the one that tells them their\ntoken works and what it may do.","operationId":"who_am_i_api_v1_apps_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Who Am I Api V1 Apps Me Get"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/apps/me/panels/{panel_id}/work-items/{work_item_id}":{"put":{"tags":["apps"],"summary":"Put Panel Rows","description":"What this app has to say about this item, replacing whatever it said.\n\nBounded by the app's own reach: `work_item_id` is checked against the\naccount, and the app can only write to a panel it owns. It is not checked\nagainst the app's *entity memberships*, and that is deliberate - a panel is\ndrawn to whoever can already see the item, so an app pushing rows for an\nitem it cannot itself read would be pushing into a screen it cannot read\neither.","operationId":"put_panel_rows_api_v1_apps_me_panels__panel_id__work_items__work_item_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"integer","title":"Panel Id"}},{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"},"rows":{"type":"integer"}},"required":["ok","rows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/apps/me/fields/{field_id}/work-items/{work_item_id}":{"put":{"tags":["apps"],"summary":"Set Field Value","description":"Write an app field's answer, and what it reads as.\n\nThe only writer of `display_value` in the product. Both go in one call\nbecause they are one fact, and an app that could write them separately\ncould leave a value showing the wrong words.","operationId":"set_field_value_api_v1_apps_me_fields__field_id__work_items__work_item_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"integer","title":"Field Id"}},{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldValueIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"display":{"type":"string"},"ok":{"type":"boolean"},"value":{"type":"string"}},"required":["display","ok","value"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/triggers":{"get":{"tags":["automation"],"summary":"List Triggers","description":"What a rule may fire on, what it may ask, and what it may then do.\n\nFor anyone: the rule editor reads it, and so does anybody trying to\nunderstand a rule somebody else wrote.","operationId":"list_triggers_api_v1_automation_triggers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actions":{"items":{"properties":{"kind":{"type":"string"},"needs":{"type":"string"}},"required":["kind","needs"],"type":"object"},"type":"array"},"filter_fields":{"items":{"properties":{"custom":{"type":"boolean"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"ops":{"items":{"type":"string"},"type":"array"},"options":{"items":{"properties":{"label":{"type":"string"},"value":{"type":["integer","string"]}},"required":["label","value"],"type":"object"},"type":"array"}},"required":["key","kind","label","ops"],"type":"object"},"type":"array"},"settable_fields":{"items":{"type":"string"},"type":"array"},"statuses":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"workflow_id":{"type":"integer"}},"required":["id","name","workflow_id"],"type":"object"},"type":"array"},"triggers":{"items":{"properties":{"hint":{"type":"string"},"label":{"type":"string"},"verb":{"type":"string"}},"required":["hint","label","verb"],"type":"object"},"type":"array"}},"required":["actions","filter_fields","settable_fields","statuses","triggers"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/automation/rules":{"get":{"tags":["automation"],"summary":"List Rules","description":"Every rule on the account, for anyone.\n\nNot admin-only. What this organisation has told the product to do on its\nown is not a secret from the people it does it to.","operationId":"list_rules_api_v1_automation_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Rules Api V1 Automation Rules Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["automation"],"summary":"Create Rule","description":"Write an automation rule: a name, the event that triggers it, the\nconditions it tests and the actions it takes. The rule runs after every\nexisting one, and comes back as stored.\n\nAdministrators only. A rule that could never work is refused: one with\nan unknown trigger, a condition on a field that does not exist, or an\naction that names something the account does not have.","operationId":"create_rule_api_v1_automation_rules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__automation__RuleIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actions":{"items":{"properties":{"config":{"properties":{"body":{"type":"string"},"field":{"type":"string"},"person_id":{"type":"integer"},"to_state_id":{"type":"integer"},"value":{"type":"string"}},"required":[],"type":"object"},"kind":{"type":"string"}},"required":["config","kind"],"type":"object"},"type":"array"},"conditions":{"items":{"properties":{"field":{"type":"string"},"op":{"type":"string"},"value":{"type":"string"}},"required":["field","op","value"],"type":"object"},"type":"array"},"created_at":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"entity_id":{"type":["null","integer"]},"id":{"type":"integer"},"match_all":{"type":"boolean"},"name":{"type":"string"},"sort_order":{"type":"integer"},"trigger":{"type":"string"},"trigger_label":{"type":"string"},"updated_at":{"type":"string"}},"required":["actions","conditions","created_at","description","enabled","entity_id","id","match_all","name","sort_order","trigger","trigger_label","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/automation/runs":{"get":{"tags":["automation"],"summary":"List Runs","description":"What the rules have been doing.\n\nReadable by anybody, which is the point of it: \"why did this get assigned\nto me\" is a question the person it happened to should be able to answer.","operationId":"list_runs_api_v1_automation_runs_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rule_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rule Id"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AutomationOutcome"},{"type":"null"}],"title":"Outcome"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Runs Api V1 Automation Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/rules/order":{"put":{"tags":["automation"],"summary":"Order Rules","description":"Which rule runs first where several match one event.\n\nAbove the {rule_id} routes, or \"order\" would be read as an id by the first\npattern that matched it.","operationId":"order_rules_api_v1_automation_rules_order_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__automation__RuleOrderIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Order Rules Api V1 Automation Rules Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/automation/rules/{rule_id}":{"put":{"tags":["automation"],"summary":"Update Rule","description":"Replace an automation rule's name, trigger, conditions and actions,\nand return the rule. Its place in the running order stays as it was.\n\nAdministrators only. The body is checked as a new rule's is.","operationId":"update_rule_api_v1_automation_rules__rule_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__automation__RuleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Rule Api V1 Automation Rules  Rule Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["automation"],"summary":"Delete Rule","description":"Remove it, and keep what it did.\n\nThe runs stay. They are the record of things that happened to real work,\nand deleting the rule does not un-assign anybody - so a log that vanished\nwith it would leave those changes unexplained for ever.","operationId":"delete_rule_api_v1_automation_rules__rule_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"removed":{"type":"boolean"}},"required":["id","removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/rules/{rule_id}/enabled":{"post":{"tags":["automation"],"summary":"Set Enabled","description":"Stop it, or start it again.\n\nIts own endpoint rather than a full update, because stopping a rule that is\ndoing something surprising is the most urgent thing anybody does on this\nscreen and it should not require sending the whole rule back.","operationId":"set_enabled_api_v1_automation_rules__rule_id__enabled_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"on","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"On"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actions":{"items":{"properties":{"config":{"properties":{"person_id":{"type":"integer"}},"required":["person_id"],"type":"object"},"kind":{"type":"string"}},"required":["config","kind"],"type":"object"},"type":"array"},"conditions":{"type":"array"},"created_at":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"entity_id":{"type":"null"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"name":{"type":"string"},"sort_order":{"type":"integer"},"trigger":{"type":"string"},"trigger_label":{"type":"string"},"updated_at":{"type":"string"}},"required":["actions","conditions","created_at","description","enabled","entity_id","id","match_all","name","sort_order","trigger","trigger_label","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/catalogue":{"get":{"tags":["billing"],"summary":"Catalogue","description":"The price list, for anybody to read.\n\nThe same cards the billing screen offers, from the same specs, so the\npublic page cannot promise a number the account screen would not. Beside\nthem, what the two add-ons cost: a block of storage, priced per term, and\na block of credits, whose price is on each paid card because it depends on\nthe tier.","operationId":"catalogue_api_v1_billing_catalogue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"plans":{"items":{"properties":{"ai_credits_per_seat":{"type":"integer"},"ai_enabled":{"type":"boolean"},"annual":{"type":"string"},"annual_cents":{"type":"integer"},"blurb":{"type":"string"},"external_collaboration":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"},"max_seats":{"type":["null","integer"]},"model":{"type":["null","string"]},"model_label":{"type":"string"},"monthly":{"type":"string"},"monthly_cents":{"type":"integer"},"plan":{"type":"string"},"storage_addon":{"type":"boolean"},"storage_is_per_seat":{"type":"boolean"},"storage_per_seat":{"type":"string"},"survey_invitations":{"type":"integer"},"survey_invitations_per_seat":{"type":"integer"},"topup_block_price":{"type":"string"}},"required":["ai_credits_per_seat","ai_enabled","annual","annual_cents","blurb","external_collaboration","key","label","max_seats","model","model_label","monthly","monthly_cents","plan","storage_addon","storage_is_per_seat","storage_per_seat","survey_invitations","survey_invitations_per_seat","topup_block_price"],"type":"object"},"type":"array"},"storage_addon":{"properties":{"annual":{"type":"string"},"block_bytes":{"type":"integer"},"block_label":{"type":"string"},"monthly":{"type":"string"}},"required":["annual","block_bytes","block_label","monthly"],"type":"object"},"topup":{"properties":{"block":{"type":"integer"}},"required":["block"],"type":"object"}},"required":["plans","storage_addon","topup"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/billing":{"get":{"tags":["billing"],"summary":"Overview","description":"Everything the billing screen shows, in one round trip.\n\nOne endpoint rather than six because the figures have to agree with each\nother: seats drive the storage cap and the credit allowance, so reading them\nfrom separate requests would let a screen show a seat count from after a\nchange beside an allowance from before it.","operationId":"overview_api_v1_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"account":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"catalogue":{"items":{"properties":{"ai_credits_per_seat":{"type":"integer"},"ai_enabled":{"type":"boolean"},"annual":{"type":"string"},"annual_cents":{"type":"integer"},"blurb":{"type":"string"},"external_collaboration":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"},"max_seats":{"type":["null","integer"]},"model":{"type":["null","string"]},"model_label":{"type":"string"},"monthly":{"type":"string"},"monthly_cents":{"type":"integer"},"plan":{"type":"string"},"storage_addon":{"type":"boolean"},"storage_is_per_seat":{"type":"boolean"},"storage_per_seat":{"type":"string"},"survey_invitations":{"type":"integer"},"survey_invitations_per_seat":{"type":"integer"},"topup_block_price":{"type":"string"}},"required":["ai_credits_per_seat","ai_enabled","annual","annual_cents","blurb","external_collaboration","key","label","max_seats","model","model_label","monthly","monthly_cents","plan","storage_addon","storage_is_per_seat","storage_per_seat","survey_invitations","survey_invitations_per_seat","topup_block_price"],"type":"object"},"type":"array"},"credit_usage":{"type":"array"},"credit_usage_by_model":{"type":"array"},"credits":{"properties":{"allowance_remaining":{"type":"integer"},"credits_per_seat":{"type":"integer"},"enabled":{"type":"boolean"},"low":{"type":"boolean"},"model":{"type":"string"},"model_label":{"type":"string"},"monthly_allowance":{"type":"integer"},"output_weight":{"type":"integer"},"period_end":{"type":"string"},"period_start":{"type":"string"},"plan":{"type":"string"},"remaining":{"type":"integer"},"tokens_per_credit":{"type":"integer"},"topup_remaining":{"type":"integer"},"used_this_month":{"type":"integer"}},"required":["allowance_remaining","credits_per_seat","enabled","low","model","model_label","monthly_allowance","output_weight","period_end","period_start","plan","remaining","tokens_per_credit","topup_remaining","used_this_month"],"type":"object"},"grants":{"items":{"properties":{"credits":{"type":"integer"},"expires_at":{"type":"string"},"kind":{"type":"string"},"note":{"type":"string"},"remaining":{"type":"integer"}},"required":["credits","expires_at","kind","note","remaining"],"type":"object"},"type":"array"},"invoices":{"items":{"properties":{"currency":{"type":"string"},"due_at":{"type":"string"},"id":{"type":"integer"},"issued_at":{"type":"string"},"lines":{"items":{"properties":{"amount":{"type":"string"},"amount_cents":{"type":"integer"},"description":{"type":"string"},"kind":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"string"}},"required":["amount","amount_cents","description","kind","quantity","unit_price"],"type":"object"},"type":"array"},"number":{"type":"string"},"paid_at":{"type":["null","string"]},"payments":{"items":{"properties":{"amount":{"type":"string"},"amount_cents":{"type":"integer"},"attempt":{"type":"integer"},"created_at":{"type":"string"},"failure_code":{"type":"string"},"failure_reason":{"type":"string"},"id":{"type":"integer"},"invoice_id":{"type":"integer"},"invoice_number":{"type":"string"},"provider":{"type":"string"},"refundable_cents":{"type":"integer"},"refunded":{"type":"string"},"refunded_cents":{"type":"integer"},"settled_at":{"type":"string"},"status":{"type":"string"}},"required":["amount","amount_cents","attempt","created_at","failure_code","failure_reason","id","invoice_id","invoice_number","provider","refundable_cents","refunded","refunded_cents","settled_at","status"],"type":"object"},"type":"array"},"period_end":{"type":"string"},"period_start":{"type":"string"},"status":{"type":"string"},"total":{"type":"string"},"total_cents":{"type":"integer"}},"required":["currency","due_at","id","issued_at","lines","number","paid_at","payments","period_end","period_start","status","total","total_cents"],"type":"object"},"type":"array"},"payments":{"properties":{"attempt_limit":{"type":"integer"},"collectable":{"type":"array"},"has_default":{"type":"boolean"},"is_live":{"type":"boolean"},"key":{"type":"string"},"methods":{"items":{"properties":{"added_at":{"type":"string"},"brand":{"type":"string"},"exp_month":{"type":"integer"},"exp_year":{"type":"integer"},"expired":{"type":"boolean"},"id":{"type":"integer"},"is_default":{"type":"boolean"},"label":{"type":"string"},"last4":{"type":"string"}},"required":["added_at","brand","exp_month","exp_year","expired","id","is_default","label","last4"],"type":"object"},"type":"array"},"name":{"type":"string"},"note":{"type":"string"},"webhooks_configured":{"type":"boolean"}},"required":["attempt_limit","collectable","has_default","is_live","key","methods","name","note","webhooks_configured"],"type":"object"},"storage":{"properties":{"fraction":{"type":"number"},"limit":{"type":"string"},"limit_bytes":{"type":"integer"},"measured_at":{"type":"string"},"over":{"type":"boolean"},"used":{"type":"string"},"used_bytes":{"type":"integer"},"warn":{"type":"boolean"}},"required":["fraction","limit","limit_bytes","measured_at","over","used","used_bytes","warn"],"type":"object"},"storage_addon":{"properties":{"available":{"type":"boolean"},"block_bytes":{"type":"integer"},"block_label":{"type":"string"},"block_price":{"type":"string"},"blocks":{"type":"integer"},"included_bytes":{"type":"integer"},"max_blocks":{"type":"integer"},"pending_blocks":{"type":"null"},"purchased_bytes":{"type":"integer"}},"required":["available","block_bytes","block_label","block_price","blocks","included_bytes","max_blocks","pending_blocks","purchased_bytes"],"type":"object"},"subscription":{"properties":{"ai_model":{"type":"string"},"ai_model_label":{"type":"string"},"cancel_at_period_end":{"type":"boolean"},"currency":{"type":"string"},"current_period_end":{"type":"string"},"current_period_start":{"type":"string"},"cycle":{"type":"string"},"pending_seats":{"type":"null"},"pending_storage_blocks":{"type":"null"},"plan":{"type":"string"},"plan_label":{"type":"string"},"recurring_total":{"type":"string"},"renews_at":{"type":"string"},"seats":{"type":"integer"},"seats_free":{"type":"integer"},"seats_in_use":{"type":"integer"},"started_at":{"type":"string"},"status":{"type":"string"},"storage_blocks":{"type":"integer"},"unit_price":{"type":"string"},"unit_price_cents":{"type":"integer"}},"required":["ai_model","ai_model_label","cancel_at_period_end","currency","current_period_end","current_period_start","cycle","pending_seats","pending_storage_blocks","plan","plan_label","recurring_total","renews_at","seats","seats_free","seats_in_use","started_at","status","storage_blocks","unit_price","unit_price_cents"],"type":"object"},"topup":{"properties":{"block":{"type":"integer"},"block_price":{"type":"string"}},"required":["block","block_price"],"type":"object"}},"required":["account","catalogue","credit_usage","credit_usage_by_model","credits","grants","invoices","payments","storage","storage_addon","subscription","topup"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/billing/subscription":{"put":{"tags":["billing"],"summary":"Set Plan","description":"Move the account to a plan, billing cycle, seat count and AI model, and\nanswer the subscription as it now stands. A new term starts today; the\nunused part of the old term returns as a credit on the new invoice. Where\nonly the seat count differs, the term continues and the seats change as\n`PUT /billing/seats` changes them.\n\nAdministrators only.","operationId":"set_plan_api_v1_billing_subscription_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChangeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Plan Api V1 Billing Subscription Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/billing/seats":{"put":{"tags":["billing"],"summary":"Set Seats","description":"Set how many seats the subscription holds, and answer the subscription\nas it now stands. Added seats start now and are invoiced for the rest of\nthe term; a lower count waits as `pending_seats` and takes effect when\nthe term ends.\n\nThe count cannot fall below the number of active people nor exceed the\nplan's limit. Administrators only.","operationId":"set_seats_api_v1_billing_seats_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeatsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ai_model":{"type":"string"},"ai_model_label":{"type":"string"},"cancel_at_period_end":{"type":"boolean"},"currency":{"type":"string"},"current_period_end":{"type":"string"},"current_period_start":{"type":"string"},"cycle":{"type":"string"},"pending_seats":{"type":"null"},"pending_storage_blocks":{"type":"null"},"plan":{"type":"string"},"plan_label":{"type":"string"},"recurring_total":{"type":"string"},"renews_at":{"type":"string"},"seats":{"type":"integer"},"seats_free":{"type":"integer"},"seats_in_use":{"type":"integer"},"started_at":{"type":"string"},"status":{"type":"string"},"storage_blocks":{"type":"integer"},"unit_price":{"type":"string"},"unit_price_cents":{"type":"integer"}},"required":["ai_model","ai_model_label","cancel_at_period_end","currency","current_period_end","current_period_start","cycle","pending_seats","pending_storage_blocks","plan","plan_label","recurring_total","renews_at","seats","seats_free","seats_in_use","started_at","status","storage_blocks","unit_price","unit_price_cents"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/billing/storage":{"put":{"tags":["billing"],"summary":"Set Storage","description":"How many blocks of extra storage the account should hold.\n\nA level rather than an event, like seats and unlike a top-up: the body says\nwhere to end up, so asking twice is the same as asking once.","operationId":"set_storage_api_v1_billing_storage_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ai_model":{"type":"string"},"ai_model_label":{"type":"string"},"cancel_at_period_end":{"type":"boolean"},"currency":{"type":"string"},"current_period_end":{"type":"string"},"current_period_start":{"type":"string"},"cycle":{"type":"string"},"pending_seats":{"type":"null"},"pending_storage_blocks":{"type":"null"},"plan":{"type":"string"},"plan_label":{"type":"string"},"recurring_total":{"type":"string"},"renews_at":{"type":"string"},"seats":{"type":"integer"},"seats_free":{"type":"integer"},"seats_in_use":{"type":"integer"},"started_at":{"type":"string"},"status":{"type":"string"},"storage_blocks":{"type":"integer"},"unit_price":{"type":"string"},"unit_price_cents":{"type":"integer"}},"required":["ai_model","ai_model_label","cancel_at_period_end","currency","current_period_end","current_period_start","cycle","pending_seats","pending_storage_blocks","plan","plan_label","recurring_total","renews_at","seats","seats_free","seats_in_use","started_at","status","storage_blocks","unit_price","unit_price_cents"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/billing/subscription/cancel":{"post":{"tags":["billing"],"summary":"Cancel","description":"Set the subscription to end when the term already paid for ends, and\nanswer it with `cancel_at_period_end` true. The free starter plan has\nnothing to cancel and is refused.\n\nAdministrators only.","operationId":"cancel_api_v1_billing_subscription_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Cancel Api V1 Billing Subscription Cancel Post"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/billing/subscription/resume":{"post":{"tags":["billing"],"summary":"Resume","description":"Withdraw a cancellation, so the subscription renews at the end of its\nterm, and answer the subscription. Refused where the subscription is not\nset to end.\n\nAdministrators only.","operationId":"resume_api_v1_billing_subscription_resume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Resume Api V1 Billing Subscription Resume Post"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/billing/credits":{"get":{"tags":["billing"],"summary":"Credit Balance","description":"What is left in the meter. Readable by anyone who can press an AI button.","operationId":"credit_balance_api_v1_billing_credits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"allowance_remaining":{"type":"integer"},"credits_per_seat":{"type":"integer"},"enabled":{"type":"boolean"},"low":{"type":"boolean"},"model":{"type":"string"},"model_label":{"type":"string"},"monthly_allowance":{"type":"integer"},"output_weight":{"type":"integer"},"period_end":{"type":"string"},"period_start":{"type":"string"},"plan":{"type":"string"},"remaining":{"type":"integer"},"tokens_per_credit":{"type":"integer"},"topup_remaining":{"type":"integer"},"used_this_month":{"type":"integer"}},"required":["allowance_remaining","credits_per_seat","enabled","low","model","model_label","monthly_allowance","output_weight","period_end","period_start","plan","remaining","tokens_per_credit","topup_remaining","used_this_month"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["billing"],"summary":"Buy Credits","description":"Buy a top-up of AI credits, in whole blocks, priced by the\nsubscription's AI model and billed on its own invoice. Answers the credit\nbalance and the invoice. A plan without AI cannot buy credits.\n\nAdministrators only.","operationId":"buy_credits_api_v1_billing_credits_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Buy Credits Api V1 Billing Credits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/billing/invoices/{invoice_id}/pay":{"post":{"tags":["billing"],"summary":"Pay Invoice","description":"Record that an invoice was settled some other way.\n\nAn administrator saying the money arrived - a bank transfer, a cheque. This\nstays available with a processor connected, because those payments happen,\nand it writes a payment row like any other so an invoice can always answer\nwhat settled it. Collecting a card is `/payments/invoices/{id}/collect`.","operationId":"pay_invoice_api_v1_billing_invoices__invoice_id__pay_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"currency":{"type":"string"},"due_at":{"type":"string"},"id":{"type":"integer"},"issued_at":{"type":"string"},"lines":{"items":{"properties":{"amount":{"type":"string"},"amount_cents":{"type":"integer"},"description":{"type":"string"},"kind":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"string"}},"required":["amount","amount_cents","description","kind","quantity","unit_price"],"type":"object"},"type":"array"},"number":{"type":"string"},"paid_at":{"type":"string"},"payments":{"items":{"properties":{"amount":{"type":"string"},"amount_cents":{"type":"integer"},"attempt":{"type":"integer"},"created_at":{"type":"string"},"failure_code":{"type":"string"},"failure_reason":{"type":"string"},"id":{"type":"integer"},"invoice_id":{"type":"integer"},"invoice_number":{"type":"string"},"provider":{"type":"string"},"refundable_cents":{"type":"integer"},"refunded":{"type":"string"},"refunded_cents":{"type":"integer"},"settled_at":{"type":"string"},"status":{"type":"string"}},"required":["amount","amount_cents","attempt","created_at","failure_code","failure_reason","id","invoice_id","invoice_number","provider","refundable_cents","refunded","refunded_cents","settled_at","status"],"type":"object"},"type":"array"},"period_end":{"type":"string"},"period_start":{"type":"string"},"status":{"type":"string"},"total":{"type":"string"},"total_cents":{"type":"integer"}},"required":["currency","due_at","id","issued_at","lines","number","paid_at","payments","period_end","period_start","status","total","total_cents"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/usage":{"get":{"tags":["billing"],"summary":"Usage Ledger","description":"Where the credits went: every metered call, newest first.","operationId":"usage_ledger_api_v1_billing_usage_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":40,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"by_feature":{"items":{"properties":{"calls":{"type":"integer"},"credits":{"type":"integer"},"feature":{"type":"string"}},"required":["calls","credits","feature"],"type":"object"},"type":"array"},"by_model":{"items":{"properties":{"calls":{"type":"integer"},"credits":{"type":"integer"},"label":{"type":"string"},"model":{"type":"string"}},"required":["calls","credits","label","model"],"type":"object"},"type":"array"},"events":{"items":{"properties":{"created_at":{"type":"string"},"credits":{"type":"integer"},"detail":{"type":"string"},"feature":{"type":"string"},"id":{"type":"integer"},"input_tokens":{"type":"integer"},"is_live":{"type":"boolean"},"model":{"type":"string"},"output_tokens":{"type":"integer"},"person":{"type":"string"},"provider":{"type":"string"}},"required":["created_at","credits","detail","feature","id","input_tokens","is_live","model","output_tokens","person","provider"],"type":"object"},"type":"array"}},"required":["by_feature","by_model","events"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/catalogue-requests":{"get":{"tags":["catalogue"],"summary":"List Requests","description":"The queue for an administrator, and your own asks either way.\n\nBoth in one answer because both belong on the same screen for an\nadministrator, and because a client should not have to know which of the\ntwo it is entitled to before it asks.","operationId":"list_requests_api_v1_catalogue_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"may_decide":{"type":"boolean"},"mine":{"items":{"properties":{"created_at":{"type":"string"},"decided_at":{"type":"null"},"decided_by":{"type":"null"},"decision_note":{"type":"string"},"entity_id":{"type":"null"},"entity_name":{"type":"null"},"id":{"type":"integer"},"inward_label":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"},"noun":{"type":"string"},"requested_by":{"type":"string"},"requested_by_id":{"type":"integer"},"state":{"type":"string"},"work_item_id":{"type":"null"}},"required":["created_at","decided_at","decided_by","decision_note","entity_id","entity_name","id","inward_label","kind","name","note","noun","requested_by","requested_by_id","state","work_item_id"],"type":"object"},"type":"array"},"pending":{"items":{"properties":{"created_at":{"type":"string"},"decided_at":{"type":"null"},"decided_by":{"type":"null"},"decision_note":{"type":"string"},"entity_id":{"type":"null"},"entity_name":{"type":"null"},"id":{"type":"integer"},"inward_label":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"},"noun":{"type":"string"},"requested_by":{"type":"string"},"requested_by_id":{"type":"integer"},"state":{"type":"string"},"work_item_id":{"type":"null"}},"required":["created_at","decided_at","decided_by","decision_note","entity_id","entity_name","id","inward_label","kind","name","note","noun","requested_by","requested_by_id","state","work_item_id"],"type":"object"},"type":"array"}},"required":["may_decide","mine","pending"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["catalogue"],"summary":"Ask For One","description":"Ask for a name on one of the closed lists.\n\nThe permission asked for is the one that made the gap matter: being able to\nedit work somewhere. Somebody who can only read has nothing to file, and\nsomebody who is filing has every right to want a word for what they are\nfiling against.","operationId":"ask_for_one_api_v1_catalogue_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"decided_at":{"type":"null"},"decided_by":{"type":"null"},"decision_note":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"id":{"type":"integer"},"inward_label":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"},"noun":{"type":"string"},"requested_by":{"type":"string"},"requested_by_id":{"type":"integer"},"state":{"type":"string"},"work_item_id":{"type":["null","integer"]}},"required":["created_at","decided_at","decided_by","decision_note","entity_id","entity_name","id","inward_label","kind","name","note","noun","requested_by","requested_by_id","state","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/catalogue-requests/{request_id}/decide":{"post":{"tags":["catalogue"],"summary":"Decide","description":"Say yes - which creates the entry - or no, in words.","operationId":"decide_api_v1_catalogue_requests__request_id__decide_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__catalogue__DecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"decided_at":{"type":"string"},"decided_by":{"type":"string"},"decision_note":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"id":{"type":"integer"},"inward_label":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"},"noun":{"type":"string"},"requested_by":{"type":"string"},"requested_by_id":{"type":"integer"},"state":{"type":"string"},"work_item_id":{"type":["null","integer"]}},"required":["created_at","decided_at","decided_by","decision_note","entity_id","entity_name","id","inward_label","kind","name","note","noun","requested_by","requested_by_id","state","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/catalogue-requests/{request_id}":{"delete":{"tags":["catalogue"],"summary":"Take It Back","description":"Withdraw your own request - you found the right one, or it stopped\nmattering. An administrator answers rather than deletes, so the record of\nwhat was asked and what was said survives.","operationId":"take_it_back_api_v1_catalogue_requests__request_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"decided_at":{"type":"string"},"decided_by":{"type":"null"},"decision_note":{"type":"string"},"entity_id":{"type":"null"},"entity_name":{"type":"null"},"id":{"type":"integer"},"inward_label":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"},"noun":{"type":"string"},"requested_by":{"type":"string"},"requested_by_id":{"type":"integer"},"state":{"type":"string"},"work_item_id":{"type":"null"}},"required":["created_at","decided_at","decided_by","decision_note","entity_id","entity_name","id","inward_label","kind","name","note","noun","requested_by","requested_by_id","state","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboards/query/check":{"get":{"tags":["dashboards"],"summary":"Check Subject Query","description":"Whether a gadget's question can be read, and what it says if so.\n\nAnswers rather than refuses, the way the board's own check does - this is\ncalled on every keystroke and half a query is somebody typing. Work items\ngo to the board's version, so a gadget about work keeps the custom fields\nand the sprint stand-ins; everything else is read against its subject.","operationId":"check_subject_query_api_v1_dashboards_query_check_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"query","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"subject","in":"query","required":false,"schema":{"type":"string","default":"work_items","title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"error":{"type":"string"},"fields":{"items":{"type":"string"},"type":"array"},"ok":{"type":"boolean"},"position":{"type":"integer"},"query":{"type":"string"},"tree":{"properties":{"field":{"type":"string"},"op":{"type":"string"},"value":{"type":"string"}},"required":["field","op","value"],"type":"object"}},"required":["fields","ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboards":{"get":{"tags":["dashboards"],"summary":"List Dashboards","description":"List the dashboards the caller may open: their own and every shared\none. Also answers with what a gadget may be: its kinds, charts, time\nwindows and breakdown fields, and the subjects the caller may read.","operationId":"list_dashboards_api_v1_dashboards_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"breakdown_fields":{"items":{"type":"string"},"type":"array"},"charts":{"items":{"type":"string"},"type":"array"},"dashboards":{"items":{"properties":{"created_at":{"type":"string"},"description":{"type":"string"},"gadgets":{"type":"array"},"id":{"type":"integer"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"updated_at":{"type":"string"}},"required":["created_at","description","gadgets","id","may_edit","name","owner_id","owner_name","shared","updated_at"],"type":"object"},"type":"array"},"kinds":{"items":{"type":"string"},"type":"array"},"me":{"type":"integer"},"sprint_choices":{"items":{"type":"string"},"type":"array"},"sprint_counts":{"items":{"type":"integer"},"type":"array"},"subjects":{"items":{"properties":{"countable":{"items":{"type":"string"},"type":"array"},"defaults":{"items":{"type":"string"},"type":"array"},"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"scope":{"type":"string"}},"required":["countable","defaults","hint","key","label","scope"],"type":"object"},"type":"array"},"windows":{"items":{"type":"integer"},"type":"array"}},"required":["breakdown_fields","charts","dashboards","kinds","me","sprint_choices","sprint_counts","subjects","windows"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["dashboards"],"summary":"Create Dashboard","description":"Create a dashboard the caller owns from a name, a description, whether\nit is shared, and its gadgets in the order they are laid out. Returns\nthe dashboard without its answers; read it to have them.","operationId":"create_dashboard_api_v1_dashboards_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"description":{"type":"string"},"gadgets":{"items":{"properties":{"entity_id":{"type":"integer"},"id":{"type":"integer"},"kind":{"type":"string"},"options":{"properties":{"about":{"type":"string"},"about_id":{"type":"integer"},"by":{"type":"string"},"chart":{"type":"string"},"kpi_id":{"type":"integer"},"measure":{"type":"string"},"rows":{"type":"integer"},"scope":{"type":"string"},"sprints":{"type":"integer"},"which":{"type":"string"},"window_days":{"type":"integer"}},"required":[],"type":"object"},"query":{"type":"string"},"subject":{"type":"string"},"title":{"type":"string"},"width":{"type":"integer"}},"required":["entity_id","id","kind","options","query","subject","title","width"],"type":"object"},"type":"array"},"id":{"type":"integer"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"updated_at":{"type":"string"}},"required":["created_at","description","gadgets","id","may_edit","name","owner_id","owner_name","shared","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/dashboards/templates":{"get":{"tags":["dashboards"],"summary":"Gallery","description":"The gallery, written in that board's own status names.\n\nResolved per board because a template's question says \"not finished\",\nand only the server knows what this board calls finished. A template\nwhose words the board lacks - a blocked-now list on a board with nothing\nstalled - is left out rather than offered with a question that would be\nrefused on save.","operationId":"gallery_api_v1_dashboards_templates_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"query","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"gadgets":{"items":{"properties":{"gadget":{"properties":{"entity_id":{"type":"integer"},"kind":{"type":"string"},"options":{"properties":{"about":{"type":"string"},"by":{"type":"string"},"chart":{"type":"string"},"kpi_id":{"type":"integer"},"measure":{"type":"string"},"rows":{"type":"integer"},"scope":{"type":"string"},"sprints":{"type":"integer"},"which":{"type":"string"},"window_days":{"type":"integer"}},"required":[],"type":"object"},"query":{"type":"string"},"subject":{"type":"string"},"title":{"type":"string"},"width":{"type":"integer"}},"required":["entity_id","kind","options","query","subject","title","width"],"type":"object"},"group":{"type":"string"},"hint":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"}},"required":["gadget","group","hint","key","title"],"type":"object"},"type":"array"},"groups":{"items":{"type":"string"},"type":"array"},"pages":{"items":{"properties":{"description":{"type":"string"},"gadget_keys":{"items":{"type":"string"},"type":"array"},"key":{"type":"string"},"name":{"type":"string"}},"required":["description","gadget_keys","key","name"],"type":"object"},"type":"array"}},"required":["gadgets","groups","pages"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboards/{dashboard_id}":{"get":{"tags":["dashboards"],"summary":"Read Dashboard","description":"The page, and what answers it now.\n\nAnswered fresh on every read rather than stored: the questions are the\nsaved thing, and what answers them today is what somebody opening it wants.","operationId":"read_dashboard_api_v1_dashboards__dashboard_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"integer","title":"Dashboard Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answers":{"items":{"properties":{"about":{"type":"string"},"actual_cents":{"type":"integer"},"average_completed":{"type":"number"},"bands":{"items":{"type":"string"},"type":"array"},"buckets":{"items":{"properties":{"count":{"type":"integer"},"label":{"type":"string"}},"required":["count","label"],"type":"object"},"type":"array"},"budget_cents":{"type":"integer"},"by":{"type":"string"},"capacity_points":{"type":"null"},"carried_over_points":{"type":["null","number"]},"chart":{"type":"string"},"columns":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":"array"},"committed_cents":{"type":"integer"},"committed_points":{"type":"number"},"committed_snapshot":{"type":"boolean"},"completed_points":{"type":"number"},"considered":{"type":"integer"},"count":{"type":"integer"},"created":{"type":"integer"},"currency":{"type":"string"},"days":{"items":{"properties":{"date":{"type":"string"},"done":{"type":"integer"},"ideal":{"type":"number"},"in_progress":{"type":"integer"},"is_future":{"type":"boolean"},"remaining":{"type":"number"},"review":{"type":"integer"},"todo":{"type":"integer"}},"required":["date"],"type":"object"},"type":"array"},"done_count":{"type":"integer"},"efficiency_pct":{"type":["null","number"]},"end_date":{"type":"string"},"entities":{"items":{"type":"string"},"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"finished":{"type":"integer"},"forecast_cents":{"type":"integer"},"goal":{"type":"string"},"guardrail":{"type":"string"},"id":{"type":"integer"},"in_flight":{"type":"integer"},"item_count":{"type":"integer"},"items":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":"null"},"assignee_name":{"type":"null"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":["null","string"]},"epic_title":{"type":["null","string"]},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":"integer"},"initiative_name":{"type":"string"},"label_names":{"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":["null","integer"]},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":"null"},"label":{"type":"string"},"scale":{"type":"string"},"value":{"type":"null"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":"null"},"priority_label":{"type":"string"},"priority_rank":{"type":"null"},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":"null"},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"kind":{"type":"string"},"kpi":{"type":"string"},"kpi_id":{"type":"integer"},"labour_cents":{"type":"null"},"lower_is_better":{"type":"boolean"},"measure":{"type":"string"},"median_days":{"type":["null","number"]},"met":{"type":"boolean"},"name":{"type":"string"},"options":{"properties":{"about":{"type":"string"},"about_id":{"type":"integer"},"by":{"type":"string"},"chart":{"type":"string"},"kpi_id":{"type":"integer"},"measure":{"type":"string"},"rows":{"type":"integer"},"scope":{"type":"string"},"sprints":{"type":"integer"},"which":{"type":"string"},"window_days":{"type":"integer"}},"required":[],"type":"object"},"over_cents":{"type":"integer"},"owner":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"},"proposed_cents":{"type":"integer"},"query":{"type":"string"},"remaining_cents":{"type":"integer"},"rows":{"items":{"properties":{"budget":{"type":"null"},"count":{"type":"integer"},"days":{"type":"number"},"done_items":{"type":"integer"},"id":{"type":"integer"},"label":{"type":"string"},"name":{"type":"string"},"reference":{"type":"string"},"state_name":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"},"work_items":{"type":"integer"}},"required":[],"type":"object"},"type":"array"},"rule":{"type":"string"},"say_do":{"type":["null","number"]},"scope":{"type":"string"},"series":{"items":{"properties":{"measured_on":{"type":"string"},"value":{"type":"number"}},"required":["measured_on","value"],"type":"object"},"type":"array"},"slowest":{"items":{"properties":{"days":{"type":"number"},"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["days","id","reference","title"],"type":"object"},"type":"array"},"sprint_id":{"type":"integer"},"sprint_name":{"type":"string"},"sprints":{"items":{"properties":{"capacity_points":{"type":"null"},"committed_points":{"type":"number"},"completed_points":{"type":"number"},"end_date":{"type":"string"},"name":{"type":"string"},"sprint_id":{"type":"integer"},"start_date":{"type":"string"},"state":{"type":"string"}},"required":["capacity_points","committed_points","completed_points","end_date","name","sprint_id","start_date","state"],"type":"object"},"type":"array"},"start_date":{"type":"string"},"state":{"type":"string"},"subject":{"type":"string"},"target":{"type":"number"},"title":{"type":"string"},"total":{"type":"number"},"total_points":{"type":"integer"},"trend":{"type":["null","string"]},"trends":{"properties":{"not enough readings":{"type":"integer"},"on track":{"type":"integer"}},"required":[],"type":"object"},"unavailable":{"type":"string"},"unit":{"type":"string"},"value":{"type":["null","number"]},"weeks":{"items":{"properties":{"created":{"type":"integer"},"finished":{"type":"integer"},"value":{"type":"number"},"week":{"type":"string"}},"required":["week"],"type":"object"},"type":"array"},"weighted":{"type":"boolean"},"which":{"type":"string"},"width":{"type":"integer"},"window_days":{"type":"integer"}},"required":["entity_id","entity_name","id","kind","options","query","subject","title","width"],"type":"object"},"type":"array"},"dashboard":{"properties":{"created_at":{"type":"string"},"description":{"type":"string"},"gadgets":{"items":{"properties":{"entity_id":{"type":"integer"},"id":{"type":"integer"},"kind":{"type":"string"},"options":{"properties":{"about":{"type":"string"},"about_id":{"type":"integer"},"by":{"type":"string"},"chart":{"type":"string"},"kpi_id":{"type":"integer"},"measure":{"type":"string"},"rows":{"type":"integer"},"scope":{"type":"string"},"sprints":{"type":"integer"},"which":{"type":"string"},"window_days":{"type":"integer"}},"required":[],"type":"object"},"query":{"type":"string"},"subject":{"type":"string"},"title":{"type":"string"},"width":{"type":"integer"}},"required":["entity_id","id","kind","options","query","subject","title","width"],"type":"object"},"type":"array"},"id":{"type":"integer"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"updated_at":{"type":"string"}},"required":["created_at","description","gadgets","id","may_edit","name","owner_id","owner_name","shared","updated_at"],"type":"object"}},"required":["answers","dashboard"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["dashboards"],"summary":"Update Dashboard","description":"Replace a dashboard's name, description, sharing and whole list of\ngadgets, in the order given, and return the dashboard.\n\nOnly its owner may change it; anybody else copies it first.","operationId":"update_dashboard_api_v1_dashboards__dashboard_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"integer","title":"Dashboard Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Dashboard Api V1 Dashboards  Dashboard Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dashboards"],"summary":"Delete Dashboard","description":"Delete a dashboard and its gadgets. Only its owner may.","operationId":"delete_dashboard_api_v1_dashboards__dashboard_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"integer","title":"Dashboard Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboards/{dashboard_id}/copy":{"post":{"tags":["dashboards"],"summary":"Copy Dashboard","description":"Take a copy and make it yours - how somebody changes a shared page\nwithout arguing with its author over it.","operationId":"copy_dashboard_api_v1_dashboards__dashboard_id__copy_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"integer","title":"Dashboard Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"description":{"type":"string"},"gadgets":{"items":{"properties":{"entity_id":{"type":"integer"},"id":{"type":"integer"},"kind":{"type":"string"},"options":{"properties":{},"required":[],"type":"object"},"query":{"type":"string"},"subject":{"type":"string"},"title":{"type":"string"},"width":{"type":"integer"}},"required":["entity_id","id","kind","options","query","subject","title","width"],"type":"object"},"type":"array"},"id":{"type":"integer"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"updated_at":{"type":"string"}},"required":["created_at","description","gadgets","id","may_edit","name","owner_id","owner_name","shared","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors":{"get":{"tags":["factors"],"summary":"List Factors","description":"List an entity's factors in their set order, each with its objective,\nstatus, KPI, targets, readings summary, votes and applicability\npercentage. With them come the entity's categories, the account's KPIs,\nthe vote scale and the history of changes to the factors.\n\nA factor may belong to one of the entity's services, and each says which.\n`owned=direct` keeps the list to the entity's own factors, `owned=service`\nto those its services own, and `service_id` to one service's.\n`service_owners` lists the services a factor here may belong to.\n\nNeeds the right to view factors on the entity.","operationId":"list_factors_api_v1_entities__entity_id__factors_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"owned","in":"query","required":false,"schema":{"enum":["all","direct","service"],"type":"string","default":"all","title":"Owned"}},{"name":"service_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"accepted_count":{"type":"integer"},"categories":{"items":{"properties":{"goal_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"sort_order":{"type":"integer"}},"required":["goal_name","id","name","sort_order"],"type":"object"},"type":"array"},"changes":{"items":{"properties":{"actor":{"type":"string"},"after":{"properties":{"current_value":{"type":["null","number"]},"factor_statement":{"type":"string"},"kind":{"type":["null","string"]},"kpi_id":{"type":["null","integer"]},"objective_statement":{"type":"string"},"service_id":{"type":["null","integer"]},"target_date":{"type":["null","string"]},"target_value":{"type":["null","number"]}},"required":["current_value","factor_statement","kind","kpi_id","objective_statement","target_date","target_value"],"type":"object"},"before":{"properties":{"current_value":{"type":["null","number"]},"factor_statement":{"type":"string"},"kind":{"type":["null","string"]},"kpi_id":{"type":["null","integer"]},"objective_statement":{"type":"string"},"service_id":{"type":["null","integer"]},"target_date":{"type":["null","string"]},"target_value":{"type":["null","number"]}},"required":["current_value","factor_statement","kind","kpi_id","objective_statement","target_date","target_value"],"type":"object"},"change_type":{"type":"string"},"created_at":{"type":"string"},"factor_id":{"type":"integer"},"id":{"type":"integer"},"rationale":{"type":"string"}},"required":["actor","after","before","change_type","created_at","factor_id","id","rationale"],"type":"object"},"type":"array"},"factors":{"items":{"properties":{"applicability_pct":{"type":["null","integer"]},"category_id":{"type":["null","integer"]},"category_name":{"type":"string"},"created_by":{"type":"string"},"created_by_id":{"type":["null","integer"]},"current_source":{"type":["null","string"]},"current_value":{"type":["null","number"]},"days_since_reading":{"type":["null","integer"]},"drift":{"type":["null","number"]},"factor_statement":{"type":"string"},"goal_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":["null","string"]},"kpi_id":{"type":["null","integer"]},"kpi_name":{"type":"string"},"kpi_source":{"type":"null"},"kpi_unit":{"type":"string"},"last_measured_on":{"type":["null","string"]},"objective_statement":{"type":"string"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":["null","integer"]},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"rollup":{"properties":{"count":{"type":"integer"},"current":{"type":"number"},"entities":{"items":{"type":"string"},"type":"array"},"measured":{"type":"integer"},"met":{"type":"boolean"},"rule":{"type":"string"},"target":{"type":"number"},"weighted":{"type":"boolean"}},"required":["count","current","entities","measured","met","rule","target","weighted"],"type":["null","object"]},"served_by_count":{"type":["null","integer"]},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":["null","number"]}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":["null","number"]}},"required":["archived_at","criticality","entity_id","entity_name","id","kind","name","stage"],"type":"object"},"type":"array"},"services_rollup":{"properties":{"count":{"type":"integer"},"current":{"type":"number"},"measured":{"type":"integer"},"met":{"type":"boolean"},"rule":{"type":"string"},"services":{"items":{"type":"string"},"type":"array"},"target":{"type":"number"},"weighted":{"type":"boolean"}},"required":["count","current","measured","met","rule","services","target"],"type":["null","object"]},"sort_order":{"type":"integer"},"status":{"type":"string"},"targets":{"items":{"properties":{"achieved_value":{"type":"null"},"created_at":{"type":"string"},"current_value":{"type":["null","number"]},"id":{"type":"integer"},"start_date":{"type":"null"},"target_date":{"type":["null","string"]},"target_value":{"type":"number"}},"required":["achieved_value","created_at","current_value","id","start_date","target_date","target_value"],"type":"object"},"type":"array"},"trend":{"type":["null","string"]},"votes":{"items":{"properties":{"comment":{"type":"string"},"id":{"type":"integer"},"person_id":{"type":"integer"},"score":{"type":"integer"},"score_label":{"type":"string"}},"required":["comment","id","person_id","score","score_label"],"type":"object"},"type":"array"}},"required":["applicability_pct","category_id","category_name","created_by","created_by_id","current_source","current_value","days_since_reading","drift","factor_statement","goal_name","id","kind","kpi_id","kpi_name","kpi_source","kpi_unit","last_measured_on","objective_statement","reading_count","readings","rollup","served_by_count","services","sort_order","status","targets","trend","votes"],"type":"object"},"type":"array"},"kpis":{"items":{"properties":{"decimal_places":{"type":["null","integer"]},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":["null","number"]},"range_low":{"type":["null","number"]},"rollup":{"type":"string"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","rollup","unit"],"type":"object"},"type":"array"},"service_owners":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":["null","number"]}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"survey_mode":{"type":"string"},"vote_scale":{"items":{"properties":{"label":{"type":"string"},"score":{"type":"integer"}},"required":["label","score"],"type":"object"},"type":"array"}},"required":["accepted_count","categories","changes","factors","kpis","survey_mode","vote_scale"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["factors"],"summary":"Propose Factor","description":"Propose a factor on an entity, with an optional objective, category,\nKPI and first target, and answer its id and status. The factor goes last\nin the entity's order and waits for votes as proposed.\n\n`accept` accepts it in the same step and skips the vote; that takes the\nright to accept factors as well as the right to propose them.","operationId":"propose_factor_api_v1_entities__entity_id__factors_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactorIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"}},"required":["id","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/categories":{"post":{"tags":["factors"],"summary":"Create Category","description":"Add a category that groups an entity's factors. `goal_name`, the word\nthe same grouping carries over the objectives, takes the category's name\nwhen left empty. Answers the new id and both names.\n\nNeeds the right to refine factors on the entity.","operationId":"create_category_api_v1_entities__entity_id__categories_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"goal_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["goal_name","id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/categories/{category_id}":{"put":{"tags":["factors"],"summary":"Rename Category","description":"Reword a grouping, in both of the words it carries.\n\nOne record and two labels (spec 8.3): it reads as a category over the\nfactors and as a goal over the objectives that mirror them, because the\nsame grouping answers \"what kind of thing is this\" going one way and \"what\nare we trying to get to\" going the other. Both are editable, and a goal\nleft empty falls back to the category's own word rather than to nothing -\nthe same rule creating one follows.\n\nRewording rather than replacing matters for the reason a rung rename does:\nthe id is what every factor in it is stored against, so a category renamed\nkeeps its members and a report written against it goes on answering.","operationId":"rename_category_api_v1_entities__entity_id__categories__category_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"goal_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"sort_order":{"type":"integer"}},"required":["goal_name","id","name","sort_order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["factors"],"summary":"Delete Category","description":"Remove a grouping, leaving what was in it ungrouped.\n\nAllowed while in use, which a priority option is not, and the difference is\nwhat the thing does: a priority is a value a factor carries and a report\nreads, so dropping one in use would leave rows pointing at a rung that no\nlonger exists. A category is a grouping. A factor that loses one still says\neverything it said before, minus which pile it was in - and ungrouped is not\nan error state, it is where every factor starts.\n\nThe count comes back so whoever pressed it can see what they have just\ndone, the same way removing a component or a label reports what it came off.","operationId":"delete_category_api_v1_entities__entity_id__categories__category_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"removed":{"type":"boolean"},"ungrouped":{"type":"integer"}},"required":["id","removed","ungrouped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/vote":{"post":{"tags":["factors"],"summary":"Vote On Factor","description":"Cast the caller's vote on whether a factor applies: a score from -3 to\n3 and a comment. A second vote replaces the first.\n\nThe person who proposed the factor may not vote on it, and a score of 0\nis refused where the organisation does not offer Neutral. Needs the\nright to vote on factors on the entity.","operationId":"vote_on_factor_api_v1_entities__entity_id__factors__factor_id__vote_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/status":{"post":{"tags":["factors"],"summary":"Set Factor Status","description":"Set a factor's status to proposed, accepted or rejected, named in the\n`new_status` query parameter. Answers the factor's id and its new status.\n\nNeeds the right to accept factors on the entity.","operationId":"set_factor_status_api_v1_entities__entity_id__factors__factor_id__status_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}},{"name":"new_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/FactorStatus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"}},"required":["id","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/reorder":{"post":{"tags":["factors"],"summary":"Reorder Factors","description":"Set the order of an entity's factors: each factor takes its position\nin `factor_ids` as its place. An id that is not a factor on the entity is\npassed over.\n\nNeeds the right to reorder factors on the entity.","operationId":"reorder_factors_api_v1_entities__entity_id__factors_reorder_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reorder Factors Api V1 Entities  Entity Id  Factors Reorder Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/targets":{"post":{"tags":["factors"],"summary":"Add Target","description":"Add a target iteration: the goal posts, not where the ball is.\n\nMoving the target on a factor that has already been assessed is a partial\nreset: comparison survives, but the change history has to say by how much\n(spec 9.9). Saying where the KPI stands *now* is a different act and has\nits own endpoint - `POST .../readings` (api/readings.py) - so a body that\nnames no target is refused rather than written as a reset of nothing, and\na body that restates the standing target is written without a reset.","operationId":"add_target_api_v1_entities__entity_id__factors__factor_id__targets_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__factors__TargetIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}":{"put":{"tags":["factors"],"summary":"Refine Factor","description":"Reword a factor, classifying the edit.\n\nA full reset breaks the comparison chain: the next assessment becomes a new\nbaseline and earlier ones are no longer compared against it. That is recorded\nhere rather than inferred later, because only the person making the edit\nknows whether the wording change would have altered how people answered.\n\nThe KPI and its target may only move on a partial or full reset. A cosmetic\nedit claims nobody would have answered differently, and changing what is\nmeasured makes that claim untrue.","operationId":"refine_factor_api_v1_entities__entity_id__factors__factor_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefineIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answers_cleared":{"type":"integer"},"asked_again":{"type":"integer"},"change_type":{"type":"string"},"id":{"type":"integer"},"rounds":{"type":"integer"}},"required":["answers_cleared","asked_again","change_type","id","rounds"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/service-options":{"get":{"tags":["factors"],"summary":"Factor Service Options","description":"Every service on the account a factor could name, retired ones left\nout. Account-wide, because a part of the organisation is judged on\nservices others run for it as much as on its own.","operationId":"factor_service_options_api_v1_entities__entity_id__factors__factor_id__service_options_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Factor Service Options Api V1 Entities  Entity Id  Factors  Factor Id  Service Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/services":{"put":{"tags":["factors"],"summary":"Set Factor Services","description":"Replace the services a factor judges. A filing rather than a\nrewording - no respondent's answer depends on it - so it is no kind of\nreset, and the right to make it is the right to refine.","operationId":"set_factor_services_api_v1_entities__entity_id__factors__factor_id__services_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactorServicesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","entity_id","entity_name","id","kind","name","stage"],"type":"object"},"type":"array"}},"required":["services"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/chain":{"get":{"tags":["factors"],"summary":"Assessment Chain","description":"Which assessments are still comparable with each other.\n\nA full reset splits the timeline. Everything after the most recent one is a\nchain; anything before it is history that must not be compared across the\nbreak.\n\nThe entity's own assessments, or with `service_id` one service's: each is\na timeline of its own, broken only by a reset of one of its own factors.","operationId":"assessment_chain_api_v1_entities__entity_id__chain_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"service_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"break_count":{"type":"integer"},"breaks":{"items":{"properties":{"created_at":{"type":"string"},"rationale":{"type":"string"}},"required":["created_at","rationale"],"type":"object"},"type":"array"},"segments":{"items":{"items":{"properties":{"assessment_date":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["assessment_date","id","kind","status","title"],"type":"object"},"type":"array"},"type":"array"}},"required":["break_count","breaks","segments"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/benefits":{"get":{"tags":["benefits"],"summary":"Entity Benefits","description":"Answer every accepted objective on an entity with the initiatives that\nserve it: where the objective's KPI is heading, a verdict on each\ninitiative's adoption and effect, and a summary count. `beneath` adds the\nentities under it that the caller may read; `cancelled` includes\ncancelled initiatives.\n\nNeeds the rights to view factors and to view initiatives on the entity.","operationId":"entity_benefits_api_v1_entities__entity_id__benefits_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"beneath","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Beneath"}},{"name":"cancelled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Cancelled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"adoption_shown":{"type":"boolean"},"entity_id":{"type":"integer"},"objectives":{"items":{"properties":{"category_id":{"type":"null"},"course":{"type":"string"},"current_source":{"type":["null","string"]},"current_value":{"type":["null","number"]},"days_since_reading":{"type":"null"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_id":{"type":"integer"},"factor_statement":{"type":"string"},"goal_name":{"type":"string"},"initiatives":{"items":{"properties":{"adopted":{"type":["null","boolean"]},"adoption":{"properties":{"targets":{"type":"integer"},"targets_met":{"type":"integer"}},"required":["targets","targets_met"],"type":["null","object"]},"archived":{"type":"boolean"},"effective":{"properties":{"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"kpi":{"type":"string"},"kpi_id":{"type":"integer"},"met":{"type":"boolean"},"reading_count":{"type":"integer"},"target_value":{"type":"number"},"trend":{"type":"string"},"unit":{"type":"string"}},"required":["current_source","current_value","days_since_reading","kpi","kpi_id","met","reading_count","target_value","trend","unit"],"type":["null","object"]},"effective_met":{"type":["null","boolean"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"initiative_id":{"type":"integer"},"linked_at":{"type":"string"},"linked_by":{"type":"string"},"name":{"type":"string"},"parent_initiative_id":{"type":"null"},"status":{"type":"string"},"verdict":{"type":"string"}},"required":["adopted","adoption","archived","effective","effective_met","entity_id","entity_name","initiative_id","linked_at","linked_by","name","parent_initiative_id","status","verdict"],"type":"object"},"type":"array"},"kpi":{"properties":{"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"unit":{"type":"string"}},"required":["id","lower_is_better","name","unit"],"type":["null","object"]},"last_measured_on":{"type":"null"},"met":{"type":["null","boolean"]},"objective_statement":{"type":"string"},"reading_count":{"type":"integer"},"readings":{"type":"array"},"signal":{"type":["null","string"]},"tally":{"properties":{"adopted":{"type":"integer"},"adopted_and_effective":{"type":"integer"},"effective":{"type":"integer"},"measured":{"type":"integer"},"serving":{"type":"integer"}},"required":["adopted","adopted_and_effective","effective","measured","serving"],"type":"object"},"target_date":{"type":["null","string"]},"target_value":{"type":["null","number"]},"trend":{"type":["null","string"]}},"required":["category_id","course","current_source","current_value","days_since_reading","entity_id","entity_name","factor_id","factor_statement","goal_name","initiatives","kpi","last_measured_on","met","objective_statement","reading_count","readings","signal","tally","target_date","target_value","trend"],"type":"object"},"type":"array"},"summary":{"properties":{"adopted_and_effective":{"type":"integer"},"objectives":{"type":"integer"},"off_course":{"type":"integer"},"on_course":{"type":"integer"},"unserved":{"type":"integer"}},"required":["adopted_and_effective","objectives","off_course","on_course","unserved"],"type":"object"}},"required":["adoption_shown","entity_id","objectives","summary"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/benefits":{"get":{"tags":["benefits"],"summary":"Factor Benefits","description":"Answer one factor as an objective with the initiatives that serve it:\nits KPI, target, readings and course, and a verdict on each initiative's\nadoption and effect. `cancelled` includes cancelled initiatives.\n\nNeeds the rights to view factors and to view initiatives on the entity.","operationId":"factor_benefits_api_v1_entities__entity_id__factors__factor_id__benefits_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}},{"name":"cancelled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Cancelled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"category_id":{"type":"null"},"course":{"type":"string"},"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_id":{"type":"integer"},"factor_statement":{"type":"string"},"goal_name":{"type":"string"},"initiatives":{"type":"array"},"kpi":{"properties":{"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"unit":{"type":"string"}},"required":["id","lower_is_better","name","unit"],"type":"object"},"last_measured_on":{"type":"string"},"met":{"type":"boolean"},"objective_statement":{"type":"string"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"measured_on":{"type":"string"},"value":{"type":"number"}},"required":["measured_on","value"],"type":"object"},"type":"array"},"signal":{"type":"string"},"tally":{"properties":{"adopted":{"type":"integer"},"adopted_and_effective":{"type":"integer"},"effective":{"type":"integer"},"measured":{"type":"integer"},"serving":{"type":"integer"}},"required":["adopted","adopted_and_effective","effective","measured","serving"],"type":"object"},"target_date":{"type":"string"},"target_value":{"type":"number"},"trend":{"type":"string"}},"required":["category_id","course","current_source","current_value","days_since_reading","entity_id","entity_name","factor_id","factor_statement","goal_name","initiatives","kpi","last_measured_on","met","objective_statement","reading_count","readings","signal","tally","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/initiative-options":{"get":{"tags":["benefits"],"summary":"Initiative Options","description":"List the initiatives that could serve a factor's objective: those on\nits entity and beneath it that the caller may edit, cancelled ones aside.\nEach says whether it is linked already and why it is suggested, the\nsuggested ones first.\n\nNeeds the right to view factors on the entity.","operationId":"initiative_options_api_v1_entities__entity_id__factors__factor_id__initiative_options_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Initiative Options Api V1 Entities  Entity Id  Factors  Factor Id  Initiative Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/objective-options":{"get":{"tags":["benefits"],"summary":"Objective Options","description":"List the objectives an initiative could serve: the accepted factors on\nits entity and above it that the caller may read. Each says whether it is\nlinked already and why it is suggested, the suggested ones first.\n\nNeeds the right to edit the initiative.","operationId":"objective_options_api_v1_initiatives__initiative_id__objective_options_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Objective Options Api V1 Initiatives  Initiative Id  Objective Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/objectives":{"post":{"tags":["benefits"],"summary":"Serve Objective","description":"Name an initiative as serving an objective, and answer the objectives\nit now serves. The factor must be accepted and sit on the initiative's\nentity or above it; linking the same pair twice changes nothing.\n\nNeeds the right to edit the initiative and to view the factor.","operationId":"serve_objective_api_v1_initiatives__initiative_id__objectives_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveLinkIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"objectives":{"items":{"properties":{"course":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_id":{"type":"integer"},"factor_statement":{"type":"string"},"goal_name":{"type":"string"},"kpi_name":{"type":"string"},"objective_statement":{"type":"string"},"status":{"type":"string"},"trend":{"type":["null","string"]}},"required":["course","entity_id","entity_name","factor_id","factor_statement","goal_name","kpi_name","objective_statement","status","trend"],"type":"object"},"type":"array"}},"required":["objectives"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/objectives/{factor_id}":{"delete":{"tags":["benefits"],"summary":"Stop Serving","description":"Stop naming an initiative as serving an objective, and answer the\nobjectives it still serves. A link that is not there is no error.\n\nNeeds the right to edit the initiative.","operationId":"stop_serving_api_v1_initiatives__initiative_id__objectives__factor_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"objectives":{"type":"array"}},"required":["objectives"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/feedback":{"get":{"tags":["feedback"],"summary":"List Feedback","description":"Newest first. The organisation's, for an administrator; one's own\notherwise - a report can say things about a colleague's screen that were\nsaid to support, not to the colleague.","operationId":"list_feedback_api_v1_feedback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Feedback Api V1 Feedback Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["feedback"],"summary":"Send Feedback","description":"Send a bug report or a suggestion as a multipart form: a one-line\nsummary, optional details, the screen it was sent from, and any files to\nattach. Returns the report as stored, with its attachments.\n\nAnybody signed in may send one. A report with no summary is refused.","operationId":"send_feedback_api_v1_feedback_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_send_feedback_api_v1_feedback_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"attachments":{"items":{"properties":{"content_type":{"type":"string"},"filename":{"type":"string"},"id":{"type":"integer"},"size_bytes":{"type":"integer"}},"required":["content_type","filename","id","size_bytes"],"type":"object"},"type":"array"},"created_at":{"type":"string"},"details":{"type":"string"},"forwarded_at":{"type":"null"},"id":{"type":"integer"},"kind":{"type":"string"},"platform":{"type":"string"},"reported_by":{"type":"string"},"request_reference":{"type":"string"},"screen":{"type":"string"},"screen_title":{"type":"string"},"summary":{"type":"string"}},"required":["attachments","created_at","details","forwarded_at","id","kind","platform","reported_by","request_reference","screen","screen_title","summary"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/feedback/attachments/{attachment_id}":{"get":{"tags":["feedback"],"summary":"Download Feedback Attachment","description":"For whoever may read the report it came with.","operationId":"download_feedback_attachment_api_v1_feedback_attachments__attachment_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/octet-stream":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups":{"get":{"tags":["groups"],"summary":"List Groups","description":"The groups this person keeps (an administrator keeps them all), with\nthe owners they may give a group and the roles a rule may name.","operationId":"list_groups_api_v1_groups_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"groups":{"items":{"properties":{"archived_at":{"type":["null","string"]},"archived_by":{"type":["null","string"]},"counts":{"properties":{"contacts":{"type":"integer"},"people":{"type":"integer"},"total":{"type":"integer"}},"required":["contacts","people","total"],"type":"object"},"created_at":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"may_keep":{"type":"boolean"},"name":{"type":"string"},"owner_entity_id":{"type":"integer"},"owner_entity_name":{"type":"string"},"rule":{"properties":{"beneath":{"type":"boolean"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"role_id":{"type":["null","integer"]},"role_name":{"type":["null","string"]},"title":{"type":"string"}},"required":["beneath","entity_id","entity_name","role_id","role_name","title"],"type":"object"}},"required":["archived_at","archived_by","counts","created_at","description","id","may_keep","name","owner_entity_id","owner_entity_name","rule"],"type":"object"},"type":"array"},"owners":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"roles":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"}},"required":["groups","owners","roles"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["groups"],"summary":"Create Group","description":"Start a group owned by an entity: a name, a description and an\noptional rule that picks members by entity, role or job title. Answers\nthe group as its keeper sees it, with its member counts.\n\nNeeds the right to keep groups on the owner entity.","operationId":"create_group_api_v1_groups_post","security":[{"session":[]},{"token":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"counts":{"properties":{"contacts":{"type":"integer"},"people":{"type":"integer"},"total":{"type":"integer"}},"required":["contacts","people","total"],"type":"object"},"created_at":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"may_keep":{"type":"boolean"},"name":{"type":"string"},"owner_entity_id":{"type":"integer"},"owner_entity_name":{"type":"string"},"rule":{"properties":{"beneath":{"type":"boolean"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"role_id":{"type":["null","integer"]},"role_name":{"type":["null","string"]},"title":{"type":"string"}},"required":["beneath","entity_id","entity_name","role_id","role_name","title"],"type":"object"}},"required":["archived_at","archived_by","counts","created_at","description","id","may_keep","name","owner_entity_id","owner_entity_name","rule"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/titles":{"get":{"tags":["groups"],"summary":"List Titles","description":"The job titles people here have, for a rule to pick from.","operationId":"list_titles_api_v1_groups_titles_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"titles":{"items":{"type":"string"},"type":"array"}},"required":["titles"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/{group_id}":{"get":{"tags":["groups"],"summary":"Get Group","description":"Answer one group as its keeper sees it: its name, description, owner\nentity, rule and member counts. The members themselves are read from\n`/groups/{group_id}/members`.\n\nNeeds the right to keep groups on the group's owner entity.","operationId":"get_group_api_v1_groups__group_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"counts":{"properties":{"contacts":{"type":"integer"},"people":{"type":"integer"},"total":{"type":"integer"}},"required":["contacts","people","total"],"type":"object"},"created_at":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"may_keep":{"type":"boolean"},"name":{"type":"string"},"owner_entity_id":{"type":"integer"},"owner_entity_name":{"type":"string"},"rule":{"properties":{"beneath":{"type":"boolean"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"role_id":{"type":["null","integer"]},"role_name":{"type":["null","string"]},"title":{"type":"string"}},"required":["beneath","entity_id","entity_name","role_id","role_name","title"],"type":"object"}},"required":["archived_at","archived_by","counts","created_at","description","id","may_keep","name","owner_entity_id","owner_entity_name","rule"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["groups"],"summary":"Update Group","description":"Rename, re-describe or change the rule. Moving it to another owner\nneeds Keep groups at both.","operationId":"update_group_api_v1_groups__group_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Group Api V1 Groups  Group Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/{group_id}/archive":{"post":{"tags":["groups"],"summary":"Archive Group","description":"Archive a group, or restore it with `archived` false, and answer the\ngroup. Its members stay as they are.\n\nNeeds the right to keep groups on the group's owner entity.","operationId":"archive_group_api_v1_groups__group_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__groups__ArchiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":["null","string"]},"archived_by":{"type":["null","string"]},"counts":{"properties":{"contacts":{"type":"integer"},"people":{"type":"integer"},"total":{"type":"integer"}},"required":["contacts","people","total"],"type":"object"},"created_at":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"may_keep":{"type":"boolean"},"name":{"type":"string"},"owner_entity_id":{"type":"integer"},"owner_entity_name":{"type":"string"},"rule":{"properties":{"beneath":{"type":"boolean"},"entity_id":{"type":"null"},"entity_name":{"type":"null"},"role_id":{"type":"null"},"role_name":{"type":"null"},"title":{"type":"string"}},"required":["beneath","entity_id","entity_name","role_id","role_name","title"],"type":"object"}},"required":["archived_at","archived_by","counts","created_at","description","id","may_keep","name","owner_entity_id","owner_entity_name","rule"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/{group_id}/members":{"get":{"tags":["groups"],"summary":"List Members","description":"A page of the members - people by name, then outsiders by name - a\ngroup may be a whole division, so it is searched and read a page at a\ntime.","operationId":"list_members_api_v1_groups__group_id__members_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"counts":{"properties":{"contacts":{"type":"integer"},"people":{"type":"integer"},"total":{"type":"integer"}},"required":["contacts","people","total"],"type":"object"},"has_more":{"type":"boolean"},"matched":{"type":"integer"},"members":{"items":{"properties":{"added_at":{"type":["null","string"]},"answered":{"type":"boolean"},"contact_id":{"type":["null","integer"]},"email":{"type":"string"},"inactive":{"type":"boolean"},"kind":{"type":"string"},"name":{"type":"string"},"person_id":{"type":["null","integer"]},"source":{"type":"string"},"title":{"type":"string"},"unsubscribed":{"type":"boolean"}},"required":["added_at","answered","contact_id","email","inactive","kind","name","person_id","source","title","unsubscribed"],"type":"object"},"type":"array"}},"required":["counts","has_more","matched","members"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["groups"],"summary":"Add Members","description":"Add members to a group by person id or by email address. An address\nthat belongs to an active person on the account adds that person; any\nother adds an outside contact. Answers how many were added, how many\nwere there already, the entries that are not addresses, and the\naddresses that turned out to be people.\n\nAdding outside contacts is part of the paid plan; without it the whole\nrequest is refused. Needs the right to keep groups on the group's owner\nentity.","operationId":"add_members_api_v1_groups__group_id__members_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembersIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"added":{"type":"integer"},"already":{"type":"integer"},"as_people":{"items":{"type":"string"},"type":"array"},"invalid":{"items":{"type":"string"},"type":"array"}},"required":["added","already","as_people","invalid"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/{group_id}/people/{person_id}":{"delete":{"tags":["groups"],"summary":"Remove Person","description":"Take a person who was added by hand out of a group, and answer whether\nanything was removed. A person who is in the group by its rule cannot be\nremoved; change the rule instead.\n\nNeeds the right to keep groups on the group's owner entity.","operationId":"remove_person_api_v1_groups__group_id__people__person_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"removed":{"type":"boolean"}},"required":["removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/{group_id}/contacts/{contact_id}":{"delete":{"tags":["groups"],"summary":"Remove Contact","description":"Take an outside contact out of a group, and answer whether anything\nwas removed. Survey invitations already sent to the contact stand.\n\nNeeds the right to keep groups on the group's owner entity.","operationId":"remove_contact_api_v1_groups__group_id__contacts__contact_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"removed":{"type":"boolean"}},"required":["removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["groups"],"summary":"Edit Contact","description":"Correct an outsider's name, or their address before they have answered.\n\nThrough a group, because a group is what its keeper may reach: the right\nto correct somebody is the right to keep a list they are on. One contact\nin every group and survey, so the correction reaches all of them.","operationId":"edit_contact_api_v1_groups__group_id__contacts__contact_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answered":{"type":"boolean"},"contact_id":{"type":"integer"},"email":{"type":"string"},"full_name":{"type":"string"},"moved":{"type":"boolean"}},"required":["answered","contact_id","email","full_name","moved"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/groups":{"get":{"tags":["groups"],"summary":"Pick Groups","description":"The groups a picker offers here, without who is in them.\n\n`adoption`: every group on the account, for `adoption.view`. `invite`:\nthe groups owned here or above, for `assessment.launch`.","operationId":"pick_groups_api_v1_entities__entity_id__groups_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"purpose","in":"query","required":false,"schema":{"type":"string","default":"adoption","title":"Purpose"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"groups":{"items":{"properties":{"archived_at":{"type":["null","string"]},"archived_by":{"type":["null","string"]},"counts":{"properties":{"contacts":{"type":"integer"},"people":{"type":"integer"},"total":{"type":"integer"}},"required":["contacts","people","total"],"type":"object"},"description":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"owner_entity_id":{"type":"integer"},"owner_entity_name":{"type":"string"},"rule":{"properties":{"beneath":{"type":"boolean"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"role_id":{"type":"null"},"role_name":{"type":"null"},"title":{"type":"string"}},"required":["beneath","entity_id","entity_name","role_id","role_name","title"],"type":"object"}},"required":["archived_at","archived_by","counts","description","id","name","owner_entity_id","owner_entity_name","rule"],"type":"object"},"type":"array"},"may_create_here":{"type":"boolean"}},"required":["groups","may_create_here"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/contact-groups":{"get":{"tags":["groups"],"summary":"Old Contact Groups","description":"Deprecated: read `/entities/{id}/groups?purpose=invite`. Kept for one\ncycle in the old shape: the groups this entity owns, with how many\noutsiders each holds.","operationId":"old_contact_groups_api_v1_entities__entity_id__contact_groups_get","deprecated":true,"security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Old Contact Groups Api V1 Entities  Entity Id  Contact Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/stakeholder-groups":{"get":{"tags":["groups"],"summary":"Old Stakeholder Groups","description":"Deprecated: read `/entities/{id}/groups?purpose=adoption`. Kept for\none cycle in the old shape: every group on the account, its rule's part\nof the organisation and role standing in for the old entity and role.","operationId":"old_stakeholder_groups_api_v1_entities__entity_id__stakeholder_groups_get","deprecated":true,"security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"groups":{"items":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"description":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"id":{"type":"integer"},"name":{"type":"string"},"role_id":{"type":["null","integer"]},"role_name":{"type":["null","string"]},"size":{"type":"null"}},"required":["archived_at","archived_by","description","entity_id","entity_name","id","name","role_id","role_name","size"],"type":"object"},"type":"array"}},"required":["groups"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/readings":{"get":{"tags":["readings"],"summary":"List Factor Readings","description":"Answer a factor's readings with what they say: its KPI and standing\ntarget, where the number stands now, and whether it is heading for the\ntarget. `include_voided` lists the withdrawn readings too.\n\nNeeds the right to view factors on the entity.","operationId":"list_factor_readings_api_v1_entities__entity_id__factors__factor_id__readings_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}},{"name":"include_voided","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Voided"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"current_source":{"type":"null"},"current_value":{"type":"null"},"days_since_reading":{"type":"null"},"drift":{"type":"null"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"null"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"string"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"target_date":{"type":"null"},"target_value":{"type":"null"},"trend":{"type":"null"}},"required":["current_source","current_value","days_since_reading","drift","kpi","kpi_source","last_measured_on","reading_count","readings","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["readings"],"summary":"Record Factor Reading","description":"Say where the KPI stands. Not a reset: the target is untouched.","operationId":"record_factor_reading_api_v1_entities__entity_id__factors__factor_id__readings_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"drift":{"type":["null","number"]},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":["null","number"]},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"string"},"reading":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"target_date":{"type":["null","string"]},"target_value":{"type":["null","number"]},"trend":{"type":["null","string"]}},"required":["current_source","current_value","days_since_reading","drift","kpi","kpi_source","last_measured_on","reading","reading_count","readings","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/readings/import":{"post":{"tags":["readings"],"summary":"Import Factor Readings","description":"Many readings from a CSV: a header of measured_on, value and an\noptional note, one reading a line. A reading the factor already has is\nskipped; a bad line refuses the file by its number.","operationId":"import_factor_readings_api_v1_entities__entity_id__factors__factor_id__readings_import_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_factor_readings_api_v1_entities__entity_id__factors__factor_id__readings_import_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"drift":{"type":"number"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"string"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"skipped":{"type":"integer"},"target_date":{"type":"null"},"target_value":{"type":"null"},"trend":{"type":"null"},"written":{"type":"integer"}},"required":["current_source","current_value","days_since_reading","drift","kpi","kpi_source","last_measured_on","reading_count","readings","skipped","target_date","target_value","trend","written"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/factors/{factor_id}/readings/{reading_id}/void":{"post":{"tags":["readings"],"summary":"Void Factor Reading","description":"Withdraw one of a factor's readings, with a reason. The reading stays\non the record and no longer counts towards where the KPI stands; voiding\nit a second time changes nothing. Answers the reading's id.\n\nNeeds the right to refine factors on the entity.","operationId":"void_factor_reading_api_v1_entities__entity_id__factors__factor_id__readings__reading_id__void_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Factor Id"}},{"name":"reading_id","in":"path","required":true,"schema":{"type":"integer","title":"Reading Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"voided":{"type":"boolean"}},"required":["id","voided"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/readings":{"get":{"tags":["readings"],"summary":"List Initiative Readings","description":"Answer an initiative's readings with what they say: its KPI and\ntarget, where the number stands now, and whether it is heading for the\ntarget. `include_voided` lists the withdrawn readings too.\n\nNeeds the right to view initiatives on the initiative's entity.","operationId":"list_initiative_readings_api_v1_initiatives__initiative_id__readings_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}},{"name":"include_voided","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Voided"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Initiative Readings Api V1 Initiatives  Initiative Id  Readings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["readings"],"summary":"Record Initiative Reading","description":"Record where an initiative's KPI stands on a day, today when\n`measured_on` is left out. Answers the new reading with the initiative's\nreadings summary as it now stands.\n\nThe initiative must have a KPI, the value must fall within the KPI's\nrange, and the day cannot lie in the future. A KPI read from services\ntakes no typed reading. Needs the right to edit the initiative.","operationId":"record_initiative_reading_api_v1_initiatives__initiative_id__readings_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"drift":{"type":["null","number"]},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":["null","number"]},"range_low":{"type":["null","number"]},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"string"},"reading":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"target_date":{"type":"null"},"target_value":{"type":["null","number"]},"trend":{"type":["null","string"]}},"required":["current_source","current_value","days_since_reading","drift","kpi","kpi_source","last_measured_on","reading","reading_count","readings","target_date","target_value","trend"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/readings/import":{"post":{"tags":["readings"],"summary":"Import Initiative Readings","description":"Many readings from a CSV, as for a factor.","operationId":"import_initiative_readings_api_v1_initiatives__initiative_id__readings_import_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_initiative_readings_api_v1_initiatives__initiative_id__readings_import_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"current_source":{"type":"string"},"current_value":{"type":"number"},"days_since_reading":{"type":"integer"},"drift":{"type":"null"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":"number"},"range_low":{"type":"number"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","unit"],"type":"object"},"kpi_source":{"type":"null"},"last_measured_on":{"type":"string"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"skipped":{"type":"integer"},"target_date":{"type":"null"},"target_value":{"type":"number"},"trend":{"type":"string"},"written":{"type":"integer"}},"required":["current_source","current_value","days_since_reading","drift","kpi","kpi_source","last_measured_on","reading_count","readings","skipped","target_date","target_value","trend","written"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/readings/{reading_id}/void":{"post":{"tags":["readings"],"summary":"Void Initiative Reading","description":"Withdraw one of an initiative's readings, with a reason. The reading\nstays on the record and no longer counts towards where the KPI stands;\nvoiding it a second time changes nothing. Answers the reading's id.\n\nNeeds the right to edit the initiative.","operationId":"void_initiative_reading_api_v1_initiatives__initiative_id__readings__reading_id__void_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}},{"name":"reading_id","in":"path","required":true,"schema":{"type":"integer","title":"Reading Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Void Initiative Reading Api V1 Initiatives  Initiative Id  Readings  Reading Id  Void Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/spend":{"get":{"tags":["spend"],"summary":"List Initiative Spend","description":"Answer an initiative's money: its budget and currency, the totals of\nwhat is recorded against it, its labour, and its most recent spend\nentries. Voided entries are listed only with `include_voided`.\n\nNeeds the right to view initiatives on the initiative's entity.","operationId":"list_initiative_spend_api_v1_initiatives__initiative_id__spend_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}},{"name":"include_voided","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Voided"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"currency":{"type":"string"},"entries":{"items":{"properties":{"amount_cents":{"type":"integer"},"created_at":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"reference":{"type":"string"},"spent_on":{"type":"string"},"void_reason":{"type":"string"},"voided_at":{"type":"string"},"voided_by":{"type":"string"}},"required":["amount_cents","created_at","currency","description","id","kind","recorded_by","recorded_by_id","reference","spent_on","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"entry_count":{"type":"integer"},"forecast_cents":{"type":"integer"},"labour":{"properties":{"labour_cents":{"type":"null"},"minutes":{"type":"integer"},"rated":{"type":"boolean"}},"required":["labour_cents","minutes","rated"],"type":"object"},"remaining_cents":{"type":"integer"},"spent_share":{"type":"number"}},"required":["actual_cents","budget_cents","committed_cents","currency","entries","entry_count","forecast_cents","labour","remaining_cents","spent_share"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["spend"],"summary":"Record Initiative Spend","description":"Record a commitment, an actual or a forecast against an initiative, in\ncents. Answers the new entry with the initiative's money as it now\nstands.\n\nThe amount cannot be zero, the currency must be the initiative's own, and\n`spent_on` cannot lie in the future. Needs the right to edit the\ninitiative.","operationId":"record_initiative_spend_api_v1_initiatives__initiative_id__spend_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"currency":{"type":"string"},"entries":{"items":{"properties":{"amount_cents":{"type":"integer"},"created_at":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"reference":{"type":"string"},"spent_on":{"type":"string"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["amount_cents","created_at","currency","description","id","kind","recorded_by","recorded_by_id","reference","spent_on","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"entry":{"properties":{"amount_cents":{"type":"integer"},"created_at":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"reference":{"type":"string"},"spent_on":{"type":"string"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["amount_cents","created_at","currency","description","id","kind","recorded_by","recorded_by_id","reference","spent_on","void_reason","voided_at","voided_by"],"type":"object"},"entry_count":{"type":"integer"},"forecast_cents":{"type":"integer"},"labour":{"properties":{"labour_cents":{"type":"null"},"minutes":{"type":"integer"},"rated":{"type":"boolean"}},"required":["labour_cents","minutes","rated"],"type":"object"},"remaining_cents":{"type":"integer"},"spent_share":{"type":"number"}},"required":["actual_cents","budget_cents","committed_cents","currency","entries","entry","entry_count","forecast_cents","labour","remaining_cents","spent_share"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/spend/{entry_id}/void":{"post":{"tags":["spend"],"summary":"Void Initiative Spend","description":"Void one of an initiative's spend entries, with a reason. The entry\nleaves the totals and stays on the record; voiding it a second time\nchanges nothing. Answers the entry with the initiative's money as it now\nstands.\n\nNeeds the right to edit the initiative.","operationId":"void_initiative_spend_api_v1_initiatives__initiative_id__spend__entry_id__void_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}},{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"currency":{"type":"string"},"entries":{"type":"array"},"entry":{"properties":{"amount_cents":{"type":"integer"},"created_at":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"reference":{"type":"string"},"spent_on":{"type":"string"},"void_reason":{"type":"string"},"voided_at":{"type":"string"},"voided_by":{"type":"string"}},"required":["amount_cents","created_at","currency","description","id","kind","recorded_by","recorded_by_id","reference","spent_on","void_reason","voided_at","voided_by"],"type":"object"},"entry_count":{"type":"integer"},"forecast_cents":{"type":"integer"},"labour":{"properties":{"labour_cents":{"type":"null"},"minutes":{"type":"integer"},"rated":{"type":"boolean"}},"required":["labour_cents","minutes","rated"],"type":"object"},"remaining_cents":{"type":"integer"},"spent_share":{"type":"number"}},"required":["actual_cents","budget_cents","committed_cents","currency","entries","entry","entry_count","forecast_cents","labour","remaining_cents","spent_share"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/value-streams/{stream_id}/spend":{"get":{"tags":["spend"],"summary":"List Stream Spend","description":"Answer a value stream's money: its budget and currency, the totals of\nwhat is recorded against it, and its most recent spend entries. Voided\nentries are listed only with `include_voided`.\n\nNeeds the right to view initiatives on the value stream's entity.","operationId":"list_stream_spend_api_v1_value_streams__stream_id__spend_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"integer","title":"Stream Id"}},{"name":"include_voided","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Voided"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Stream Spend Api V1 Value Streams  Stream Id  Spend Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["spend"],"summary":"Record Stream Spend","description":"Record a commitment, an actual or a forecast against a value stream,\nin cents. Answers the new entry with the value stream's money as it now\nstands.\n\nThe amount cannot be zero, the currency must be the value stream's own,\nand `spent_on` cannot lie in the future. Needs the right to manage the\nportfolio.","operationId":"record_stream_spend_api_v1_value_streams__stream_id__spend_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"integer","title":"Stream Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"currency":{"type":"string"},"entries":{"items":{"properties":{"amount_cents":{"type":"integer"},"created_at":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"reference":{"type":"string"},"spent_on":{"type":"string"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["amount_cents","created_at","currency","description","id","kind","recorded_by","recorded_by_id","reference","spent_on","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"entry":{"properties":{"amount_cents":{"type":"integer"},"created_at":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"reference":{"type":"string"},"spent_on":{"type":"string"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["amount_cents","created_at","currency","description","id","kind","recorded_by","recorded_by_id","reference","spent_on","void_reason","voided_at","voided_by"],"type":"object"},"entry_count":{"type":"integer"},"forecast_cents":{"type":"integer"},"remaining_cents":{"type":"integer"},"spent_share":{"type":"number"}},"required":["actual_cents","budget_cents","committed_cents","currency","entries","entry","entry_count","forecast_cents","remaining_cents","spent_share"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/value-streams/{stream_id}/spend/{entry_id}/void":{"post":{"tags":["spend"],"summary":"Void Stream Spend","description":"Void one of a value stream's spend entries, with a reason. The entry\nleaves the totals and stays on the record; voiding it a second time\nchanges nothing. Answers the entry with the value stream's money as it\nnow stands.\n\nNeeds the right to manage the portfolio.","operationId":"void_stream_spend_api_v1_value_streams__stream_id__spend__entry_id__void_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"integer","title":"Stream Id"}},{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Void Stream Spend Api V1 Value Streams  Stream Id  Spend  Entry Id  Void Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List Subscriptions","description":"List the account's webhook subscriptions, newest first: each one's\naddress, events, format, whether it is active and when it last\ndelivered. Also names the header a delivery is signed in. Never returns\na secret.\n\nAdministrators only.","operationId":"list_subscriptions_api_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"signature_header":{"type":"string"},"subscriptions":{"items":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"entity_id":{"type":"null"},"events":{"items":{"type":"string"},"type":"array"},"format":{"type":"string"},"id":{"type":"integer"},"last_delivered_at":{"type":"null"},"name":{"type":"string"},"url":{"type":"string"}},"required":["active","created_at","entity_id","events","format","id","last_delivered_at","name","url"],"type":"object"},"type":"array"}},"required":["signature_header","subscriptions"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["webhooks"],"summary":"Create Subscription","description":"Add one, and return its secret exactly once.\n\nGenerated rather than chosen. A secret somebody picks is a secret somebody\npicks badly, and there is no reason for a human to know this one - it is\nread by the receiving code, which is being written at the same moment this\nis being created.","operationId":"create_subscription_api_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"entity_id":{"type":["null","integer"]},"events":{"items":{"type":"string"},"type":"array"},"format":{"type":"string"},"id":{"type":"integer"},"last_delivered_at":{"type":"null"},"name":{"type":"string"},"secret":{"type":"string"},"shown_once":{"type":"boolean"},"url":{"type":"string"}},"required":["active","created_at","entity_id","events","format","id","last_delivered_at","name","secret","shown_once","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/webhooks/{subscription_id}":{"put":{"tags":["webhooks"],"summary":"Update Subscription","description":"Replace a webhook subscription's events, format, entity and whether\nit is active, and return the subscription. A blank name or URL keeps the\none it has, and its secret stays as it was.\n\nAdministrators only. A new URL must begin with https://, and at least\none event must be named.","operationId":"update_subscription_api_v1_webhooks__subscription_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"integer","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"entity_id":{"type":["null","integer"]},"events":{"items":{"type":"string"},"type":"array"},"format":{"type":"string"},"id":{"type":"integer"},"last_delivered_at":{"type":"null"},"name":{"type":"string"},"url":{"type":"string"}},"required":["active","created_at","entity_id","events","format","id","last_delivered_at","name","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Remove Subscription","description":"Gone outright, unlike a token.\n\nA token is revoked and kept because the audit trail refers to what it did;\na subscription did nothing - it was only ever told - so there is nothing\nfor a tombstone to explain. Its deliveries go with it.","operationId":"remove_subscription_api_v1_webhooks__subscription_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"integer","title":"Subscription Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/{subscription_id}/deliveries":{"get":{"tags":["webhooks"],"summary":"List Deliveries","description":"What has been sent there lately, and what came back.\n\nThe whole of what somebody needs to answer \"is this working\" - which is the\nonly question anybody asks of a webhook that is not currently on fire.","operationId":"list_deliveries_api_v1_webhooks__subscription_id__deliveries_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"integer","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Deliveries Api V1 Webhooks  Subscription Id  Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/events":{"get":{"tags":["webhooks"],"summary":"List Events","description":"Every event a subscription may name.\n\nRead out of the audit trail's own vocabulary rather than written down here,\nso a verb added to the product is subscribable the day it exists and one\nthat is renamed cannot leave a stale name on this list.","operationId":"list_events_api_v1_webhooks_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Events Api V1 Webhooks Events Get"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/assessments/{assessment_id}/archive":{"post":{"tags":["assessments"],"summary":"Archive Assessment","description":"Take an old round out of the way without taking it away.\n\nIts marks, its comments, its root cause analysis and its report all stay,\nand Compare will still put it beside any other round - which is the point:\nthe movement between two archived assessments is the record of what a past\ndecision bought.\n\nA DFSA and its solution are one record, so this archives both faces of it.","operationId":"archive_assessment_api_v1_assessments__assessment_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__assessments__ArchiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"string"},"archived_by":{"type":"null"},"id":{"type":"integer"}},"required":["archived_at","archived_by","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/assessments":{"get":{"tags":["assessments"],"summary":"List Assessments","description":"The rounds this entity has run.\n\nLive by default. An assessment is a snapshot, and an old one is history\nrather than work - but it stays comparable, searchable and linkable, which\nis the whole reason it is archived rather than removed.\n\nThe entity's own rounds by default, and not those of its services: \"the\nlatest round\" is read off the head of this list, and a round on one\nservice is not the entity's latest. `owned=all` reads both, each saying\nwhich service it is of; `service_id` reads one service's.","operationId":"list_assessments_api_v1_entities__entity_id__assessments_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}},{"name":"owned","in":"query","required":false,"schema":{"enum":["all","direct","service"],"type":"string","default":"direct","title":"Owned"}},{"name":"service_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Assessments Api V1 Entities  Entity Id  Assessments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["assessments"],"summary":"Create Assessment","description":"Freeze the factors into a survey.\n\nA CSA takes the entity's accepted factors; a DFSA takes its baseline CSA's,\nso the two line up letter for letter. Statements are snapshotted onto each\nAssessmentFactor either way: a later reword must not silently change what\npast respondents were asked.\n\n`service_id` makes a CSA of one of the entity's services: it takes the\naccepted factors that belong to that service, where one without takes\nthose that belong to the entity itself. A DFSA is of whatever its\nbaseline is of.","operationId":"create_assessment_api_v1_entities__entity_id__assessments_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"anonymous":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"assessment_date":{"type":"string"},"baseline_csa_id":{"type":["null","integer"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":["null","string"]},"id":{"type":"integer"},"include_zero":{"type":"boolean"},"instructions":{"type":"string"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"kind":{"type":"string"},"ot_labels":{"items":{"type":"string"},"type":"array"},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"solution_description":{"type":"string"},"solution_name":{"type":"string"},"status":{"type":"string"},"sw_labels":{"items":{"type":"string"},"type":"array"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"title":{"type":"string"}},"required":["anonymous","archived_at","archived_by","assessment_date","baseline_csa_id","entity_id","entity_name","future_date","id","include_zero","instructions","invite_body","invite_subject","kind","ot_labels","solution_description","solution_name","status","sw_labels","thank_you","thank_you_email","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}":{"put":{"tags":["assessments"],"summary":"Edit Assessment","description":"Reword an assessment after creating it.\n\nThe questions are not here and cannot be: they were frozen onto it when it\nwas created, and every answer is to one of them. What changes is what the\npeople answering are told - the title, the instructions - and what the ones\nfrom outside are sent. A closed survey keeps its words except the thank-you.","operationId":"edit_assessment_api_v1_assessments__assessment_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"anonymous":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"assessment_date":{"type":"string"},"baseline_csa_id":{"type":"null"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":"null"},"id":{"type":"integer"},"include_zero":{"type":"boolean"},"instructions":{"type":"string"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"kind":{"type":"string"},"ot_labels":{"items":{"type":"string"},"type":"array"},"service":{"type":"null"},"service_id":{"type":"null"},"solution_description":{"type":"string"},"solution_name":{"type":"string"},"status":{"type":"string"},"sw_labels":{"items":{"type":"string"},"type":"array"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"title":{"type":"string"}},"required":["anonymous","archived_at","archived_by","assessment_date","baseline_csa_id","entity_id","entity_name","future_date","id","include_zero","instructions","invite_body","invite_subject","kind","ot_labels","solution_description","solution_name","status","sw_labels","thank_you","thank_you_email","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["assessments"],"summary":"Delete Assessment","description":"Take a draft away. Only a draft: once launched, a round is a record of\nwhat people were asked and said, and the way to put one out of sight is\nto archive it. A solution's own round is deleted with the solution.","operationId":"delete_assessment_api_v1_assessments__assessment_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}},"required":["deleted","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["assessments"],"summary":"Get Assessment","description":"Read one assessment: its kind, title, dates, status, instructions,\ninvitation wording and the labels of its two scales, with how many\nparticipants were invited and how many have completed the survey, inside\nthe organisation and outside it. `can_see_results` says whether the\ncaller may read the results.","operationId":"get_assessment_api_v1_assessments__assessment_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"anonymous":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"assessment_date":{"type":"string"},"baseline_csa_id":{"type":["null","integer"]},"can_see_results":{"type":"boolean"},"completed_count":{"type":"integer"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":["null","string"]},"id":{"type":"integer"},"include_zero":{"type":"boolean"},"instructions":{"type":"string"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"kind":{"type":"string"},"ot_labels":{"items":{"type":"string"},"type":"array"},"outside_completed":{"type":"integer"},"outside_invited":{"type":"integer"},"participant_count":{"type":"integer"},"service":{"type":"null"},"service_id":{"type":"null"},"solution_description":{"type":"string"},"solution_name":{"type":"string"},"status":{"type":"string"},"sw_labels":{"items":{"type":"string"},"type":"array"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"title":{"type":"string"}},"required":["anonymous","archived_at","archived_by","assessment_date","baseline_csa_id","can_see_results","completed_count","entity_id","entity_name","future_date","id","include_zero","instructions","invite_body","invite_subject","kind","ot_labels","outside_completed","outside_invited","participant_count","solution_description","solution_name","status","sw_labels","thank_you","thank_you_email","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/dfsa":{"post":{"tags":["assessments"],"summary":"Conduct Dfsa","description":"Assess a solution that was proposed on the Solutions screen (spec 7.3).\n\nThe other way round - naming the solution while creating the assessment -\nis `create_assessment`. Both end at the same record: this one fills in the\nassessment face that was left empty, freezing the baseline's factors onto\nit exactly as creating a DFSA outright would have.","operationId":"conduct_dfsa_api_v1_assessments__assessment_id__dfsa_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConductIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"anonymous":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"assessment_date":{"type":"string"},"baseline_csa_id":{"type":"integer"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":"string"},"id":{"type":"integer"},"include_zero":{"type":"boolean"},"instructions":{"type":"string"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"kind":{"type":"string"},"ot_labels":{"items":{"type":"string"},"type":"array"},"service":{"type":"null"},"service_id":{"type":"null"},"solution_description":{"type":"string"},"solution_name":{"type":"string"},"status":{"type":"string"},"sw_labels":{"items":{"type":"string"},"type":"array"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"title":{"type":"string"}},"required":["anonymous","archived_at","archived_by","assessment_date","baseline_csa_id","entity_id","entity_name","future_date","id","include_zero","instructions","invite_body","invite_subject","kind","ot_labels","solution_description","solution_name","status","sw_labels","thank_you","thank_you_email","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/composites":{"post":{"tags":["assessments"],"summary":"Create Composite","description":"Roll child assessments up to a parent entity (spec 9.8), or an\nentity's service assessments up to the entity.\n\nThe children are the assessments of entities beneath this one, or the\nassessments of this entity's own services, and never some of each: the\nfirst are weighed as the entities are, the second are not weighed at all,\nand one figure cannot be both. The composite is the entity's, so a\ncomposite of services can itself be a child of one further up.","operationId":"create_composite_api_v1_entities__entity_id__composites_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompositeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"anonymous":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"assessment_date":{"type":"string"},"baseline_csa_id":{"type":"null"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":"null"},"id":{"type":"integer"},"include_zero":{"type":"boolean"},"instructions":{"type":"string"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"kind":{"type":"string"},"ot_labels":{"items":{"type":"string"},"type":"array"},"service":{"type":"null"},"service_id":{"type":"null"},"solution_description":{"type":"string"},"solution_name":{"type":"string"},"status":{"type":"string"},"sw_labels":{"items":{"type":"string"},"type":"array"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"title":{"type":"string"}},"required":["anonymous","archived_at","archived_by","assessment_date","baseline_csa_id","entity_id","entity_name","future_date","id","include_zero","instructions","invite_body","invite_subject","kind","ot_labels","service","service_id","solution_description","solution_name","status","sw_labels","thank_you","thank_you_email","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/composite-candidates":{"get":{"tags":["assessments"],"summary":"Composite Candidates","description":"Assessments beneath this entity that could feed a composite.\n\n`source=services` lists the assessments of this entity's own services\ninstead, which combine into a composite of their own.","operationId":"composite_candidates_api_v1_entities__entity_id__composite_candidates_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"source","in":"query","required":false,"schema":{"enum":["entities","services"],"type":"string","default":"entities","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Composite Candidates Api V1 Entities  Entity Id  Composite Candidates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/launch":{"post":{"tags":["assessments"],"summary":"Launch","description":"Open the survey and invite everybody with a role on the entity or above.","operationId":"launch_api_v1_assessments__assessment_id__launch_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"invited":{"type":"integer"},"status":{"type":"string"}},"required":["id","invited","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/pause":{"post":{"tags":["assessments"],"summary":"Pause","description":"Stop taking answers for now, to rework the factors. The people asked\nstay asked and their links stay theirs; resuming opens it again with the\nfactors as they are by then - see `_rework`.","operationId":"pause_api_v1_assessments__assessment_id__pause_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"},"told":{"type":"integer"}},"required":["id","status","told"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/resume":{"post":{"tags":["assessments"],"summary":"Resume","description":"Take answers again on a paused survey. Each question first takes its\nfactor's present wording, and a current state assessment gains a\nquestion for every factor accepted during the pause. A subject or\nmessage in the body goes to everybody invited. Answers with the new\nstatus, how many people were told and how many questions were added.","operationId":"resume_api_v1_assessments__assessment_id__resume_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"added":{"type":"integer"},"id":{"type":"integer"},"status":{"type":"string"},"told":{"type":"integer"}},"required":["added","id","status","told"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/cancel":{"post":{"tags":["assessments"],"summary":"Cancel","description":"Stop short of closing. Whatever came in stays on record, and the\nround can be reopened; what it cannot do is take an answer.","operationId":"cancel_api_v1_assessments__assessment_id__cancel_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"},"told":{"type":"integer"}},"required":["id","status","told"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/reopen":{"post":{"tags":["assessments"],"summary":"Reopen","description":"Take answers again after closing or cancelling. The people who answered\nhave answered; the ones who had not can still.","operationId":"reopen_api_v1_assessments__assessment_id__reopen_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"},"told":{"type":"integer"}},"required":["id","status","told"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/remind":{"post":{"tags":["assessments"],"summary":"Remind","description":"Remind the people asked who have not answered yet.\n\nThe same right that opened the survey. Only while it is open - a reminder\nto answer something that takes no answers is a reminder to be disappointed.\nCompletion is known even on an anonymous survey; what anybody said is not,\nand nothing here touches it.","operationId":"remind_api_v1_assessments__assessment_id__remind_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NoticeIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"reminded":{"type":"integer"},"waiting":{"type":"integer"}},"required":["reminded","waiting"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/close":{"post":{"tags":["assessments"],"summary":"Close","description":"Close an assessment, so that its survey takes no more answers, and\nanswer with its id and new status. The caller needs the right to launch\nassessments on the entity.","operationId":"close_api_v1_assessments__assessment_id__close_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"}},"required":["id","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/survey":{"get":{"tags":["assessments"],"summary":"Get Survey","description":"The questionnaire as a respondent sees it.\n\nThe anonymity setting is returned explicitly because spec 9.3 requires that\nparticipants be told which one applies before they answer.","operationId":"get_survey_api_v1_assessments__assessment_id__survey_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"already_completed":{"type":"boolean"},"anonymous":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"assessment_date":{"type":"string"},"baseline_csa_id":{"type":["null","integer"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":["null","string"]},"id":{"type":"integer"},"include_zero":{"type":"boolean"},"instructions":{"type":"string"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"kind":{"type":"string"},"mode":{"type":"string"},"ot_labels":{"items":{"type":"string"},"type":"array"},"questions":{"items":{"properties":{"assessment_factor_id":{"type":"integer"},"kind":{"type":["null","string"]},"letter":{"type":"string"},"statement":{"type":"string"}},"required":["assessment_factor_id","kind","letter","statement"],"type":"object"},"type":"array"},"scale":{"items":{"properties":{"ot_label":{"type":"string"},"score":{"type":"integer"},"sw_label":{"type":"string"}},"required":["ot_label","score","sw_label"],"type":"object"},"type":"array"},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"solution_description":{"type":"string"},"solution_name":{"type":"string"},"status":{"type":"string"},"sw_labels":{"items":{"type":"string"},"type":"array"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"title":{"type":"string"},"updating":{"type":"boolean"}},"required":["already_completed","anonymous","archived_at","archived_by","assessment_date","baseline_csa_id","entity_id","entity_name","future_date","id","include_zero","instructions","invite_body","invite_subject","kind","mode","ot_labels","questions","scale","solution_description","solution_name","status","sw_labels","thank_you","thank_you_email","title","updating"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/responses":{"post":{"tags":["assessments"],"summary":"Submit Responses","description":"Record one person's answers.\n\nOn an anonymous assessment the participant id is simply never written to the\nresponse rows. The participant record is still marked complete so organisers\ncan see the response rate, but nothing links a person to what they said.","operationId":"submit_responses_api_v1_assessments__assessment_id__responses_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answers":{"type":"integer"},"ok":{"type":"boolean"}},"required":["answers","ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/results":{"get":{"tags":["assessments"],"summary":"Get Results","description":"The matrix, over everybody who answered unless a lens says otherwise.\n\n`respondents` reads it over the people with a seat, the people invited by\nlink, or both; `group_id` over the outsiders invited through one group.\nA composite ignores both - see `results.build_composite`.","operationId":"get_results_api_v1_assessments__assessment_id__results_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"respondents","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Respondents"}},{"name":"group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"aggregate":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{},"required":[],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"null"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"anonymous":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"assessment_date":{"type":"string"},"baseline_csa_id":{"type":"null"},"children":{"items":{"properties":{"assessment_date":{"type":"string"},"assessment_id":{"type":"integer"},"dispersion":{"type":"number"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"letter":{"type":"string"},"respondent_count":{"type":"integer"},"service_id":{"type":"integer"},"service_name":{"type":"string"},"title":{"type":"string"},"weight_pct":{"type":["null","number"]},"x":{"type":"number"},"y":{"type":"number"}},"required":["assessment_date","assessment_id","dispersion","entity_id","entity_name","letter","respondent_count","service_id","service_name","title","weight_pct","x","y"],"type":"object"},"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":"null"},"groups":{"items":{"properties":{"completed":{"type":"integer"},"id":{"type":"integer"},"invited":{"type":"integer"},"name":{"type":"string"}},"required":["completed","id","invited","name"],"type":"object"},"type":"array"},"id":{"type":"integer"},"include_zero":{"type":"boolean"},"instructions":{"type":"string"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"kind":{"type":"string"},"lens":{"properties":{"group_id":{"type":["null","integer"]},"respondents":{"type":"string"}},"required":["group_id","respondents"],"type":"object"},"ot_labels":{"items":{"type":"string"},"type":"array"},"points":{"items":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{"assessment_date":{"type":"string"},"assessment_title":{"type":"string"},"category_id":{"type":["null","integer"]},"category_name":{"type":"string"},"factor_count":{"type":"integer"},"ot_count":{"type":"integer"},"ot_mean":{"type":"number"},"ot_std_dev":{"type":"number"},"service_id":{"type":"integer"},"service_ids":{"type":"array"},"services":{"type":"array"},"sw_count":{"type":"integer"},"sw_mean":{"type":"number"},"sw_std_dev":{"type":"number"},"weight_pct":{"type":["null","number"]}},"required":[],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"integer"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"type":"array"},"respondent_count":{"type":"integer"},"respondents":{"properties":{"inside":{"type":"integer"},"outside":{"type":"integer"},"total":{"type":"integer"}},"required":["inside","outside","total"],"type":"object"},"service":{"type":"null"},"service_id":{"type":"null"},"solution_description":{"type":"string"},"solution_name":{"type":"string"},"status":{"type":"string"},"sw_labels":{"items":{"type":"string"},"type":"array"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"title":{"type":"string"}},"required":["aggregate","anonymous","archived_at","archived_by","assessment_date","baseline_csa_id","children","entity_id","entity_name","future_date","groups","id","include_zero","instructions","invite_body","invite_subject","kind","lens","ot_labels","points","respondent_count","respondents","solution_description","solution_name","status","sw_labels","thank_you","thank_you_email","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/factors/{assessment_factor_id}":{"get":{"tags":["assessments"],"summary":"Get Factor Detail","description":"The results for one factor of an assessment: its statement and letter,\nits point on the matrix, how the scores on each axis are distributed,\nhow many respondents marked it not applicable, and every comment with\nits scores and themes. `respondents` reads it over `all`, `inside` or\n`outside` respondents, and `group_id` over the outsiders invited\nthrough one group.","operationId":"get_factor_detail_api_v1_assessments__assessment_id__factors__assessment_factor_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"assessment_factor_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Factor Id"}},{"name":"respondents","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Respondents"}},{"name":"group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"assessment_factor_id":{"type":"integer"},"comments":{"items":{"properties":{"comment":{"type":"string"},"ot_label":{"type":"string"},"ot_score":{"type":["null","integer"]},"outside":{"type":"boolean"},"response_id":{"type":"integer"},"sw_label":{"type":"string"},"sw_score":{"type":["null","integer"]},"theme_ids":{"type":"array"}},"required":["comment","ot_label","ot_score","outside","response_id","sw_label","sw_score","theme_ids"],"type":"object"},"type":"array"},"factor_id":{"type":"integer"},"kind":{"type":"null"},"letter":{"type":"string"},"not_applicable":{"properties":{"both":{"type":"integer"},"ot":{"type":"integer"},"sw":{"type":"integer"}},"required":["both","ot","sw"],"type":"object"},"ot_distribution":{"additionalProperties":{"type":"integer"},"type":"object"},"point":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{"ot_count":{"type":"integer"},"ot_mean":{"type":"number"},"ot_std_dev":{"type":"number"},"sw_count":{"type":"integer"},"sw_mean":{"type":"number"},"sw_std_dev":{"type":"number"}},"required":["ot_count","ot_mean","ot_std_dev","sw_count","sw_mean","sw_std_dev"],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"integer"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"statement":{"type":"string"},"sw_distribution":{"additionalProperties":{"type":"integer"},"type":"object"},"themes":{"type":"array"}},"required":["assessment_factor_id","comments","factor_id","kind","letter","not_applicable","ot_distribution","point","statement","sw_distribution","themes"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/themes/map":{"get":{"tags":["assessments"],"summary":"Theme Map","description":"Which themes were raised against which factors, for the whole assessment.\n\nThe factor drill-down answers \"what did people say about D\". This answers\nthe question that only appears once several factors have been read - \"where\nelse did this come up\" - which nobody can answer by opening dialogs one at a\ntime, because each is closed before the next is opened.","operationId":"theme_map_api_v1_assessments__assessment_id__themes_map_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"assessment_id":{"type":"integer"},"comment_count":{"type":"integer"},"factors":{"items":{"properties":{"assessment_factor_id":{"type":"integer"},"comment_count":{"type":"integer"},"dispersion":{"type":"number"},"letter":{"type":"string"},"quadrant":{"type":"string"},"statement":{"type":"string"},"themed_comment_count":{"type":"integer"},"x":{"type":"number"},"y":{"type":"number"}},"required":["assessment_factor_id","comment_count","dispersion","letter","quadrant","statement","themed_comment_count","x","y"],"type":"object"},"type":"array"},"links":{"items":{"properties":{"assessment_factor_id":{"type":"integer"},"theme_id":{"type":"integer"},"weight":{"type":"integer"}},"required":["assessment_factor_id","theme_id","weight"],"type":"object"},"type":"array"},"themed_comment_count":{"type":"integer"},"themes":{"items":{"properties":{"colour":{"type":"string"},"comment_count":{"type":"integer"},"factor_count":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string"},"ot_mean":{"type":["null","number"]},"sw_mean":{"type":["null","number"]}},"required":["colour","comment_count","factor_count","id","name","ot_mean","sw_mean"],"type":"object"},"type":"array"}},"required":["assessment_id","comment_count","factors","links","themed_comment_count","themes"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/themes":{"post":{"tags":["assessments"],"summary":"Create Theme","description":"Create a theme under which to group an assessment's comments, from a\nname and a colour. Answers with the theme's id, name and colour. The\ncaller needs the right to see the assessment's results.","operationId":"create_theme_api_v1_assessments__assessment_id__themes_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"colour":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["colour","id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/themes/assign":{"post":{"tags":["assessments"],"summary":"Assign Theme","description":"Attach a theme to a respondent's comment, or detach it when `attached`\nis false. `response_id` names the comment and `theme_id` the theme.\nRepeating a call changes nothing. The caller needs the right to see the\nassessment's results.","operationId":"assign_theme_api_v1_assessments__assessment_id__themes_assign_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeAssignIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/participants":{"get":{"tags":["assessments"],"summary":"List Participants","description":"Who was invited and who has answered.\n\nCompletion is visible even on an anonymous survey - knowing that somebody\nresponded is not the same as knowing what they said - but the response rows\nthemselves carry no participant, so nothing here can be joined back to them.","operationId":"list_participants_api_v1_assessments__assessment_id__participants_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"anonymous":{"type":"boolean"},"participants":{"items":{"properties":{"completed_at":{"type":["null","string"]},"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["completed_at","id","name","status"],"type":"object"},"type":"array"}},"required":["anonymous","participants"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/evidence-options":{"get":{"tags":["rca"],"summary":"Evidence Options","description":"What the desk holds that this analysis could cite: the incidents and\nproblems on the services its factors evaluate - or, where no factor names\none, on every service its part of the organisation runs - newest first,\nas far as this reader may read the desk.","operationId":"evidence_options_api_v1_assessments__assessment_id__rca_evidence_options_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Evidence Options Api V1 Assessments  Assessment Id  Rca Evidence Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/nodes/{node_id}/evidence":{"post":{"tags":["rca"],"summary":"Cite Evidence","description":"Cite an incident or a problem as evidence for an assertion or a cause.\n\nThe desk has the record of things going wrong; citing it puts the\nanalysis on that record rather than on recollection. Proposing is the\nright it takes, because evidence is part of making a claim.","operationId":"cite_evidence_api_v1_assessments__assessment_id__rca_nodes__node_id__evidence_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"evidence":{"items":{"properties":{"id":{"type":"integer"},"incidents":{"type":"integer"},"kind":{"type":"string"},"reference":{"type":"string"},"service_ids":{"items":{"type":"integer"},"type":"array"},"services":{"items":{"type":"string"},"type":"array"},"severity":{"type":"null"},"started_at":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["id","incidents","kind","reference","service_ids","services","severity","started_at","status","subject"],"type":"object"},"type":"array"},"suggested_factors":{"items":{"properties":{"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_statement":{"type":"string"},"id":{"type":"integer"}},"required":["entity_id","entity_name","factor_statement","id"],"type":"object"},"type":"array"},"unevaluated_services":{"items":{"type":"string"},"type":"array"}},"required":["evidence","suggested_factors","unevaluated_services"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/nodes/{node_id}/evidence/{request_id}":{"delete":{"tags":["rca"],"summary":"Uncite Evidence","description":"Withdraw an incident or a problem cited as evidence for an assertion\nor a cause. Returns the evidence the node still cites, with the factors\nand services that evidence suggests assessing.\n\nNeeds the `rca.propose` right on the assessment's entity.","operationId":"uncite_evidence_api_v1_assessments__assessment_id__rca_nodes__node_id__evidence__request_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"evidence":{"items":{"properties":{"id":{"type":"integer"},"incidents":{"type":"integer"},"kind":{"type":"string"},"reference":{"type":"string"},"service_ids":{"items":{"type":"integer"},"type":"array"},"services":{"items":{"type":"string"},"type":"array"},"severity":{"type":"null"},"started_at":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["id","incidents","kind","reference","service_ids","services","severity","started_at","status","subject"],"type":"object"},"type":"array"},"suggested_factors":{"type":"array"},"unevaluated_services":{"items":{"type":"string"},"type":"array"}},"required":["evidence","suggested_factors","unevaluated_services"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca":{"get":{"tags":["rca"],"summary":"Get Graph","description":"The whole analysis as nodes and edges, ready to lay out as a flow diagram.","operationId":"get_graph_api_v1_assessments__assessment_id__rca_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"agreement_scale":{"items":{"properties":{"label":{"type":"string"},"score":{"type":"integer"}},"required":["label","score"],"type":"object"},"type":"array"},"assessment_date":{"type":"string"},"assessment_id":{"type":"integer"},"assessment_title":{"type":"string"},"edges":{"items":{"properties":{"cause_node_id":{"type":"integer"},"effect_node_id":{"type":"integer"},"id":{"type":"integer"}},"required":["cause_node_id","effect_node_id","id"],"type":"object"},"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factors":{"items":{"properties":{"assertion_count":{"type":"integer"},"id":{"type":"integer"},"letter":{"type":"string"},"statement":{"type":"string"}},"required":["assertion_count","id","letter","statement"],"type":"object"},"type":"array"},"future_date":{"type":"null"},"kind":{"type":"string"},"nodes":{"items":{"properties":{"agreement_mean":{"type":"null"},"comments":{"type":"array"},"evidence":{"items":{"properties":{"id":{"type":"integer"},"incidents":{"type":"integer"},"kind":{"type":"string"},"reference":{"type":"string"},"service_ids":{"items":{"type":"integer"},"type":"array"},"services":{"items":{"type":"string"},"type":"array"},"severity":{"type":"null"},"started_at":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["id","incidents","kind","reference","service_ids","services","severity","started_at","status","subject"],"type":"object"},"type":"array"},"factor_id":{"type":["null","integer"]},"factor_letter":{"type":["null","string"]},"factor_statement":{"type":"string"},"id":{"type":"integer"},"initiatives":{"type":"array"},"is_root_cause":{"type":"boolean"},"node_type":{"type":"string"},"response_count":{"type":"integer"},"status":{"type":"string"},"suggested_factors":{"items":{"properties":{"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_statement":{"type":"string"},"id":{"type":"integer"}},"required":["entity_id","entity_name","factor_statement","id"],"type":"object"},"type":"array"},"text":{"type":"string"},"unevaluated_services":{"type":"array"}},"required":["agreement_mean","comments","evidence","factor_id","factor_letter","factor_statement","id","initiatives","is_root_cause","node_type","response_count","status","suggested_factors","text","unevaluated_services"],"type":"object"},"type":"array"}},"required":["agreement_scale","assessment_date","assessment_id","assessment_title","edges","entity_id","entity_name","factors","future_date","kind","nodes"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/nodes":{"post":{"tags":["rca"],"summary":"Create Node","description":"Propose an assertion about a factor, or a cause beneath something.\n\nSpec 10.3: only assertions may be made about a factor, because a neutrally\nworded factor has nothing to explain. A cause must therefore say what it\nexplains, and that must already exist.","operationId":"create_node_api_v1_assessments__assessment_id__rca_nodes_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"node_type":{"type":"string"},"released_initiatives":{"items":{"type":"string"},"type":"array"},"status":{"type":"string"}},"required":["id","node_type","released_initiatives","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/edges":{"post":{"tags":["rca"],"summary":"Link Nodes","description":"Say that one cause also underlies another node.\n\nCauses are many-to-many by design: the same cause frequently explains\nseveral assertions, and saying so once is what turns a list into an analysis.","operationId":"link_nodes_api_v1_assessments__assessment_id__rca_edges_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdgeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"released_initiatives":{"items":{"type":"string"},"type":"array"}},"required":["id","released_initiatives"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/edges/{edge_id}":{"delete":{"tags":["rca"],"summary":"Unlink Nodes","description":"Remove the link that says one node causes another. Both nodes stay.\nAnswers `{\"ok\": true}`.\n\nNeeds the `rca.propose` right on the assessment's entity.","operationId":"unlink_nodes_api_v1_assessments__assessment_id__rca_edges__edge_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"edge_id","in":"path","required":true,"schema":{"type":"integer","title":"Edge Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/nodes/{node_id}/agreement":{"post":{"tags":["rca"],"summary":"Record Agreement","description":"Answer the agreement survey for one assertion or cause (spec 10.1).\n\nThe same -3..3 scale the assessment survey uses, and the same question of\nwhether the middle exists: an account that has taken Neutral off the scale\nhas decided its people come off the fence, and an answer of 0 arriving here\nis a client that did not ask.","operationId":"record_agreement_api_v1_assessments__assessment_id__rca_nodes__node_id__agreement_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/nodes/{node_id}/status":{"post":{"tags":["rca"],"summary":"Set Node Status","description":"Mark an assertion or a cause proposed, accepted or rejected, naming\nthe status in the `new_status` query parameter. A cause that stops being\nan accepted root cause is unlinked from the initiatives that addressed\nit, and the answer names them.\n\nNeeds the `rca.accept` right on the assessment's entity.","operationId":"set_node_status_api_v1_assessments__assessment_id__rca_nodes__node_id__status_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"}},{"name":"new_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/RcaStatus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"released_initiatives":{"items":{"type":"string"},"type":"array"},"status":{"type":"string"}},"required":["id","released_initiatives","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/nodes/{node_id}/initiatives":{"post":{"tags":["rca"],"summary":"Link Initiative","description":"Point an initiative at a root cause (spec 10.4).\n\nThis is the hinge between the two halves of DilliC: analysis produces a\ncause, and change management produces the work that addresses it.","operationId":"link_initiative_api_v1_assessments__assessment_id__rca_nodes__node_id__initiatives_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInitiativeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"initiatives":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"type":"object"},"type":"array"}},"required":["initiatives"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/rca/nodes/{node_id}/initiatives/{initiative_id}":{"delete":{"tags":["rca"],"summary":"Unlink Initiative","description":"Stop claiming that this initiative addresses this cause.\n\nA link made in the wrong place, or one the plan has moved past, has to be\nremovable by the same person who could make it - otherwise the only way to\ncorrect it is to reject the cause, which says something quite different.\nThe initiative itself is untouched.","operationId":"unlink_initiative_api_v1_assessments__assessment_id__rca_nodes__node_id__initiatives__initiative_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer","title":"Node Id"}},{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"initiatives":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"type":"object"},"type":"array"}},"required":["initiatives"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/initiatives":{"get":{"tags":["initiatives"],"summary":"List Initiatives","description":"What this entity is running.\n\nAll of it by default, each row saying which service's plan it is in where\nit is in one. `owned=direct` keeps the entity's own, `owned=service` what\nits services own, and `service_id` one service's.\n\nLive by default, because this list is read to decide what to do next and is\nalso what every picker offers. `scope=archived` or `scope=all` asks for the\nrest, which is how a history view and a search read it.\n\n`around` widens it to the entities above and beneath as well, each row\nsaying whose it is. A risk raised on a team may threaten the division's\ninitiative that the team's work carries out, and a picker that offered\nonly the team's own would have nothing to offer a team that runs none.","operationId":"list_initiatives_api_v1_entities__entity_id__initiatives_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}},{"name":"around","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Around"}},{"name":"owned","in":"query","required":false,"schema":{"enum":["all","direct","service"],"type":"string","default":"all","title":"Owned"}},{"name":"service_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Initiatives Api V1 Entities  Entity Id  Initiatives Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["initiatives"],"summary":"Create Initiative","description":"Create an initiative on an entity: a name, and optionally a\ndescription, a budget in whole cents, a KPI with a target, a status and\na parent initiative. Returns its id and name.\n\nNeeds the `initiative.edit` right on the entity. A parent initiative\nmust sit on the entity's parent.","operationId":"create_initiative_api_v1_entities__entity_id__initiatives_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiativeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/archive":{"post":{"tags":["initiatives"],"summary":"Archive Initiative","description":"Take an initiative out of the way without taking it away.\n\nNothing moves and nothing is lost: the work beneath it keeps its board, its\nhistory and its reports, and a link to it still opens it. What changes is\nthat it stops being offered as somewhere to put new work.","operationId":"archive_initiative_api_v1_initiatives__initiative_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__initiatives__ArchiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":["null","string"]},"archived_by":{"type":["null","string"]},"id":{"type":"integer"}},"required":["archived_at","archived_by","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}":{"delete":{"tags":["initiatives"],"summary":"Delete Initiative","description":"Remove an initiative that should never have existed.\n\n**Deleting and archiving are answers to different questions, and this\nproduct already had the other one.** Archiving takes something out of the\nway without taking it away: the work beneath it keeps its history, reports\nstill read it, and a link to it still opens it. That is what you want for\nan initiative that is *over* - and it is almost always what you want.\n\nThis is for the other case, which archiving serves badly: an initiative\ncreated by mistake, or twice, or in the wrong place. Archiving one of those\nleaves it in the archive for ever, where somebody will find it in a year and\nwonder what it was.\n\nSo the rule is: **it can be deleted while nothing depends on it, and\narchived once something does.** Not a warning and a way through - a refusal,\nnaming what holds it. The alternative is choosing for somebody between\norphaning their work items and quietly deleting them, and a screen has no\nbusiness making that choice on a press of a button. Anybody who really does\nwant the initiative gone detaches its work first, which is a thing they can\nsee themselves doing.","operationId":"delete_initiative_api_v1_initiatives__initiative_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["deleted","id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["initiatives"],"summary":"Get Initiative","description":"The initiative, its breakdown as a tree, and the changes releasing it.","operationId":"get_initiative_api_v1_initiatives__initiative_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"achieved_value":{"type":["null","number"]},"adoption":{"properties":{"effective":{"properties":{"current_source":{"type":["null","string"]},"current_value":{"type":["null","number"]},"days_since_reading":{"type":["null","integer"]},"kpi":{"type":"string"},"kpi_id":{"type":"integer"},"met":{"type":["null","boolean"]},"reading_count":{"type":"integer"},"target_value":{"type":"number"},"trend":{"type":"string"},"unit":{"type":"string"}},"required":["current_source","current_value","days_since_reading","kpi","kpi_id","met","reading_count","target_value","trend","unit"],"type":["null","object"]},"targets":{"type":"integer"},"targets_met":{"type":"integer"}},"required":["effective","targets","targets_met"],"type":["null","object"]},"archived_at":{"type":["null","string"]},"archived_by":{"type":["null","string"]},"budget_cents":{"type":["null","integer"]},"change_requests":{"items":{"properties":{"id":{"type":"integer"},"outcome":{"type":"null"},"reference":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","outcome","reference","state_name","title"],"type":"object"},"type":"array"},"children":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":["null","integer"]},"committed_cents":{"type":"integer"},"count":{"type":"integer"},"currency":{"type":"string"},"forecast_cents":{"type":"integer"},"over_allocated":{"type":"boolean"},"over_by_cents":{"type":"integer"}},"required":["actual_cents","budget_cents","committed_cents","count","currency","forecast_cents","over_allocated","over_by_cents"],"type":"object"},"currency":{"type":"string"},"current_source":{"type":["null","string"]},"current_value":{"type":["null","number"]},"days_since_reading":{"type":["null","integer"]},"description":{"type":"string"},"done_points":{"type":"integer"},"drift":{"type":["null","number"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"kpi":{"properties":{"decimal_places":{"type":"integer"},"id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"name":{"type":"string"},"range_high":{"type":["null","number"]},"range_low":{"type":["null","number"]},"source":{"type":"null"},"unit":{"type":"string"}},"required":["decimal_places","id","lower_is_better","name","range_high","range_low","source","unit"],"type":["null","object"]},"kpi_source":{"type":"null"},"last_measured_on":{"type":["null","string"]},"levels":{"items":{"properties":{"available":{"type":"boolean"},"checklist":{"type":"boolean"},"depth":{"type":"integer"},"estimate_scale":{"type":"string"},"estimated":{"type":"boolean"},"has_acceptance_criteria":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"},"plural":{"type":"string"},"prioritisation":{"type":"string"},"renameable":{"type":"boolean"},"requires_parent":{"type":"boolean"},"schedulable":{"type":"boolean"},"shows_on_board":{"type":"boolean"},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["available","checklist","depth","estimate_scale","estimated","has_acceptance_criteria","key","label","plural","prioritisation","renameable","requires_parent","schedulable","shows_on_board","sizes","sort_order"],"type":"object"},"type":"array"},"money":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":["null","integer"]},"committed_cents":{"type":"integer"},"currency":{"type":"string"},"entry_count":{"type":"integer"},"forecast_cents":{"type":"integer"},"labour":{"properties":{"labour_cents":{"type":["null","integer"]},"minutes":{"type":"integer"},"rated":{"type":"boolean"}},"required":["labour_cents","minutes","rated"],"type":"object"},"remaining_cents":{"type":["null","integer"]},"spent_share":{"type":["null","number"]}},"required":["actual_cents","budget_cents","committed_cents","currency","entry_count","forecast_cents","labour","remaining_cents","spent_share"],"type":"object"},"name":{"type":"string"},"objectives":{"items":{"properties":{"course":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_id":{"type":"integer"},"factor_statement":{"type":"string"},"goal_name":{"type":"string"},"kpi_name":{"type":"string"},"objective_statement":{"type":"string"},"status":{"type":"string"},"trend":{"type":"null"}},"required":["course","entity_id","entity_name","factor_id","factor_statement","goal_name","kpi_name","objective_statement","status","trend"],"type":"object"},"type":"array"},"objectives_hidden":{"type":"integer"},"page_id":{"type":"integer"},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":["number","string"]},"label":{"type":"string"},"scale":{"type":["null","string"]},"value":{"type":"number"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":["null","number"]}},"required":["components","label","meaning","method","score"],"type":"object"},"reading_count":{"type":"integer"},"readings":{"items":{"properties":{"created_at":{"type":"string"},"derived":{"type":"boolean"},"id":{"type":"integer"},"measured_on":{"type":"string"},"note":{"type":"string"},"recorded_by":{"type":"string"},"recorded_by_id":{"type":"integer"},"value":{"type":"number"},"void_reason":{"type":"string"},"voided_at":{"type":"null"},"voided_by":{"type":"string"}},"required":["created_at","derived","id","measured_on","note","recorded_by","recorded_by_id","value","void_reason","voided_at","voided_by"],"type":"object"},"type":"array"},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"services":{"items":{"properties":{"archived_at":{"type":"null"},"changes":{"type":"integer"},"criticality":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"stage":{"type":"string"},"untouched":{"type":"boolean"},"weight_pct":{"type":"null"}},"required":["archived_at","changes","criticality","entity_id","entity_name","id","kind","name","role","stage","untouched"],"type":"object"},"type":"array"},"status":{"type":"string"},"target_value":{"type":["null","number"]},"total_points":{"type":"integer"},"trend":{"type":["null","string"]},"work_items":{"items":{"properties":{"description":{"type":"string"},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"id":{"type":"integer"},"level_depth":{"type":"integer"},"level_key":{"type":"string"},"level_label":{"type":"string"},"parent_work_item_id":{"type":["null","integer"]},"reference":{"type":"string"},"sprint_id":{"type":"null"},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["description","estimate_points","estimate_size","estimate_size_label","id","level_depth","level_key","level_label","parent_work_item_id","reference","sprint_id","state_category","state_name","title"],"type":"object"},"type":"array"}},"required":["achieved_value","adoption","archived_at","archived_by","budget_cents","change_requests","children","currency","current_source","current_value","days_since_reading","description","done_points","drift","entity_id","entity_name","id","kpi","kpi_source","last_measured_on","levels","money","name","objectives","objectives_hidden","page_id","prioritisation","reading_count","readings","services","status","target_value","total_points","trend","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["initiatives"],"summary":"Update Initiative","description":"Replace an initiative's name, description, budget, KPI, target,\nachieved value, status and parent initiative, and return its id and\nstatus. A currency left out keeps the one it has, and so does the\nservice whose plan it is in: send `service_id` to move it, null to make\nit the entity's own.\n\nNeeds the `initiative.edit` right on the initiative's entity.","operationId":"update_initiative_api_v1_initiatives__initiative_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiativeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"}},"required":["id","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/solutions":{"get":{"tags":["initiatives"],"summary":"List Solutions","description":"The solutions on this entity: the DFSA rows, read as solutions.\n\nA solution and its assessment are one record, so archiving either archives\nboth - which is right: they are the same decision seen from two sides.","operationId":"list_solutions_api_v1_entities__entity_id__solutions_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Solutions Api V1 Entities  Entity Id  Solutions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["initiatives"],"summary":"Create Solution","description":"Propose a solution: the shared record, solution face first (spec 7.3).\n\nWhat comes back is a DFSA row whose assessment face is empty - no baseline,\nno future date, no frozen factors. `assessments.conduct_dfsa` fills that in\nwhen the room is ready to assess it. Creating the assessment outright is\nthe other way round the same record, so this needs the same permission.","operationId":"create_solution_api_v1_entities__entity_id__solutions_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/solutions/{solution_id}":{"get":{"tags":["initiatives"],"summary":"Get Solution","description":"One solution, for reading over whatever screen asked for it.\n\nIts identity, the initiatives it is, and what their work comes to - the\nfacts a roadmap card or a timeline row wants to open onto, and a way to\nthe screen that works on it. The list above carries the assessment face\ntoo; this is the solution face on its own.","operationId":"get_solution_api_v1_solutions__solution_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"integer","title":"Solution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"assessed":{"type":"boolean"},"assessment_date":{"type":"string"},"assessment_status":{"type":"string"},"assessment_title":{"type":"string"},"budget_cents":{"type":["null","integer"]},"currency":{"type":"string"},"description":{"type":"string"},"done_points":{"type":"integer"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"future_date":{"type":"null"},"id":{"type":"integer"},"initiatives":{"items":{"properties":{"budget_cents":{"type":["null","integer"]},"currency":{"type":"string"},"done_points":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"},"total_points":{"type":"number"}},"required":["budget_cents","currency","done_points","entity_name","id","name","status","total_points"],"type":"object"},"type":"array"},"name":{"type":"string"},"single_initiative":{"type":"boolean"},"total_points":{"type":"number"}},"required":["assessed","assessment_date","assessment_status","assessment_title","budget_cents","currency","description","done_points","entity_id","entity_name","future_date","id","initiatives","name","single_initiative","total_points"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["initiatives"],"summary":"Update Solution","description":"Change what a solution is called, what it says, and what it is made of.\n\n**What it is made of stops being editable once it has been assessed.** The\nname and the description never do: those are how people refer to the thing,\nand a typo in one should be fixable for as long as it exists. But the\ninitiatives are what a room was asked about - the factors were frozen\nagainst them and the answers were given about them - so changing the\nmembership afterwards would rewrite the question that was answered while\nleaving the answers in place. The record would then say that a room\nassessed something it never saw.\n\nUntil it is conducted the record is a proposal and all of it moves.","operationId":"update_solution_api_v1_solutions__solution_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"integer","title":"Solution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"initiative_ids":{"items":{"type":"integer"},"type":"array"},"name":{"type":"string"}},"required":["id","initiative_ids","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["initiatives"],"summary":"Delete Solution","description":"Remove a solution that was never assessed.\n\nThe same rule the initiative's delete follows, for the same reason:\narchiving is for something that is over, deleting is for something that\nshould not have existed, and a record carrying what a room decided is\nneither - it is evidence. So a bare proposal can go, and anything that has\nbeen conducted is archived instead.\n\nThe initiatives it grouped are not touched. A solution is a *claim* that\nthese belong together, and withdrawing the claim says nothing about them.","operationId":"delete_solution_api_v1_solutions__solution_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"integer","title":"Solution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["deleted","id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/work-items":{"post":{"tags":["initiatives"],"summary":"Attach Work Items","description":"Adopt items that already exist, straight off the initiative.\n\nEach one is detached from whatever it used to sit under, because an item\nhanging off the initiative is by definition hanging off nothing else. Its own\nbreakdown comes with it.","operationId":"attach_work_items_api_v1_initiatives__initiative_id__work_items_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachWorkItemsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"attached":{"type":"integer"},"id":{"type":"integer"}},"required":["attached","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/prioritisation":{"put":{"tags":["initiatives"],"summary":"Set Initiative Prioritisation","description":"Score an initiative by whichever technique the organisation orders them by.\n\n`Account.initiative_prioritisation`, chosen once for the portfolio rather\nthan per rung, because an initiative is not a rung: it sits above the ladder\nand there is one of it. The arithmetic is the same one a work item gets, on\npurpose - a portfolio choosing between initiatives and a team choosing\nbetween epics are the same decision at two altitudes, and a second formula\nfor the second one would only be a way for them to disagree.\n\nScoring an initiative is editing it, so it asks for INITIATIVE_EDIT. It used\nto ask for PORTFOLIO_MANAGE and at least the portfolio SAFe level, which\nbetween them meant an organisation running no framework had nobody who could\nrank its initiatives at all.","operationId":"set_initiative_prioritisation_api_v1_initiatives__initiative_id__prioritisation_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":["number","string"]},"label":{"type":"string"},"scale":{"type":["null","string"]},"value":{"type":"number"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"number"}},"required":["components","label","meaning","method","score"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board":{"get":{"tags":["delivery"],"summary":"Get Board","description":"Columns and their cards.\n\nOn a Scrum board the default view is the active sprint; on Kanban it is\neverything not yet closed, because Kanban has no iteration to scope by.\n\nNot every rung earns a card. A sub-task is a way of breaking one item down,\nso its status belongs inside that item rather than beside it in a column -\notherwise a story and the three sub-tasks dividing it would read as four\npieces of work in flight.","operationId":"get_board_api_v1_entities__entity_id__board_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"sprint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sprint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active_sprint_id":{"type":["null","integer"]},"backlog_field_options":{"items":{"properties":{"custom":{"type":"boolean"},"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"board":{"properties":{"backlog_fields":{"items":{"type":"string"},"type":"array"},"card_colour":{"type":"string"},"card_fields":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"methodology":{"type":"string"},"name":{"type":"string"},"sprint_length_days":{"type":"integer"},"uses_sprints":{"type":"boolean"}},"required":["backlog_fields","card_colour","card_fields","id","methodology","name","sprint_length_days","uses_sprints"],"type":"object"},"card_colour_options":{"items":{"type":"string"},"type":"array"},"card_field_options":{"items":{"properties":{"custom":{"type":"boolean"},"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"columns":{"items":{"properties":{"category":{"type":"string"},"id":{"type":"integer"},"item_count":{"type":"integer"},"name":{"type":"string"},"over_limit":{"type":"boolean"},"statuses":{"items":{"properties":{"category":{"type":"string"},"id":{"type":"integer"},"items":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":"null"},"assignee_name":{"type":"null"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":["null","string"]},"epic_title":{"type":["null","string"]},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":"null"},"initiative_name":{"type":"string"},"label_names":{"items":{"type":"string"},"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":["null","integer"]},"prioritisation":{"properties":{"components":{"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":"null"},"priority_label":{"type":"string"},"priority_rank":{"type":"null"},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":["null","integer"]},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"properties":{"done":{"type":"integer"},"total":{"type":"integer"}},"required":["done","total"],"type":["null","object"]},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"name":{"type":"string"}},"required":["category","id","items","name"],"type":"object"},"type":"array"},"wip_limit":{"type":["null","integer"]}},"required":["category","id","item_count","name","over_limit","statuses","wip_limit"],"type":"object"},"type":"array"},"levels":{"items":{"properties":{"available":{"type":"boolean"},"checklist":{"type":"boolean"},"depth":{"type":"integer"},"estimate_scale":{"type":"string"},"estimated":{"type":"boolean"},"has_acceptance_criteria":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"},"plural":{"type":"string"},"prioritisation":{"type":"string"},"renameable":{"type":"boolean"},"requires_parent":{"type":"boolean"},"schedulable":{"type":"boolean"},"shows_on_board":{"type":"boolean"},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["available","checklist","depth","estimate_scale","estimated","has_acceptance_criteria","key","label","plural","prioritisation","renameable","requires_parent","schedulable","shows_on_board","sizes","sort_order"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"priorities":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"rank":{"type":"integer"}},"required":["id","key","label","rank"],"type":"object"},"type":"array"},"quick_filters":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"query":{"type":"string"}},"required":["id","name","query"],"type":"object"},"type":"array"},"scope_sprint_id":{"type":["null","integer"]},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"transitions":{"additionalProperties":{"items":{"properties":{"gate_name":{"type":["null","string"]},"gated":{"type":"boolean"},"name":{"type":"string"},"step":{"type":"string"},"to_state_id":{"type":"integer"},"to_state_name":{"type":"string"}},"required":["gate_name","gated","name","step","to_state_id","to_state_name"],"type":"object"},"type":"array"},"type":"object"}},"required":["active_sprint_id","backlog_field_options","board","card_colour_options","card_field_options","columns","levels","permissions","priorities","quick_filters","scope_sprint_id","sizes","transitions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["delivery"],"summary":"Update Board","description":"How this entity runs its board, including what its backlog lists.\n\nEntity-level configuration: the ladder, the statuses and the scales a row is\nread with all belong to the account, and this decides how one entity reads\nthem. Which is why it takes the same permission the columns do.","operationId":"update_board_api_v1_entities__entity_id__board_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"backlog_fields":{"items":{"type":"string"},"type":"array"},"card_colour":{"type":"string"},"card_fields":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"methodology":{"type":"string"}},"required":["backlog_fields","card_colour","card_fields","id","methodology"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/quick-filters/answer":{"get":{"tags":["delivery"],"summary":"Answer Quick Filters","description":"Which of this board's work answers every one of these buttons.\n\nIds rather than cards, because the board already has the cards: it drew\nthem from its own payload, and what a quick filter does is hide the ones\nthat did not answer. Sending them again would be sending the board twice\nto change which parts of it are visible.\n\n**Every one, not any.** Several buttons on at once is a narrower question\nthan either alone, which is what a row of toggles reads as and the only\nreading that makes two of them useful together. So the trees are combined\nwith `all`, and a card has to answer the lot.\n\nThe counts on the columns are deliberately not recomputed. A limit is about\nwhat the column *holds*, not about what somebody is looking at, and a WIP\nlimit that went green because a filter hid two cards would be a limit\nlying to the team that set it.","operationId":"answer_quick_filters_api_v1_entities__entity_id__board_quick_filters_answer_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"asked":{"items":{"type":"integer"},"type":"array"},"item_ids":{"items":{"type":"integer"},"type":"array"}},"required":["asked","item_ids"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/quick-filters":{"put":{"tags":["delivery"],"summary":"Set Quick Filters","description":"Replace this board's row of buttons.\n\nThe same permission the columns take, and for the same reason the board's\nown settings do: this is how one entity reads the account's work, and\neverybody looking at the board gets it.","operationId":"set_quick_filters_api_v1_entities__entity_id__board_quick_filters_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickFiltersIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"quick_filters":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"query":{"type":"string"}},"required":["id","name","query"],"type":"object"},"type":"array"}},"required":["quick_filters"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/config":{"get":{"tags":["delivery"],"summary":"Get Board Config","description":"The organisation's statuses, and how this board lays them out.","operationId":"get_board_config_api_v1_entities__entity_id__board_config_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"board":{"properties":{"extends_workflow":{"type":"boolean"},"id":{"type":"integer"},"methodology":{"type":"string"},"name":{"type":"string"}},"required":["extends_workflow","id","methodology","name"],"type":"object"},"columns":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"sort_order":{"type":"integer"},"status_ids":{"items":{"type":"integer"},"type":"array"},"wip_limit":{"type":["null","integer"]}},"required":["id","name","sort_order","status_ids","wip_limit"],"type":"object"},"type":"array"},"moves":{"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"quick_filters":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"query":{"type":"string"}},"required":["id","name","query"],"type":"object"},"type":"array"},"statuses":{"items":{"properties":{"entity_id":{"type":["null","integer"]},"id":{"type":"integer"},"is_initial":{"type":"boolean"},"item_count":{"type":"integer"},"name":{"type":"string"},"sort_order":{"type":"integer"},"state":{"type":"string"}},"required":["entity_id","id","is_initial","item_count","name","sort_order","state"],"type":"object"},"type":"array"},"workflow":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"workflows":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"}},"required":["board","columns","moves","permissions","quick_filters","statuses","workflow","workflows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/workflow":{"get":{"tags":["delivery"],"summary":"Preview Board Workflow","description":"What switching this board to another workflow would do to its work.","operationId":"preview_board_workflow_api_v1_entities__entity_id__board_workflow_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"to","in":"query","required":true,"schema":{"type":"integer","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"from":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"moves":{"items":{"properties":{"from_status":{"type":"string"},"items":{"type":"integer"},"to_status":{"type":"string"}},"required":["from_status","items","to_status"],"type":"object"},"type":"array"},"own_statuses":{"type":"integer"},"quick_filters_naming_statuses":{"type":"array"},"to":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}},"required":["from","moves","own_statuses","quick_filters_naming_statuses","to"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["delivery"],"summary":"Set Board Workflow","description":"Switch this board to another delivery workflow, moving its work by state.\n\nEach move is written to the item's history like any other, so a cycle time\nor a burndown reads the day as it happened. Gates and the workflow's moves\nare not asked: nobody is moving a card, the board is changing language.\n\nThe board's own statuses go with it into the new workflow; its own moves\nthat led to or from the old workflow's statuses go, since those statuses\nare not on this board any more. The columns are laid out afresh, one per\nstatus, because the old ones drew statuses this board no longer has.","operationId":"set_board_workflow_api_v1_entities__entity_id__board_workflow_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardWorkflowIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"from":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"moves":{"items":{"properties":{"from_status":{"type":"string"},"items":{"type":"integer"},"to_status":{"type":"string"}},"required":["from_status","items","to_status"],"type":"object"},"type":"array"},"own_statuses":{"type":"integer"},"quick_filters_naming_statuses":{"type":"array"},"to":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}},"required":["from","moves","own_statuses","quick_filters_naming_statuses","to"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/columns":{"put":{"tags":["delivery"],"summary":"Set Board Columns","description":"Replace the whole column layout in one go.\n\nSaved whole rather than column by column because what makes a layout valid -\nno status drawn twice, and none of this board's work left undrawn - is a\nproperty of the set, not of any one column in it. A half-applied layout\nwould be a board with work missing from it.\n\nA board need not draw every status the organisation has. It must draw every\nstatus its own work is sitting in, which is a different and much weaker\nrule: a team that never blocks anything has no reason to carry a Blocked\ncolumn, but it cannot drop one while something of its own is blocked.","operationId":"set_board_columns_api_v1_entities__entity_id__board_columns_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColumnsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"columns":{"type":"integer"},"ok":{"type":"boolean"}},"required":["columns","ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/statuses":{"post":{"tags":["delivery"],"summary":"Add Team Status","description":"Add a status of this board's own, inside the account's one workflow.\n\nOne workflow, still. That is what keeps this from costing anything upward:\na status is a name plus one of seven states, and every roll-up, report,\nexport and flow metric in the product reads the state. So the moment this\nrow exists the parent entity's board already knows where to count a card\nin it, and Jira already knows what to export it as - without either of\nthem being taught that teams can invent statuses.\n\nWhat the team is choosing is the *word*. What it means is one of the seven\nstates, and those are the organisation's vocabulary rather than the\nteam's: there is no eighth to invent.\n\nNot drawn anywhere yet. A status with no column is a status no card can be\nin, which is the safe end to start from - the team puts it in a column when\nit is ready for it, through the layout screen that already exists.","operationId":"add_team_status_api_v1_entities__entity_id__board_statuses_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamStatusIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entity_id":{"type":"integer"},"id":{"type":"integer"},"is_initial":{"type":"boolean"},"item_count":{"type":"integer"},"name":{"type":"string"},"sort_order":{"type":"integer"},"state":{"type":"string"}},"required":["entity_id","id","is_initial","item_count","name","sort_order","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/statuses/{state_id}":{"put":{"tags":["delivery"],"summary":"Update Team Status","description":"Rename one of this board's own statuses, or change what it means.\n\nChanging the state of a status holding work is allowed, and deliberately.\nIt is how a team fixes a mistake - a status added as in-progress that\nshould always have counted as blocked - and the alternative is a board\nstuck with a wrong reading of its own work until somebody empties the\ncolumn. The change is not retrospective in the event log: what the item did\nand when is untouched, and only what the status *means* from here changes,\nwhich is the same thing that happens when an administrator edits one of the\norganisation's.","operationId":"update_team_status_api_v1_entities__entity_id__board_statuses__state_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"state_id","in":"path","required":true,"schema":{"type":"integer","title":"State Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Team Status Api V1 Entities  Entity Id  Board Statuses  State Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["delivery"],"summary":"Remove Team Status","description":"Take back a status this board added, while nothing depends on it.\n\nThe same rule the rest of the product keeps: deletable while nothing\ndepends on it, and the refusal names what does. Two things can hold it -\nwork sitting in it, and a column drawing it - and a reader gets told which,\nbecause \"move the work out\" and \"take it off the layout\" are different\njobs for different screens.\n\nA third thing holds it and is *not* a refusal: this board's own moves in\nand out of it. Those exist only to reach this status and mean nothing\nwithout it, so they go with it rather than becoming a list of errands to\nrun first. The organisation's moves are untouched - none of them can name\nthis status, because nothing offered an administrator the chance.","operationId":"remove_team_status_api_v1_entities__entity_id__board_statuses__state_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"state_id","in":"path","required":true,"schema":{"type":"integer","title":"State Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Team Status Api V1 Entities  Entity Id  Board Statuses  State Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/board/transitions":{"put":{"tags":["delivery"],"summary":"Set Team Moves","description":"Replace the moves this board added for itself.\n\nTwo kinds, and both are here because a team asked for the same thing from\ntwo directions. A move into or out of a status the team invented is the\nobvious one. A move between two of the *organisation's* statuses is the\nother: a team that has to send work from Blocked straight back to In\nprogress without passing through To do is not proposing a change to\neverybody's process, it is describing its own - and the row is scoped to\nthis board, so nobody else is held to it.\n\nBoth ends have to be statuses this board may draw. A move to somewhere this\nboard cannot show would take a card off the board it was dragged on, which\nis the rule `workflow.moves_on_board` has always enforced at the point of\ndragging; enforcing it here as well means the team finds out while they are\nwriting the rule rather than the first time somebody tries to use it.\n\nA move the organisation already allows is refused rather than stored\nalongside. It would do nothing - `find_transition` prefers the explicit one\nand both are explicit - and a rule with no effect is worse than no rule,\nbecause somebody will later edit it expecting something to change.","operationId":"set_team_moves_api_v1_entities__entity_id__board_transitions_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMovesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"moves":{"type":"integer"},"ok":{"type":"boolean"}},"required":["moves","ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/backlog":{"get":{"tags":["delivery"],"summary":"Get Backlog","description":"A page of what is not yet in a sprint, in the order asked for.\n\nEpics are excluded: they are containers, not things you pull into an\niteration, and so are sub-tasks, which travel with the item above them.\nWhich levels are schedulable is account configuration.\n\n**A page, and that is the change.** This used to send the whole backlog and\nlet the client sort and search it, which is the right design for the two\nhundred rows a young board has and the wrong one at fourteen thousand: the\npayload for a row is forty fields deep, and building fourteen thousand of\nthem to show a hundred was most of what the endpoint cost.\n\nSo the ordering and the search are the server's now. They have to be: a page\nordered by whoever received it is a page of whichever hundred rows happened\nto arrive, which is not an ordering. `total` counts the whole backlog the\nsearch matched rather than what came back, because \"showing 100 of 14,534\"\nis the honest thing to put under a list and the number after \"of\" is not\nsomething the client can work out from a page.","operationId":"get_backlog_api_v1_entities__entity_id__backlog_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"rank","title":"Sort"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"epic_offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Epic Offset"}},{"name":"epic_search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Epic Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"backlog":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":["null","integer"]},"assignee_name":{"type":["null","string"]},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{"cf:regulator":{"type":"string"}},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":["null","string"]},"epic_title":{"type":["null","string"]},"estimate_points":{"type":["null","number"]},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"label_names":{"items":{"type":"string"},"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":["null","integer"]},"prioritisation":{"properties":{"components":{"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":["null","string"]},"priority_label":{"type":"string"},"priority_rank":{"type":["null","integer"]},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":"null"},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"descending":{"type":"boolean"},"epic_has_more":{"type":"boolean"},"epic_offset":{"type":"integer"},"epic_search":{"type":"string"},"epic_total":{"type":"integer"},"epics":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":"null"},"assignee_name":{"type":"null"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":"null"},"epic_title":{"type":"null"},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"label_names":{"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":"null"},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":"null"},"label":{"type":"string"},"scale":{"type":"string"},"value":{"type":"null"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":"null"},"priority_label":{"type":"string"},"priority_rank":{"type":"null"},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":"null"},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"has_more":{"type":"boolean"},"limit":{"type":"integer"},"offset":{"type":"integer"},"priorities":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"rank":{"type":"integer"}},"required":["id","key","label","rank"],"type":"object"},"type":"array"},"query":{"type":"string"},"search":{"type":"string"},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"sort":{"type":"string"},"sort_options":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":"array"},"sorted_in_sql":{"type":"boolean"},"total":{"type":"integer"},"total_points":{"type":"number"}},"required":["backlog","descending","epic_has_more","epic_offset","epic_search","epic_total","epics","has_more","limit","offset","priorities","query","search","sizes","sort","sort_options","sorted_in_sql","total","total_points"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/work-items":{"get":{"tags":["delivery"],"summary":"List Work Items","description":"Every work item on the entity, flat.\n\nThe board shows a column, the backlog shows what is schedulable and open;\nthis shows the lot, because choosing an existing item to attach has to be\nable to reach one that is done, in a sprint, or already parented.\n\n`scope=archived` is what the Archived tab reads.\n\nTwo callers with different needs, which is why `limit` is optional rather\nthan a default. A picker is choosing one thing and says what it is looking\nfor, so it asks for matches and caps them - a menu of twenty thousand\noptions is not a menu. The archive is a *list*, and a list that quietly\nstopped at five hundred would be an archive that had lost things, so it\nasks for no limit and gets none. What makes that affordable is that the\nscope is now a `where`: asking for the archive reads the archive rather\nthan reading the entity and keeping the archived ones.","operationId":"list_work_items_api_v1_entities__entity_id__work_items_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Work Items Api V1 Entities  Entity Id  Work Items Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/timeline":{"get":{"tags":["delivery"],"summary":"Get Timeline","description":"The containers as bars against the calendar, with the iterations behind\nthem.\n\nThe top rung only, because that is what a plan is read at: a Gantt of every\nstory on a board is a wall. What is under each is fetched when the row is\nopened - see `get_timeline_children` - and a page at a time here, on the\nsame terms and for the same reason as the backlog's own list of epics.","operationId":"get_timeline_api_v1_entities__entity_id__timeline_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"has_more":{"type":"boolean"},"limit":{"type":"integer"},"mode":{"type":"string"},"offset":{"type":"integer"},"rows":{"items":{"properties":{"children":{"type":"integer"},"children_closed":{"type":"integer"},"derived":{"type":"boolean"},"end_date":{"type":["null","string"]},"entity_name":{"type":"string"},"id":{"type":"integer"},"initiative_name":{"type":"string"},"kind":{"type":"string"},"level_key":{"type":"string"},"level_label":{"type":"string"},"points":{"type":"number"},"points_done":{"type":"number"},"priority":{"type":"string"},"priority_rank":{"type":"null"},"reference":{"type":"string"},"size":{"type":"string"},"start_date":{"type":["null","string"]},"state_category":{"type":["null","string"]},"state_name":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["children","children_closed","derived","end_date","id","kind","level_key","level_label","reference","start_date","state_category","state_name","title"],"type":"object"},"type":"array"},"search":{"type":"string"},"sprints":{"items":{"properties":{"end_date":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"start_date":{"type":"string"},"state":{"type":"string"}},"required":["end_date","id","name","start_date","state"],"type":"object"},"type":"array"},"today":{"type":"string"},"total":{"type":"integer"}},"required":["has_more","limit","mode","offset","rows","search","sprints","today","total"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/roadmap":{"get":{"tags":["delivery"],"summary":"Get Roadmap","description":"What is planned, by the quarter it lands in.\n\nThree readings of one shape, and which one the entity gets is decided by\nwhere it sits (see `_altitude`). An entity with a board of its own is\nread at the top of its ladder - its epics, the same bars the timeline\ndraws, sorted into quarters. One level up it is the initiatives the\nboards beneath are carrying out, each spanning the quarters of the work\nunder it. Two levels up it is the solutions those initiatives make up.\nAn entity with nothing running delivery beneath it has no roadmap, and\nsays so.\n\nDates come from where the timeline gets them - what is written on the\nitem, or failing that what is under it - so the two views cannot disagree\nabout when a thing lands. An initiative has no dates of its own at all;\nit lands when its work does, and a solution when its initiatives do.","operationId":"get_roadmap_api_v1_entities__entity_id__roadmap_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entity_name":{"type":"string"},"mode":{"type":"string"},"quarters":{"items":{"properties":{"end":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"start":{"type":"string"}},"required":["end","key","label","start"],"type":"object"},"type":"array"},"rows":{"items":{"properties":{"children":{"type":"integer"},"children_closed":{"type":"integer"},"derived":{"type":"boolean"},"end_date":{"type":["null","string"]},"end_quarter":{"type":["null","string"]},"entity_name":{"type":"string"},"id":{"type":"integer"},"initiative_name":{"type":"string"},"kind":{"type":"string"},"level_key":{"type":"string"},"level_label":{"type":"string"},"points":{"type":"number"},"points_done":{"type":"number"},"priority":{"type":"string"},"priority_rank":{"type":["null","integer"]},"reference":{"type":"string"},"size":{"type":"string"},"start_date":{"type":["null","string"]},"start_quarter":{"type":["null","string"]},"state_category":{"type":["null","string"]},"state_name":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["children","children_closed","derived","end_date","end_quarter","entity_name","id","initiative_name","kind","level_key","level_label","points","points_done","priority","priority_rank","reference","size","start_date","start_quarter","state_category","state_name","title"],"type":"object"},"type":"array"},"today":{"type":"string"}},"required":["entity_name","mode","quarters","rows","today"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/rollup-board":{"get":{"tags":["delivery"],"summary":"Get Rollup Board","description":"The board an entity above the boards reads.\n\nOne rung up from what its timeline reads, which is one rung up from the\nboards beneath: a division's board is the epics of its teams' boards,\nsorted by what their status means; a company's board is the initiatives\nthose epics carry out, sorted by status. Nothing on it can be dragged -\nan epic moves on the board that owns it - but every card opens.","operationId":"get_rollup_board_api_v1_entities__entity_id__rollup_board_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"altitude":{"type":"integer"},"columns":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"},"rows":{"items":{"properties":{"children":{"type":"integer"},"children_closed":{"type":"integer"},"derived":{"type":"boolean"},"end_date":{"type":["null","string"]},"entity_name":{"type":"string"},"id":{"type":"integer"},"initiative_name":{"type":"string"},"kind":{"type":"string"},"level_key":{"type":"string"},"level_label":{"type":"string"},"points":{"type":"number"},"points_done":{"type":"number"},"priority":{"type":"string"},"priority_rank":{"type":"null"},"reference":{"type":"string"},"size":{"type":"string"},"start_date":{"type":["null","string"]},"state_category":{"type":["null","string"]},"state_name":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["children","children_closed","derived","end_date","entity_name","id","initiative_name","kind","level_key","level_label","points","points_done","priority","priority_rank","reference","size","start_date","state_category","state_name","title"],"type":"object"},"type":"array"}},"required":["key","label","rows"],"type":"object"},"type":"array"},"entity_name":{"type":"string"},"mode":{"type":"string"},"rows":{"items":{"properties":{"children":{"type":"integer"},"children_closed":{"type":"integer"},"derived":{"type":"boolean"},"end_date":{"type":["null","string"]},"entity_name":{"type":"string"},"id":{"type":"integer"},"initiative_name":{"type":"string"},"kind":{"type":"string"},"level_key":{"type":"string"},"level_label":{"type":"string"},"points":{"type":"number"},"points_done":{"type":"number"},"priority":{"type":"string"},"priority_rank":{"type":"null"},"reference":{"type":"string"},"size":{"type":"string"},"start_date":{"type":["null","string"]},"state_category":{"type":["null","string"]},"state_name":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["children","children_closed","derived","end_date","entity_name","id","initiative_name","kind","level_key","level_label","points","points_done","priority","priority_rank","reference","size","start_date","state_category","state_name","title"],"type":"object"},"type":"array"}},"required":["altitude","columns","entity_name","mode","rows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/timeline":{"get":{"tags":["delivery"],"summary":"Get Initiative Timeline","description":"What carries one initiative out, as bars: the top of its breakdown.\n\nWhat a row on the chart above the boards opens to, the way an epic's row\nopens to its stories.","operationId":"get_initiative_timeline_api_v1_initiatives__initiative_id__timeline_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"rows":{"items":{"properties":{"children":{"type":"integer"},"children_closed":{"type":"integer"},"derived":{"type":"boolean"},"end_date":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"level_key":{"type":"string"},"level_label":{"type":"string"},"reference":{"type":"string"},"start_date":{"type":"string"},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["children","children_closed","derived","end_date","id","kind","level_key","level_label","reference","start_date","state_category","state_name","title"],"type":"object"},"type":"array"}},"required":["rows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/solutions/{solution_id}/timeline":{"get":{"tags":["delivery"],"summary":"Get Solution Timeline","description":"The initiatives one solution is, as bars - what its row opens to.","operationId":"get_solution_timeline_api_v1_solutions__solution_id__timeline_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"integer","title":"Solution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"rows":{"items":{"properties":{"children":{"type":"integer"},"children_closed":{"type":"integer"},"derived":{"type":"boolean"},"end_date":{"type":"string"},"entity_name":{"type":"string"},"id":{"type":"integer"},"initiative_name":{"type":"string"},"kind":{"type":"string"},"level_key":{"type":"string"},"level_label":{"type":"string"},"points":{"type":"number"},"points_done":{"type":"number"},"priority":{"type":"string"},"priority_rank":{"type":"null"},"reference":{"type":"string"},"size":{"type":"string"},"start_date":{"type":"string"},"state_category":{"type":"null"},"state_name":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["children","children_closed","derived","end_date","entity_name","id","initiative_name","kind","level_key","level_label","points","points_done","priority","priority_rank","reference","size","start_date","state_category","state_name","status","title"],"type":"object"},"type":"array"}},"required":["rows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/timeline":{"get":{"tags":["delivery"],"summary":"Get Timeline Children","description":"What sits directly under one item, as bars.\n\nThe rung beneath and no further: a row on the timeline opens to show the\nlevel under it, and the chart stops there. Fetched on opening rather than\nsent with the chart, because the chart is a page of containers and the\nstories under them are the whole board.","operationId":"get_timeline_children_api_v1_work_items__work_item_id__timeline_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"rows":{"items":{"properties":{"children":{"type":"integer"},"children_closed":{"type":"integer"},"derived":{"type":"boolean"},"end_date":{"type":["null","string"]},"id":{"type":"integer"},"kind":{"type":"string"},"level_key":{"type":"string"},"level_label":{"type":"string"},"reference":{"type":"string"},"start_date":{"type":["null","string"]},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["children","children_closed","derived","end_date","id","kind","level_key","level_label","reference","start_date","state_category","state_name","title"],"type":"object"},"type":"array"}},"required":["rows"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/backlog/rank":{"post":{"tags":["delivery"],"summary":"Rank Backlog","description":"Put these items in this order, and leave everything else where it was.\n\nThe ids are the rows somebody reordered - a page of the backlog, or two\nneighbours swapped - not the whole board. So they are given back the places\nthey already held between them, in the new order: the item that was\nfourth of the lot takes whichever position the fourth of them had. The\nitems nobody sent keep theirs, and a backlog read a hundred at a time can\nbe reordered a page at a time. Numbering the sent items from nought, as\nthis used to, put a reordered page on top of everything it had not seen.\n\nWhere two items share a rank - a board nobody has ordered yet, whose work\nall sits at nought - there are no places to hand round, so the board is\nnumbered afresh in the order it already reads first.","operationId":"rank_backlog_api_v1_entities__entity_id__backlog_rank_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RankIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/lists":{"get":{"tags":["delivery"],"summary":"List Lists","description":"The saved lists on this board, and everything needed to write another.\n\nThe catalogues travel with them because a query builder that has to ask the\nserver what a menu holds is a query builder that flickers.","operationId":"list_lists_api_v1_entities__entity_id__lists_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"default_fields":{"items":{"type":"string"},"type":"array"},"field_options":{"items":{"properties":{"custom":{"type":"boolean"},"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"filter_fields":{"items":{"properties":{"custom":{"type":"boolean"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"ops":{"items":{"type":"string"},"type":"array"},"options":{"items":{"properties":{"label":{"type":"string"},"value":{"type":["integer","string"]}},"required":["label","value"],"type":"object"},"type":"array"}},"required":["key","kind","label","ops"],"type":"object"},"type":"array"},"lists":{"type":"array"},"me":{"type":"integer"}},"required":["default_fields","field_options","filter_fields","lists","me"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["delivery"],"summary":"Create List","description":"Anybody who can read the work may write a question about it.\n\nNo permission of its own: a list reaches nothing its author could not\nalready see, because it is answered against the reader's own board.","operationId":"create_list_api_v1_entities__entity_id__lists_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"asked_of":{"type":"array"},"covers":{"type":"string"},"covers_entity_ids":{"items":{"type":"integer"},"type":"array"},"created_at":{"type":"string"},"description":{"type":"string"},"drawable":{"type":"boolean"},"entity_id":{"type":"integer"},"fields":{"items":{"type":"string"},"type":"array"},"filters":{"items":{"properties":{"field":{"type":"string"},"op":{"type":"string"},"value":{"items":{"type":["integer","string"]},"type":["null","integer","string","array"]}},"required":["field","op"],"type":"object"},"type":"array"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"query":{"type":"string"},"sort_by":{"type":"string"},"updated_at":{"type":"string"},"written_as":{"type":"string"}},"required":["asked_of","covers","covers_entity_ids","created_at","description","drawable","entity_id","fields","filters","id","match_all","may_edit","name","owner_id","owner_name","query","sort_by","updated_at","written_as"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/query/check":{"get":{"tags":["delivery"],"summary":"Check Query","description":"Whether this query can be read, and what it says if so.\n\nAnswers rather than refuses: this is what an editor calls on every\nkeystroke, and half a query is not an error, it is somebody typing. The\nproblem comes back with the position it is at so the editor can point at\nit - a query language whose errors say only \"invalid syntax\" is one people\nstop using after the second time.","operationId":"check_query_api_v1_entities__entity_id__query_check_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"error":{"type":"string"},"fields":{"items":{"type":"string"},"type":"array"},"ok":{"type":"boolean"},"position":{"type":"integer"}},"required":["error","fields","ok","position"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/query":{"get":{"tags":["delivery"],"summary":"Run Query","description":"The work that answers a question nobody has saved.\n\nThe point of a query language: ask, look, change a word, ask again. Saving\nit is a separate decision, and most questions never earn one.\n\n**It reaches as far as a saved one.** `covers` says how far - this board,\nthe boards named, or everywhere the reader can look - on the same three\nwords a list uses and through the same resolver. A question that had to be\nsaved before it could ask about two teams would be a question somebody\nsaves and then deletes, and the saving would be a tax on asking rather\nthan a decision about keeping.\n\nThe vocabulary offered is still this board's. Two boards may name their\nstatuses differently, and a question is written in the words of the board\nit is being asked from; what it *finds* is every board it asks of.","operationId":"run_query_api_v1_entities__entity_id__query_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"covers","in":"query","required":false,"schema":{"type":"string","default":"this","title":"Covers"}},{"name":"covers_entity_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Covers Entity Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"asked_of":{"items":{"type":"integer"},"type":"array"},"considered":{"type":"integer"},"fields":{"items":{"properties":{"custom":{"type":"boolean"},"hint":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"}},"required":["hint","key","label"],"type":"object"},"type":"array"},"items":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":"null"},"assignee_name":{"type":"null"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{"cf:regulator":{"type":"string"}},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":["null","string"]},"epic_title":{"type":["null","string"]},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":["null","integer"]},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"label_names":{"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":["null","integer"]},"parent_work_item_id":{"type":["null","integer"]},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":"null"},"label":{"type":"string"},"scale":{"type":"string"},"value":{"type":"null"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":["null","string"]},"priority_label":{"type":"string"},"priority_rank":{"type":["null","integer"]},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":"null"},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":["null","integer"]},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"query":{"type":"string"},"total_points":{"type":"integer"}},"required":["asked_of","considered","fields","items","query","total_points"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/lists":{"get":{"tags":["delivery"],"summary":"My Lists","description":"Every list this person owns, whichever board each lives on - and which\nof the entities they can read have a board a new one could live on.\n\nWhat the left pane's \"My work lists\" is drawn from: a list is somebody's\nown, so where they keep them is beside their dashboards and reports rather\nthan inside one board's Delivery screen. Only lists on boards they can\nstill read - one left on a board they have since lost is not theirs to\nopen, and naming it would say there is something there.\n\n`boards` is there because which entities have a board is not something the\ntree says: a division may run one of its own as well as its teams'. The\nLists screen writes a new list on the board in focus, or the nearest one,\nand guessing from the shape of the tree put lists on entities with none.","operationId":"my_lists_api_v1_lists_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"boards":{"items":{"type":"integer"},"type":"array"},"lists":{"items":{"properties":{"covers":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["covers","entity_id","entity_name","id","name"],"type":"object"},"type":"array"}},"required":["boards","lists"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/lists/{list_id}":{"get":{"tags":["delivery"],"summary":"Read List","description":"The list, and the work that answers it.\n\nAnswered fresh on every read rather than stored: the question is the saved\nthing, and what answers it today is what somebody opening it wants.","operationId":"read_list_api_v1_lists__list_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","title":"List Id"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"considered":{"type":"integer"},"items":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":["null","integer"]},"assignee_name":{"type":["null","string"]},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"items":{"type":"string"},"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{"cf:audited":{"type":"string"},"cf:regulator":{"type":"string"}},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":["null","string"]},"epic_title":{"type":["null","string"]},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"label_names":{"items":{"type":"string"},"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":["null","integer"]},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":"null"},"label":{"type":"string"},"scale":{"type":"string"},"value":{"type":"null"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":["null","string"]},"priority_label":{"type":"string"},"priority_rank":{"type":["null","integer"]},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":["null","integer"]},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"list":{"properties":{"asked_of":{"items":{"type":"integer"},"type":"array"},"covers":{"type":"string"},"covers_entity_ids":{"items":{"type":"integer"},"type":"array"},"created_at":{"type":"string"},"description":{"type":"string"},"drawable":{"type":"boolean"},"entity_id":{"type":"integer"},"fields":{"items":{"type":"string"},"type":"array"},"filters":{"items":{"properties":{"field":{"type":"string"},"op":{"type":"string"},"value":{"items":{"type":["integer","string"]},"type":["null","integer","string","array"]}},"required":["field","op"],"type":"object"},"type":"array"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"query":{"type":"string"},"sort_by":{"type":"string"},"updated_at":{"type":"string"},"written_as":{"type":"string"}},"required":["asked_of","covers","covers_entity_ids","created_at","description","drawable","entity_id","fields","filters","id","match_all","may_edit","name","owner_id","owner_name","query","sort_by","updated_at","written_as"],"type":"object"},"total_points":{"type":"integer"}},"required":["considered","items","list","total_points"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["delivery"],"summary":"Update List","description":"Replace a saved list: its name, description, question, columns, sort\norder and the boards it covers. Send the question as `filters`, or as\ntext in `query`, which then governs. Answers with the list as saved.\n\nOnly the list's owner may change it.","operationId":"update_list_api_v1_lists__list_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","title":"List Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"asked_of":{"type":"array"},"covers":{"type":"string"},"covers_entity_ids":{"items":{"type":"integer"},"type":"array"},"created_at":{"type":"string"},"description":{"type":"string"},"drawable":{"type":"boolean"},"entity_id":{"type":"integer"},"fields":{"type":"array"},"filters":{"type":"array"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"query":{"type":"string"},"sort_by":{"type":"string"},"updated_at":{"type":"string"},"written_as":{"type":"string"}},"required":["asked_of","covers","covers_entity_ids","created_at","description","drawable","entity_id","fields","filters","id","match_all","may_edit","name","owner_id","owner_name","query","sort_by","updated_at","written_as"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["delivery"],"summary":"Delete List","description":"Delete a saved list. The work items it showed are untouched. Only the\nlist's owner may delete it.","operationId":"delete_list_api_v1_lists__list_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","title":"List Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/lists/{list_id}/board":{"get":{"tags":["delivery"],"summary":"Read List Board","description":"The same saved question, drawn in columns instead of rows.\n\nA board has always been a thing an *entity* has. This draws one from a\nquestion instead: whatever answers the list, laid out by status. \"The work\nmy two teams have in review\" is a board somebody wants and no entity owns.\n\n## What a column is depends on how many workflows are underneath\n\n`get_board` keys its columns by status id, and says why: \"every card on a\nboard shares one workflow\". A list reading two boards has no such\nguarantee - two accounts of what \"In review\" is, with different ids and\npossibly different names.\n\nSo there are two shapes, and the payload says which:\n\n* **`statuses`** - every board asked runs the same workflow *and* may draw\n  the same statuses, so the columns are those statuses, in the workflow's\n  own order. This is the ordinary case, because the ordinary list still\n  asks one board.\n* **`meanings`** - they do not, so the columns are what a status *means*:\n  backlog, to do, in progress, in review, blocked, done, cancelled. The\n  roll-up board already does exactly this for exactly this reason, and\n  borrowing its vocabulary means the two cross-entity boards in this\n  product do not disagree about what a column is.\n\nThe second half of that test is what team self-service costs here. Two\nboards on one workflow used to be interchangeable; now one of them may have\nadded \"Awaiting customer\" for itself. Keying the columns by status id would\ndraw that team's column across a list that also covers the team next door,\nwhere it can only ever be empty and where nobody would know whose it was.\nSo the moment the boards asked can draw different statuses, the columns\nbecome what a status *means* - which both teams do share, because a status\nis its flags before it is its name.\n\n## Nothing here is dragged\n\nA card is moved on the board that owns it. That is the roll-up's rule and\nit holds here for a stronger reason: the legal moves out of a status belong\nto a workflow, and a board drawn from a question may be showing several. A\ncolumn that accepted a card would have to guess which workflow it was\nobeying. Every card opens, which is how the work is actually changed.","operationId":"read_list_board_api_v1_lists__list_id__board_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","title":"List Id"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"columns":{"items":{"properties":{"items":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":"null"},"assignee_name":{"type":"null"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":["null","string"]},"epic_title":{"type":["null","string"]},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"label_names":{"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":["null","integer"]},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":"null"},"label":{"type":"string"},"scale":{"type":"string"},"value":{"type":"null"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":"null"},"priority_label":{"type":"string"},"priority_rank":{"type":"null"},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":"null"},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"key":{"type":"string"},"label":{"type":"string"}},"required":["items","key","label"],"type":"object"},"type":"array"},"considered":{"type":"integer"},"entity_names":{"additionalProperties":{"type":"string"},"type":"object"},"list":{"properties":{"asked_of":{"items":{"type":"integer"},"type":"array"},"covers":{"type":"string"},"covers_entity_ids":{"items":{"type":"integer"},"type":"array"},"created_at":{"type":"string"},"description":{"type":"string"},"drawable":{"type":"boolean"},"entity_id":{"type":"integer"},"fields":{"type":"array"},"filters":{"type":"array"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"query":{"type":"string"},"sort_by":{"type":"string"},"updated_at":{"type":"string"},"written_as":{"type":"string"}},"required":["asked_of","covers","covers_entity_ids","created_at","description","drawable","entity_id","fields","filters","id","match_all","may_edit","name","owner_id","owner_name","query","sort_by","updated_at","written_as"],"type":"object"},"mode":{"type":"string"},"total_points":{"type":"integer"}},"required":["columns","considered","entity_names","list","mode","total_points"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/lists/{list_id}/copy":{"post":{"tags":["delivery"],"summary":"Copy List","description":"Take a copy of one of your lists, to try a variation without losing it.","operationId":"copy_list_api_v1_lists__list_id__copy_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"integer","title":"List Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"asked_of":{"type":"array"},"covers":{"type":"string"},"covers_entity_ids":{"type":"array"},"created_at":{"type":"string"},"description":{"type":"string"},"drawable":{"type":"boolean"},"entity_id":{"type":"integer"},"fields":{"type":"array"},"filters":{"type":"array"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"query":{"type":"string"},"sort_by":{"type":"string"},"updated_at":{"type":"string"},"written_as":{"type":"string"}},"required":["asked_of","covers","covers_entity_ids","created_at","description","drawable","entity_id","fields","filters","id","match_all","may_edit","name","owner_id","owner_name","query","sort_by","updated_at","written_as"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items":{"post":{"tags":["delivery"],"summary":"Create Work Item","description":"Create a work item in the first state of its board's workflow and\nanswer with its id and reference. Name a `parent_work_item_id` and the\nitem takes the parent's entity and initiative; otherwise name an\n`entity_id`, an `initiative_id`, or both. `level_key` says which level\nof the hierarchy the item sits on, and defaults to `story`.\n\nThe caller needs the right to edit work items on the entity, and\nbecomes the item's reporter unless the body names another. A level that\ndoes not fit beneath the parent, or an estimate, assignee or priority\nthe level or the account's scales do not allow, is refused.","operationId":"create_work_item_api_v1_work_items_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkItemIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"}},"required":["id","reference"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/work-item-refs":{"get":{"tags":["delivery"],"summary":"Work Item Refs","description":"What a few work items are now, for the chips drawn where some text\nnames them.\n\n`[NW-12](item:88)` in a page or a comment is drawn as the item's key, its\ntitle and where it has got to - read live, so the page does not go stale\nthe way one that copied the title would. A bare key typed into the text\nis looked up the same way. Only items the reader may open are answered;\nthe rest are left as the text they were, since a chip saying \"you cannot\nsee this\" would say more than nothing does.\n\nIts own path rather than `/work-items/{id}`, because that one takes a\nnumber and would refuse the word.","operationId":"work_item_refs_api_v1_work_item_refs_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ids"}},{"name":"keys","in":"query","required":false,"schema":{"type":"string","default":"","title":"Keys"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"items":{"items":{"properties":{"archived":{"type":"boolean"},"assignee_name":{"type":"null"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["archived","assignee_name","entity_id","id","level_label","reference","state_category","state_name","title"],"type":"object"},"type":"array"}},"required":["items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}":{"get":{"tags":["delivery"],"summary":"Get Work Item","description":"Read one work item in full: its fields and custom fields, its\nancestors, parent and children, the transitions open from its present\nstate, pending approvals, history, links, attachments, components,\nlabels, sprint and version. The answer also carries the choices an\neditor offers, such as the levels, priorities, sizes and sprints, and\nthe caller's rights on the item's entity.","operationId":"get_work_item_api_v1_work_items__work_item_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"acceptance_criteria":{"type":"string"},"all_components":{"items":{"properties":{"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["description","id","kind","name"],"type":"object"},"type":"array"},"all_labels":{"items":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"},"type":"array"},"ancestors":{"items":{"properties":{"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["id","level_label","reference","title"],"type":"object"},"type":"array"},"app_panels":{"items":{"properties":{"app_id":{"type":"integer"},"app_name":{"type":"string"},"height":{"type":"integer"},"id":{"type":"integer"},"kind":{"type":"string"},"rows":{"items":{"properties":{"label":{"type":"string"},"link":{"type":"string"},"value":{"type":"string"}},"required":["label","link","value"],"type":"object"},"type":"array"},"title":{"type":"string"},"updated_at":{"type":["null","string"]},"url":{"type":"string"}},"required":["app_id","app_name","id","kind","title"],"type":"object"},"type":"array"},"archived_at":{"type":["null","string"]},"assignee_id":{"type":["null","integer"]},"assignee_name":{"type":["null","string"]},"attachments":{"items":{"properties":{"content_type":{"type":"string"},"created_at":{"type":"string"},"filename":{"type":"string"},"id":{"type":"integer"},"size_bytes":{"type":"integer"},"uploaded_by":{"type":"string"}},"required":["content_type","created_at","filename","id","size_bytes","uploaded_by"],"type":"object"},"type":"array"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"change_request_id":{"type":["null","integer"]},"change_request_reference":{"type":["null","string"]},"changelog_count":{"type":"integer"},"children":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":["null","string"]},"assignee_id":{"type":"null"},"assignee_name":{"type":"null"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":["null","string"]},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":"null"},"epic_title":{"type":"null"},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"label_names":{"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":"integer"},"prioritisation":{"properties":{"components":{"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":"null"},"priority_label":{"type":"string"},"priority_rank":{"type":"null"},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":["null","integer"]},"reporter_name":{"type":["null","string"]},"sprint_id":{"type":"null"},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":"object"},"type":"array"},"closed_at":{"type":["null","string"]},"comment_count":{"type":"integer"},"component_names":{"type":"array"},"components":{"items":{"properties":{"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["description","id","kind","name"],"type":"object"},"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{"cf:audited":{"type":"string"},"cf:deadline":{"type":"string"},"cf:downtime":{"type":"string"},"cf:incidents":{"type":"string"},"cf:markets":{"type":"string"},"cf:notes":{"type":"string"},"cf:regulator":{"type":"string"},"cf:runbook":{"type":"string"},"cf:sponsor":{"type":"string"},"cf:ticket":{"type":"string"},"cf:triage":{"type":"string"}},"required":[],"type":"object"},"custom_fields":{"items":{"properties":{"description":{"type":"string"},"display":{"type":"string"},"field_id":{"type":"integer"},"filter_key":{"type":"string"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"options":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":["null","array"]},"required":{"type":"boolean"},"updated_at":{"type":["null","string"]},"value":{"items":{"type":"string"},"type":["null","boolean","number","string","array"]}},"required":["description","display","field_id","filter_key","key","kind","label","options","required","updated_at","value"],"type":"object"},"type":"array"},"deployed_to":{"items":{"properties":{"at":{"type":"string"},"authorised":{"type":"null"},"basis":{"type":"string"},"carried_in":{"type":"null"},"change_reference":{"type":"null"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","authorised","basis","carried_in","change_reference","deployment_id","environment","environment_id","is_production","rank","ref","sha","url"],"type":"object"},"type":"array"},"description":{"type":"string"},"due_date":{"type":["null","string"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"environments":{"items":{"properties":{"id":{"type":"integer"},"is_production":{"type":"boolean"},"key":{"type":"string"},"name":{"type":"string"},"rank":{"type":"integer"}},"required":["id","is_production","key","name","rank"],"type":"object"},"type":"array"},"epic_reference":{"type":"null"},"epic_title":{"type":"null"},"estimate_points":{"type":["null","number"]},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":["null","integer"]},"fix_version":{"type":"string"},"fix_version_id":{"type":["null","integer"]},"history":{"items":{"properties":{"actor":{"type":"string"},"created_at":{"type":"string"},"detail":{"type":"string"},"from_state":{"type":["null","string"]},"id":{"type":"integer"},"to_state":{"type":["null","string"]},"verb":{"type":"string"}},"required":["actor","created_at","detail","from_state","id","to_state","verb"],"type":"object"},"type":"array"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"item_links":{"items":{"properties":{"id":{"type":"integer"},"level_label":{"type":"string"},"link_type_id":{"type":"integer"},"outward":{"type":"boolean"},"reason":{"type":"string"},"reference":{"type":"string"},"state_id":{"type":"integer"},"title":{"type":"string"},"work_item_id":{"type":"integer"}},"required":["id","level_label","link_type_id","outward","reason","reference","state_id","title","work_item_id"],"type":"object"},"type":"array"},"label_names":{"type":"array"},"labels":{"items":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"},"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"levels":{"items":{"properties":{"available":{"type":"boolean"},"checklist":{"type":"boolean"},"depth":{"type":"integer"},"estimate_scale":{"type":"string"},"estimated":{"type":"boolean"},"has_acceptance_criteria":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"},"plural":{"type":"string"},"prioritisation":{"type":"string"},"renameable":{"type":"boolean"},"requires_parent":{"type":"boolean"},"schedulable":{"type":"boolean"},"shows_on_board":{"type":"boolean"},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"sort_order":{"type":"integer"}},"required":["available","checklist","depth","estimate_scale","estimated","has_acceptance_criteria","key","label","plural","prioritisation","renameable","requires_parent","schedulable","shows_on_board","sizes","sort_order"],"type":"object"},"type":"array"},"link_types":{"items":{"properties":{"id":{"type":"integer"},"inward_label":{"type":"string"},"key":{"type":"string"},"outward_label":{"type":"string"},"sort_order":{"type":"integer"},"symmetric":{"type":"boolean"}},"required":["id","inward_label","key","outward_label","sort_order","symmetric"],"type":"object"},"type":"array"},"links":{"items":{"properties":{"author":{"type":"string"},"created_at":{"type":"string"},"external_key":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"provider":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"}},"required":["author","created_at","external_key","id","kind","provider","title","url"],"type":"object"},"type":"array"},"missing_fields":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":"array"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"page_id":{"type":["null","integer"]},"parent":{"properties":{"acceptance_criteria":{"type":"string"},"archived_at":{"type":"null"},"assignee_id":{"type":"null"},"assignee_name":{"type":"null"},"awaiting_approval":{"type":"boolean"},"blocked_reason":{"type":"string"},"closed_at":{"type":"null"},"component_names":{"type":"array"},"created_at":{"type":"string"},"custom":{"properties":{},"required":[],"type":"object"},"description":{"type":"string"},"due_date":{"type":"null"},"entity_id":{"type":"integer"},"epic_reference":{"type":"null"},"epic_title":{"type":"null"},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"estimate_size_label":{"type":"string"},"estimate_size_rank":{"type":"null"},"fix_version":{"type":"string"},"fix_version_id":{"type":"null"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"label_names":{"type":"array"},"level_key":{"type":"string"},"level_label":{"type":"string"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":"null"},"parent_work_item_id":{"type":["null","integer"]},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":"null"},"label":{"type":"string"},"scale":{"type":"string"},"value":{"type":"null"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":"null"},"priority_label":{"type":"string"},"priority_rank":{"type":"null"},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":"integer"},"reporter_name":{"type":"string"},"sprint_id":{"type":"null"},"start_date":{"type":"null"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"}},"required":["acceptance_criteria","archived_at","assignee_id","assignee_name","awaiting_approval","blocked_reason","closed_at","component_names","created_at","custom","description","due_date","entity_id","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","id","initiative_id","initiative_name","label_names","level_key","level_label","original_estimate","original_estimate_minutes","parent_work_item_id","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sprint_id","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","updated_at"],"type":["null","object"]},"parent_work_item_id":{"type":["null","integer"]},"pending_approvals":{"items":{"properties":{"approvals_needed":{"type":"integer"},"approvals_so_far":{"type":"integer"},"blocked_reason":{"type":"string"},"can_decide":{"type":"boolean"},"gate_description":{"type":"string"},"gate_name":{"type":"string"},"id":{"type":"integer"},"note":{"type":"string"},"requested_by":{"type":"string"},"to_state_name":{"type":"string"}},"required":["approvals_needed","approvals_so_far","blocked_reason","can_decide","gate_description","gate_name","id","note","requested_by","to_state_name"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"priorities":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"rank":{"type":"integer"}},"required":["id","key","label","rank"],"type":"object"},"type":"array"},"prioritisation":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":"null"},"label":{"type":"string"},"scale":{"type":"string"},"value":{"type":"null"}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"priority":{"type":["null","string"]},"priority_label":{"type":"string"},"priority_rank":{"type":["null","integer"]},"rank":{"type":"number"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":"null"},"reporter_id":{"type":["null","integer"]},"reporter_name":{"type":["null","string"]},"sizes":{"items":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"points_ceiling":{"type":["null","number"]},"rank":{"type":"integer"}},"required":["id","key","label","points_ceiling","rank"],"type":"object"},"type":"array"},"sprint_id":{"type":["null","integer"]},"sprints":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"state":{"type":"string"}},"required":["id","name","state"],"type":"object"},"type":"array"},"stakeholder_title":{"type":["null","string"]},"start_date":{"type":["null","string"]},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"subtasks":{"type":"null"},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"null"},"title":{"type":"string"},"transitions":{"items":{"properties":{"gate_name":{"type":["null","string"]},"gated":{"type":"boolean"},"name":{"type":"string"},"step":{"type":"string"},"to_state_id":{"type":"integer"},"to_state_name":{"type":"string"}},"required":["gate_name","gated","name","step","to_state_id","to_state_name"],"type":"object"},"type":"array"},"updated_at":{"type":"string"},"versions":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"}},"required":["acceptance_criteria","all_components","all_labels","ancestors","app_panels","archived_at","assignee_id","assignee_name","attachments","awaiting_approval","blocked_reason","change_request_id","change_request_reference","changelog_count","children","closed_at","comment_count","component_names","components","created_at","custom","custom_fields","deployed_to","description","due_date","entity_id","entity_name","environments","epic_reference","epic_title","estimate_points","estimate_size","estimate_size_label","estimate_size_rank","fix_version","fix_version_id","history","id","initiative_id","initiative_name","item_links","label_names","labels","level_key","level_label","levels","link_types","links","missing_fields","original_estimate","original_estimate_minutes","page_id","parent","parent_work_item_id","pending_approvals","permissions","priorities","prioritisation","priority","priority_label","priority_rank","rank","reference","remaining_estimate","remaining_estimate_minutes","reporter_id","reporter_name","sizes","sprint_id","sprints","stakeholder_title","start_date","state_category","state_id","state_name","subtasks","time_spent","time_spent_minutes","title","transitions","updated_at","versions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["delivery"],"summary":"Update Work Item","description":"Edit a work item. Only the fields sent are written: a field left out\nis left alone, and a field sent as null is cleared, which unassigns the\nitem, takes it out of its sprint or removes its estimate. A title and a\nlevel cannot be cleared. Answers with the item's id.\n\nChanging the state is not an edit; use the transition endpoint. The\ncaller needs the right to edit work items on the entity.","operationId":"update_work_item_api_v1_work_items__work_item_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkItemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/bulk/edit":{"post":{"tags":["delivery"],"summary":"Bulk Edit","description":"One patch, applied to every item named.\n\nAll or nothing. A groom that half happened is worse than one that did not:\nthe caller has to work out which half, and the backlog is in a state nobody\nasked for. So one item refusing its patch - a rung that takes no estimate,\na priority that is not on the scale - takes the whole request with it, and\nthe message says which item and why.","operationId":"bulk_edit_api_v1_work_items_bulk_edit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkEditIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"changed":{"items":{"properties":{"fields":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"reference":{"type":"string"}},"required":["fields","id","reference"],"type":"object"},"type":"array"},"count":{"type":"integer"},"refused":{"items":{"properties":{"id":{"type":"integer"},"reason":{"type":"string"},"reference":{"type":["null","string"]}},"required":["id","reason","reference"],"type":"object"},"type":"array"}},"required":["changed","count","refused"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/work-items/bulk/transition":{"post":{"tags":["delivery"],"summary":"Bulk Transition","description":"Move every item named to one status.\n\nThrough `workflow.transition`, one item at a time, which is the whole point\n- so an undeclared move is still refused, a gate still raises its approval\nrequest rather than being stepped over, and every item that moves still\nwrites its own WorkItemEvent.\n\nUnlike a bulk edit this is *not* all or nothing, and the difference is\nreal. A patch either applies or the caller asked for something impossible;\na transition legitimately has three outcomes per item - it moved, it needs\nan approval, or that move is not one this item can make from where it is -\nand two of those are answers rather than errors. Refusing the batch because\none card was in a different column would make the feature useless on\nexactly the backlog it is for.","operationId":"bulk_transition_api_v1_work_items_bulk_transition_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTransitionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"moved":{"items":{"properties":{"id":{"type":"integer"},"message":{"type":"string"},"reference":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"}},"required":["id","message","reference","state_id","state_name"],"type":"object"},"type":"array"},"refused":{"items":{"properties":{"id":{"type":"integer"},"reason":{"type":"string"},"reference":{"type":"string"}},"required":["id","reason","reference"],"type":"object"},"type":"array"},"waiting":{"items":{"properties":{"approval_request_id":{"type":"integer"},"id":{"type":"integer"},"message":{"type":"string"},"reference":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"}},"required":["approval_request_id","id","message","reference","state_id","state_name"],"type":"object"},"type":"array"}},"required":["count","moved","refused","waiting"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/work-items/{work_item_id}/prioritisation":{"put":{"tags":["delivery"],"summary":"Set Work Item Prioritisation","description":"Score an item by whichever technique its rung is ordered by.\n\nRICE, ICE or WSJF - the rung says which (`WorkItemLevel.prioritisation`),\nand an item scored by one method has the other methods' components cleared,\nso nothing stale is left looking current beside the numbers that are.\n\nA rung ordered by the organisation's own priority scale has nothing to score\nhere: its priority is set by hand on the item itself, which is a judgement\nsomebody makes rather than a number arrived at. A checklist rung has nothing\nto score either, and for a different reason - a sub-task is not prioritised\nat all, it is done in the order its parent's breakdown is in.\n\nThis used to be the WSJF endpoint alone, and before that WSJF was refused\nunless the organisation ran at least Essential SAFe. Neither the technique\nnor the choice between techniques belongs to a framework.","operationId":"set_work_item_prioritisation_api_v1_work_items__work_item_id__prioritisation_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"components":{"items":{"properties":{"field":{"type":"string"},"hint":{"type":"string"},"key":{"type":["null","number","string"]},"label":{"type":"string"},"scale":{"type":["null","string"]},"value":{"type":["null","number"]}},"required":["field","hint","key","label","scale","value"],"type":"object"},"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":["null","number"]}},"required":["components","label","meaning","method","score"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/fields":{"put":{"tags":["delivery"],"summary":"Set Work Item Fields","description":"Answer the questions this organisation asks of this item.\n\nIts own endpoint rather than part of the item patch, for the reason tags\nhave one: these are a different shape from the columns on the row - several\nof them are several rows apiece - and folding them into `workitems.WorkItemPatch`\nwould mean a model whose fields are not known until the account is read.\n\nA field not asked on this item's rung is refused rather than ignored. A\nclient sending one is a client working from a stale configuration, and\nquietly storing an answer to a question this rung does not ask is how an\nitem ends up carrying data no screen will ever show it.","operationId":"set_work_item_fields_api_v1_work_items__work_item_id__fields_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemFieldsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"custom_fields":{"items":{"properties":{"description":{"type":"string"},"display":{"type":"string"},"field_id":{"type":"integer"},"filter_key":{"type":"string"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"options":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":["null","array"]},"required":{"type":"boolean"},"updated_at":{"type":["null","string"]},"value":{"items":{"type":"string"},"type":["null","boolean","number","string","array"]}},"required":["description","display","field_id","filter_key","key","kind","label","options","required","updated_at","value"],"type":"object"},"type":"array"},"id":{"type":"integer"},"missing_fields":{"type":"array"}},"required":["custom_fields","id","missing_fields"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/tags/{kind}":{"put":{"tags":["delivery"],"summary":"Set Work Item Tags","description":"Set the components, or the labels, on an item.\n\nWhole rather than one at a time, because that is how the control reads: a\nreader ticks what applies and saves. Only the named kind is touched, so\nsetting the components leaves the labels where they are.","operationId":"set_work_item_tags_api_v1_work_items__work_item_id__tags__kind__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}},{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/TagKind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemTagsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"components":{"items":{"properties":{"description":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["description","id","kind","name"],"type":"object"},"type":"array"},"id":{"type":"integer"},"labels":{"items":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"},"type":"array"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/links":{"post":{"tags":["delivery"],"summary":"Add Work Item Link","description":"Link two items sideways.\n\nEditing the item the link is written on, and reading the one at the far end:\na dependency is a note about this item's work, and it should not need the\nright to change another team's board to say that this is waiting on them.\nBoth ends still have to be visible, or the link would name something the\nauthor cannot see.","operationId":"add_work_item_link_api_v1_work_items__work_item_id__links_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkItemLinkIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-item-links/{link_id}":{"delete":{"tags":["delivery"],"summary":"Remove Work Item Link","description":"Take a link off.\n\nRemovable from either end: one row is the same fact seen from two items, so\nwhoever can edit either of them can say it is no longer true.","operationId":"remove_work_item_link_api_v1_work_item_links__link_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"removed":{"type":"boolean"}},"required":["id","removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/parent":{"put":{"tags":["delivery"],"summary":"Set Work Item Parent","description":"Move an item under an existing parent - a work item, or an initiative.\n\nThis is the child's side of the link. The parent's side is\n`attach_work_item_children` and `initiatives.attach_work_items`; all three\nare the same move, so they share one implementation.","operationId":"set_work_item_parent_api_v1_work_items__work_item_id__parent_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkItemParentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entity_id":{"type":"integer"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"parent_work_item_id":{"type":["null","integer"]}},"required":["entity_id","id","initiative_id","parent_work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/children":{"post":{"tags":["delivery"],"summary":"Attach Work Item Children","description":"Adopt items that already exist. The parent's side of the same move.","operationId":"attach_work_item_children_api_v1_work_items__work_item_id__children_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachChildrenIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"attached":{"type":"integer"},"id":{"type":"integer"}},"required":["attached","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/children/order":{"put":{"tags":["delivery"],"summary":"Order Work Item Children","description":"Put the breakdown of an item in the order somebody dragged it into.\n\nThe whole list at once rather than one move at a time: what makes an order\nvalid is a property of the set, and sending positions one by one is how two\npeople dragging at once end up with two items in third place.\n\nAnything left out keeps its place at the end, so a list that grew between\nthe drag and the drop is not silently reordered by it.","operationId":"order_work_item_children_api_v1_work_items__work_item_id__children_order_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildOrderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"order":{"items":{"type":"integer"},"type":"array"}},"required":["id","order"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/copy":{"post":{"tags":["delivery"],"summary":"Copy Work Item","description":"A new item with this one's wording, beside it.\n\nCopied: the title, the description and the acceptance criteria, the rung,\nwhat it sits under and serves, its priority and estimate and dates, its\nassignee, its components and labels, its custom fields - and, unless asked\nnot to, the breakdown beneath it, copied the same way with each copy under\nthe copy of its parent.\n\nNot copied: the status, which starts over, because a copy has not been\nthrough the workflow the original has; the sprint, because a copy is new\nwork nobody has planned yet; and the comments, history, links and\nattachments, which are about the item that was copied rather than about\nthis one. It is reported by whoever made it, for the same reason a new\nitem is.","operationId":"copy_work_item_api_v1_work_items__work_item_id__copy_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"copied_from":{"type":"string"},"count":{"type":"integer"},"id":{"type":"integer"},"reference":{"type":"string"}},"required":["copied_from","count","id","reference"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/archive":{"post":{"tags":["delivery"],"summary":"Archive Work Item","description":"Take an item off the board without taking it away.\n\nIts history, its links, its comments and its part in a past sprint's\nnumbers all stay. What it stops doing is taking a card and appearing in the\nbacklog - which is what somebody wants for work that was abandoned, folded\ninto something else, or closed so long ago that its column is noise.\n\nEverything beneath it goes with it: a story archived while its sub-tasks\nstayed on the board would leave lines nobody can find the item for.\n\nOnly work that is over can be put away - released, or cancelled. An open\nitem taken off the board is not archived, it is lost: nobody is looking\nfor it on the Archived tab, and the column it left still owes an answer.\nA container - the top rung, an epic as it ships - is over when everything\nbeneath it is, whatever its own column says, since an epic is a way of\nholding work rather than work. Bringing one back is always allowed,\nsince it comes back to whatever status it had.","operationId":"archive_work_item_api_v1_work_items__work_item_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__delivery__ArchiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":["null","string"]},"id":{"type":"integer"},"with_it":{"type":"integer"}},"required":["archived_at","id","with_it"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sprints/{sprint_id}/archive":{"post":{"tags":["delivery"],"summary":"Archive Sprint","description":"Take a finished iteration off the list without taking it away.\n\nThe work stays where it is: an item still knows which sprint it was carried\nout of, and the burndown still draws. What goes is the row somebody scrolls\npast when planning the next one.","operationId":"archive_sprint_api_v1_sprints__sprint_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__delivery__ArchiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"string"},"id":{"type":"integer"}},"required":["archived_at","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/transition":{"post":{"tags":["delivery"],"summary":"Transition Work Item","description":"Move a work item to another state of its workflow. Where the move\npasses through an approval gate, the item stays where it is and an\napproval request is opened instead: `applied` is then false and\n`approval_request_id` names the request. Answers with the item's state\nand a message saying what happened.\n\nA move the workflow does not declare is refused. The caller needs the\nright to transition work items on the entity.","operationId":"transition_work_item_api_v1_work_items__work_item_id__transition_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"applied":{"type":"boolean"},"approval_request_id":{"type":["null","integer"]},"message":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"}},"required":["applied","approval_request_id","message","state_id","state_name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/done":{"post":{"tags":["delivery"],"summary":"Tick Work Item","description":"Tick a checklist item off, or put it back.\n\nThe same permission as a transition, because that is what it is: a sub-task\nreaching Done is the same fact as a story reaching it, arrived at by the\ncontrol the rung deserves rather than by a row of workflow buttons.","operationId":"tick_work_item_api_v1_work_items__work_item_id__done_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TickIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"state_id":{"type":"integer"},"state_name":{"type":"string"}},"required":["id","state_id","state_name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/dependencies":{"get":{"tags":["delivery"],"summary":"Entity Dependencies","description":"What this part of the organisation is waiting on, and who is waiting on it.\n\nThe program board answers the same question and can only do it for a train:\nit draws dependencies against the iteration columns a shared cadence\nprovides, so an organisation without one had no view at all. Nothing new is\nstored for either - a dependency is a `WorkItemLink` (spec 7.2), already\nwritten once and read correctly from both ends - so this is the same facts\nwithout the columns.\n\nA list rather than a grid, and that is the honest shape without a cadence:\ntwo teams with different sprint lengths have no common axis to lay a matrix\non, and drawing one anyway would invent an alignment nobody agreed to.\n\nBoth directions, because a dependency is two questions - what is holding us\nup, and who have we promised something to - and a view that answered only\nthe first would let the second surprise somebody.","operationId":"entity_dependencies_api_v1_entities__entity_id__dependencies_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Entity Dependencies Api V1 Entities  Entity Id  Dependencies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/flow":{"get":{"tags":["delivery"],"summary":"Entity Flow","description":"How this team is going: velocity, cycle time and what the work was.\n\nThe three measures that used to be reachable only inside a planning\ninterval, and so only on an account running Essential SAFe. None of them is\nSAFe's - velocity is Scrum's oldest number and the other two are Kanban's -\nand a team was getting a burndown and nothing else. The arithmetic is\n`services/flow.py`, shared with the train's version so a team's cycle time\nand its train's are the same measurement at two scopes.\n\nTwo scopes are used here rather than one, because the two questions are\nscoped differently in practice. Velocity is per sprint, so it reads the\nboard's own sprints. Cycle time and the work mix are per period, so they\nread a window in days - which is what lets a Kanban board, which has no\nsprints at all, have them.","operationId":"entity_flow_api_v1_entities__entity_id__flow_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Window Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"cycle_time":{"properties":{"count":{"type":"integer"},"items":{"items":{"properties":{"days":{"type":"number"},"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["days","id","reference","title"],"type":"object"},"type":"array"},"mean_days":{"type":["null","number"]},"median_days":{"type":["null","number"]}},"required":["count","items","mean_days","median_days"],"type":"object"},"entity_id":{"type":"integer"},"flow":{"properties":{"rungs":{"items":{"properties":{"count":{"type":"integer"},"label":{"type":"string"},"level_key":{"type":"string"},"plural":{"type":"string"},"points":{"type":"number"},"share":{"type":"number"}},"required":["count","label","level_key","plural","points","share"],"type":"object"},"type":"array"},"total":{"type":"integer"}},"required":["rungs","total"],"type":"object"},"flow_efficiency":{"properties":{"active_days":{"type":"number"},"count":{"type":"integer"},"efficiency_pct":{"type":["null","number"]},"elapsed_days":{"type":"number"},"items":{"items":{"properties":{"active_days":{"type":"number"},"efficiency_pct":{"type":"number"},"elapsed_days":{"type":"number"},"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["active_days","efficiency_pct","elapsed_days","id","reference","title"],"type":"object"},"type":"array"},"median_efficiency_pct":{"type":["null","number"]}},"required":["active_days","count","efficiency_pct","elapsed_days","items","median_efficiency_pct"],"type":"object"},"velocity":{"properties":{"average_completed":{"type":"null"},"sprints":{"type":"array"},"total_committed":{"type":"integer"},"total_completed":{"type":"integer"}},"required":["average_completed","sprints","total_committed","total_completed"],"type":"object"},"window_days":{"type":"integer"}},"required":["cycle_time","entity_id","flow","flow_efficiency","velocity","window_days"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/cumulative-flow":{"get":{"tags":["delivery"],"summary":"Cumulative Flow","description":"How much work sat in each column on each day, over any range.\n\nThe one chart that shows a queue forming: a band that widens is work\narriving faster than it leaves, and the horizontal distance across the\nbands is how long a card takes to get through. Neither is visible in a\nburndown, which counts only what is left.\n\nGrouped by this board's own columns, so the bands are the headings the team\nalready moves cards between.","operationId":"cumulative_flow_api_v1_entities__entity_id__cumulative_flow_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"columns":{"items":{"type":"string"},"type":"array"},"days":{"items":{"properties":{"counts":{"properties":{"Backlog":{"type":"integer"},"Blocked":{"type":"integer"},"Cancelled":{"type":"integer"},"Done":{"type":"integer"},"In progress":{"type":"integer"},"In review":{"type":"integer"},"Ready":{"type":"integer"}},"required":["Backlog","Blocked","Cancelled","Done","In progress","In review","Ready"],"type":"object"},"on":{"type":"string"}},"required":["counts","on"],"type":"object"},"type":"array"},"end":{"type":"string"},"start":{"type":"string"}},"required":["columns","days","end","start"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/control-chart":{"get":{"tags":["delivery"],"summary":"Control Chart","description":"How long each finished item took, in the order they finished.\n\nA mean cycle time hides its own shape: two teams averaging six days are\ndifferent teams if one is always six and the other is two-or-fourteen, and\nonly the second has something to talk about. So every finished item is its\nown point, with a rolling average through them and a band showing the\nscatter around it.","operationId":"control_chart_api_v1_entities__entity_id__control_chart_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"window","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"end":{"type":"string"},"points":{"items":{"properties":{"band_high":{"type":"number"},"band_low":{"type":"number"},"days":{"type":"number"},"finished_on":{"type":"string"},"id":{"type":"integer"},"reference":{"type":"string"},"rolling_mean":{"type":"number"},"title":{"type":"string"}},"required":["band_high","band_low","days","finished_on","id","reference","rolling_mean","title"],"type":"object"},"type":"array"},"start":{"type":"string"},"window":{"type":"integer"}},"required":["end","points","start","window"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sprints/{sprint_id}/report":{"get":{"tags":["delivery"],"summary":"Sprint Report","description":"What a sprint took on, what happened to it, and what changed underneath.\n\nThe argument a retrospective actually has. A team that finished eight of\nten looks the same in a burndown as one that finished eight of ten after\nfour were added and two taken away, and they are not the same sprint.","operationId":"sprint_report_api_v1_sprints__sprint_id__report_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"added":{"items":{"properties":{"id":{"type":"integer"},"points":{"type":"null"},"reference":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","points","reference","state_name","title"],"type":"object"},"type":"array"},"added_points":{"type":"integer"},"committed_points":{"type":"number"},"completed":{"items":{"properties":{"id":{"type":"integer"},"points":{"type":"null"},"reference":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","points","reference","state_name","title"],"type":"object"},"type":"array"},"completed_points":{"type":"integer"},"end_date":{"type":"string"},"flow_efficiency":{"properties":{"active_days":{"type":"number"},"count":{"type":"integer"},"efficiency_pct":{"type":["null","number"]},"elapsed_days":{"type":"number"},"items":{"items":{"properties":{"active_days":{"type":"number"},"efficiency_pct":{"type":"number"},"elapsed_days":{"type":"number"},"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["active_days","efficiency_pct","elapsed_days","id","reference","title"],"type":"object"},"type":"array"},"median_efficiency_pct":{"type":["null","number"]}},"required":["active_days","count","efficiency_pct","elapsed_days","items","median_efficiency_pct"],"type":"object"},"name":{"type":"string"},"not_completed":{"items":{"properties":{"id":{"type":"integer"},"points":{"type":"null"},"reference":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","points","reference","state_name","title"],"type":"object"},"type":"array"},"not_completed_points":{"type":"integer"},"removed":{"items":{"properties":{"id":{"type":"integer"},"points":{"type":"null"},"reference":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","points","reference","state_name","title"],"type":"object"},"type":"array"},"removed_points":{"type":"integer"},"scope_tracked":{"type":"boolean"},"sprint_id":{"type":"integer"},"start_date":{"type":"string"},"state":{"type":"string"}},"required":["added","added_points","committed_points","completed","completed_points","end_date","flow_efficiency","name","not_completed","not_completed_points","removed","removed_points","scope_tracked","sprint_id","start_date","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/sprints":{"get":{"tags":["delivery"],"summary":"List Sprints","description":"The iterations on this board.\n\nLive by default: a sprint whose retrospective has been read and whose\nnumbers have been taken is history, and the list somebody plans from should\nhold what is ahead of them.","operationId":"list_sprints_api_v1_entities__entity_id__sprints_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Sprints Api V1 Entities  Entity Id  Sprints Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["delivery"],"summary":"Create Sprint","description":"Plan a sprint on an entity's board, from a name, a start date and a\nlater end date, with an optional goal and capacity in points. Answers\nwith the sprint's id and name.\n\nRefused on a board that does not use sprints. The caller needs the\nright to manage sprints on the entity.","operationId":"create_sprint_api_v1_entities__entity_id__sprints_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SprintIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sprints/{sprint_id}/capacity":{"get":{"tags":["delivery"],"summary":"Get Capacity","description":"Who can take on what this sprint, and what they have been given.\n\nReadable by anybody who can see the board's work, because it is the\nquestion a stand-up asks out loud. Writing it is the sprint's own\npermission - see below.","operationId":"get_capacity_api_v1_sprints__sprint_id__capacity_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"assigned_total":{"type":"number"},"from_people":{"type":"boolean"},"people":{"items":{"properties":{"assigned_points":{"type":"number"},"capacity_points":{"type":["null","number"]},"name":{"type":"string"},"over":{"type":"boolean"},"person_id":{"type":"integer"}},"required":["assigned_points","capacity_points","name","over","person_id"],"type":"object"},"type":"array"},"points_in_use":{"type":"boolean"},"sprint_capacity":{"type":["null","number"]},"sprint_id":{"type":"integer"},"sprint_name":{"type":"string"},"total_capacity":{"type":["null","number"]},"unassigned_points":{"type":"number"},"unestimated_items":{"type":"integer"}},"required":["assigned_total","from_people","people","points_in_use","sprint_capacity","sprint_id","sprint_name","total_capacity","unassigned_points","unestimated_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["delivery"],"summary":"Set Capacity","description":"Say who can take on what this sprint.\n\nPlanning the iteration, so it takes the permission that starts and closes\none rather than the one that edits work.\n\nEmptying the list is how a team goes back to one number for the sprint: the\nrows go, and `capacity_points` stands again. That is the only way back, and\nit is deliberate - a team that has broken capacity down and wants the\nsimple number again should have to say so, not discover it by deleting\npeople one at a time until the rule flips.","operationId":"set_capacity_api_v1_sprints__sprint_id__capacity_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapacityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"assigned_total":{"type":"number"},"from_people":{"type":"boolean"},"people":{"items":{"properties":{"assigned_points":{"type":"number"},"capacity_points":{"type":["null","number"]},"name":{"type":"string"},"over":{"type":"boolean"},"person_id":{"type":"integer"}},"required":["assigned_points","capacity_points","name","over","person_id"],"type":"object"},"type":"array"},"points_in_use":{"type":"boolean"},"sprint_capacity":{"type":["null","number"]},"sprint_id":{"type":"integer"},"sprint_name":{"type":"string"},"total_capacity":{"type":"number"},"unassigned_points":{"type":"number"},"unestimated_items":{"type":"integer"}},"required":["assigned_total","from_people","people","points_in_use","sprint_capacity","sprint_id","sprint_name","total_capacity","unassigned_points","unestimated_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sprints/{sprint_id}":{"put":{"tags":["delivery"],"summary":"Update Sprint","description":"Correct a sprint, or write up what came out of it.\n\nThe window is editable while a sprint is ahead of or in flight; once it has\ncompleted, its dates are part of what its burndown drew and its numbers were\ntaken against, so they stop moving. Everything a person writes - the name,\nthe goal, the retrospective - stays editable, because a retrospective is\nwritten after the sprint closes by definition.","operationId":"update_sprint_api_v1_sprints__sprint_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SprintIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sprints/{sprint_id}/start":{"post":{"tags":["delivery"],"summary":"Start Sprint","description":"Start a sprint and record its commitment: the work items in it at\nthis moment and the sum of their points, against which the sprint is\nlater measured. Answers with the sprint's id and state.\n\nRefused while another sprint on the same board is running. The caller\nneeds the right to manage sprints on the entity.","operationId":"start_sprint_api_v1_sprints__sprint_id__start_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"state":{"type":"string"}},"required":["id","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sprints/{sprint_id}/complete":{"post":{"tags":["delivery"],"summary":"Complete Sprint","description":"Close a sprint and carry the unfinished work back to the backlog.\n\nThe completed and carried-over totals are written onto the sprint rather\nthan recomputed later, so re-estimating a carried story cannot rewrite what\nthis sprint achieved.","operationId":"complete_sprint_api_v1_sprints__sprint_id__complete_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"carried_over":{"type":"integer"},"completed_points":{"type":"number"},"id":{"type":"integer"},"state":{"type":"string"}},"required":["carried_over","completed_points","id","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sprints/{sprint_id}/burndown":{"get":{"tags":["delivery"],"summary":"Burndown","description":"Remaining points per day, read from the event log.\n\nComputed from `WorkItemEvent` rather than from the board's current state, so\nthe chart is a record of what happened rather than a projection backwards\nfrom today.","operationId":"burndown_api_v1_sprints__sprint_id__burndown_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"sprint_id","in":"path","required":true,"schema":{"type":"integer","title":"Sprint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Burndown Api V1 Sprints  Sprint Id  Burndown Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/worklogs":{"get":{"tags":["delivery"],"summary":"List Worklogs","description":"This item's worklogs, and the three numbers that go with them.","operationId":"list_worklogs_api_v1_work_items__work_item_id__worklogs_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"may_log":{"type":"boolean"},"minutes_in_day":{"type":"integer"},"minutes_in_week":{"type":"integer"},"original_estimate":{"type":"string"},"original_estimate_minutes":{"type":["null","integer"]},"remaining_estimate":{"type":"string"},"remaining_estimate_minutes":{"type":["null","integer"]},"time_spent":{"type":"string"},"time_spent_minutes":{"type":"integer"},"worklogs":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"minutes":{"type":"integer"},"note":{"type":"string"},"person_id":{"type":"integer"},"person_name":{"type":"string"},"spent_on":{"type":"string"},"work_item_id":{"type":"integer"},"written":{"type":"string"}},"required":["created_at","id","minutes","note","person_id","person_name","spent_on","work_item_id","written"],"type":"object"},"type":"array"}},"required":["may_log","minutes_in_day","minutes_in_week","original_estimate","original_estimate_minutes","remaining_estimate","remaining_estimate_minutes","time_spent","time_spent_minutes","worklogs"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["delivery"],"summary":"Add Worklog","description":"Log time spent on a work item. `duration` is written as `90m`,\n`1h 30m` or `2d`. The time comes off the item's remaining estimate\nunless `remaining_estimate` sets what is left outright or\n`adjust_remaining` is false. Answers with the worklog.\n\nThe caller needs the right to log time on the item's entity.","operationId":"add_worklog_api_v1_work_items__work_item_id__worklogs_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorklogIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"minutes":{"type":"integer"},"note":{"type":"string"},"person_id":{"type":"integer"},"person_name":{"type":"string"},"spent_on":{"type":"string"},"work_item_id":{"type":"integer"},"written":{"type":"string"}},"required":["created_at","id","minutes","note","person_id","person_name","spent_on","work_item_id","written"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/worklogs/{worklog_id}":{"put":{"tags":["delivery"],"summary":"Update Worklog","description":"Correct a worklog's duration, date or note. Only the fields sent are\nchanged, and the item's remaining estimate is left as it is. Answers\nwith the worklog.\n\nA worklog may be changed by the person who logged it or by an account\nadministrator.","operationId":"update_worklog_api_v1_worklogs__worklog_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"worklog_id","in":"path","required":true,"schema":{"type":"integer","title":"Worklog Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorklogPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"minutes":{"type":"integer"},"note":{"type":"string"},"person_id":{"type":"integer"},"person_name":{"type":"string"},"spent_on":{"type":"string"},"work_item_id":{"type":"integer"},"written":{"type":"string"}},"required":["created_at","id","minutes","note","person_id","person_name","spent_on","work_item_id","written"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["delivery"],"summary":"Delete Worklog","description":"Delete a worklog. The time comes off the item's time spent, and its\nremaining estimate is left as it is. A worklog may be deleted by the\nperson who logged it or by an account administrator.","operationId":"delete_worklog_api_v1_worklogs__worklog_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"worklog_id","in":"path","required":true,"schema":{"type":"integer","title":"Worklog Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/versions":{"get":{"tags":["delivery"],"summary":"List Versions","description":"What this part of the organisation ships in, coming first.","operationId":"list_versions_api_v1_entities__entity_id__versions_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"may_manage":{"type":"boolean"},"versions":{"items":{"properties":{"archived_at":{"type":["null","string"]},"change_request_id":{"type":"null"},"description":{"type":"string"},"dropped_now":{"type":"integer"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"item_count":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":["null","string"]},"released_at":{"type":["null","string"]},"shipped_count":{"type":["null","integer"]},"shipped_now":{"type":"integer"},"slipped_count":{"type":["null","integer"]},"slipped_now":{"type":"integer"},"start_date":{"type":"null"},"status":{"type":"string"}},"required":["archived_at","change_request_id","description","dropped_now","entity_id","id","item_count","name","release_date","released_at","shipped_count","shipped_now","slipped_count","slipped_now","start_date","status"],"type":"object"},"type":"array"}},"required":["may_manage","versions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["delivery"],"summary":"Create Version","description":"Name a version on an entity: the release that work items will ship\nin. A version needs a name; a description, a start date and a release\ndate are optional. Answers with the version and its counts of work.\n\nThe caller needs the right to manage sprints on the entity.","operationId":"create_version_api_v1_entities__entity_id__versions_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"change_request_id":{"type":"null"},"description":{"type":"string"},"dropped_now":{"type":"integer"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"item_count":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":["null","string"]},"released_at":{"type":"null"},"shipped_count":{"type":"null"},"shipped_now":{"type":"integer"},"slipped_count":{"type":"null"},"slipped_now":{"type":"integer"},"start_date":{"type":"null"},"status":{"type":"string"}},"required":["archived_at","change_request_id","description","dropped_now","entity_id","id","item_count","name","release_date","released_at","shipped_count","shipped_now","slipped_count","slipped_now","start_date","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/releases":{"get":{"tags":["delivery"],"summary":"Read Releases","description":"The release path for this entity, as one reading.\n\nWhat used to be three tabs. A release, the changes that authorised its\nwork, where it actually got to, and - in a bucket of its own - everything\nin no named release at all, because a change aimed at no version and a\ndeployment of work nobody named are both ordinary and would otherwise be\ninvisible.\n\nBehind `WORK_ITEM_VIEW`, because the spine is the work and where it\nreached: \"anybody who can see the work can see where it reached - hiding\nit behind a permission would mean the person asking 'is my fix out yet'\nhas to find somebody else to ask.\"\n\nChange requests are asked for rather than required. A reader who may see\nreleases but not changes gets the releases in full and every\nchange-derived count as null rather than zero - zero is an assertion made\non evidence they have not been shown.","operationId":"read_releases_api_v1_entities__entity_id__releases_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"above_boards":{"type":"boolean"},"changes_visible":{"type":"boolean"},"entity_name":{"type":"string"},"environments":{"items":{"properties":{"expects_authorisation":{"type":"boolean"},"id":{"type":"integer"},"is_production":{"type":"boolean"},"key":{"type":"string"},"name":{"type":"string"},"rank":{"type":"integer"}},"required":["expects_authorisation","id","is_production","key","name","rank"],"type":"object"},"type":"array"},"may_manage":{"type":"boolean"},"releases":{"items":{"properties":{"asked_at":{"items":{"type":"integer"},"type":"array"},"change_requests":{"items":{"properties":{"also_in":{"items":{"type":"integer"},"type":"array"},"authorised":{"type":"boolean"},"authorised_at":{"type":"null"},"change_type":{"type":"string"},"deployed":{"properties":{"any":{"type":"boolean"},"environments":{"items":{"properties":{"at":{"type":"string"},"basis":{"type":"string"},"carried_in":{"type":"integer"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"items":{"type":"integer"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","basis","carried_in","deployment_id","environment","environment_id","is_production","items","rank","ref","sha","url"],"type":"object"},"type":"array"},"first_at":{"type":["null","string"]},"furthest":{"properties":{"at":{"type":"string"},"basis":{"type":"string"},"carried_in":{"type":"integer"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"items":{"type":"integer"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","basis","carried_in","deployment_id","environment","environment_id","is_production","items","rank","ref","sha","url"],"type":["null","object"]},"in_production":{"type":"boolean"},"items":{"type":"integer"},"items_arrived":{"type":"integer"},"last_at":{"type":["null","string"]}},"required":["any","environments","first_at","furthest","in_production","items","items_arrived","last_at"],"type":"object"},"id":{"type":"integer"},"in_advance":{"type":"boolean"},"items":{"type":"integer"},"items_here":{"type":"integer"},"reference":{"type":"string"},"state":{"type":"string"},"verdict":{"type":"string"}},"required":["also_in","authorised","authorised_at","change_type","deployed","id","in_advance","items","items_here","reference","state","verdict"],"type":"object"},"type":"array"},"deployments":{"items":{"properties":{"at":{"type":"string"},"basis":{"type":"string"},"carried_in":{"type":"integer"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"items":{"type":"integer"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","basis","carried_in","deployment_id","environment","environment_id","is_production","items","rank","ref","sha","url"],"type":"object"},"type":"array"},"furthest":{"properties":{"at":{"type":"string"},"basis":{"type":"string"},"carried_in":{"type":"integer"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"items":{"type":"integer"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","basis","carried_in","deployment_id","environment","environment_id","is_production","items","rank","ref","sha","url"],"type":["null","object"]},"uncovered":{"items":{"properties":{"at":{"type":"string"},"change_reference":{"type":"string"},"environment":{"type":"string"},"id":{"type":"integer"},"reason":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["at","change_reference","environment","id","reason","reference","title"],"type":"object"},"type":"array"},"uncovered_count":{"type":["null","integer"]},"version":{"properties":{"archived_at":{"type":"null"},"change_request_id":{"type":["null","integer"]},"description":{"type":"string"},"dropped_now":{"type":"integer"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"item_count":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":"null"},"released_at":{"type":"null"},"shipped_count":{"type":"null"},"shipped_now":{"type":"integer"},"slipped_count":{"type":"null"},"slipped_now":{"type":"integer"},"start_date":{"type":"null"},"status":{"type":"string"}},"required":["archived_at","change_request_id","description","dropped_now","entity_id","id","item_count","name","release_date","released_at","shipped_count","shipped_now","slipped_count","slipped_now","start_date","status"],"type":"object"}},"required":["asked_at","change_requests","deployments","furthest","uncovered","uncovered_count","version"],"type":"object"},"type":"array"},"releases_total":{"type":"integer"},"unversioned":{"properties":{"change_requests":{"items":{"properties":{"also_in":{"type":"array"},"authorised":{"type":"boolean"},"authorised_at":{"type":"null"},"change_type":{"type":"string"},"deployed":{"properties":{"any":{"type":"boolean"},"environments":{"type":"array"},"first_at":{"type":"null"},"furthest":{"type":"null"},"in_production":{"type":"boolean"},"items":{"type":"integer"},"items_arrived":{"type":"integer"},"last_at":{"type":"null"}},"required":["any","environments","first_at","furthest","in_production","items","items_arrived","last_at"],"type":"object"},"id":{"type":"integer"},"in_advance":{"type":"boolean"},"items":{"type":"integer"},"items_here":{"type":"integer"},"reference":{"type":"string"},"state":{"type":"string"},"verdict":{"type":"string"}},"required":["also_in","authorised","authorised_at","change_type","deployed","id","in_advance","items","items_here","reference","state","verdict"],"type":"object"},"type":"array"},"deployments":{"items":{"properties":{"at":{"type":"string"},"basis":{"type":"string"},"carried_in":{"type":"null"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"items":{"type":"integer"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","basis","carried_in","deployment_id","environment","environment_id","is_production","items","rank","ref","sha","url"],"type":"object"},"type":"array"},"deployments_here":{"type":"integer"},"items":{"type":"integer"},"items_arrived":{"type":"integer"},"uncovered":{"type":"array"},"uncovered_count":{"type":["null","integer"]}},"required":["change_requests","deployments","deployments_here","items","items_arrived","uncovered","uncovered_count"],"type":"object"}},"required":["above_boards","changes_visible","entity_name","environments","may_manage","releases","releases_total","unversioned"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/versions/{version_id}":{"get":{"tags":["delivery"],"summary":"Read Version","description":"The release page: what shipped, what slipped, and what was dropped.\n\nThe three piles are read live rather than from the counts on the row. On an\nunreleased version that is the only answer there is; on a released one the\ncounts say what was true when it went out and this says what is in it now,\nand the difference between them is the work that was moved on - which is a\nquestion somebody reading a release afterwards genuinely asks.","operationId":"read_version_api_v1_versions__version_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"authorised_by":{"type":"null"},"deployments":{"type":"array"},"dropped":{"items":{"properties":{"assignee_name":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level":{"type":"string"},"reference":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["assignee_name","estimate_points","id","level","reference","status","title"],"type":"object"},"type":"array"},"entity_name":{"type":"string"},"may_manage":{"type":"boolean"},"other_versions":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"points_shipped":{"type":"integer"},"points_slipped":{"type":"integer"},"shipped":{"items":{"properties":{"assignee_name":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level":{"type":"string"},"reference":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["assignee_name","estimate_points","id","level","reference","status","title"],"type":"object"},"type":"array"},"slipped":{"items":{"properties":{"assignee_name":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level":{"type":"string"},"reference":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["assignee_name","estimate_points","id","level","reference","status","title"],"type":"object"},"type":"array"},"version":{"properties":{"archived_at":{"type":"null"},"change_request_id":{"type":"null"},"description":{"type":"string"},"dropped_now":{"type":"integer"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"item_count":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":"null"},"released_at":{"type":["null","string"]},"shipped_count":{"type":["null","integer"]},"shipped_now":{"type":"integer"},"slipped_count":{"type":["null","integer"]},"slipped_now":{"type":"integer"},"start_date":{"type":"null"},"status":{"type":"string"}},"required":["archived_at","change_request_id","description","dropped_now","entity_id","id","item_count","name","release_date","released_at","shipped_count","shipped_now","slipped_count","slipped_now","start_date","status"],"type":"object"}},"required":["authorised_by","deployments","dropped","entity_name","may_manage","other_versions","points_shipped","points_slipped","shipped","slipped","version"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["delivery"],"summary":"Update Version","description":"Edit a version's name, description or dates, or archive it. Only the\nfields sent are written, and a field sent as null is cleared. An\narchived version keeps its work items and is no longer offered as\nsomewhere to put work; `archived: false` restores it. Answers with the\nversion and its counts of work.\n\nThe caller needs the right to manage sprints on the entity.","operationId":"update_version_api_v1_versions__version_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":["null","string"]},"change_request_id":{"type":"null"},"description":{"type":"string"},"dropped_now":{"type":"integer"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"item_count":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":["null","string"]},"released_at":{"type":"null"},"shipped_count":{"type":"null"},"shipped_now":{"type":"integer"},"slipped_count":{"type":"null"},"slipped_now":{"type":"integer"},"start_date":{"type":"null"},"status":{"type":"string"}},"required":["archived_at","change_request_id","description","dropped_now","entity_id","id","item_count","name","release_date","released_at","shipped_count","shipped_now","slipped_count","slipped_now","start_date","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["delivery"],"summary":"Delete Version","description":"Remove a version nothing has shipped in.\n\nA released version is the record of what went out and is archived rather\nthan deleted - the same rule an entity that has held work follows. What is\nstill aimed at a deleted version becomes unscheduled, which is the truth:\nthe release it was going in no longer exists.","operationId":"delete_version_api_v1_versions__version_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/versions/{version_id}/candidates":{"get":{"tags":["delivery"],"summary":"Work This Release Could Take","description":"What could still be aimed at this release, item by item or by the epic.\n\nOnly what is free: work another live release is already carrying is left\nout rather than offered and then quietly taken off it.\n\nAn epic reports its unclaimed work broken down by status, and the statuses\ncome with it, so the reader can say which of them this release is taking -\nsigned off only, or everything in review as well, or the whole epic - and\nwatch the count follow the tick boxes.","operationId":"work_this_release_could_take_api_v1_versions__version_id__candidates_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"epics":{"items":{"properties":{"id":{"type":"integer"},"level_key":{"type":"string"},"level_label":{"type":"string"},"ready_by_state":{"additionalProperties":{"type":"integer"},"type":"object"},"reference":{"type":"string"},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","level_key","level_label","ready_by_state","reference","state_category","state_name","title"],"type":"object"},"type":"array"},"statuses":{"items":{"properties":{"category":{"type":"string"},"default":{"type":"boolean"},"id":{"type":"integer"},"name":{"type":"string"},"owner":{"type":"string"}},"required":["category","default","id","name","owner"],"type":"object"},"type":"array"},"work_items":{"items":{"properties":{"id":{"type":"integer"},"level_key":{"type":"string"},"level_label":{"type":"string"},"reference":{"type":"string"},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","level_key","level_label","reference","state_category","state_name","title"],"type":"object"},"type":"array"}},"required":["epics","statuses","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/versions/{version_id}/items":{"post":{"tags":["delivery"],"summary":"Fill Version","description":"Aim work at this release, by name or by the epic above it.","operationId":"fill_version_api_v1_versions__version_id__items_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FillVersionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"added":{"type":"integer"}},"required":["added"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/versions/{version_id}/release":{"post":{"tags":["delivery"],"summary":"Release Version","description":"Put it out. One action - no change request, no workflow, no approval.","operationId":"release_version_api_v1_versions__version_id__release_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"dropped":{"type":"integer"},"moved_to":{"type":["null","string"]},"shipped":{"type":"integer"},"slipped":{"type":"integer"},"version":{"properties":{"archived_at":{"type":"null"},"change_request_id":{"type":["null","integer"]},"description":{"type":"string"},"dropped_now":{"type":"integer"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"item_count":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":["null","string"]},"released_at":{"type":"string"},"shipped_count":{"type":"integer"},"shipped_now":{"type":"integer"},"slipped_count":{"type":"integer"},"slipped_now":{"type":"integer"},"start_date":{"type":"null"},"status":{"type":"string"}},"required":["archived_at","change_request_id","description","dropped_now","entity_id","id","item_count","name","release_date","released_at","shipped_count","shipped_now","slipped_count","slipped_now","start_date","status"],"type":"object"}},"required":["dropped","moved_to","shipped","slipped","version"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/avatar":{"post":{"tags":["avatar"],"summary":"Set Avatar","description":"Keep a picture of the signed-in person, replacing any they had.","operationId":"set_avatar_api_v1_me_avatar_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_set_avatar_api_v1_me_avatar_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"avatar_url":{"type":"string"}},"required":["avatar_url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]},"delete":{"tags":["avatar"],"summary":"Clear Avatar","description":"Back to initials.","operationId":"clear_avatar_api_v1_me_avatar_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"avatar_url":{"type":"null"}},"required":["avatar_url"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/people/{person_id}/avatar":{"get":{"tags":["avatar"],"summary":"Get Avatar","description":"The picture, inline, for anybody in the same account.\n\nInline is safe here and nowhere else in the product, because the type\nwas read off the bytes when they arrived and is one of four image types\n- see the module's note. Cached privately for a day; a replaced picture\nhas a new address, so the cache never shows a stale face.","operationId":"get_avatar_api_v1_people__person_id__avatar_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"image/jpeg":{},"image/png":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/entities/{entity_id}/logo":{"post":{"tags":["logos"],"summary":"Set Logo","description":"Give a part of the organisation a logo of its own, replacing any it had.\nEverything beneath it without one of its own shows it from now on.","operationId":"set_logo_api_v1_admin_entities__entity_id__logo_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_set_logo_api_v1_admin_entities__entity_id__logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"logo_from":{"type":"null"},"logo_own":{"type":"boolean"},"logo_url":{"type":"string"}},"required":["logo_from","logo_own","logo_url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["logos"],"summary":"Clear Logo","description":"Take a part's own logo away. It then shows the nearest one above it,\nor none.","operationId":"clear_logo_api_v1_admin_entities__entity_id__logo_delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"logo_from":{"type":["null","string"]},"logo_own":{"type":"boolean"},"logo_url":{"type":["null","string"]}},"required":["logo_from","logo_own","logo_url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/logos/{stem}":{"get":{"tags":["logos"],"summary":"Get Logo","description":"The picture, inline, for anybody holding its address.\n\nPublic, because the portal and the letters are. Inline is safe here for\nthe reason it is for a person's picture: the type was read off the bytes\nwhen they arrived and is one of four image types. Cached for a day by\nanybody; a replaced logo has a new address.","operationId":"get_logo_api_v1_logos__stem__get","parameters":[{"name":"stem","in":"path","required":true,"schema":{"type":"string","title":"Stem"}}],"responses":{"200":{"description":"Successful Response","content":{"image/gif":{},"image/png":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/planning-diagram":{"get":{"tags":["diagram"],"summary":"Planning Diagram","description":"Answer an entity's whole planning as one graph of nodes and edges:\nits goals, the factors under each, the assertions assessments made about\nthem, the causes beneath those down to the root causes, and the\ninitiatives that address them.\n\nNeeds the `factor.view` right on the entity. A reader without the right\nto see the analysis gets the goals and factors alone, and\n`analysis_hidden` is true.","operationId":"planning_diagram_api_v1_entities__entity_id__planning_diagram_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"analysis_hidden":{"type":"boolean"},"edges":{"items":{"properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"type":"object"},"type":"array"},"entity_name":{"type":"string"},"nodes":{"items":{"properties":{"assessment_id":{"type":"integer"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"subtitle":{"type":"string"},"title":{"type":"string"}},"required":["id","key","kind","status","subtitle","title"],"type":"object"},"type":"array"}},"required":["analysis_hidden","edges","entity_name","nodes"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/documents":{"get":{"tags":["documents"],"summary":"List Documents","description":"Every page on this entity, most recently changed first.\n\nOrdered by when it was last touched rather than by title, because the\nquestion somebody opens this with is almost always \"what has been written\nlately\" - and an alphabetical list of runbooks answers no question at all.\nEach page says which page it sits inside, and the screen sorts them into\nthat shape.\n\n**A retired page stays in the list while a page in scope sits inside it.**\nWhat is filed somewhere has to stay reachable, and a live runbook inside a\nretired folder is still a live runbook; the folder is drawn as retired and\nthe runbook is found through it.","operationId":"list_documents_api_v1_entities__entity_id__documents_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"live","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"documents":{"items":{"properties":{"archived_at":{"type":["null","string"]},"archived_by":{"type":["null","string"]},"audience":{"type":"string"},"author_name":{"type":"string"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"is_template":{"type":"boolean"},"labels":{"type":"array"},"owner_id":{"type":["null","integer"]},"owner_name":{"type":"string"},"parent":{"properties":{"id":{"type":"integer"},"title":{"type":"string"}},"required":["id","title"],"type":["null","object"]},"parent_id":{"type":["null","integer"]},"review_by":{"type":["null","string"]},"review_overdue":{"type":"boolean"},"subject":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"reference":{"type":"string"},"thing":{"type":"string"}},"required":["id","kind","name","reference","thing"],"type":["null","object"]},"title":{"type":"string"},"updated_at":{"type":"string"},"updated_by_name":{"type":"string"},"work_items":{"type":"array"}},"required":["archived_at","archived_by","audience","author_name","created_at","entity_id","id","is_template","labels","owner_id","owner_name","parent","parent_id","review_by","review_overdue","subject","title","updated_at","updated_by_name","work_items"],"type":"object"},"type":"array"},"entity":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"folders":{"properties":{"entities":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"pages":{"type":"integer"}},"required":["id","name","pages"],"type":"object"},"type":"array"}},"required":["entities"],"type":"object"},"may_edit":{"type":"boolean"}},"required":["documents","entity","folders","may_edit"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["documents"],"summary":"Create Document","description":"Write a new page on an entity and answer it in full. The page needs a\ntitle; it may sit inside another page of the entity, cover work items,\nand carry an owner, a review date, labels and an audience. The author\nwatches the page, and the people named in its body are told.\n\nNeeds the right to edit pages on the entity.","operationId":"create_document_api_v1_entities__entity_id__documents_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"audience":{"type":"string"},"author_name":{"type":"string"},"body":{"type":"string"},"comment_count":{"type":"integer"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"is_template":{"type":"boolean"},"labels":{"items":{"type":"string"},"type":"array"},"linked_from":{"type":"array"},"links_to":{"items":{"properties":{"archived":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"title":{"type":"string"}},"required":["archived","entity_id","entity_name","id","title"],"type":"object"},"type":"array"},"mention_entity_id":{"type":"integer"},"owner_id":{"type":["null","integer"]},"owner_name":{"type":"string"},"parent":{"properties":{"id":{"type":"integer"},"title":{"type":"string"}},"required":["id","title"],"type":["null","object"]},"parent_id":{"type":["null","integer"]},"review_by":{"type":["null","string"]},"review_overdue":{"type":"boolean"},"subject":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"},"updated_by_name":{"type":"string"},"uses":{"properties":{"helped":{"type":"integer"},"not_helped":{"type":"integer"},"used":{"type":"integer"}},"required":["helped","not_helped","used"],"type":"object"},"versions":{"type":"array"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"},"work_items":{"items":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["id","reference","title"],"type":"object"},"type":"array"}},"required":["archived_at","archived_by","audience","author_name","body","comment_count","created_at","entity_id","id","is_template","labels","linked_from","links_to","mention_entity_id","owner_id","owner_name","parent","parent_id","review_by","review_overdue","subject","title","updated_at","updated_by_name","uses","versions","watchers","watching","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_id}":{"get":{"tags":["documents"],"summary":"Read Document","description":"Answer one page in full: its body, owner, labels and audience, the\nwork items it covers, the pages it links to and that link to it, its\nwatchers, its comment count and its recent versions. `may_edit` says\nwhether the caller may save it.\n\nNeeds the right to view pages on the page's entity.","operationId":"read_document_api_v1_documents__document_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"audience":{"type":"string"},"author_name":{"type":"string"},"body":{"type":"string"},"comment_count":{"type":"integer"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"is_template":{"type":"boolean"},"labels":{"items":{"type":"string"},"type":"array"},"linked_from":{"items":{"properties":{"archived":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"title":{"type":"string"}},"required":["archived","entity_id","entity_name","id","title"],"type":"object"},"type":"array"},"links_to":{"items":{"properties":{"archived":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"title":{"type":"string"}},"required":["archived","entity_id","entity_name","id","title"],"type":"object"},"type":"array"},"may_edit":{"type":"boolean"},"mention_entity_id":{"type":"integer"},"owner_id":{"type":"null"},"owner_name":{"type":"string"},"parent":{"properties":{"id":{"type":"integer"},"title":{"type":"string"}},"required":["id","title"],"type":["null","object"]},"parent_id":{"type":["null","integer"]},"review_by":{"type":"null"},"review_overdue":{"type":"boolean"},"subject":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"reference":{"type":"string"},"thing":{"type":"string"}},"required":["id","kind","name","reference","thing"],"type":["null","object"]},"title":{"type":"string"},"updated_at":{"type":"string"},"updated_by_name":{"type":"string"},"uses":{"properties":{"helped":{"type":"integer"},"not_helped":{"type":"integer"},"used":{"type":"integer"}},"required":["helped","not_helped","used"],"type":"object"},"versions":{"items":{"properties":{"id":{"type":"integer"},"saved_at":{"type":"string"},"saved_by_name":{"type":"string"},"title":{"type":"string"}},"required":["id","saved_at","saved_by_name","title"],"type":"object"},"type":"array"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"},"work_items":{"type":"array"}},"required":["archived_at","archived_by","audience","author_name","body","comment_count","created_at","entity_id","id","is_template","labels","linked_from","links_to","may_edit","mention_entity_id","owner_id","owner_name","parent","parent_id","review_by","review_overdue","subject","title","updated_at","updated_by_name","uses","versions","watchers","watching","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["documents"],"summary":"Update Document","description":"Save it, keeping what it said before.\n\n**A version is written only when the words changed.** Opening a page and\npressing save is not an edit, and a history made mostly of those is a\nhistory nobody scrolls. Changing only what a page is *about* - its links -\nor where it sits is not a change to the words either, so either moves\n`updated_at` and writes no version.","operationId":"update_document_api_v1_documents__document_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"audience":{"type":"string"},"author_name":{"type":"string"},"body":{"type":"string"},"comment_count":{"type":"integer"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"is_template":{"type":"boolean"},"labels":{"type":"array"},"linked_from":{"type":"array"},"links_to":{"type":"array"},"mention_entity_id":{"type":"integer"},"owner_id":{"type":["null","integer"]},"owner_name":{"type":"string"},"parent":{"properties":{"id":{"type":"integer"},"title":{"type":"string"}},"required":["id","title"],"type":["null","object"]},"parent_id":{"type":["null","integer"]},"review_by":{"type":["null","string"]},"review_overdue":{"type":"boolean"},"subject":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"reference":{"type":"string"},"thing":{"type":"string"}},"required":["id","kind","name","reference","thing"],"type":["null","object"]},"title":{"type":"string"},"updated_at":{"type":"string"},"updated_by_name":{"type":"string"},"uses":{"properties":{"helped":{"type":"integer"},"not_helped":{"type":"integer"},"used":{"type":"integer"}},"required":["helped","not_helped","used"],"type":"object"},"versions":{"items":{"properties":{"id":{"type":"integer"},"saved_at":{"type":"string"},"saved_by_name":{"type":"string"},"title":{"type":"string"}},"required":["id","saved_at","saved_by_name","title"],"type":"object"},"type":"array"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"},"work_items":{"items":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["id","reference","title"],"type":"object"},"type":"array"}},"required":["archived_at","archived_by","audience","author_name","body","comment_count","created_at","entity_id","id","is_template","labels","linked_from","links_to","mention_entity_id","owner_id","owner_name","parent","parent_id","review_by","review_overdue","subject","title","updated_at","updated_by_name","uses","versions","watchers","watching","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_id}/versions/{version_id}":{"get":{"tags":["documents"],"summary":"Read Version","description":"What the page said before one particular save.","operationId":"read_version_api_v1_documents__document_id__versions__version_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"body":{"type":"string"},"document_id":{"type":"integer"},"id":{"type":"integer"},"saved_at":{"type":"string"},"saved_by_name":{"type":"string"},"title":{"type":"string"}},"required":["body","document_id","id","saved_at","saved_by_name","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_id}/versions/{version_id}/restore":{"post":{"tags":["documents"],"summary":"Restore Version","description":"Put an old version back.\n\nItself a save, which is the point: the words that were there a moment ago\nbecome a version of their own, so restoring is undoable by the same means\nas anything else and the history never loses a state it passed through. A\nrestore that overwrote silently would be the one edit nobody could reverse.","operationId":"restore_version_api_v1_documents__document_id__versions__version_id__restore_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"null"},"archived_by":{"type":"null"},"audience":{"type":"string"},"author_name":{"type":"string"},"body":{"type":"string"},"comment_count":{"type":"integer"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"is_template":{"type":"boolean"},"labels":{"type":"array"},"linked_from":{"type":"array"},"links_to":{"type":"array"},"mention_entity_id":{"type":"integer"},"owner_id":{"type":"null"},"owner_name":{"type":"string"},"parent":{"type":"null"},"parent_id":{"type":"null"},"review_by":{"type":"null"},"review_overdue":{"type":"boolean"},"subject":{"type":"null"},"title":{"type":"string"},"updated_at":{"type":"string"},"updated_by_name":{"type":"string"},"uses":{"properties":{"helped":{"type":"integer"},"not_helped":{"type":"integer"},"used":{"type":"integer"}},"required":["helped","not_helped","used"],"type":"object"},"versions":{"items":{"properties":{"id":{"type":"integer"},"saved_at":{"type":"string"},"saved_by_name":{"type":"string"},"title":{"type":"string"}},"required":["id","saved_at","saved_by_name","title"],"type":"object"},"type":"array"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"},"work_items":{"type":"array"}},"required":["archived_at","archived_by","audience","author_name","body","comment_count","created_at","entity_id","id","is_template","labels","linked_from","links_to","mention_entity_id","owner_id","owner_name","parent","parent_id","review_by","review_overdue","subject","title","updated_at","updated_by_name","uses","versions","watchers","watching","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_id}/archive":{"post":{"tags":["documents"],"summary":"Archive Document","description":"Retire a page, or bring it back.\n\nArchived rather than deleted, the same as everything else: a page that\nstopped being true is still the reason something was done, and a search is\nhow somebody finds it afterwards. What sits inside it is left alone - a\nretired folder still holds its live runbooks, and the list says so.","operationId":"archive_document_api_v1_documents__document_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":["null","string"]},"archived_by":{"type":["null","string"]},"audience":{"type":"string"},"author_name":{"type":"string"},"body":{"type":"string"},"comment_count":{"type":"integer"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"is_template":{"type":"boolean"},"labels":{"type":"array"},"linked_from":{"type":"array"},"links_to":{"type":"array"},"mention_entity_id":{"type":"integer"},"owner_id":{"type":"null"},"owner_name":{"type":"string"},"parent":{"properties":{"id":{"type":"integer"},"title":{"type":"string"}},"required":["id","title"],"type":["null","object"]},"parent_id":{"type":["null","integer"]},"review_by":{"type":"null"},"review_overdue":{"type":"boolean"},"subject":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"reference":{"type":"string"},"thing":{"type":"string"}},"required":["id","kind","name","reference","thing"],"type":["null","object"]},"title":{"type":"string"},"updated_at":{"type":"string"},"updated_by_name":{"type":"string"},"uses":{"properties":{"helped":{"type":"integer"},"not_helped":{"type":"integer"},"used":{"type":"integer"}},"required":["helped","not_helped","used"],"type":"object"},"versions":{"type":"array"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"},"work_items":{"type":"array"}},"required":["archived_at","archived_by","audience","author_name","body","comment_count","created_at","entity_id","id","is_template","labels","linked_from","links_to","mention_entity_id","owner_id","owner_name","parent","parent_id","review_by","review_overdue","subject","title","updated_at","updated_by_name","uses","versions","watchers","watching","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_id}/comments":{"get":{"tags":["documents"],"summary":"List Page Comments","description":"List the comments on a page as threads, oldest first, each top-level\ncomment with its replies. `mention_entity_id` names the entity whose\nreaders a comment may mention.\n\nNeeds the right to view pages on the page's entity.","operationId":"list_page_comments_api_v1_documents__document_id__comments_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"comments":{"items":{"properties":{"author_id":{"type":"integer"},"author_name":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"deleted":{"type":"boolean"},"edited_at":{"type":["null","string"]},"id":{"type":"integer"},"parent_comment_id":{"type":"null"},"replies":{"items":{"properties":{"author_id":{"type":"integer"},"author_name":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"deleted":{"type":"boolean"},"edited_at":{"type":"null"},"id":{"type":"integer"},"parent_comment_id":{"type":"integer"},"replies":{"type":"array"}},"required":["author_id","author_name","body","created_at","deleted","edited_at","id","parent_comment_id","replies"],"type":"object"},"type":"array"}},"required":["author_id","author_name","body","created_at","deleted","edited_at","id","parent_comment_id","replies"],"type":"object"},"type":"array"},"mention_entity_id":{"type":"integer"}},"required":["comments","mention_entity_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["documents"],"summary":"Add Page Comment","description":"Comment on a page, or answer a comment by naming it in\n`parent_comment_id`; an answer to a reply joins the same thread. The\ncommenter starts watching the page, and its watchers and the people\nnamed in the comment are told. Answers the comment's id and its parent's.\n\nNeeds the right to view pages on the page's entity.","operationId":"add_page_comment_api_v1_documents__document_id__comments_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageCommentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"parent_comment_id":{"type":["null","integer"]}},"required":["id","parent_comment_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_id}/watch":{"get":{"tags":["documents"],"summary":"Page Watch State","description":"Say whether the caller watches a page, and name and count everyone who\ndoes.\n\nNeeds the right to view pages on the page's entity.","operationId":"page_watch_state_api_v1_documents__document_id__watch_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"}},"required":["count","watchers","watching"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["documents"],"summary":"Set Page Watch","description":"Start or stop the caller watching a page, as `watching` says. A\nwatcher is told when somebody else comments on the page. Answers the\npage's watch state as `GET` does.\n\nNeeds the right to view pages on the page's entity.","operationId":"set_page_watch_api_v1_documents__document_id__watch_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageWatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"watchers":{"type":"array"},"watching":{"type":"boolean"}},"required":["count","watchers","watching"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pages/pick":{"get":{"tags":["documents"],"summary":"Pick Documents","description":"The pages somebody typing `[[` may link to: those they can read, by\ntitle, the ones on the entity they are writing on first.\n\nOnly pages the reader may open are offered, for the reason a search offers\nonly those - a link to a page the reader cannot follow is a dead link, and\na menu that offers one has told them something exists that they cannot\nsee. Retired pages are left out: a new link to a page somebody retired is\nalmost always a mistake, and an old link to one still works.","operationId":"pick_documents_api_v1_pages_pick_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"pages":{"items":{"properties":{"archived":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"title":{"type":"string"}},"required":["archived","entity_id","entity_name","id","title"],"type":"object"},"type":"array"}},"required":["pages"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pages/templates":{"get":{"tags":["documents"],"summary":"List Page Templates","description":"What DilliC ships, then the account's own: every live page saved as a\ntemplate that the reader may read, those on the entity being written on\nfirst.","operationId":"list_page_templates_api_v1_pages_templates_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"templates":{"items":{"properties":{"body":{"type":"string"},"key":{"type":"string"},"labels":{"items":{"type":"string"},"type":"array"},"purpose":{"type":"string"},"shipped":{"type":"boolean"},"title":{"type":"string"}},"required":["body","key","labels","purpose","shipped","title"],"type":"object"},"type":"array"}},"required":["templates"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pages/pinned":{"get":{"tags":["documents"],"summary":"Pinned Pages","description":"The pages this person pinned, as the pane draws them - in the order\nthey were pinned, less any they may no longer read. A pin holds a bare\nid (see models.SidebarPin), so a page gone or closed to them resolves to\nnothing here and draws nothing, the way a pinned report does.","operationId":"pinned_pages_api_v1_pages_pinned_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"pages":{"items":{"properties":{"archived":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"title":{"type":"string"}},"required":["archived","entity_id","entity_name","id","title"],"type":"object"},"type":"array"}},"required":["pages"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/documents/{document_id}/export":{"get":{"tags":["documents"],"summary":"Export Document","description":"The page - or, with `tree`, the page and everything inside it - as a\nfile to keep or to print.\n\n`markdown` is the writing as it is, one file or an archive; `html` is one\nself-contained document laid out for paper, which the client turns into\na PDF with the renderer it already has. See `services/exporting.py` for\nwhy the PDF is not made here.","operationId":"export_document_api_v1_documents__document_id__export_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"markdown","title":"Format"}},{"name":"tree","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Tree"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/zip":{},"text/html":{},"text/markdown":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/pages/import":{"post":{"tags":["documents"],"summary":"Import Pages","description":"Pages from elsewhere, written here: Markdown files, a zip of them with\nits folders as pages inside pages, or a Confluence HTML space export.\n\nTwo passes, because a link in one page points at another that may not\nexist yet: every page is created first with an empty body, then each\nbody is finished with its links pointing at the pages they became and\nits pictures uploaded onto it. See `services/importing.py` for the\nreading; this is the writing.","operationId":"import_pages_api_v1_entities__entity_id__pages_import_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_pages_api_v1_entities__entity_id__pages_import_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"attachments":{"type":"integer"},"kind":{"type":"string"},"pages":{"items":{"properties":{"id":{"type":"integer"},"parent_id":{"type":["null","integer"]},"title":{"type":"string"}},"required":["id","parent_id","title"],"type":"object"},"type":"array"},"warnings":{"type":"array"}},"required":["attachments","kind","pages","warnings"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/calendar-feed":{"get":{"tags":["change enablement"],"summary":"My Calendar Feed","description":"Where this person subscribes: an address that reads, without signing\nin, every change window and freeze they may read signed in.","operationId":"my_calendar_feed_api_v1_me_calendar_feed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"url":{"type":"string"}},"required":["url"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/calendar/{token}.ics":{"get":{"tags":["change enablement"],"summary":"Calendar Feed","description":"Answer the change calendar as an iCalendar file, for a calendar\nprogram that cannot sign in. The address alone opens it, and it holds\nevery change window and freeze its holder may read signed in.","operationId":"calendar_feed_api_v1_calendar__token__ics_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/calendar":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/change-requests":{"get":{"tags":["change enablement"],"summary":"List Change Requests","description":"What is in flight here and beneath here.\n\nLive by default: a change whose review is recorded has nothing left to ask\nof anybody, and a list that keeps it is a list nobody scans. It is still\nopen by link, by search and by `scope=archived`.\n\nAlways this entity and everything under it, all the way down: a change\nis raised on the team releasing it, and somebody standing higher - a\nchange advisory board member over a division - reads the whole division's\nchanges from the division rather than visiting each team. Each row says\nwhose it is. `mine` keeps only the changes an approval on which is, or\nwas, theirs to decide (see `_concerns`), which is the question such a\nperson came to ask: what, anywhere under me, is waiting on me or went\nthrough me.","operationId":"list_change_requests_api_v1_entities__entity_id__change_requests_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"change_requests":{"items":{"properties":{"announced":{"type":"boolean"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"awaiting_approval":{"type":"boolean"},"awaiting_me":{"type":"boolean"},"change_type":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"impact":{"type":"string"},"outcome":{"type":["null","string"]},"planned_end":{"type":["null","string"]},"planned_start":{"type":["null","string"]},"reference":{"type":"string"},"risk":{"type":"string"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"timezone":{"type":"string"},"title":{"type":"string"},"warned":{"type":"boolean"}},"required":["announced","archived_at","archived_by","awaiting_approval","awaiting_me","change_type","entity_id","entity_name","id","impact","outcome","planned_end","planned_start","reference","risk","services","state_category","state_id","state_name","timezone","title","warned"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"states":{"items":{"properties":{"category":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["category","id","name"],"type":"object"},"type":"array"}},"required":["change_requests","permissions","states"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["change enablement"],"summary":"Create Change Request","description":"Raise a change request on an entity and answer its id and reference.\nIt starts in the first state of the change workflow. Window times sent\nwithout an offset are read in `timezone`, or in the entity's zone where\nnone is named; a `model_id` fills what the body leaves empty from that\nchange model.\n\nNeeds the right to edit change requests on the entity.","operationId":"create_change_request_api_v1_entities__entity_id__change_requests_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRequestIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"}},"required":["id","reference"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}":{"get":{"tags":["change enablement"],"summary":"Get Change Request","description":"Answer one change request in full: its plans, window, state and the\ntransitions open to it, the releases it authorises and the work in them,\nthe services it touches, its pending approvals, risk assessment and\nhistory. The caller's permissions on its entity come with it.\n\nNeeds the right to view change requests on the entity.","operationId":"get_change_request_api_v1_change_requests__change_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actual_end":{"type":["null","string"]},"actual_start":{"type":["null","string"]},"announced":{"type":"boolean"},"archived_at":{"type":["null","string"]},"archived_by":{"type":"null"},"assessment":{"properties":{"answers":{"additionalProperties":{"type":"integer"},"type":"object"},"complete":{"type":"boolean"},"impact_scored":{"type":["null","string"]},"overridden":{"type":"boolean"},"overridden_at":{"type":["null","string"]},"overridden_by":{"type":["null","string"]},"questions":{"items":{"properties":{"answers":{"items":{"properties":{"label":{"type":"string"},"score":{"type":"integer"}},"required":["label","score"],"type":"object"},"type":"array"},"dimension":{"type":"string"},"help":{"type":"string"},"id":{"type":"integer"},"position":{"type":"integer"},"text":{"type":"string"}},"required":["answers","dimension","help","id","position","text"],"type":"object"},"type":"array"},"risk_scored":{"type":["null","string"]},"scores":{"properties":{"impact":{"properties":{"possible":{"type":"integer"},"score":{"type":"integer"}},"required":["possible","score"],"type":"object"},"risk":{"properties":{"possible":{"type":"integer"},"score":{"type":"integer"}},"required":["possible","score"],"type":"object"}},"required":["impact","risk"],"type":"object"}},"required":["answers","complete","impact_scored","overridden","overridden_at","overridden_by","questions","risk_scored","scores"],"type":"object"},"assignee_id":{"type":["null","integer"]},"assignee_name":{"type":["null","string"]},"caused":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"priority":{"type":"string"},"reference":{"type":"string"},"resolved_at":{"type":"null"},"severity":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["created_at","id","kind","priority","reference","resolved_at","severity","status","subject"],"type":"object"},"type":"array"},"change_type":{"type":"string"},"collisions":{"items":{"properties":{"change_id":{"type":"integer"},"change_type":{"type":"string"},"entity_id":{"type":"integer"},"planned_end":{"type":"string"},"planned_start":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"direct":{"type":"boolean"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","direct","id","kind","name","stage"],"type":"object"},"type":"array"},"title":{"type":"string"}},"required":["change_id","change_type","entity_id","planned_end","planned_start","reference","risk","services","title"],"type":"object"},"type":"array"},"contents_fixed":{"type":"boolean"},"created_at":{"type":"string"},"days_off":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"note":{"type":"string"},"start":{"type":"string"}},"required":["end","entity_id","entity_name","id","name","note","start"],"type":"object"},"type":"array"},"deployments":{"items":{"properties":{"at":{"type":"string"},"basis":{"type":"string"},"carried_in":{"type":"integer"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"items":{"type":"integer"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","basis","carried_in","deployment_id","environment","environment_id","is_production","items","rank","ref","sha","url"],"type":"object"},"type":"array"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"entity_timezone":{"type":"string"},"fixes":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"priority":{"type":"string"},"reference":{"type":"string"},"resolved_at":{"type":"null"},"severity":{"type":"null"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["created_at","id","kind","priority","reference","resolved_at","severity","status","subject"],"type":"object"},"type":"array"},"freezes":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"exempt_types":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"name":{"type":"string"},"reason":{"type":"string"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["end","entity_id","entity_name","exempt_types","id","name","reason","start","timezone"],"type":"object"},"type":"array"},"history":{"items":{"properties":{"actor":{"type":"string"},"created_at":{"type":"string"},"detail":{"type":"string"},"from_state":{"type":["null","string"]},"id":{"type":"integer"},"to_state":{"type":["null","string"]},"verb":{"type":"string"}},"required":["actor","created_at","detail","from_state","id","to_state","verb"],"type":"object"},"type":"array"},"id":{"type":"integer"},"impact":{"type":"string"},"implementation_plan":{"type":"string"},"initiatives":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"model_id":{"type":["null","integer"]},"model_name":{"type":["null","string"]},"notice":{"type":"string"},"observed_end":{"type":"null"},"observed_start":{"type":["null","string"]},"outcome":{"type":["null","string"]},"pending_approvals":{"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"planned_end":{"type":["null","string"]},"planned_start":{"type":["null","string"]},"reference":{"type":"string"},"requested_by":{"type":"string"},"review_notes":{"type":"string"},"risk":{"type":"string"},"rollback_plan":{"type":"string"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"state_category":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"},"test_plan":{"type":"string"},"timezone":{"type":"string"},"title":{"type":"string"},"transitions":{"items":{"properties":{"gate_name":{"type":"null"},"gated":{"type":"boolean"},"name":{"type":"string"},"to_state_id":{"type":"integer"},"to_state_name":{"type":"string"}},"required":["gate_name","gated","name","to_state_id","to_state_name"],"type":"object"},"type":"array"},"updated_at":{"type":"string"},"versions":{"items":{"properties":{"archived_at":{"type":"null"},"authorised_by":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"items":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":"null"},"released_at":{"type":["null","string"]},"status":{"type":"string"}},"required":["archived_at","authorised_by","description","id","items","name","release_date","released_at","status"],"type":"object"},"type":"array"},"work_items":{"items":{"properties":{"id":{"type":"integer"},"level_key":{"type":"string"},"level_label":{"type":"string"},"reference":{"type":"string"},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"},"went_out":{"properties":{"at":{"type":"string"},"authorised":{"type":"boolean"},"environment":{"type":"string"},"is_production":{"type":"boolean"}},"required":["at","authorised","environment","is_production"],"type":["null","object"]}},"required":["id","level_key","level_label","reference","state_category","state_name","title","went_out"],"type":"object"},"type":"array"}},"required":["actual_end","actual_start","announced","archived_at","archived_by","assessment","assignee_id","assignee_name","caused","change_type","collisions","contents_fixed","created_at","days_off","deployments","description","entity_id","entity_name","entity_timezone","fixes","freezes","history","id","impact","implementation_plan","initiatives","model_id","model_name","notice","observed_end","observed_start","outcome","pending_approvals","permissions","planned_end","planned_start","reference","requested_by","review_notes","risk","rollback_plan","services","state_category","state_id","state_name","test_plan","timezone","title","transitions","updated_at","versions","work_items"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["change enablement"],"summary":"Update Change Request","description":"Save a change request's title, description, plans, window, assignee,\nrisk and impact, and answer its id. `change_type`, `service_ids`,\n`notice` and `announced` stay as they are when left null, and an empty\n`timezone` keeps the zone the change has. Risk or impact that differs\nfrom the stored level is recorded as an override of the assessment.\n\nNeeds the right to edit change requests on the entity.","operationId":"update_change_request_api_v1_change_requests__change_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/archive":{"post":{"tags":["change enablement"],"summary":"Archive Change Request","description":"Take a finished change off the list without taking it away.\n\nIts plans, its approvals, its window and its review are the record of what\nhappened, and all of it stays: a link opens it, search finds it, and the\nwork it released still names it.","operationId":"archive_change_request_api_v1_change_requests__change_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__changemgmt__ArchiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":["null","string"]},"archived_by":{"type":"null"},"id":{"type":"integer"}},"required":["archived_at","archived_by","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/transition":{"post":{"tags":["change enablement"],"summary":"Transition Change Request","description":"Move a change request to another state of its workflow. A move through\nan approval gate is held: the answer has `applied` false and the id of\nthe approval request opened for it. Otherwise the answer names the new\nstate.\n\nA change leaves its first state only when the work in its releases is\nfinished, and goes to the change authority only with an implementation\nplan and a rollback plan. Only a standard change may skip the authority.\nNeeds the right to edit change requests on the entity.","operationId":"transition_change_request_api_v1_change_requests__change_id__transition_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"applied":{"type":"boolean"},"approval_request_id":{"type":["null","integer"]},"message":{"type":"string"},"state_id":{"type":"integer"},"state_name":{"type":"string"}},"required":["applied","approval_request_id","message","state_id","state_name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/observed-times":{"post":{"tags":["change enablement"],"summary":"Take The Observed Times","description":"Take the actual window from what the deployments actually did.\n\nThe window on a change is stamped from when somebody moved the ticket, and\nthe screen that shows it already says the clock and the paperwork rarely\nagree to the minute. A deployment is a third clock and a better one: it\nknows when the code went out rather than when the record caught up.\n\n**It is never applied on its own.** Somebody presses this. The typed window\nis what a person wrote down, sometimes deliberately - a change agreed for a\nwindow that ran late is a fact the review wants, not a discrepancy to tidy\naway - and overwriting it automatically would destroy exactly the\ndisagreement worth looking at. So the two are shown side by side and this\nis the explicit accept.\n\nWhat it did is written to the change's history, because a time taken from a\ndeployment and a time somebody typed are different kinds of record and a\nreader a year later should be able to tell which this was.","operationId":"take_the_observed_times_api_v1_change_requests__change_id__observed_times_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actual_end":{"type":"null"},"actual_start":{"type":"string"}},"required":["actual_end","actual_start"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/version-candidates":{"get":{"tags":["change enablement"],"summary":"Releases This Could Authorise","description":"The releases on this entity that this change could take on.\n\nArchived ones are left out for the reason everything leaves them out: they\nare kept, not pending. Ones another change already authorises are offered\n*and marked*, rather than hidden - unlike work, a release somebody has put\nunder the wrong change is a thing you fix by moving it, and hiding it would\nleave no way to.","operationId":"releases_this_could_authorise_api_v1_change_requests__change_id__version_candidates_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"versions":{"items":{"properties":{"archived_at":{"type":"null"},"authorised_by":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer"},"items":{"type":"integer"},"name":{"type":"string"},"release_date":{"type":"null"},"released_at":{"type":"null"},"status":{"type":"string"}},"required":["archived_at","authorised_by","description","id","items","name","release_date","released_at","status"],"type":"object"},"type":"array"}},"required":["versions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/versions":{"post":{"tags":["change enablement"],"summary":"Authorise Release","description":"Put a release of the same entity under this change request, so the\nchange authorises it. A release another change authorised moves to this\none. Answers `added`, false where the change already authorised it.\n\nRefused once the change has been submitted or closed, for an archived\nrelease, and for a release held by another submitted change. Needs the\nright to edit change requests on the entity.","operationId":"authorise_release_api_v1_change_requests__change_id__versions_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthoriseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"added":{"type":"boolean"}},"required":["added"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/versions/{version_id}":{"delete":{"tags":["change enablement"],"summary":"Unauthorise Release","description":"Take a release out from under this change.\n\nRefused outright once the release's work has arrived somewhere that expects\nauthorisation: that would leave those arrivals covered by nothing, which is\nas much an edit of the record as pointing them somewhere new. A record that\nsays the wrong thing is corrected with a note - the post-implementation\nreview - rather than by changing what it says.\n\nThe gate is the arrival, not the change's status. A change still open can\nhave deployed, and one closed weeks ago may have carried nothing anywhere\nthat asked.","operationId":"unauthorise_release_api_v1_change_requests__change_id__versions__version_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnauthoriseIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"removed":{"type":"boolean"}},"required":["removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/outcome":{"post":{"tags":["change enablement"],"summary":"Record Outcome","description":"The post-implementation review.\n\nITIL treats this as part of the change, not an afterthought: a change that\nis never reviewed teaches the organisation nothing.","operationId":"record_outcome_api_v1_change_requests__change_id__outcome_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"outcome":{"type":"string"}},"required":["id","outcome"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/approvals":{"get":{"tags":["change enablement"],"summary":"My Approvals","description":"Every gate outstanding across this account, as this person reads it.\n\nNo screen calls this - the product decides a gate on its subject. It is kept\nfor callers outside the product that want the whole account at once, and it\nanswers the same three questions the subject payloads do: the count, whether\nthis person may vote, and why not if they cannot.","operationId":"my_approvals_api_v1_approvals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response My Approvals Api V1 Approvals Get"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/approvals/{request_id}/decide":{"post":{"tags":["change enablement"],"summary":"Decide Approval","description":"Record the caller's verdict on a pending approval request, with a\ncomment. One rejection closes the request; once the gate has the\napprovals it asks for, the held move is applied. Answers whether the move\nwas applied, the state the subject is now in, and a message.\n\nRefused for a request already decided, for a second decision by the same\nperson, for the requester where the gate bars self-approval, and for\nanyone without the gate's approver role or the approval right.","operationId":"decide_approval_api_v1_approvals__request_id__decide_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__changemgmt__DecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"applied":{"type":"boolean"},"message":{"type":"string"},"state_name":{"type":"string"}},"required":["applied","message","state_name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/approvals/{request_id}/decisions":{"get":{"tags":["change enablement"],"summary":"Approval Decisions","description":"List the decisions recorded on an approval request, oldest first: who\ndecided, the verdict, the comment and when.\n\nAnybody who may view what the approval is for: the change request, or the\nwork item.","operationId":"approval_decisions_api_v1_approvals__request_id__decisions_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Approval Decisions Api V1 Approvals  Request Id  Decisions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/change-models":{"get":{"tags":["change enablement"],"summary":"List Models","description":"List every change model in the library, each with the services it\nnames and how many changes were raised from it, and the parts of the\norganisation a model may be offered on.\n\nAdministrators only.","operationId":"list_models_api_v1_admin_change_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entities":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"models":{"items":{"properties":{"active":{"type":"boolean"},"assessment":{"additionalProperties":{"type":"integer"},"type":"object"},"change_type":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"id":{"type":"integer"},"implementation_plan":{"type":"string"},"name":{"type":"string"},"notice":{"type":"string"},"rollback_plan":{"type":"string"},"service_ids":{"items":{"type":"integer"},"type":"array"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"test_plan":{"type":"string"},"updated_at":{"type":"string"},"used":{"type":"integer"}},"required":["active","assessment","change_type","created_at","description","entity_id","entity_name","id","implementation_plan","name","notice","rollback_plan","service_ids","services","test_plan","updated_at","used"],"type":"object"},"type":"array"}},"required":["entities","models"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["change enablement"],"summary":"Add Model","description":"Add a change model to the library: a name, a change type, the plans,\nassessment answers and services a change raised from it starts with, and\nthe part of the organisation that offers it. Returns the model.\n\nAdministrators only.","operationId":"add_model_api_v1_admin_change_models_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeModelIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"assessment":{"additionalProperties":{"type":"integer"},"type":"object"},"change_type":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"id":{"type":"integer"},"implementation_plan":{"type":"string"},"name":{"type":"string"},"notice":{"type":"string"},"rollback_plan":{"type":"string"},"service_ids":{"items":{"type":"integer"},"type":"array"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"test_plan":{"type":"string"},"updated_at":{"type":"string"},"used":{"type":"integer"}},"required":["active","assessment","change_type","created_at","description","entity_id","entity_name","id","implementation_plan","name","notice","rollback_plan","service_ids","services","test_plan","updated_at","used"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/change-models/{model_id}":{"put":{"tags":["change enablement"],"summary":"Edit Model","description":"Replace a change model's contents and return the model. Setting\n`active` to false retires it, so no new change starts from it; setting\nit to true restores it.\n\nAdministrators only.","operationId":"edit_model_api_v1_admin_change_models__model_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"integer","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeModelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"assessment":{"properties":{},"required":[],"type":"object"},"change_type":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":"null"},"entity_name":{"type":"null"},"id":{"type":"integer"},"implementation_plan":{"type":"string"},"name":{"type":"string"},"notice":{"type":"string"},"rollback_plan":{"type":"string"},"service_ids":{"items":{"type":"integer"},"type":"array"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"test_plan":{"type":"string"},"updated_at":{"type":"string"},"used":{"type":"integer"}},"required":["active","assessment","change_type","created_at","description","entity_id","entity_name","id","implementation_plan","name","notice","rollback_plan","service_ids","services","test_plan","updated_at","used"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["change enablement"],"summary":"Drop Model","description":"Take a model out of the library. Only while no change names it: a\nchange raised from a model keeps saying so, and the model is retired\ninstead once one has.","operationId":"drop_model_api_v1_admin_change_models__model_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"integer","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"dropped":{"type":"boolean"}},"required":["dropped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/change-models":{"get":{"tags":["change enablement"],"summary":"Offered Models","description":"The models a change raised here may start from.","operationId":"offered_models_api_v1_entities__entity_id__change_models_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"models":{"items":{"properties":{"active":{"type":"boolean"},"assessment":{"additionalProperties":{"type":"integer"},"type":"object"},"change_type":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"implementation_plan":{"type":"string"},"name":{"type":"string"},"notice":{"type":"string"},"rollback_plan":{"type":"string"},"service_ids":{"items":{"type":"integer"},"type":"array"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"test_plan":{"type":"string"},"updated_at":{"type":"string"},"used":{"type":"integer"}},"required":["active","assessment","change_type","created_at","description","entity_id","entity_name","id","implementation_plan","name","notice","rollback_plan","service_ids","services","test_plan","updated_at","used"],"type":"object"},"type":"array"}},"required":["models"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/risk-questions":{"get":{"tags":["risk assessment"],"summary":"List Questions","description":"Readable by anyone who may see a change: the assessment is drawn from\nit. Seeded with the defaults the first time anybody looks.","operationId":"list_questions_api_v1_admin_risk_questions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"questions":{"items":{"properties":{"answers":{"items":{"properties":{"label":{"type":"string"},"score":{"type":"integer"}},"required":["label","score"],"type":"object"},"type":"array"},"dimension":{"type":"string"},"help":{"type":"string"},"id":{"type":"integer"},"position":{"type":"integer"},"text":{"type":"string"}},"required":["answers","dimension","help","id","position","text"],"type":"object"},"type":"array"}},"required":["questions"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["risk assessment"],"summary":"Add Question","description":"Add a question to the end of the risk assessment and answer with it.\nA question needs its wording, a dimension of `risk` or `impact`, and at\nleast two answers, each with a label and a whole-number score, of which\none must score above zero. Administrators only.","operationId":"add_question_api_v1_admin_risk_questions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answers":{"items":{"properties":{"label":{"type":"string"},"score":{"type":"integer"}},"required":["label","score"],"type":"object"},"type":"array"},"dimension":{"type":"string"},"help":{"type":"string"},"id":{"type":"integer"},"position":{"type":"integer"},"text":{"type":"string"}},"required":["answers","dimension","help","id","position","text"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/risk-questions/order":{"put":{"tags":["risk assessment"],"summary":"Order Questions","description":"Put the assessment questions in the order given and answer with them\nin that order. `ids` must name every question once. Administrators\nonly.","operationId":"order_questions_api_v1_admin_risk_questions_order_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Order Questions Api V1 Admin Risk Questions Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/risk-questions/{question_id}":{"put":{"tags":["risk assessment"],"summary":"Edit Question","description":"Replace an assessment question's wording, help text, dimension and\nanswers, and answer with the question as it now stands. The same rules\napply as when adding one. Administrators only.","operationId":"edit_question_api_v1_admin_risk_questions__question_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"question_id","in":"path","required":true,"schema":{"type":"integer","title":"Question Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Question Api V1 Admin Risk Questions  Question Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["risk assessment"],"summary":"Drop Question","description":"Take a question off the assessment. Answers already given to it stay on\ntheir changes and simply stop counting.","operationId":"drop_question_api_v1_admin_risk_questions__question_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"question_id","in":"path","required":true,"schema":{"type":"integer","title":"Question Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"dropped":{"type":"boolean"}},"required":["dropped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/risk-routing":{"get":{"tags":["risk assessment"],"summary":"List Rules","description":"List the risk routing rules, each naming the approval gate that\nchange requests of its risk level and type go through. The answer also\ncarries the account's approval gates and change request workflows, from\nwhich a new rule is chosen.","operationId":"list_rules_api_v1_admin_risk_routing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"gates":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"rules":{"items":{"properties":{"change_type":{"type":"string"},"gate_id":{"type":"integer"},"gate_name":{"type":"string"},"id":{"type":"integer"},"risk":{"type":"string"},"workflow_id":{"type":"integer"}},"required":["change_type","gate_id","gate_name","id","risk","workflow_id"],"type":"object"},"type":"array"},"workflows":{"items":{"properties":{"id":{"type":"integer"},"is_default":{"type":"boolean"},"name":{"type":"string"}},"required":["id","is_default","name"],"type":"object"},"type":"array"}},"required":["gates","rules","workflows"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["risk assessment"],"summary":"Add Rule","description":"Add a routing rule: change requests of the given risk level, and of\nthe given type if one is named, go through the given approval gate. A\nnull `gate_id` lets the gated move apply on the spot, and a missing\n`workflow_id` means the default change request workflow. Answers with\nthe new rule.\n\nAdministrators only. A workflow holds one rule for each pairing of risk\nand type, and a second is refused.","operationId":"add_rule_api_v1_admin_risk_routing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__changerisk__RuleIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"change_type":{"type":"string"},"gate_id":{"type":["null","integer"]},"gate_name":{"type":["null","string"]},"id":{"type":"integer"},"risk":{"type":"string"},"workflow_id":{"type":"integer"}},"required":["change_type","gate_id","gate_name","id","risk","workflow_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/risk-routing/{rule_id}":{"delete":{"tags":["risk assessment"],"summary":"Drop Rule","description":"Delete a risk routing rule. Change requests it covered go through the\ngate of a remaining rule that matches them, or else the gate their\nworkflow names. Administrators only.","operationId":"drop_rule_api_v1_admin_risk_routing__rule_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Drop Rule Api V1 Admin Risk Routing  Rule Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/assessment":{"get":{"tags":["risk assessment"],"summary":"Read Assessment","description":"Read a change request's risk assessment: the questions, the answers\ngiven so far, the risk and impact levels they score, whether every\nquestion is answered, and who overrode the levels by hand, if anyone\ndid.","operationId":"read_assessment_api_v1_change_requests__change_id__assessment_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Assessment Api V1 Change Requests  Change Id  Assessment Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["risk assessment"],"summary":"Assess","description":"Answer the questionnaire. The levels follow the score unless somebody\nhas overridden them by hand.","operationId":"assess_api_v1_change_requests__change_id__assessment_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"complete":{"type":"boolean"},"impact":{"type":"string"},"impact_scored":{"type":"string"},"risk":{"type":"string"},"risk_scored":{"type":"string"}},"required":["complete","impact","impact_scored","risk","risk_scored"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/change-requests/{change_id}/levels":{"put":{"tags":["risk assessment"],"summary":"Set Levels","description":"Set risk and impact by hand. Where a score exists and this disagrees\nwith it, the change says who overrode it and when.","operationId":"set_levels_api_v1_change_requests__change_id__levels_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"impact":{"type":"string"},"overridden":{"type":"boolean"},"risk":{"type":"string"}},"required":["impact","overridden","risk"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/services":{"get":{"tags":["services"],"summary":"List Services","description":"The services this entity and everything beneath it answer for.\n\n`everywhere` reads the whole account instead, which is what a picker on\na change wants: a team's change touches the database the platform team\nowns, and a picker that only offered the team's own services would be a\npicker that could not say so.","operationId":"list_services_api_v1_entities__entity_id__services_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}},{"name":"everywhere","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Everywhere"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"health":{"items":{"properties":{"availability":{"type":"number"},"change_failure":{"type":"null"},"changes":{"type":"number"},"delivered":{"items":{"type":"string"},"type":"array"},"first_response_hours":{"type":"null"},"incidents":{"type":"number"},"last_day":{"type":"string"},"lead_time_hours":{"type":"null"},"major_incidents":{"type":"number"},"month":{"type":"string"},"on_time":{"type":"null"},"restore_hours":{"type":"number"},"satisfaction":{"type":"null"}},"required":["availability","change_failure","changes","delivered","first_response_hours","incidents","last_day","lead_time_hours","major_incidents","month","on_time","restore_hours","satisfaction"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"services":{"items":{"properties":{"alignment":{"properties":{"days":{"type":"integer"},"unplanned":{"type":"integer"},"untouched":{"items":{"type":"string"},"type":"array"}},"required":["days","unplanned","untouched"],"type":"object"},"archived_at":{"type":["null","string"]},"archived_by":{"type":"null"},"created_at":{"type":"string"},"criticality":{"type":"string"},"depended_on_by":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"depends_on":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"description":{"type":"string"},"discovered":{"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"escalation_policy_id":{"type":"null"},"id":{"type":"integer"},"kind":{"type":"string"},"live_changes":{"type":"integer"},"name":{"type":"string"},"owner_id":{"type":["null","integer"]},"owner_name":{"type":["null","string"]},"parent_id":{"type":"null"},"parent_name":{"type":"null"},"spent":{"properties":{"currency":{"type":"string"},"spent_cents":{"type":["null","integer"]}},"required":["currency","spent_cents"],"type":"object"},"stage":{"type":"string"},"updated_at":{"type":"string"},"weight_pct":{"type":"null"}},"required":["alignment","archived_at","archived_by","created_at","criticality","depended_on_by","depends_on","description","entity_id","entity_name","id","kind","live_changes","name","owner_id","owner_name","parent_id","parent_name","spent","stage","updated_at"],"type":"object"},"type":"array"}},"required":["health","permissions","services"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["services"],"summary":"Create Service","description":"Name a service this entity answers for: its kind, criticality, stage,\nowner and, where it is part of another service, its parent. Returns the\nservice.\n\nNeeds the `service.manage` right on the entity.","operationId":"create_service_api_v1_entities__entity_id__services_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"alignment":{"properties":{"days":{"type":"integer"},"unplanned":{"type":"integer"},"untouched":{"type":"array"}},"required":["days","unplanned","untouched"],"type":"object"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"created_at":{"type":"string"},"criticality":{"type":"string"},"depended_on_by":{"type":"array"},"depends_on":{"type":"array"},"description":{"type":"string"},"discovered":{"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"escalation_policy_id":{"type":"null"},"id":{"type":"integer"},"kind":{"type":"string"},"live_changes":{"type":"integer"},"name":{"type":"string"},"owner_id":{"type":["null","integer"]},"owner_name":{"type":["null","string"]},"parent_id":{"type":["null","integer"]},"parent_name":{"type":["null","string"]},"spent":{"properties":{"currency":{"type":"string"},"spent_cents":{"type":"null"}},"required":["currency","spent_cents"],"type":"object"},"stage":{"type":"string"},"updated_at":{"type":"string"},"weight_pct":{"type":"null"}},"required":["alignment","archived_at","archived_by","created_at","criticality","depended_on_by","depends_on","description","entity_id","entity_name","id","kind","live_changes","name","owner_id","owner_name","parent_id","parent_name","spent","stage","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/service-owners":{"get":{"tags":["services"],"summary":"List Service Owners","description":"The services a plan on this entity may belong to: the entity's own,\nretired ones left out. Names only.\n\nNeeds no right beyond seeing the entity, because whoever writes a factor\nor an initiative must be able to say which service it is for, and may not\nhold the right the services list itself asks for.","operationId":"list_service_owners_api_v1_entities__entity_id__service_owners_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"}},"required":["services"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/services/{service_id}/plan":{"get":{"tags":["services"],"summary":"Get Service Plan","description":"The plan that belongs to one service: its factors with where each\nKPI stands, the assessments taken of it, its initiatives with their\nmoney, its risks and its PI objectives.\n\nA service's plan is read with the rights held on the entity that runs\nit. Each section needs the right its own screen needs - `factor.view`,\n`assessment.view`, `initiative.view`, and `work.view` for the risks and\nthe PI objectives - and is null for a reader without it, which is not\nthe same as empty. Needs no more than seeing the entity otherwise.","operationId":"get_service_plan_api_v1_services__service_id__plan_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"assessments":{"items":{"properties":{"archived_at":{"type":"null"},"assessment_date":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["archived_at","assessment_date","id","kind","status","title"],"type":"object"},"type":["null","array"]},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factors":{"items":{"properties":{"current_source":{"type":"null"},"current_value":{"type":"null"},"factor_statement":{"type":"string"},"id":{"type":"integer"},"kpi":{"type":"null"},"objective_statement":{"type":"string"},"status":{"type":"string"},"target_value":{"type":"null"},"trend":{"type":"null"}},"required":["current_source","current_value","factor_statement","id","kpi","objective_statement","status","target_value","trend"],"type":"object"},"type":["null","array"]},"initiatives":{"items":{"properties":{"actual_cents":{"type":"integer"},"archived_at":{"type":"null"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"currency":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["actual_cents","archived_at","budget_cents","committed_cents","currency","id","name","status"],"type":"object"},"type":["null","array"]},"pi_objectives":{"type":["null","array"]},"risks":{"items":{"properties":{"id":{"type":"integer"},"rating":{"type":"string"},"score":{"type":"integer"},"status":{"type":"string"},"title":{"type":"string"}},"required":["id","rating","score","status","title"],"type":"object"},"type":["null","array"]},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"}},"required":["assessments","entity_id","entity_name","factors","initiatives","pi_objectives","risks","service"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/services/{service_id}":{"get":{"tags":["services"],"summary":"Get Service","description":"One service, with everything that touches it.\n\nThe changes against it (live first, then history), the requests the desk\nhas filed against it, and what depends on it - which is what somebody\nreads before agreeing to a window on it.","operationId":"get_service_api_v1_services__service_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"alignment":{"properties":{"days":{"type":"integer"},"unplanned":{"type":"integer"},"untouched":{"type":"array"}},"required":["days","unplanned","untouched"],"type":"object"},"archived_at":{"type":["null","string"]},"archived_by":{"type":"null"},"changes":{"items":{"properties":{"change_type":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"initiatives":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"live":{"type":"boolean"},"outcome":{"type":"null"},"planned_end":{"type":["null","string"]},"planned_start":{"type":["null","string"]},"reference":{"type":"string"},"risk":{"type":"string"},"state_category":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["change_type","entity_id","entity_name","id","initiatives","live","outcome","planned_end","planned_start","reference","risk","state_category","state_name","title"],"type":"object"},"type":"array"},"created_at":{"type":"string"},"criticality":{"type":"string"},"depended_on_by":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"depends_on":{"type":"array"},"description":{"type":"string"},"discovered":{"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"escalation_policy_id":{"type":"null"},"factors":{"items":{"properties":{"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_statement":{"type":"string"},"id":{"type":"integer"},"mark":{"properties":{"assessment_date":{"type":"string"},"assessment_id":{"type":"integer"},"letter":{"type":"string"},"quadrant":{"type":"string"},"response_count":{"type":"integer"},"title":{"type":"string"},"x":{"type":"number"},"y":{"type":"number"}},"required":["assessment_date","assessment_id","letter","quadrant","response_count","title","x","y"],"type":["null","object"]},"objective_statement":{"type":"string"},"status":{"type":"string"}},"required":["entity_id","entity_name","factor_statement","id","mark","objective_statement","status"],"type":"object"},"type":"array"},"health":{"items":{"properties":{"availability":{"type":"number"},"change_failure":{"type":"null"},"changes":{"type":"number"},"delivered":{"items":{"type":"string"},"type":"array"},"first_response_hours":{"type":"null"},"incidents":{"type":"number"},"last_day":{"type":"string"},"lead_time_hours":{"type":"null"},"major_incidents":{"type":"number"},"month":{"type":"string"},"on_time":{"type":"null"},"restore_hours":{"type":"number"},"satisfaction":{"type":"null"}},"required":["availability","change_failure","changes","delivered","first_response_hours","incidents","last_day","lead_time_hours","major_incidents","month","on_time","restore_hours","satisfaction"],"type":"object"},"type":"array"},"id":{"type":"integer"},"initiatives":{"items":{"properties":{"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"}},"required":["entity_id","entity_name","id","name","role","status"],"type":"object"},"type":"array"},"intent":{"properties":{"changes":{"type":"integer"},"days":{"type":"integer"},"unplanned":{"type":"integer"}},"required":["changes","days","unplanned"],"type":"object"},"kind":{"type":"string"},"live_changes":{"type":"integer"},"name":{"type":"string"},"owner_id":{"type":"null"},"owner_name":{"type":"null"},"parent_id":{"type":"null"},"parent_name":{"type":"null"},"permissions":{"items":{"type":"string"},"type":"array"},"planned_changes":{"items":{"properties":{"change_type":{"type":"string"},"done":{"type":"boolean"},"entity_name":{"type":"string"},"id":{"type":"integer"},"in_progress":{"type":"boolean"},"notice":{"type":"string"},"planned_end":{"type":"string"},"planned_start":{"type":"string"},"reference":{"type":"string"},"services":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"timezone":{"type":"string"},"title":{"type":"string"}},"required":["change_type","done","entity_name","id","in_progress","notice","planned_end","planned_start","reference","services","timezone","title"],"type":"object"},"type":"array"},"requests":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"priority":{"type":"string"},"reference":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["created_at","id","priority","reference","status","subject"],"type":"object"},"type":"array"},"spend":{"properties":{"initiatives":{"items":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":["null","integer"]},"committed_cents":{"type":"integer"},"currency":{"type":"string"},"forecast_cents":{"type":"integer"},"initiative_id":{"type":"integer"},"name":{"type":"string"},"remaining_cents":{"type":["null","integer"]},"role":{"type":"string"}},"required":["actual_cents","budget_cents","committed_cents","currency","forecast_cents","initiative_id","name","remaining_cents","role"],"type":"object"},"type":"array"},"some_hidden":{"type":"boolean"},"total":{"properties":{"actual_cents":{"type":["null","integer"]},"budget_cents":{"type":["null","integer"]},"committed_cents":{"type":["null","integer"]},"currency":{"type":"string"},"forecast_cents":{"type":["null","integer"]}},"required":["actual_cents","budget_cents","committed_cents","currency","forecast_cents"],"type":"object"}},"required":["initiatives","some_hidden","total"],"type":"object"},"spent":{"properties":{"currency":{"type":"string"},"spent_cents":{"type":["null","integer"]}},"required":["currency","spent_cents"],"type":"object"},"stage":{"type":"string"},"updated_at":{"type":"string"},"weight_pct":{"type":"null"}},"required":["alignment","archived_at","archived_by","changes","created_at","criticality","depended_on_by","depends_on","description","entity_id","entity_name","factors","health","id","initiatives","intent","kind","live_changes","name","owner_id","owner_name","parent_id","parent_name","permissions","planned_changes","requests","spend","spent","stage","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["services"],"summary":"Update Service","description":"Replace a service's name, description, kind, criticality, stage, owner\nand parent, and return the service. The entity that answers for it stays\nas it was.\n\nNeeds the `service.manage` right on that entity. A parent that is the\nservice itself, or a part of it, is refused.","operationId":"update_service_api_v1_services__service_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"alignment":{"properties":{"days":{"type":"integer"},"unplanned":{"type":"integer"},"untouched":{"type":"array"}},"required":["days","unplanned","untouched"],"type":"object"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"created_at":{"type":"string"},"criticality":{"type":"string"},"depended_on_by":{"type":"array"},"depends_on":{"type":"array"},"description":{"type":"string"},"discovered":{"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"escalation_policy_id":{"type":"null"},"id":{"type":"integer"},"kind":{"type":"string"},"live_changes":{"type":"integer"},"name":{"type":"string"},"owner_id":{"type":"null"},"owner_name":{"type":"null"},"parent_id":{"type":"null"},"parent_name":{"type":"null"},"spent":{"properties":{"currency":{"type":"string"},"spent_cents":{"type":["null","integer"]}},"required":["currency","spent_cents"],"type":"object"},"stage":{"type":"string"},"updated_at":{"type":"string"},"weight_pct":{"type":["null","number"]}},"required":["alignment","archived_at","archived_by","created_at","criticality","depended_on_by","depends_on","description","entity_id","entity_name","id","kind","live_changes","name","owner_id","owner_name","parent_id","parent_name","spent","stage","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/services/{service_id}/dependencies":{"put":{"tags":["services"],"summary":"Set Service Dependencies","description":"Replace the list of services this service depends on with the ids\ngiven, and return the service. An empty list clears them.\n\nNeeds the `service.manage` right on the service's entity. A service\ncannot depend on itself.","operationId":"set_service_dependencies_api_v1_services__service_id__dependencies_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependsOnIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"alignment":{"properties":{"days":{"type":"integer"},"unplanned":{"type":"integer"},"untouched":{"type":"array"}},"required":["days","unplanned","untouched"],"type":"object"},"archived_at":{"type":"null"},"archived_by":{"type":"null"},"created_at":{"type":"string"},"criticality":{"type":"string"},"depended_on_by":{"type":"array"},"depends_on":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"description":{"type":"string"},"discovered":{"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"escalation_policy_id":{"type":"null"},"id":{"type":"integer"},"kind":{"type":"string"},"live_changes":{"type":"integer"},"name":{"type":"string"},"owner_id":{"type":["null","integer"]},"owner_name":{"type":["null","string"]},"parent_id":{"type":"null"},"parent_name":{"type":"null"},"spent":{"properties":{"currency":{"type":"string"},"spent_cents":{"type":"null"}},"required":["currency","spent_cents"],"type":"object"},"stage":{"type":"string"},"updated_at":{"type":"string"},"weight_pct":{"type":"null"}},"required":["alignment","archived_at","archived_by","created_at","criticality","depended_on_by","depends_on","description","entity_id","entity_name","id","kind","live_changes","name","owner_id","owner_name","parent_id","parent_name","spent","stage","updated_at"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/services/{service_id}/archive":{"post":{"tags":["services"],"summary":"Archive Service","description":"Retire a service, or bring it back. Its history stays either way.","operationId":"archive_service_api_v1_services__service_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__cmdb__ArchiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"archived_at":{"type":"string"},"archived_by":{"type":"null"},"id":{"type":"integer"}},"required":["archived_at","archived_by","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/service-options":{"get":{"tags":["services"],"summary":"Initiative Service Options","description":"Every service on the account an initiative could name, retired ones\nleft out. Account-wide, as a change's picker is: a team's initiative\nimproves the platform another team runs.","operationId":"initiative_service_options_api_v1_initiatives__initiative_id__service_options_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Initiative Service Options Api V1 Initiatives  Initiative Id  Service Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/services":{"put":{"tags":["services"],"summary":"Set Initiative Services","description":"Replace the services an initiative names. A claim about what the\ninitiative is for, so the right to make it is the right to edit it.","operationId":"set_initiative_services_api_v1_initiatives__initiative_id__services_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiativeServicesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"services":{"items":{"properties":{"archived_at":{"type":"null"},"changes":{"type":"integer"},"criticality":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"stage":{"type":"string"},"untouched":{"type":"boolean"},"weight_pct":{"type":"null"}},"required":["archived_at","changes","criticality","entity_id","entity_name","id","kind","name","role","stage","untouched"],"type":"object"},"type":"array"}},"required":["services"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/freeze-windows":{"get":{"tags":["services"],"summary":"List Freeze Windows","description":"The freezes in force here: the account's and this entity's and its\nancestors'. Past ones too, for the year's record; the calendar asks for\na span instead.","operationId":"list_freeze_windows_api_v1_entities__entity_id__freeze_windows_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"freeze_windows":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":"null"},"entity_name":{"type":"null"},"exempt_types":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"name":{"type":"string"},"reason":{"type":"string"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["end","entity_id","entity_name","exempt_types","id","name","reason","start","timezone"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"}},"required":["freeze_windows","permissions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["services"],"summary":"Create Freeze Window","description":"Declare a freeze on this entity, or on the whole account.\n\nDeclaring one on the account needs the right at the top of the tree,\nwhich is what asking for it from the entity it is declared from checks:\nsomebody who may freeze a team may not freeze the company.","operationId":"create_freeze_window_api_v1_entities__entity_id__freeze_windows_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreezeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"end":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"exempt_types":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"name":{"type":"string"},"reason":{"type":"string"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["end","entity_id","entity_name","exempt_types","id","name","reason","start","timezone"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/freeze-windows/{freeze_id}":{"put":{"tags":["services"],"summary":"Update Freeze Window","description":"Replace a freeze window's name, reason, start, end, time zone and the\nchange types exempt from it, and return the freeze. What it freezes, an\nentity or the whole account, stays as it was declared.\n\nNeeds the `freeze.manage` right on the frozen entity, or at the top of\nthe organisation for a freeze on the whole account.","operationId":"update_freeze_window_api_v1_freeze_windows__freeze_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"freeze_id","in":"path","required":true,"schema":{"type":"integer","title":"Freeze Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreezeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"end":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"exempt_types":{"type":"array"},"id":{"type":"integer"},"name":{"type":"string"},"reason":{"type":"string"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["end","entity_id","entity_name","exempt_types","id","name","reason","start","timezone"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["services"],"summary":"Lift Freeze Window","description":"Lift a freeze. Deleted rather than archived: a freeze is a rule, not a\nrecord, and the audit trail keeps that it was declared and lifted.","operationId":"lift_freeze_window_api_v1_freeze_windows__freeze_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"freeze_id","in":"path","required":true,"schema":{"type":"integer","title":"Freeze Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"lifted":{"type":"boolean"}},"required":["lifted"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/out-of-office":{"get":{"tags":["services"],"summary":"My Absences","description":"The days this person has said they are away, past ones included.","operationId":"my_absences_api_v1_me_out_of_office_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"absences":{"items":{"properties":{"end":{"type":"string"},"id":{"type":"integer"},"mine":{"type":"boolean"},"note":{"type":"string"},"person_id":{"type":"integer"},"person_name":{"type":"string"},"start":{"type":"string"}},"required":["end","id","mine","note","person_id","person_name","start"],"type":"object"},"type":"array"}},"required":["absences"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["services"],"summary":"Record Absence","description":"Say that you are away. Your own days, which is why nothing is required\nbeyond being signed in: an organisation that needs leave approved has a\nsystem for that, and this is the calendar reading its outcome.","operationId":"record_absence_api_v1_me_out_of_office_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbsenceIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"end":{"type":"string"},"id":{"type":"integer"},"mine":{"type":"boolean"},"note":{"type":"string"},"person_id":{"type":"integer"},"person_name":{"type":"string"},"start":{"type":"string"}},"required":["end","id","mine","note","person_id","person_name","start"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/me/out-of-office/{absence_id}":{"delete":{"tags":["services"],"summary":"Withdraw Absence","description":"Take an absence off the calendar. Yours, or anybody's if you administer\nthe account - somebody has to be able to tidy up after a person who left.","operationId":"withdraw_absence_api_v1_me_out_of_office__absence_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"absence_id","in":"path","required":true,"schema":{"type":"integer","title":"Absence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"withdrawn":{"type":"boolean"}},"required":["withdrawn"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/days-off":{"post":{"tags":["services"],"summary":"Declare Day Off","description":"Declare a day off on this entity, or on the whole account. The freeze\nright, checked where the day off lands: somebody who may give a team its\nlocal holiday may not shut the company.","operationId":"declare_day_off_api_v1_entities__entity_id__days_off_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DayOffIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"end":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"id":{"type":"integer"},"name":{"type":"string"},"note":{"type":"string"},"start":{"type":"string"}},"required":["end","entity_id","entity_name","id","name","note","start"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/days-off/{day_off_id}":{"delete":{"tags":["services"],"summary":"Remove Day Off","description":"Take a day off back. Deleted rather than archived, as a freeze is: it\nis a rule, not a record, and the audit trail keeps both ends.","operationId":"remove_day_off_api_v1_days_off__day_off_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"day_off_id","in":"path","required":true,"schema":{"type":"integer","title":"Day Off Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"removed":{"type":"boolean"}},"required":["removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/change-calendar":{"get":{"tags":["services"],"summary":"Change Calendar","description":"The changes planned here and beneath here across a span, with the\nfreezes behind them and each change's collisions.\n\nThe span defaults to this week and the five after it. Changes with no\nplanned window are not on a calendar and are left to the list.\n\n`away` is who will not be there: the absences of everybody with a\nmembership here, above here or beneath here, and the reader's own\nwhatever they hold - a person reading a calendar they are not a member\nof still wants their own leave on it. `days_off` is when nobody is,\nscoped as the freezes are; `cadence` is the sprints of the boards here\nand beneath, and the planning intervals here, above and beneath.","operationId":"change_calendar_api_v1_entities__entity_id__change_calendar_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"away":{"items":{"properties":{"end":{"type":"string"},"id":{"type":"integer"},"mine":{"type":"boolean"},"note":{"type":"string"},"person_id":{"type":"integer"},"person_name":{"type":"string"},"start":{"type":"string"}},"required":["end","id","mine","note","person_id","person_name","start"],"type":"object"},"type":"array"},"cadence":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"start":{"type":"string"},"state":{"type":"string"}},"required":["end","entity_id","entity_name","id","kind","name","start","state"],"type":"object"},"type":"array"},"changes":{"items":{"properties":{"change_type":{"type":"string"},"collisions":{"items":{"properties":{"change_id":{"type":"integer"},"change_type":{"type":"string"},"entity_id":{"type":"integer"},"planned_end":{"type":"string"},"planned_start":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"direct":{"type":"boolean"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","direct","id","kind","name","stage"],"type":"object"},"type":"array"},"title":{"type":"string"}},"required":["change_id","change_type","entity_id","planned_end","planned_start","reference","risk","services","title"],"type":"object"},"type":"array"},"days_off":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"note":{"type":"string"},"start":{"type":"string"}},"required":["end","entity_id","entity_name","id","name","note","start"],"type":"object"},"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"freezes":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"exempt_types":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"name":{"type":"string"},"reason":{"type":"string"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["end","entity_id","entity_name","exempt_types","id","name","reason","start","timezone"],"type":"object"},"type":"array"},"id":{"type":"integer"},"impact":{"type":"string"},"live":{"type":"boolean"},"planned_end":{"type":"string"},"planned_start":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"state_category":{"type":"string"},"state_name":{"type":"string"},"timezone":{"type":"string"},"title":{"type":"string"}},"required":["change_type","collisions","days_off","entity_id","entity_name","freezes","id","impact","live","planned_end","planned_start","reference","risk","services","state_category","state_name","timezone","title"],"type":"object"},"type":"array"},"days_off":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":["null","integer"]},"entity_name":{"type":["null","string"]},"id":{"type":"integer"},"name":{"type":"string"},"note":{"type":"string"},"start":{"type":"string"}},"required":["end","entity_id","entity_name","id","name","note","start"],"type":"object"},"type":"array"},"end":{"type":"string"},"freezes":{"items":{"properties":{"end":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"exempt_types":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"name":{"type":"string"},"reason":{"type":"string"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["end","entity_id","entity_name","exempt_types","id","name","reason","start","timezone"],"type":"object"},"type":"array"},"permissions":{"items":{"type":"string"},"type":"array"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["away","cadence","changes","days_off","end","freezes","permissions","start","timezone"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/comments":{"get":{"tags":["collaboration"],"summary":"List Comments","description":"The discussion on a work item: each comment, oldest first, with its\nreplies beneath it. Answers too with the entity to search when offering\npeople to mention.\n\nAnybody who may view the work item.","operationId":"list_comments_api_v1_work_items__work_item_id__comments_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"comments":{"items":{"properties":{"author_id":{"type":["null","integer"]},"author_name":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"deleted":{"type":"boolean"},"edited_at":{"type":["null","string"]},"id":{"type":"integer"},"parent_comment_id":{"type":"null"},"replies":{"items":{"properties":{"author_id":{"type":"integer"},"author_name":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"deleted":{"type":"boolean"},"edited_at":{"type":"null"},"id":{"type":"integer"},"parent_comment_id":{"type":"integer"},"replies":{"type":"array"}},"required":["author_id","author_name","body","created_at","deleted","edited_at","id","parent_comment_id","replies"],"type":"object"},"type":"array"}},"required":["author_id","author_name","body","created_at","deleted","edited_at","id","parent_comment_id","replies"],"type":"object"},"type":"array"},"mention_entity_id":{"type":"integer"}},"required":["comments","mention_entity_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collaboration"],"summary":"Add Comment","description":"Comment on a work item, or answer a comment by naming it as the\nparent. The author starts watching the item, its watchers are notified,\nand so is each person the body mentions. Answers with the new comment's\nid and the id of the thread it joined.\n\nAnybody who may view the work item. Refused on a checklist level, whose\ndiscussion belongs on the item above, and when the body mentions somebody\nwho cannot view the item.","operationId":"add_comment_api_v1_work_items__work_item_id__comments_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"parent_comment_id":{"type":["null","integer"]}},"required":["id","parent_comment_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/comments/{comment_id}":{"put":{"tags":["collaboration"],"summary":"Edit Comment","description":"Reword your own comment.\n\nOnly the author, and no exception for an administrator: an edit here is\nsomebody's own words, and a comment thread where a third party can rewrite\nwhat you said is not a record of a conversation.","operationId":"edit_comment_api_v1_comments__comment_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collaboration"],"summary":"Delete Comment","description":"Take a comment back.\n\nIts author, or an account administrator - unlike editing, which is the\nauthor's alone. Rewriting somebody's words puts words in their mouth;\nremoving them does not, and somebody has to be able to take down a password\nthat was pasted into a thread.\n\nA comment nobody has answered goes. One with replies is emptied and marked\ninstead, because the answers underneath it are other people's words and a\nthread that loses its question stops making sense.","operationId":"delete_comment_api_v1_comments__comment_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"removed":{"type":"boolean"}},"required":["id","removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/attachments":{"get":{"tags":["collaboration"],"summary":"List Attachments","description":"The files attached to a work item, oldest first: each one's name,\ncontent type, size, uploader and upload time. The contents are fetched\none file at a time from `GET /attachments/{attachment_id}`.\n\nAnybody who may view the work item.","operationId":"list_attachments_api_v1_work_items__work_item_id__attachments_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Attachments Api V1 Work Items  Work Item Id  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collaboration"],"summary":"Add Attachment","description":"Hang a file on an item.\n\nThe size is taken from the bytes actually read rather than from the\n`content-length` the client offered, because the cap is the point and a\nnumber the uploader chose is not evidence of anything.","operationId":"add_attachment_api_v1_work_items__work_item_id__attachments_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_attachment_api_v1_work_items__work_item_id__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"content_type":{"type":"string"},"created_at":{"type":"string"},"filename":{"type":"string"},"id":{"type":"integer"},"size_bytes":{"type":"integer"},"uploaded_by":{"type":"string"},"uploaded_by_id":{"type":"integer"},"work_item_id":{"type":"integer"}},"required":["content_type","created_at","filename","id","size_bytes","uploaded_by","uploaded_by_id","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/attachments/{attachment_id}":{"get":{"tags":["collaboration"],"summary":"Download Attachment","description":"The bytes, for whoever may read the item they hang on.\n\nServed as a download with a fixed content type rather than as whatever the\nuploader called it. A tenant can upload an HTML file, and handing it back as\n`text/html` on the app's own origin would let it run as the app - so nothing\nhere is ever rendered in place: the browser is told to save it.","operationId":"download_attachment_api_v1_attachments__attachment_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/octet-stream":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collaboration"],"summary":"Remove Attachment","description":"Take a file off an item.\n\nGone outright rather than emptied and marked, which is what happens to an\nanswered comment. The reason for that treatment is that other people's\nreplies stop making sense without the question; a file has nothing hanging\noff it, and a tombstone would only be a row nobody can open.","operationId":"remove_attachment_api_v1_attachments__attachment_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"removed":{"type":"boolean"}},"required":["id","removed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/uploads":{"post":{"tags":["collaboration"],"summary":"Upload Inline","description":"Upload a file to be shown or linked in some text written on this entity.\n\nAnybody who may write words here may paste a picture into them: editing\npages, editing work, or commenting, which only takes the right to read.","operationId":"upload_inline_api_v1_entities__entity_id__uploads_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_inline_api_v1_entities__entity_id__uploads_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"content_type":{"type":"string"},"created_at":{"type":"string"},"filename":{"type":"string"},"id":{"type":"integer"},"image":{"type":"boolean"},"size_bytes":{"type":"integer"},"src":{"type":"string"},"uploaded_by":{"type":"string"},"uploaded_by_id":{"type":"integer"},"url":{"type":"string"},"work_item_id":{"type":"null"}},"required":["content_type","created_at","filename","id","image","size_bytes","src","uploaded_by","uploaded_by_id","url","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/attachments/{attachment_id}/image":{"get":{"tags":["collaboration"],"summary":"Inline Image","description":"A picture, shown in place.\n\nOnly a picture: the bytes are checked again on the way out, and anything\nthat is not one is refused rather than served with a guessed type. A\ntenant can upload an HTML file and call it a picture; served inline on the\napp's own origin it would run as the app.","operationId":"inline_image_api_v1_attachments__attachment_id__image_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{work_item_id}/watch":{"get":{"tags":["collaboration"],"summary":"Watch State","description":"Whether the caller is watching a work item, with the names of\neverybody watching it and how many they are.\n\nAnybody who may view the work item.","operationId":"watch_state_api_v1_work_items__work_item_id__watch_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"}},"required":["count","watchers","watching"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["collaboration"],"summary":"Set Watch","description":"Follow this item, or stop.\n\nStopping writes a row rather than deleting one. A deleted row is\nindistinguishable from never having watched, and the next automatic rule -\na comment, an assignment - would put it straight back, which would be this\nproduct ignoring somebody who had told it something.","operationId":"set_watch_api_v1_work_items__work_item_id__watch_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"watchers":{"items":{"type":"string"},"type":"array"},"watching":{"type":"boolean"}},"required":["count","watchers","watching"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/preferences":{"get":{"tags":["collaboration"],"summary":"Get Preferences","description":"What this person has asked to hear about, and every kind there is.","operationId":"get_preferences_api_v1_notifications_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"all_kinds":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"assistants":{"items":{"type":"string"},"type":"array"},"by_email":{"type":"boolean"},"by_push":{"type":"boolean"},"cadence":{"type":"string"},"cadences":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"chat_kind":{"type":"string"},"chat_kinds":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"chat_url_set":{"type":"boolean"},"digest_hour":{"type":"integer"},"kinds":{"type":["null","array"]},"letter_locale":{"type":"string"},"letter_locales":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"preferred_assistant":{"type":"null"},"timezone":{"type":"string"}},"required":["all_kinds","assistants","by_email","by_push","cadence","cadences","chat_kind","chat_kinds","chat_url_set","digest_hour","kinds","letter_locale","letter_locales","preferred_assistant","timezone"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"put":{"tags":["collaboration"],"summary":"Set Preferences","description":"Replace the caller's notification preferences: which kinds to hear\nabout, by email, push or a chat webhook, at once or in a daily digest,\nin which time zone and language, and which AI coding assistant the\nlauncher opens. Answers with the preferences as saved, in the shape\n`GET /notifications/preferences` gives.\n\nAn omitted `chat_url` or `preferred_assistant` keeps the stored value,\nand an empty `chat_kind` clears the stored webhook address. An unknown\nkind is dropped; an unknown chat tool, cadence, digest hour, language or\nassistant is refused.","operationId":"set_preferences_api_v1_notifications_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"all_kinds":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"assistants":{"items":{"type":"string"},"type":"array"},"by_email":{"type":"boolean"},"by_push":{"type":"boolean"},"cadence":{"type":"string"},"cadences":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"chat_kind":{"type":"string"},"chat_kinds":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"chat_url_set":{"type":"boolean"},"digest_hour":{"type":"integer"},"kinds":{"items":{"type":"string"},"type":["null","array"]},"letter_locale":{"type":"string"},"letter_locales":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"preferred_assistant":{"type":["null","string"]},"timezone":{"type":"string"}},"required":["all_kinds","assistants","by_email","by_push","cadence","cadences","chat_kind","chat_kinds","chat_url_set","digest_hour","kinds","letter_locale","letter_locales","preferred_assistant","timezone"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/notifications":{"get":{"tags":["collaboration"],"summary":"List Notifications","description":"The caller's own notifications, newest first and thirty unless\n`limit` says otherwise, with a count of all that are unread. Each names\nits kind, its summary and the work item, page, comment, survey or\nrequest it concerns. Notifications that belong to a module the account\nhas switched off are left out.","operationId":"list_notifications_api_v1_notifications_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"notifications":{"items":{"properties":{"actor_name":{"type":"string"},"assessment_id":{"type":["null","integer"]},"comment_id":{"type":["null","integer"]},"created_at":{"type":"string"},"document_id":{"type":["null","integer"]},"entity_id":{"type":["null","integer"]},"excerpt":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"read_at":{"type":["null","string"]},"request_id":{"type":["null","integer"]},"summary":{"type":"string"},"work_item_id":{"type":["null","integer"]}},"required":["actor_name","assessment_id","comment_id","created_at","document_id","entity_id","excerpt","id","kind","read_at","request_id","summary","work_item_id"],"type":"object"},"type":"array"},"unread":{"type":"integer"}},"required":["notifications","unread"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/read":{"post":{"tags":["collaboration"],"summary":"Mark Read","description":"Mark one of the caller's own notifications as read. Answers with its\nid. A notification already read keeps the time it was first read, and\none addressed to somebody else is not found.","operationId":"mark_read_api_v1_notifications__notification_id__read_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/read":{"post":{"tags":["collaboration"],"summary":"Mark All Read","description":"Mark every unread notification addressed to the caller as read.\nAnswers with how many were marked.","operationId":"mark_all_read_api_v1_notifications_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mark All Read Api V1 Notifications Read Post"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/work-items/{work_item_id}/changelog":{"get":{"tags":["collaboration"],"summary":"List Changes","description":"What has been changed on this item, and on everything beneath it.\n\nRolled up rather than read per item, because a change to a sub-task is a\nchange to the story it divides, and the story is where somebody looks.\nEach entry says which item it was written on, so a rolled-up line is not\nmistaken for one about the item itself. Newest first: a log is read from\nthe latest change back.","operationId":"list_changes_api_v1_work_items__work_item_id__changelog_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entries":{"items":{"properties":{"assisted_by":{"type":["null","string"]},"author_id":{"type":"integer"},"author_name":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"edited_at":{"type":["null","string"]},"id":{"type":"integer"},"item_level":{"type":"string"},"item_reference":{"type":"string"},"item_title":{"type":"string"},"own":{"type":"boolean"},"work_item_id":{"type":"integer"}},"required":["assisted_by","author_id","author_name","body","created_at","edited_at","id","item_level","item_reference","item_title","own","work_item_id"],"type":"object"},"type":"array"},"is_admin":{"type":"boolean"},"may_log":{"type":"boolean"},"me":{"type":"integer"},"started":{"type":"boolean"}},"required":["entries","is_admin","may_log","me","started"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collaboration"],"summary":"Log Change","description":"Say what was changed.\n\nAnybody who may edit the work, on any rung - a sub-task included, since a\nchange is most often made on the line rather than on the story. The people\nfollowing the item hear, and so do the people following the items above\nit, because that is where the entry will be read.","operationId":"log_change_api_v1_work_items__work_item_id__changelog_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/changelog/assisted":{"post":{"tags":["collaboration"],"summary":"Log Assisted","description":"An exchange with an AI coding assistant, logged as the person's own line.\n\nSent by a hook the assistant runs when it finishes a turn, with a personal\naccess token: the entry is the token owner's, marked with the tool's name,\nand it obeys the same rule a person does - nothing is logged on an item\nnobody has started. The item is named by its reference, which is all a\nhook has: the branch it is on, or the key typed into the prompt.","operationId":"log_assisted_api_v1_changelog_assisted_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistedIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"},"work_item_id":{"type":"integer"}},"required":["id","reference","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/changelog/move":{"post":{"tags":["collaboration"],"summary":"Move Changes","description":"Put lines that were logged on the wrong item onto the right one.\n\nIt happens: a terminal is left pointed at yesterday's item, and today's\nexchanges land on its changelog. The lines are still true, and still the\nperson's; only the address is wrong. So they move whole - words, time,\nauthor, the tool that helped - and the item they were meant for reads as\nif they had been written there.\n\nThe rules are the ones that already hold. An entry is its author's or an\nadministrator's to move, as it is to reword or remove. The item it goes\nto has to be one the person may edit, and one the work has started on -\nthe same gate a new line meets - which is what \"in progress or later\"\nmeans here, and it includes an item that is done, since this is often\ntidying up afterwards.","operationId":"move_changes_api_v1_changelog_move_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__collab__MoveIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"moved":{"type":"integer"},"to_reference":{"type":"string"},"to_work_item_id":{"type":"integer"}},"required":["moved","to_reference","to_work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/changelog/{entry_id}":{"put":{"tags":["collaboration"],"summary":"Edit Change","description":"Reword an entry. The author, or an administrator: a log is a record,\nand a record with a wrong line in it is worse than one somebody fixed.","operationId":"edit_change_api_v1_changelog__entry_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collaboration"],"summary":"Remove Change","description":"Take an entry out. Gone outright: nothing hangs off it.","operationId":"remove_change_api_v1_changelog__entry_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/environments":{"get":{"tags":["deployments"],"summary":"List Environments","description":"The list, in the order work flows along it.\n\nReadable by anybody signed in, because every screen that says how far\nsomething has got needs the vocabulary to say it in.","operationId":"list_environments_api_v1_environments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"environments":{"items":{"properties":{"expects_authorisation":{"type":"boolean"},"gated":{"type":"boolean"},"id":{"type":"integer"},"is_production":{"type":"boolean"},"key":{"type":"string"},"name":{"type":"string"},"rank":{"type":"integer"}},"required":["expects_authorisation","gated","id","is_production","key","name","rank"],"type":"object"},"type":"array"}},"required":["environments"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["deployments"],"summary":"Create Environment","description":"Add an environment work is deployed to: a name, a rank in the order\nwork flows, whether it is production, and whether an arrival there\nexpects an authorised change or is gated on one. Returns the environment\nwith its key, which is what a deployment webhook matches on.\n\nAdministrators only. A key another environment holds is refused, and so\nis a gate where the change workflow asks for no approval.","operationId":"create_environment_api_v1_environments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"expects_authorisation":{"type":"boolean"},"gated":{"type":"boolean"},"id":{"type":"integer"},"is_production":{"type":"boolean"},"key":{"type":"string"},"name":{"type":"string"},"rank":{"type":"integer"}},"required":["expects_authorisation","gated","id","is_production","key","name","rank"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/environments/{environment_id}":{"put":{"tags":["deployments"],"summary":"Update Environment","description":"Replace an environment's name, rank and whether it is production, and\nreturn the environment. A blank name or key keeps the one it has, and\n`expects_authorisation` and `gated` change only when sent.\n\nAdministrators only.","operationId":"update_environment_api_v1_environments__environment_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"integer","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"expects_authorisation":{"type":"boolean"},"gated":{"type":"boolean"},"id":{"type":"integer"},"is_production":{"type":"boolean"},"key":{"type":"string"},"name":{"type":"string"},"rank":{"type":"integer"}},"required":["expects_authorisation","gated","id","is_production","key","name","rank"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deployments"],"summary":"Remove Environment","description":"Only one nothing ever reached.\n\nA deployment is a record of something that happened, and removing the\nplace it happened would leave rows pointing at nothing - so an environment\nwith history is refused rather than cascaded. Renaming it is what somebody\nwho stopped using it actually wants, and that is allowed.","operationId":"remove_environment_api_v1_environments__environment_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"integer","title":"Environment Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/deployments":{"get":{"tags":["deployments"],"summary":"List Deployments","description":"Recent deployments, and what each carried that belongs to this entity.\n\nA deployment is account-wide - a pipeline does not know about entities -\nso what is narrowed here is the work shown against it, not the list. A\nrelease that carried nothing of this team's is still shown, because \"we\nshipped four times this week and none of it was ours\" is a real answer.","operationId":"list_deployments_api_v1_entities__entity_id__deployments_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Environment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deployments":{"items":{"properties":{"actor":{"type":"string"},"description":{"type":"string"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"finished_at":{"type":"string"},"id":{"type":"integer"},"items":{"items":{"properties":{"basis":{"type":"string"},"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["basis","id","reference","title"],"type":"object"},"type":"array"},"provenance":{"properties":{"change_requests":{"type":"array"},"item_ids":{"items":{"type":"integer"},"type":"array"},"uncovered":{"type":"array"},"uncovered_count":{"type":"integer"},"versions":{"type":"array"}},"required":["change_requests","item_ids","uncovered","uncovered_count","versions"],"type":"object"},"provider":{"type":"string"},"ref":{"type":"string"},"sha":{"type":"string"},"started_at":{"type":"string"},"state":{"type":"string"},"url":{"type":"string"}},"required":["actor","description","environment","environment_id","finished_at","id","items","provenance","provider","ref","sha","started_at","state","url"],"type":"object"},"type":"array"},"environments":{"items":{"properties":{"expects_authorisation":{"type":"boolean"},"gated":{"type":"boolean"},"id":{"type":"integer"},"is_production":{"type":"boolean"},"key":{"type":"string"},"name":{"type":"string"},"rank":{"type":"integer"}},"required":["expects_authorisation","gated","id","is_production","key","name","rank"],"type":"object"},"type":"array"}},"required":["deployments","environments"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/work-items/{item_id}/deployments":{"get":{"tags":["deployments"],"summary":"Item Deployments","description":"Where this one piece of work has got to, and when it first got there.\n\nThe bar the gap checklist sets, answered on the item itself.","operationId":"item_deployments_api_v1_work_items__item_id__deployments_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"environments":{"items":{"properties":{"expects_authorisation":{"type":"boolean"},"gated":{"type":"boolean"},"id":{"type":"integer"},"is_production":{"type":"boolean"},"key":{"type":"string"},"name":{"type":"string"},"rank":{"type":"integer"}},"required":["expects_authorisation","gated","id","is_production","key","name","rank"],"type":"object"},"type":"array"},"furthest":{"properties":{"at":{"type":"string"},"authorised":{"type":"null"},"basis":{"type":"string"},"carried_in":{"type":"null"},"change_reference":{"type":"null"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","authorised","basis","carried_in","change_reference","deployment_id","environment","environment_id","is_production","rank","ref","sha","url"],"type":["null","object"]},"reached":{"items":{"properties":{"at":{"type":"string"},"authorised":{"type":"null"},"basis":{"type":"string"},"carried_in":{"type":"null"},"change_reference":{"type":"null"},"deployment_id":{"type":"integer"},"environment":{"type":"string"},"environment_id":{"type":"integer"},"is_production":{"type":"boolean"},"rank":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"url":{"type":"string"}},"required":["at","authorised","basis","carried_in","change_reference","deployment_id","environment","environment_id","is_production","rank","ref","sha","url"],"type":"object"},"type":"array"}},"required":["environments","furthest","reached"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deployments/{deployment_id}":{"get":{"tags":["deployments"],"summary":"Read Deployment","description":"One deployment and everything it carried, across every entity.","operationId":"read_deployment_api_v1_deployments__deployment_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"actor":{"type":"string"},"arrived":{"type":"boolean"},"change_requests":{"type":"array"},"description":{"type":"string"},"environment":{"type":"string"},"finished_at":{"type":"string"},"id":{"type":"integer"},"item_ids":{"items":{"type":"integer"},"type":"array"},"items":{"items":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["id","reference","title"],"type":"object"},"type":"array"},"items_elsewhere":{"type":"integer"},"ref":{"type":"string"},"sha":{"type":"string"},"started_at":{"type":"string"},"state":{"type":"string"},"uncovered":{"type":"array"},"uncovered_count":{"type":"integer"},"url":{"type":"string"},"versions":{"type":"array"}},"required":["actor","arrived","change_requests","description","environment","finished_at","id","item_ids","items","items_elsewhere","ref","sha","started_at","state","uncovered","uncovered_count","url","versions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/how-to":{"get":{"tags":["how-to"],"summary":"Available","description":"Which of the how-to videos can be played here, by number, and whether\nthe user guide is here to open.","operationId":"available_api_v1_how_to_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"available":{"items":{"type":"integer"},"type":"array"},"guide":{"type":"boolean"},"pitch":{"type":"boolean"},"walkthrough":{"type":"boolean"},"website":{"type":["null","string"]}},"required":["available","guide","pitch","walkthrough","website"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/how-to/{n}.mp4":{"get":{"tags":["how-to"],"summary":"Video","description":"One recording, served with byte ranges so a player can start at once\nand seek without downloading what comes before.\n\nThe ranges are answered here rather than by Starlette's FileResponse,\nwhich never finishes the open-ended `bytes=0-` that every video player\nopens with - the player waits on it forever and the video never starts.\nOne range per request, which is all a player asks for.","operationId":"video_api_v1_how_to__n__mp4_get","parameters":[{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"video/mp4":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"206":{"description":"Successful Response","content":{"video/mp4":{}},"x-dillic-recorded":true}}}},"/api/v1/guide.pdf":{"get":{"tags":["how-to"],"summary":"User Guide","description":"The user guide, as a PDF to read in the browser or save.","operationId":"user_guide_api_v1_guide_pdf_get","responses":{"200":{"description":"Successful Response","content":{"application/pdf":{}},"x-dillic-recorded":true}}}},"/api/v1/walkthrough.mp4":{"get":{"tags":["how-to"],"summary":"Walkthrough","description":"The walkthrough, served the way the how-tos are.","operationId":"walkthrough_api_v1_walkthrough_mp4_get","parameters":[{"name":"range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"video/mp4":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"206":{"description":"Successful Response","content":{"video/mp4":{}},"x-dillic-recorded":true}}}},"/api/v1/pitch.mp4":{"get":{"tags":["how-to"],"summary":"Pitch","description":"The one-minute pitch, served the way the walkthrough is.","operationId":"pitch_api_v1_pitch_mp4_get","parameters":[{"name":"range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"206":{"description":"Successful Response","content":{"video/mp4":{}},"x-dillic-recorded":true}}}},"/api/v1/me/devices":{"get":{"tags":["devices"],"summary":"List Devices","description":"List the phones the caller has registered for push notifications,\noldest first: each one's platform, name, and when it was registered and\nlast seen. Never the push token.","operationId":"list_devices_api_v1_me_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"devices":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"last_seen_at":{"type":"string"},"name":{"type":"string"},"platform":{"type":"string"}},"required":["created_at","id","last_seen_at","name","platform"],"type":"object"},"type":"array"}},"required":["devices"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["devices"],"summary":"Register Device","description":"A phone asking to be told. Repeatable: the app calls this on every\nlaunch, and the same token comes back as the same row.","operationId":"register_device_api_v1_me_devices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"last_seen_at":{"type":"string"},"name":{"type":"string"},"platform":{"type":"string"}},"required":["created_at","id","last_seen_at","name","platform"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/me/devices/{device_id}":{"delete":{"tags":["devices"],"summary":"Forget Device","description":"Stop telling this phone. Somebody else's is absent rather than\nforbidden, the way every other row here is.","operationId":"forget_device_api_v1_me_devices__device_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"integer","title":"Device Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations":{"get":{"tags":["integrations"],"summary":"List Integrations","description":"List every integration DilliC offers, version control and trackers,\nwith how the account has set each up: whether it is enabled, its\nrepository and address, and what it may do. Says whether a secret and a\ntoken are held, and returns neither.","operationId":"list_integrations_api_v1_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Integrations Api V1 Integrations Get"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/integrations/{provider}":{"put":{"tags":["integrations"],"summary":"Configure Integration","description":"Enable or disable one integration and set its token, address,\nrepository and switches. A field left out keeps its value; an empty\ntoken clears the one held.\n\nAdministrators only. The answer carries the webhook secret only when one\nis first made or `rotate_secret` is true, and it is shown that once.","operationId":"configure_integration_api_v1_integrations__provider__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"enabled":{"type":"boolean"},"provider":{"type":"string"},"reference_prefix":{"type":"string"},"secret":{"type":["null","string"]}},"required":["enabled","provider","reference_prefix","secret"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/{account_id}/{provider}/webhook":{"post":{"tags":["integrations"],"summary":"Receive Webhook","description":"Attach commits and pull requests to the work items they cite.\n\nUnauthenticated by design - the signature is the authentication. An account\nwith no configured secret rejects everything.","operationId":"receive_webhook_api_v1_integrations__account_id___provider__webhook_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"candidates":{"type":"integer"},"comments_posted":{"type":"integer"},"deployment":{"properties":{"environment":{"type":"string"},"id":{"type":"integer"},"items_carried":{"type":"integer"},"state":{"type":"string"},"unauthorised":{"type":"integer"}},"required":["environment","id","items_carried","state","unauthorised"],"type":"object"},"event":{"type":"string"},"items_moved":{"type":"integer"},"links_created":{"type":"integer"},"unmatched_references":{"items":{"type":"string"},"type":"array"}},"required":["candidates","comments_posted","event","items_moved","links_created","unmatched_references"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/{account_id}/{provider}/deployment-check":{"post":{"tags":["integrations"],"summary":"Check Deployment","description":"What a deployment would carry, and whether anybody authorised it.\n\nThe question a pipeline asks before it deploys. It takes the same body a CI\ndeployment sends, so a script can post its real payload to both without\nediting it, and `status` is accepted and ignored - the question is always\n\"if this arrived, what would be in it\".\n\n**This answers; it does not permit.** Nothing here can refuse a deployment\nand nothing tries: DilliC learns about deployments from a webhook, after\nthe fact, and is not in the path. What a pipeline does with `authorised:\nfalse` is the pipeline's decision, which is the only place that decision\ncan honestly live.\n\n**A gated environment makes the answer binding for a pipeline that\nhonours it.** Where an administrator has gated the environment and the\ndeployment would carry work no authorised change covers, the answer says\n`held: true` and comes back as 409 rather than 200, so a script that\nstops on a failed request stops without reading the body. The refusal is\nwritten to the audit trail as `deployment.held`. A pipeline that does not\nask, or ignores the answer, still gets through, and the webhook then\nrecords the arrival as `deployment.bypassed`.\n\n**It is its own route rather than a flag on the webhook.** A mistyped flag\non the recording endpoint would silently swallow a real deployment; a\ndeployment is upserted on the sender's own key, so a dry run sharing that\nkey would collide with the real delivery on retry; and a 200 from the\nwebhook means \"recorded\", which it would stop meaning.\n\n**It writes nothing about the deployment, and two things make that true\nrather than intended.** The deployment it reasons about is never added to\nthe session, so nothing can flush it. And the environment is looked up\nrather than resolved, because `environment_for` creates a row for a name\nit does not recognise - right for a webhook, and wrong here, where a typo\nin a pipeline would permanently add \"prodcution\" to somebody's environment\nlist. The one thing it records is a refusal, after the dry run has been\nrolled back, because a pipeline that stopped is otherwise invisible from\nhere and the first question afterwards is when and why.","operationId":"check_deployment_api_v1_integrations__account_id___provider__deployment_check_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"asked":{"type":"boolean"},"authorised":{"type":"boolean"},"change_requests":{"type":"array"},"environment":{"type":"string"},"expects_authorisation":{"type":"boolean"},"gated":{"type":"boolean"},"held":{"type":"boolean"},"is_production":{"type":"boolean"},"items":{"items":{"properties":{"basis":{"type":"string"},"entity":{"type":"string"},"reference":{"type":"string"}},"required":["basis","entity","reference"],"type":"object"},"type":"array"},"known_environment":{"type":"boolean"},"unauthorised":{"items":{"properties":{"basis":{"type":"string"},"change_reference":{"type":"string"},"entity":{"type":"string"},"id":{"type":"integer"},"reason":{"type":"string"},"reference":{"type":"string"}},"required":["basis","change_reference","entity","id","reason","reference"],"type":"object"},"type":"array"},"unauthorised_count":{"type":"integer"},"versions":{"type":"array"},"would_carry":{"type":"integer"}},"required":["asked","authorised","change_requests","environment","expects_authorisation","gated","held","is_production","items","known_environment","unauthorised","unauthorised_count","versions","would_carry"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/work-items/{work_item_id}/branch":{"post":{"tags":["integrations"],"summary":"Create Branch","description":"A branch named for the item, made on the repository from its default\nbranch, and tied to the item as a link. Made once: asking again for a\nbranch that exists is answered with the link, not a second branch.","operationId":"create_branch_api_v1_integrations_work_items__work_item_id__branch_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"made":{"type":"boolean"},"name":{"type":"string"},"provider":{"type":"string"},"url":{"type":"string"}},"required":["made","name","provider","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/links/{work_item_id}":{"get":{"tags":["integrations"],"summary":"Links For Item","description":"List what outside systems hold against one work item, such as the\ncommits and pull requests that cite it: each link's provider, kind, key,\ntitle, address and author.\n\nAnybody who may view the work item.","operationId":"links_for_item_api_v1_integrations_links__work_item_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Links For Item Api V1 Integrations Links  Work Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/export/{entity_id}":{"get":{"tags":["integrations"],"summary":"Export Work Items","description":"Everything on this entity's board, in one tracker's column names - or in\nDilliC's own, which is the one that leaves nothing behind in translation.","operationId":"export_work_items_api_v1_integrations_export__entity_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"provider","in":"query","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Fmt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"rows":{"items":{"properties":{"Assignee":{"type":"string"},"Channel":{"type":"string"},"Created By":{"type":"string"},"Creator":{"type":"string"},"Description":{"type":"string"},"Details":{"type":"string"},"Due Date":{"type":"string"},"Due date":{"type":"string"},"Epic Link":{"type":"string"},"Estimate":{"type":"string"},"Fix Version/s":{"type":"string"},"Group":{"type":"string"},"ID":{"type":"string"},"Issue Type":{"type":"string"},"Issue key":{"type":"string"},"Item ID":{"type":"string"},"Labels":{"type":"string"},"Name":{"type":"string"},"Notes":{"type":"string"},"Original Estimate":{"type":"string"},"Owner":{"type":"string"},"Parent":{"type":"string"},"Parent Item":{"type":"string"},"Parent issue":{"type":"string"},"Person":{"type":"string"},"Priority":{"type":"string"},"Project":{"type":"string"},"Remaining Estimate":{"type":"string"},"Reporter":{"type":"string"},"Start Date":{"type":"string"},"Start date":{"type":"string"},"Started":{"type":"string"},"Status":{"type":"string"},"Story Points":{"type":"string"},"Summary":{"type":"string"},"Time Spent":{"type":"string"},"Time Tracking":{"type":"string"},"Title":{"type":"string"},"Type":{"type":"string"},"acceptance_criteria":{"type":"string"},"assignee":{"type":"string"},"blocked_reason":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"due_date":{"type":"string"},"estimate_points":{"type":"string"},"estimate_size":{"type":"string"},"fix_version":{"type":"string"},"initiative":{"type":"string"},"level_key":{"type":"string"},"original_estimate":{"type":"string"},"parent_reference":{"type":"string"},"priority":{"type":"string"},"reference":{"type":"string"},"remaining_estimate":{"type":"string"},"reporter":{"type":"string"},"start_date":{"type":"string"},"time_spent":{"type":"string"},"title":{"type":"string"}},"required":[],"type":"object"},"type":"array"}},"required":["count","rows"],"type":"object"}},"text/csv":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/import":{"post":{"tags":["integrations"],"summary":"Import Work Items","description":"Bring a tracker's export in as work items.\n\nDefaults to a dry run: the caller sees exactly what would be created, and\nthe warnings for anything that could not be understood, before committing.","operationId":"import_work_items_api_v1_integrations_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created":{"type":"integer"},"dry_run":{"type":"boolean"},"preview":{"items":{"properties":{"assignee":{"type":"string"},"due_date":{"type":"string"},"estimate_points":{"type":"null"},"estimate_size":{"type":"string"},"external_reference":{"type":"string"},"level_key":{"type":"string"},"parent_reference":{"type":"string"},"priority":{"type":"string"},"state":{"type":"string"},"title":{"type":"string"}},"required":["assignee","due_date","estimate_points","estimate_size","external_reference","level_key","parent_reference","priority","state","title"],"type":"object"},"type":"array"},"warnings":{"items":{"type":"string"},"type":"array"},"would_create":{"type":"integer"}},"required":["dry_run","warnings"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/integrations/import/change-requests":{"post":{"tags":["integrations"],"summary":"Import Change Requests","description":"Bring a file of change requests in, each raised as a new change.\n\nDefaults to a dry run, like the import of work items: the caller sees what\nwould be raised and every warning before anything is written. Each change\nis raised the way one typed on screen is, with the next reference and in\nthe first state of the change workflow. The state a file gives is not\napplied: a change passes its approvals here or not at all.\n\nNeeds the right to edit change requests on the entity.","operationId":"import_change_requests_api_v1_integrations_import_change_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeImportIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created":{"type":"integer"},"dry_run":{"type":"boolean"},"preview":{"items":{"properties":{"assignee":{"type":"string"},"change_type":{"type":"string"},"external_reference":{"type":"string"},"impact":{"type":"string"},"planned_end":{"type":"string"},"planned_start":{"type":"string"},"requested_by":{"type":"string"},"risk":{"type":"string"},"services":{"type":"array"},"state":{"type":"string"},"timezone":{"type":"string"},"title":{"type":"string"}},"required":["assignee","change_type","external_reference","impact","planned_end","planned_start","requested_by","risk","services","state","timezone","title"],"type":"object"},"type":"array"},"references":{"items":{"type":"string"},"type":"array"},"warnings":{"items":{"type":"string"},"type":"array"},"would_create":{"type":"integer"}},"required":["dry_run","warnings"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/jobs":{"get":{"tags":["admin"],"summary":"Job Status","description":"List every scheduled job with what it does, how often it runs,\nwhether it is running now, its last run and when it is next due. Also\nsays whether the scheduler is enabled or paused for maintenance.\n\nFor the operator's administrators only; to anybody else it answers as\nmissing.","operationId":"job_status_api_v1_admin_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"enabled":{"type":"boolean"},"jobs":{"items":{"properties":{"every_seconds":{"type":"integer"},"last":{"properties":{"detail":{"properties":{"chat":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"},"considered":{"type":"integer"},"failed":{"type":"integer"},"held":{"type":"null"},"letters":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"},"push":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"},"sent":{"type":"integer"},"webhooks":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"}},"required":["chat","considered","failed","held","letters","push","sent","webhooks"],"type":"object"},"finished_at":{"type":"string"},"id":{"type":"integer"},"job":{"type":"string"},"log":{"type":"string"},"outcome":{"type":"string"},"started_at":{"type":"string"},"summary":{"type":"string"},"trigger":{"type":"string"}},"required":["detail","finished_at","id","job","log","outcome","started_at","summary","trigger"],"type":["null","object"]},"name":{"type":"string"},"next_due_at":{"type":["null","string"]},"running":{"type":"boolean"},"title":{"type":"string"},"what":{"type":"string"}},"required":["every_seconds","last","name","next_due_at","running","title","what"],"type":"object"},"type":"array"},"paused":{"type":"boolean"},"tick_seconds":{"type":"integer"}},"required":["enabled","jobs","paused","tick_seconds"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/jobs/{name}/runs":{"get":{"tags":["admin"],"summary":"Job Runs","description":"List the twenty most recent runs of one scheduled job, newest first.\n\nFor the operator's administrators only; to anybody else it answers as\nmissing.","operationId":"job_runs_api_v1_admin_jobs__name__runs_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Job Runs Api V1 Admin Jobs  Name  Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/jobs/{name}/run":{"post":{"tags":["admin"],"summary":"Run Now","description":"Run one job now, and wait for it.\n\nSynchronous on purpose. Each job is bounded - the outbox takes a hundred\nat a time, a sync is one conversation per connection - and the person who\npressed the button wants the outcome, not a ticket. The row the run wrote\nis what comes back.","operationId":"run_now_api_v1_admin_jobs__name__run_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"chat":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"},"considered":{"type":"integer"},"failed":{"type":"integer"},"held":{"type":"null"},"letters":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"},"push":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"},"sent":{"type":"integer"},"webhooks":{"properties":{"considered":{"type":"integer"},"failed":{"type":"integer"},"sent":{"type":"integer"}},"required":["considered","failed","sent"],"type":"object"}},"required":["chat","considered","failed","held","letters","push","sent","webhooks"],"type":"object"},"finished_at":{"type":"string"},"id":{"type":"integer"},"job":{"type":"string"},"log":{"type":"string"},"outcome":{"type":"string"},"started_at":{"type":"string"},"summary":{"type":"string"},"trigger":{"type":"string"}},"required":["detail","finished_at","id","job","log","outcome","started_at","summary","trigger"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/live":{"get":{"tags":["live"],"summary":"Live Stream","description":"Subscribe this tab to what it is allowed to hear about.","operationId":"live_stream_api_v1_live_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"dillic_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dillic Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mail/postmark":{"post":{"tags":["mail"],"summary":"Postmark Callback","description":"Accept one Postmark webhook event.","operationId":"postmark_callback_api_v1_mail_postmark_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"recorded":{"type":"boolean"}},"required":["recorded"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/mail/inbound":{"post":{"tags":["mail"],"summary":"Inbound Letter","description":"Take one letter a provider is handing over.","operationId":"inbound_letter_api_v1_mail_inbound_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"message_id":{"type":"integer"},"outcome":{"type":"string"},"reason":{"type":"string"},"request_id":{"type":"integer"}},"required":["outcome"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/alerts/sources":{"get":{"tags":["alerts"],"summary":"List Sources","description":"List the account's alert sources, newest first, with what a form for\none needs: the queues an alert may land on, the formats a monitor may\nsend, and the name of the header that carries the secret.\n\nAdministrators only.","operationId":"list_sources_api_v1_alerts_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"formats":{"items":{"type":"string"},"type":"array"},"queues":{"items":{"properties":{"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["entity_id","entity_name","id","name"],"type":"object"},"type":"array"},"secret_header":{"type":"string"},"sources":{"items":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"default_severity":{"type":"string"},"entity_id":{"type":"integer"},"format":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"last_received_at":{"type":"null"},"name":{"type":"string"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"received":{"type":"integer"},"url":{"type":"string"}},"required":["active","created_at","default_severity","entity_id","format","id","key","last_received_at","name","queue_id","queue_name","received","url"],"type":"object"},"type":"array"}},"required":["formats","queues","secret_header","sources"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["alerts"],"summary":"Create Source","description":"Add one, and return its secret exactly once. Generated rather than\nchosen, as a webhook's is: it is read by the monitor's settings page,\nnot by a person.","operationId":"create_source_api_v1_alerts_sources_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__alerts__SourceIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"default_severity":{"type":"string"},"entity_id":{"type":"integer"},"format":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"last_received_at":{"type":"null"},"name":{"type":"string"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"received":{"type":"integer"},"secret":{"type":"string"},"shown_once":{"type":"boolean"},"url":{"type":"string"}},"required":["active","created_at","default_severity","entity_id","format","id","key","last_received_at","name","queue_id","queue_name","received","secret","shown_once","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/alerts/sources/{source_id}":{"put":{"tags":["alerts"],"summary":"Update Source","description":"Replace an alert source's name, queue, format, default severity and\nwhether it is active, and return the source. Its key and secret stay as\nthey were.\n\nAdministrators only.","operationId":"update_source_api_v1_alerts_sources__source_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__alerts__SourceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"default_severity":{"type":"string"},"entity_id":{"type":"integer"},"format":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"last_received_at":{"type":"null"},"name":{"type":"string"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"received":{"type":"integer"},"url":{"type":"string"}},"required":["active","created_at","default_severity","entity_id","format","id","key","last_received_at","name","queue_id","queue_name","received","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["alerts"],"summary":"Delete Source","description":"The incidents it raised stay; only the door closes.","operationId":"delete_source_api_v1_alerts_sources__source_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/alerts/sources/{source_id}/rotate":{"post":{"tags":["alerts"],"summary":"Rotate Secret","description":"A new secret, shown once. The old one stops working at once: a secret\nthat leaked is a door anybody can raise incidents through.","operationId":"rotate_secret_api_v1_alerts_sources__source_id__rotate_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"default_severity":{"type":"string"},"entity_id":{"type":"integer"},"format":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"last_received_at":{"type":"null"},"name":{"type":"string"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"received":{"type":"integer"},"secret":{"type":"string"},"shown_once":{"type":"boolean"},"url":{"type":"string"}},"required":["active","created_at","default_severity","entity_id","format","id","key","last_received_at","name","queue_id","queue_name","received","secret","shown_once","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/alerts/{key}":{"post":{"tags":["alerts"],"summary":"Receive Alerts","description":"Take what a monitor or another desk says, and raise, repeat or\nresolve accordingly. The one refusal for a wrong or paused key is the\nsame as for a missing one: telling them apart is telling somebody\noutside what exists.","operationId":"receive_alerts_api_v1_alerts__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ignored":{"type":"integer"},"raised":{"items":{"type":"string"},"type":"array"},"repeated":{"type":"integer"},"resolved":{"items":{"type":"string"},"type":"array"}},"required":["ignored","raised","repeated","resolved"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/on-call":{"get":{"tags":["on call"],"summary":"Read On Call","description":"Who is on call for an entity, and how a page there runs.\n\nAnswers with the rotas the entity may use (its own and those kept above\nit), each with its order, who is on call now and next, and the covers\nstill to come; the escalation policies, each with its steps and the\nqueues and services that follow it; the entity's queues with the policy\neach follows; the pages running on the entity; and the people who may be\nput on a rota. `may_manage` says whether the caller may change any of it.\n\nThe caller needs to see work on the entity, and the service desk module.","operationId":"read_on_call_api_v1_entities__entity_id__on_call_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"may_answer":{"type":"boolean"},"may_manage":{"type":"boolean"},"pages":{"type":"array"},"people":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"policies":{"items":{"properties":{"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"repeats":{"type":"integer"},"steps":{"items":{"properties":{"ack_minutes":{"type":"integer"},"person_id":{"type":["null","integer"]},"person_name":{"type":"string"},"rota_id":{"type":["null","integer"]},"rota_name":{"type":"string"}},"required":["ack_minutes","person_id","person_name","rota_id","rota_name"],"type":"object"},"type":"array"},"used_by":{"properties":{"queues":{"items":{"type":"string"},"type":"array"},"services":{"type":"array"}},"required":["queues","services"],"type":"object"}},"required":["entity_id","entity_name","id","name","repeats","steps","used_by"],"type":"object"},"type":"array"},"queues":{"items":{"properties":{"escalation_policy_id":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["escalation_policy_id","id","name"],"type":"object"},"type":"array"},"rotas":{"items":{"properties":{"covers":{"type":"array"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"members":{"items":{"properties":{"may_answer":{"type":"boolean"},"name":{"type":"string"},"person_id":{"type":"integer"}},"required":["may_answer","name","person_id"],"type":"object"},"type":"array"},"name":{"type":"string"},"next":{"properties":{"covering_for_name":{"type":"string"},"end":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"start":{"type":"string"},"why":{"type":"string"}},"required":["covering_for_name","end","name","person_id","start","why"],"type":"object"},"now":{"properties":{"covering_for_name":{"type":"string"},"end":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"start":{"type":"string"},"why":{"type":"string"}},"required":["covering_for_name","end","name","person_id","start","why"],"type":"object"},"shift_hours":{"type":"integer"},"starts_at":{"type":"string"},"timezone":{"type":"string"}},"required":["covers","entity_id","entity_name","id","members","name","next","now","shift_hours","starts_at","timezone"],"type":"object"},"type":"array"},"timezone":{"type":"string"}},"required":["may_answer","may_manage","pages","people","policies","queues","rotas","timezone"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rotas/{rota_id}/shifts":{"get":{"tags":["on call"],"summary":"Read Shifts","description":"Who is on call on a rota from now, as stretches: each with the\nperson, when it starts and ends, and why it is theirs - their turn, a\ncover, or standing in for somebody away. `days` is how far ahead, up to\nninety-two.","operationId":"read_shifts_api_v1_rotas__rota_id__shifts_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rota_id","in":"path","required":true,"schema":{"type":"integer","title":"Rota Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":28,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"shifts":{"items":{"properties":{"covering_for_name":{"type":"string"},"end":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"start":{"type":"string"},"why":{"type":"string"}},"required":["covering_for_name","end","name","person_id","start","why"],"type":"object"},"type":"array"},"timezone":{"type":"string"}},"required":["shifts","timezone"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/on-call":{"get":{"tags":["on call"],"summary":"My On Call","description":"The caller's own turns on every rota they are on, from now, and the\npages running that they were told about. A person's own, so it needs no\nright.","operationId":"my_on_call_api_v1_me_on_call_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":28,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"on_call_now":{"type":"boolean"},"pages":{"items":{"properties":{"acknowledged_at":{"type":"null"},"acknowledged_by_name":{"type":"string"},"ended_at":{"type":"null"},"id":{"type":"integer"},"next_at":{"type":"string"},"policy_id":{"type":"integer"},"policy_name":{"type":"string"},"reference":{"type":"string"},"request_id":{"type":"integer"},"round":{"type":"integer"},"rounds":{"type":"integer"},"severity":{"type":"string"},"started_at":{"type":"string"},"started_by_name":{"type":"string"},"state":{"type":"string"},"step":{"type":"integer"},"steps":{"type":"integer"},"subject":{"type":"string"},"told":{"items":{"properties":{"at":{"type":"string"},"covering_for_name":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"rota_name":{"type":"string"},"round":{"type":"integer"},"step":{"type":"integer"}},"required":["at","covering_for_name","name","person_id","rota_name","round","step"],"type":"object"},"type":"array"}},"required":["acknowledged_at","acknowledged_by_name","ended_at","id","next_at","policy_id","policy_name","reference","request_id","round","rounds","severity","started_at","started_by_name","state","step","steps","subject","told"],"type":"object"},"type":"array"},"turns":{"type":"array"}},"required":["on_call_now","pages","turns"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/rotas":{"post":{"tags":["on call"],"summary":"Create Rota","description":"Write a rota on an entity: a name, the zone its handover is agreed\nin, when the first turn begins, how many hours a turn lasts and the\npeople in order. Answers with its id and name.\n\nThe caller needs the `sprint.manage` right on the entity.","operationId":"create_rota_api_v1_entities__entity_id__rotas_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotaIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rotas/{rota_id}":{"put":{"tags":["on call"],"summary":"Update Rota","description":"Replace a rota's name, zone, first turn, turn length and order.\nMoving the first turn or changing the length moves every turn after\nit, since they are counted from there.","operationId":"update_rota_api_v1_rotas__rota_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rota_id","in":"path","required":true,"schema":{"type":"integer","title":"Rota Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotaIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["on call"],"summary":"Delete Rota","description":"Take a rota away. Refused while a policy's step names it: a step\nthat tells nobody is a page nobody answers.","operationId":"delete_rota_api_v1_rotas__rota_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rota_id","in":"path","required":true,"schema":{"type":"integer","title":"Rota Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}},"required":["deleted","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rotas/{rota_id}/covers":{"post":{"tags":["on call"],"summary":"Create Cover","description":"Put somebody on call on a rota for a stretch, in place of whoever's\nturn it is. The caller needs `sprint.manage` on the rota's entity, or\nis the person taking the cover and already on the rota: a colleague\nmay take a turn off somebody without asking an administrator.","operationId":"create_cover_api_v1_rotas__rota_id__covers_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rota_id","in":"path","required":true,"schema":{"type":"integer","title":"Rota Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"}},"required":["id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rota-covers/{cover_id}":{"delete":{"tags":["on call"],"summary":"Delete Cover","description":"Take a cover away; the turn goes back to whoever's it was. For\nwhoever may keep the rota, and for the person covering.","operationId":"delete_cover_api_v1_rota_covers__cover_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"cover_id","in":"path","required":true,"schema":{"type":"integer","title":"Cover Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}},"required":["deleted","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/escalation-policies":{"post":{"tags":["on call"],"summary":"Create Policy","description":"Write an escalation policy on an entity: a name, how many times it\nrepeats, and its steps in order. Each step tells a rota or one person\nand gives them so many minutes to acknowledge before the next step is\ntold. Answers with its id and name.\n\nThe caller needs the `sprint.manage` right on the entity.","operationId":"create_policy_api_v1_entities__entity_id__escalation_policies_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalation-policies/{policy_id}":{"put":{"tags":["on call"],"summary":"Update Policy","description":"Replace a policy's name, repeats and steps. A page already running\nfollows the new steps from where it has got to.","operationId":"update_policy_api_v1_escalation_policies__policy_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"integer","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["on call"],"summary":"Delete Policy","description":"Take a policy away. Refused while a queue or a service follows it,\nor a page is running on it.","operationId":"delete_policy_api_v1_escalation_policies__policy_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"integer","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}},"required":["deleted","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queues/{queue_id}/escalation":{"put":{"tags":["on call"],"summary":"Queue Follows","description":"Say which escalation policy a queue's major incidents follow, or\nnone. The policy is one kept on the queue's entity or above it.\n\nThe caller needs the `sprint.manage` right on the queue's entity.","operationId":"queue_follows_api_v1_queues__queue_id__escalation_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"integer","title":"Queue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"escalation_policy_id":{"type":["null","integer"]},"id":{"type":"integer"}},"required":["escalation_policy_id","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/services/{service_id}/escalation":{"put":{"tags":["on call"],"summary":"Service Follows","description":"Say which escalation policy a major incident naming this service\nfollows, or none. Read before the queue's.\n\nThe caller needs the `service.manage` right on the service's entity.","operationId":"service_follows_api_v1_services__service_id__escalation_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"escalation_policy_id":{"type":["null","integer"]},"id":{"type":"integer"}},"required":["escalation_policy_id","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/page":{"post":{"tags":["on call"],"summary":"Page For Request","description":"Page the people on call for a request, now. With no policy named,\nthe request's own is used: its services' first, then its queue's.\nAnswers with the page. A request with a page already running answers\nwith that one.\n\nThe caller needs the right to answer requests on the request's entity.","operationId":"page_for_request_api_v1_requests__request_id__page_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"page":{"properties":{"acknowledged_at":{"type":"null"},"acknowledged_by_name":{"type":"string"},"ended_at":{"type":"null"},"id":{"type":"integer"},"next_at":{"type":"string"},"policy_id":{"type":"integer"},"policy_name":{"type":"string"},"request_id":{"type":"integer"},"round":{"type":"integer"},"rounds":{"type":"integer"},"started_at":{"type":"string"},"started_by_name":{"type":"string"},"state":{"type":"string"},"step":{"type":"integer"},"steps":{"type":"integer"},"told":{"items":{"properties":{"at":{"type":"string"},"covering_for_name":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"rota_name":{"type":"string"},"round":{"type":"integer"},"step":{"type":"integer"}},"required":["at","covering_for_name","name","person_id","rota_name","round","step"],"type":"object"},"type":"array"}},"required":["acknowledged_at","acknowledged_by_name","ended_at","id","next_at","policy_id","policy_name","request_id","round","rounds","started_at","started_by_name","state","step","steps","told"],"type":"object"}},"required":["page"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pages/{page_id}/acknowledge":{"post":{"tags":["on call"],"summary":"Acknowledge Page","description":"Say you have it. The page ends and nobody else is told; the request\ntakes the caller's name where it had nobody's.\n\nFor anybody who may answer requests on the request's entity, and for\nanybody the page told.","operationId":"acknowledge_page_api_v1_pages__page_id__acknowledge_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"page":{"properties":{"acknowledged_at":{"type":"string"},"acknowledged_by_name":{"type":"string"},"ended_at":{"type":"string"},"id":{"type":"integer"},"next_at":{"type":"null"},"policy_id":{"type":"integer"},"policy_name":{"type":"string"},"request_id":{"type":"integer"},"round":{"type":"integer"},"rounds":{"type":"integer"},"started_at":{"type":"string"},"started_by_name":{"type":"string"},"state":{"type":"string"},"step":{"type":"integer"},"steps":{"type":"integer"},"told":{"items":{"properties":{"at":{"type":"string"},"covering_for_name":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"rota_name":{"type":"string"},"round":{"type":"integer"},"step":{"type":"integer"}},"required":["at","covering_for_name","name","person_id","rota_name","round","step"],"type":"object"},"type":"array"}},"required":["acknowledged_at","acknowledged_by_name","ended_at","id","next_at","policy_id","policy_name","request_id","round","rounds","started_at","started_by_name","state","step","steps","told"],"type":"object"}},"required":["page"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/sources":{"get":{"tags":["discovery"],"summary":"List Sources","description":"List the account's discovery sources, newest first, each with its\naddress, the command that reports to it, when it last reported and how\nmany of its assets are undecided, accepted, ignored and missing; and\nwhat a form for one needs: the entities a source may land on, the\nformats a report may take, and the header that carries the secret.\n\nAdministrators only.","operationId":"list_sources_api_v1_discovery_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"entities":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"formats":{"items":{"type":"string"},"type":"array"},"max_assets":{"type":"integer"},"secret_header":{"type":"string"},"sources":{"items":{"properties":{"accepted":{"type":"integer"},"active":{"type":"boolean"},"command":{"type":"string"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"format":{"type":"string"},"id":{"type":"integer"},"ignored":{"type":"integer"},"ignored_types":{"type":"array"},"key":{"type":"string"},"last_received_at":{"type":["null","string"]},"missing":{"type":"integer"},"name":{"type":"string"},"received":{"type":"integer"},"undecided":{"type":"integer"},"url":{"type":"string"},"whole":{"type":"boolean"}},"required":["accepted","active","command","created_at","entity_id","entity_name","format","id","ignored","ignored_types","key","last_received_at","missing","name","received","undecided","url","whole"],"type":"object"},"type":"array"}},"required":["entities","formats","max_assets","secret_header","sources"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["discovery"],"summary":"Create Source","description":"Add a discovery source, and return its secret exactly once.\n\nAdministrators only.","operationId":"create_source_api_v1_discovery_sources_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__discovery__SourceIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"accepted":{"type":"integer"},"active":{"type":"boolean"},"command":{"type":"string"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"format":{"type":"string"},"id":{"type":"integer"},"ignored":{"type":"integer"},"ignored_types":{"type":"array"},"key":{"type":"string"},"last_received_at":{"type":"null"},"missing":{"type":"integer"},"name":{"type":"string"},"received":{"type":"integer"},"secret":{"type":"string"},"shown_once":{"type":"boolean"},"undecided":{"type":"integer"},"url":{"type":"string"},"whole":{"type":"boolean"}},"required":["accepted","active","command","created_at","entity_id","entity_name","format","id","ignored","ignored_types","key","last_received_at","missing","name","received","secret","shown_once","undecided","url","whole"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/discovery/sources/{source_id}":{"put":{"tags":["discovery"],"summary":"Update Source","description":"Replace a discovery source's name, entity, format, whether its\nreports are whole, the types it ignores and whether it is active. Its\nkey and secret stay as they were.\n\nAdministrators only.","operationId":"update_source_api_v1_discovery_sources__source_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__discovery__SourceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"accepted":{"type":"integer"},"active":{"type":"boolean"},"command":{"type":"string"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"format":{"type":"string"},"id":{"type":"integer"},"ignored":{"type":"integer"},"ignored_types":{"type":"array"},"key":{"type":"string"},"last_received_at":{"type":"string"},"missing":{"type":"integer"},"name":{"type":"string"},"received":{"type":"integer"},"undecided":{"type":"integer"},"url":{"type":"string"},"whole":{"type":"boolean"}},"required":["accepted","active","command","created_at","entity_id","entity_name","format","id","ignored","ignored_types","key","last_received_at","missing","name","received","undecided","url","whole"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["discovery"],"summary":"Delete Source","description":"Remove a source and what it found. The services its assets became\nstay: they are services now, however they were first heard of.\n\nAdministrators only.","operationId":"delete_source_api_v1_discovery_sources__source_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/sources/{source_id}/rotate":{"post":{"tags":["discovery"],"summary":"Rotate Secret","description":"A new secret, shown once. The old one stops working at once.\n\nAdministrators only.","operationId":"rotate_secret_api_v1_discovery_sources__source_id__rotate_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"accepted":{"type":"integer"},"active":{"type":"boolean"},"command":{"type":"string"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"format":{"type":"string"},"id":{"type":"integer"},"ignored":{"type":"integer"},"ignored_types":{"type":"array"},"key":{"type":"string"},"last_received_at":{"type":"string"},"missing":{"type":"integer"},"name":{"type":"string"},"received":{"type":"integer"},"secret":{"type":"string"},"shown_once":{"type":"boolean"},"undecided":{"type":"integer"},"url":{"type":"string"},"whole":{"type":"boolean"}},"required":["accepted","active","command","created_at","entity_id","entity_name","format","id","ignored","ignored_types","key","last_received_at","missing","name","received","secret","shown_once","undecided","url","whole"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/sources/{source_id}/report":{"post":{"tags":["discovery"],"summary":"Upload Report","description":"Hand a source a report by hand: the same body its command would\npost, from somebody signed in. For trying a source before anything is\nscheduled, and for an inventory that is a file. Answers as the door\ndoes.\n\nAdministrators only.","operationId":"upload_report_api_v1_discovery_sources__source_id__report_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"missing":{"type":"integer"},"new":{"type":"integer"},"returned":{"type":"integer"},"seen":{"type":"integer"},"skipped":{"type":"integer"}},"required":["missing","new","returned","seen","skipped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/discovered":{"get":{"tags":["discovery"],"summary":"List Discovered","description":"What the discovery sources on this entity and beneath it have found.\n\n`show` chooses which: `new` (undecided, the default), `accepted`,\n`ignored` or `missing` - accepted or undecided assets a whole report\nhas stopped mentioning. Each asset carries its source, type, the kind\nof service it would be, a few facts, what it depends on, the service it\nbecame and, where a kept service has the same name, that service as a\nlikely match. `counts` gives all four numbers whatever is shown.\n`may_decide` says whether the caller may accept or ignore here.\n\nThe caller needs to see changes on the entity.","operationId":"list_discovered_api_v1_entities__entity_id__discovered_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"show","in":"query","required":false,"schema":{"type":"string","default":"new","title":"Show"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"assets":{"items":{"properties":{"attributes":{"properties":{"region":{"type":"string"}},"required":[],"type":"object"},"depends_on":{"items":{"type":"string"},"type":"array"},"external_id":{"type":"string"},"first_seen_at":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"last_seen_at":{"type":"string"},"match":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":["null","object"]},"missing_since":{"type":"null"},"name":{"type":"string"},"service":{"type":"null"},"source_id":{"type":"integer"},"source_name":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"}},"required":["attributes","depends_on","external_id","first_seen_at","id","kind","last_seen_at","match","missing_since","name","service","source_id","source_name","status","type"],"type":"object"},"type":"array"},"counts":{"properties":{"accepted":{"type":"integer"},"ignored":{"type":"integer"},"missing":{"type":"integer"},"new":{"type":"integer"}},"required":["accepted","ignored","missing","new"],"type":"object"},"may_decide":{"type":"boolean"},"sources":{"items":{"properties":{"id":{"type":"integer"},"last_received_at":{"type":"string"},"name":{"type":"string"}},"required":["id","last_received_at","name"],"type":"object"},"type":"array"}},"required":["assets","counts","may_decide","sources"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovered/accept":{"post":{"tags":["discovery"],"summary":"Accept Assets","description":"Make a service of each of these assets, on its source's entity.\nAn asset whose name a kept service already has is left undecided and\nnamed in `refused`, with the reason; the rest are accepted. Answers\nwith the services made.\n\nThe caller needs the `service.manage` right where each source lands.","operationId":"accept_assets_api_v1_discovered_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"refused":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"why":{"type":"string"}},"required":["id","name","why"],"type":"object"},"type":"array"},"services":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"}},"required":["refused","services"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/discovered/{asset_id}/same-as":{"post":{"tags":["discovery"],"summary":"Same As","description":"Say an asset is a service already kept. From then on the service's\npage says where it was found and when it was last seen.\n\nThe caller needs the `service.manage` right where the source lands.","operationId":"same_as_api_v1_discovered__asset_id__same_as_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SameAsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"service":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}},"required":["id","service"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovered/ignore":{"post":{"tags":["discovery"],"summary":"Ignore Assets","description":"Set these assets aside as nothing the organisation tracks. With\n`forget_type`, each one's type is also ignored on its source: every\nundecided asset of that type is set aside and later reports leave the\ntype out. Answers with how many were set aside.\n\nThe caller needs the `service.manage` right where each source lands.","operationId":"ignore_assets_api_v1_discovered_ignore_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgnoreIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ignored":{"type":"integer"}},"required":["ignored"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/discovered/{asset_id}/reconsider":{"post":{"tags":["discovery"],"summary":"Reconsider","description":"Put an asset back among the undecided. A service it became stays.\n\nThe caller needs the `service.manage` right where the source lands.","operationId":"reconsider_api_v1_discovered__asset_id__reconsider_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"}},"required":["id","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/{key}":{"post":{"tags":["discovery"],"summary":"Receive Report","description":"Take an inventory from whatever holds one. Answers with how many\nassets were new, seen again, back after going missing, newly missing\nand skipped for their type. The one refusal for a wrong or paused key\nis the same as for a missing one.","operationId":"receive_report_api_v1_discovery__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"missing":{"type":"integer"},"new":{"type":"integer"},"returned":{"type":"integer"},"seen":{"type":"integer"},"skipped":{"type":"integer"}},"required":["missing","new","returned","seen","skipped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/chat-doors":{"get":{"tags":["chat intake"],"summary":"List Doors","description":"List the account's chat doors, newest first, each with its address,\nits queue, whether it posts the desk's answers back and when it last\nheard anything; and what a form for one needs: the queues a request may\nland on and the chat tools a door may be for.\n\nAdministrators only.","operationId":"list_doors_api_v1_chat_doors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"doors":{"items":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"has_secret":{"type":"boolean"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"last_received_at":{"type":"null"},"name":{"type":"string"},"posts_back":{"type":"boolean"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"received":{"type":"integer"},"url":{"type":"string"}},"required":["active","created_at","entity_id","has_secret","id","key","kind","last_received_at","name","posts_back","queue_id","queue_name","received","url"],"type":"object"},"type":"array"},"kinds":{"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"type":"array"},"queues":{"items":{"properties":{"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["entity_id","entity_name","id","name"],"type":"object"},"type":"array"}},"required":["doors","kinds","queues"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["chat intake"],"summary":"Create Door","description":"Add a chat door: a name, the queue its requests land on, the chat\ntool, the secret that tool signs with and, optionally, the channel's\nincoming webhook for the desk's answers. Answers with the door and the\naddress to give the chat tool.\n\nAdministrators only.","operationId":"create_door_api_v1_chat_doors_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoorIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"has_secret":{"type":"boolean"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"last_received_at":{"type":"null"},"name":{"type":"string"},"posts_back":{"type":"boolean"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"received":{"type":"integer"},"url":{"type":"string"}},"required":["active","created_at","entity_id","has_secret","id","key","kind","last_received_at","name","posts_back","queue_id","queue_name","received","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/chat-doors/{door_id}":{"put":{"tags":["chat intake"],"summary":"Update Door","description":"Replace a chat door's name, queue, chat tool and whether it is\nactive. A secret or a webhook address is changed only when one is sent;\nan empty webhook address stops the answers being posted back. Its\naddress stays as it was.\n\nAdministrators only.","operationId":"update_door_api_v1_chat_doors__door_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"door_id","in":"path","required":true,"schema":{"type":"integer","title":"Door Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoorIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"created_at":{"type":"string"},"entity_id":{"type":"integer"},"has_secret":{"type":"boolean"},"id":{"type":"integer"},"key":{"type":"string"},"kind":{"type":"string"},"last_received_at":{"type":"null"},"name":{"type":"string"},"posts_back":{"type":"boolean"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"received":{"type":"integer"},"url":{"type":"string"}},"required":["active","created_at","entity_id","has_secret","id","key","kind","last_received_at","name","posts_back","queue_id","queue_name","received","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat intake"],"summary":"Delete Door","description":"Remove a chat door. The requests raised through it stay, and stop\nbeing answered in the channel.\n\nAdministrators only.","operationId":"delete_door_api_v1_chat_doors__door_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"door_id","in":"path","required":true,"schema":{"type":"integer","title":"Door Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/chat/{key}":{"post":{"tags":["chat intake"],"summary":"Receive Command","description":"Take a slash command from Slack, or a mention from Microsoft Teams,\nand answer the person who sent it. The words raise a request, add to\none, or ask how one stands - see the guide's chapter on the service\ndesk. The one refusal for a wrong or paused key is the same as for a\nmissing one, and so is the answer of a desk that is switched off.","operationId":"receive_command_api_v1_chat__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"response_type":{"type":"string"},"text":{"type":"string"},"type":{"type":"string"}},"required":["text"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/setup":{"post":{"tags":["identity"],"summary":"Setup From Challenge","description":"A secret for somebody the account is making enrol before they can in.\n\nOnly answers a challenge that is waiting for an enrolment. A sign-in that is\nwaiting for a *code* has an authenticator already, and handing it a fresh\nsecret would be handing whoever holds a stolen handle a way to replace the\nfactor they cannot answer.","operationId":"setup_from_challenge_api_v1_auth_mfa_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"algorithm":{"type":"string"},"digits":{"type":"integer"},"issuer":{"type":"string"},"label":{"type":"string"},"otpauth_uri":{"type":"string"},"period":{"type":"integer"},"secret":{"type":"string"},"secret_grouped":{"type":"string"}},"required":["algorithm","digits","issuer","label","otpauth_uri","period","secret","secret_grouped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/verify":{"post":{"tags":["identity"],"summary":"Verify Challenge","description":"The far side of the door: a code, and then a session.\n\nBoth kinds of challenge end here. One is answered from an authenticator that\nalready existed; the other confirms the one just set up, and comes back with\nthe recovery codes, which is the only time they can be read.","operationId":"verify_challenge_api_v1_auth_mfa_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__mfa__VerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"expires_at":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"},"recovery_codes":{"items":{"type":"string"},"type":"array"},"token":{"type":"string"},"token_id":{"type":"integer"}},"required":["email","full_name","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/passkey/challenge":{"post":{"tags":["identity"],"summary":"Passkey Challenge","description":"The options for answering this sign-in with a passkey. Only a sign-in\nwaiting for a code has keys to be answered with.","operationId":"passkey_challenge_api_v1_auth_mfa_passkey_challenge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"options":{"properties":{"allowCredentials":{"items":{"properties":{"id":{"type":"string"},"transports":{"items":{"type":"string"},"type":"array"},"type":{"type":"string"}},"required":["id","transports","type"],"type":"object"},"type":"array"},"challenge":{"type":"string"},"rpId":{"type":"string"},"timeout":{"type":"integer"},"userVerification":{"type":"string"}},"required":["allowCredentials","challenge","rpId","timeout","userVerification"],"type":"object"}},"required":["options"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/passkey/verify":{"post":{"tags":["identity"],"summary":"Passkey Verify","description":"The far side of the door, by signature rather than by code.","operationId":"passkey_verify_api_v1_auth_mfa_passkey_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyAnswerIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"}},"required":["email","full_name","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/passkey/setup":{"post":{"tags":["identity"],"summary":"Passkey Setup From Challenge","description":"Registration options for somebody the account is making enrol, who\nwould rather hold a key than an app. The same rule as `setup`: only a\nchallenge waiting for an enrolment is answered.","operationId":"passkey_setup_from_challenge_api_v1_auth_mfa_passkey_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"handle":{"type":"string"},"options":{"properties":{"attestation":{"type":"string"},"authenticatorSelection":{"properties":{"requireResidentKey":{"type":"boolean"},"residentKey":{"type":"string"},"userVerification":{"type":"string"}},"required":["requireResidentKey","residentKey","userVerification"],"type":"object"},"challenge":{"type":"string"},"excludeCredentials":{"type":"array"},"pubKeyCredParams":{"items":{"properties":{"alg":{"type":"integer"},"type":{"type":"string"}},"required":["alg","type"],"type":"object"},"type":"array"},"rp":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"timeout":{"type":"integer"},"user":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"required":["displayName","id","name"],"type":"object"}},"required":["attestation","authenticatorSelection","challenge","excludeCredentials","pubKeyCredParams","rp","timeout","user"],"type":"object"}},"required":["handle","options"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/passkey/setup/verify":{"post":{"tags":["identity"],"summary":"Passkey Setup Verify","description":"Keep the key the browser just made, and let the person in.\n\nNo recovery codes, because none were made: those belong to the\nauthenticator app, and somebody who holds only a passkey and loses it is\nreset by an administrator, which the Security screen says.","operationId":"passkey_setup_verify_api_v1_auth_mfa_passkey_setup_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeySetupAnswerIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"}},"required":["email","full_name","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa":{"get":{"tags":["identity"],"summary":"My Status","description":"Read the caller's own second-factor status: whether an authenticator\nis enrolled or half set up, how many recovery codes are left, and their\npasskeys. Also says whether the account's policy requires a second\nfactor of them.","operationId":"my_status_api_v1_auth_mfa_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"confirmed_at":{"type":"null"},"enforced":{"type":"boolean"},"enrolled":{"type":"boolean"},"has_second_factor":{"type":"boolean"},"issuer":{"type":"string"},"passkeys":{"items":{"properties":{"backed_up":{"type":"boolean"},"created_at":{"type":"string"},"id":{"type":"integer"},"last_used_at":{"type":"null"},"name":{"type":"string"}},"required":["backed_up","created_at","id","last_used_at","name"],"type":"object"},"type":"array"},"policy":{"type":"string"},"recovery_codes_left":{"type":"integer"},"required":{"type":"boolean"},"required_of_administrators":{"type":"boolean"},"setup_in_progress":{"type":"boolean"}},"required":["confirmed_at","enforced","enrolled","has_second_factor","issuer","passkeys","policy","recovery_codes_left","required","required_of_administrators","setup_in_progress"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/mfa/enrol":{"post":{"tags":["identity"],"summary":"Enrol","description":"Start setting up an authenticator, or replace the one already set up.\n\nReplacing needs a current code first. The enrolment row is one per person,\nso starting a new one stands the old one down - and without this check,\nanybody who reached an unlocked screen could stand somebody's second factor\ndown by opening a page.","operationId":"enrol_api_v1_auth_mfa_enrol_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CodeIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"algorithm":{"type":"string"},"digits":{"type":"integer"},"issuer":{"type":"string"},"label":{"type":"string"},"otpauth_uri":{"type":"string"},"period":{"type":"integer"},"secret":{"type":"string"},"secret_grouped":{"type":"string"}},"required":["algorithm","digits","issuer","label","otpauth_uri","period","secret","secret_grouped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/mfa/enrol/confirm":{"post":{"tags":["identity"],"summary":"Confirm","description":"Prove the new authenticator works. Returns the recovery codes, once.","operationId":"confirm_api_v1_auth_mfa_enrol_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"confirmed_at":{"type":"string"},"enforced":{"type":"boolean"},"enrolled":{"type":"boolean"},"has_second_factor":{"type":"boolean"},"issuer":{"type":"string"},"passkeys":{"type":"array"},"policy":{"type":"string"},"recovery_codes":{"items":{"type":"string"},"type":"array"},"recovery_codes_left":{"type":"integer"},"required":{"type":"boolean"},"required_of_administrators":{"type":"boolean"},"setup_in_progress":{"type":"boolean"}},"required":["confirmed_at","enforced","enrolled","has_second_factor","issuer","passkeys","policy","recovery_codes","recovery_codes_left","required","required_of_administrators","setup_in_progress"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/mfa/recovery-codes":{"post":{"tags":["identity"],"summary":"Reissue","description":"A fresh set, which retires the old one. Needs a code, for the same\nreason disabling needs a password: it invalidates credentials.","operationId":"reissue_api_v1_auth_mfa_recovery_codes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"confirmed_at":{"type":"string"},"enforced":{"type":"boolean"},"enrolled":{"type":"boolean"},"has_second_factor":{"type":"boolean"},"issuer":{"type":"string"},"passkeys":{"type":"array"},"policy":{"type":"string"},"recovery_codes":{"items":{"type":"string"},"type":"array"},"recovery_codes_left":{"type":"integer"},"required":{"type":"boolean"},"required_of_administrators":{"type":"boolean"},"setup_in_progress":{"type":"boolean"}},"required":["confirmed_at","enforced","enrolled","has_second_factor","issuer","passkeys","policy","recovery_codes","recovery_codes_left","required","required_of_administrators","setup_in_progress"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/mfa/passkeys/options":{"post":{"tags":["identity"],"summary":"Passkey Options","description":"Start registering a passkey for the signed-in person. No code or\npassword first: adding a key weakens nothing, where replacing the\nauthenticator stands the old one down.","operationId":"passkey_options_api_v1_auth_mfa_passkeys_options_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"handle":{"type":"string"},"options":{"properties":{"attestation":{"type":"string"},"authenticatorSelection":{"properties":{"requireResidentKey":{"type":"boolean"},"residentKey":{"type":"string"},"userVerification":{"type":"string"}},"required":["requireResidentKey","residentKey","userVerification"],"type":"object"},"challenge":{"type":"string"},"excludeCredentials":{"items":{"properties":{"id":{"type":"string"},"transports":{"items":{"type":"string"},"type":"array"},"type":{"type":"string"}},"required":["id","transports","type"],"type":"object"},"type":"array"},"pubKeyCredParams":{"items":{"properties":{"alg":{"type":"integer"},"type":{"type":"string"}},"required":["alg","type"],"type":"object"},"type":"array"},"rp":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"timeout":{"type":"integer"},"user":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"required":["displayName","id","name"],"type":"object"}},"required":["attestation","authenticatorSelection","challenge","excludeCredentials","pubKeyCredParams","rp","timeout","user"],"type":"object"}},"required":["handle","options"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/mfa/passkeys":{"post":{"tags":["identity"],"summary":"Passkey Register","description":"Finish registering: the signed attestation, checked and kept.","operationId":"passkey_register_api_v1_auth_mfa_passkeys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyRegisterIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"confirmed_at":{"type":"null"},"enforced":{"type":"boolean"},"enrolled":{"type":"boolean"},"has_second_factor":{"type":"boolean"},"issuer":{"type":"string"},"passkeys":{"items":{"properties":{"backed_up":{"type":"boolean"},"created_at":{"type":"string"},"id":{"type":"integer"},"last_used_at":{"type":"null"},"name":{"type":"string"}},"required":["backed_up","created_at","id","last_used_at","name"],"type":"object"},"type":"array"},"policy":{"type":"string"},"recovery_codes_left":{"type":"integer"},"required":{"type":"boolean"},"required_of_administrators":{"type":"boolean"},"setup_in_progress":{"type":"boolean"}},"required":["confirmed_at","enforced","enrolled","has_second_factor","issuer","passkeys","policy","recovery_codes_left","required","required_of_administrators","setup_in_progress"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/auth/mfa/passkeys/{passkey_id}/remove":{"post":{"tags":["identity"],"summary":"Passkey Remove","description":"Take one key away, on the password. The last factor on an account that\nrequires one is refused, as turning the authenticator off is.","operationId":"passkey_remove_api_v1_auth_mfa_passkeys__passkey_id__remove_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"passkey_id","in":"path","required":true,"schema":{"type":"integer","title":"Passkey Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"confirmed_at":{"type":"null"},"enforced":{"type":"boolean"},"enrolled":{"type":"boolean"},"has_second_factor":{"type":"boolean"},"issuer":{"type":"string"},"passkeys":{"items":{"properties":{"backed_up":{"type":"boolean"},"created_at":{"type":"string"},"id":{"type":"integer"},"last_used_at":{"type":"null"},"name":{"type":"string"}},"required":["backed_up","created_at","id","last_used_at","name"],"type":"object"},"type":"array"},"policy":{"type":"string"},"recovery_codes_left":{"type":"integer"},"required":{"type":"boolean"},"required_of_administrators":{"type":"boolean"},"setup_in_progress":{"type":"boolean"}},"required":["confirmed_at","enforced","enrolled","has_second_factor","issuer","passkeys","policy","recovery_codes_left","required","required_of_administrators","setup_in_progress"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/disable":{"post":{"tags":["identity"],"summary":"Turn Off","description":"Stop using a second factor - unless the account has said otherwise.\n\nAn account on `required` refuses here rather than letting somebody switch\nit off and be stopped at the next sign-in, which would be the same outcome\nreached confusingly and a day later. An administrator under the\ndeployment's rule is refused for the same reason.","operationId":"turn_off_api_v1_auth_mfa_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisableIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"confirmed_at":{"type":"null"},"enforced":{"type":"boolean"},"enrolled":{"type":"boolean"},"has_second_factor":{"type":"boolean"},"issuer":{"type":"string"},"passkeys":{"type":"array"},"policy":{"type":"string"},"recovery_codes_left":{"type":"integer"},"required":{"type":"boolean"},"required_of_administrators":{"type":"boolean"},"setup_in_progress":{"type":"boolean"}},"required":["confirmed_at","enforced","enrolled","has_second_factor","issuer","passkeys","policy","recovery_codes_left","required","required_of_administrators","setup_in_progress"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/oauth/authorize":{"get":{"tags":["assistants"],"summary":"Read Request","description":"Who is asking to connect, for the page that asks the person.\n\nTakes the query the assistant sent the browser to `/oauth/authorize`\nwith, and refuses a request that is not whole. Answers with the\nassistant's name, where the answer would be sent, and the permissions\nthe person may keep the connection to.","operationId":"read_request_api_v1_oauth_authorize_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"client_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Client Id"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"response_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Response Type"}},{"name":"code_challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge Method"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"resource","in":"query","required":false,"schema":{"type":"string","default":"","title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"client":{"properties":{"name":{"type":"string"},"returns_to":{"type":"string"}},"required":["name","returns_to"],"type":"object"},"scope_groups":{"items":{"properties":{"name":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"}},"required":["name","scopes"],"type":"object"},"type":"array"}},"required":["client","scope_groups"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["assistants"],"summary":"Decide","description":"The person's answer. Returns the address to send the browser to.\n\nA yes sends a code, good once and for two minutes, which the assistant\ntrades for its credentials. A no sends `access_denied`. Asked from a\nbrowser session only: a token cannot approve a connection.","operationId":"decide_api_v1_oauth_authorize_post","security":[{"session":[]},{"token":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Decision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"redirect":{"type":"string"}},"required":["redirect"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/oauth/connections":{"get":{"tags":["assistants"],"summary":"List Connections","description":"The assistants connected as this person, and the address to give one.\n\nA person's own list. An administrator has the organisation's, at\n`GET /admin/assistants`. `allowed` is false when the organisation has\nturned assistants off, and the list is then empty.","operationId":"list_connections_api_v1_oauth_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"address":{"type":"string"},"allowed":{"type":"boolean"},"connections":{"items":{"properties":{"connected_at":{"type":"string"},"full_access":{"type":"boolean"},"id":{"type":"integer"},"last_used_at":{"type":"null"},"name":{"type":"string"},"scopes":{"type":"array"}},"required":["connected_at","full_access","id","last_used_at","name","scopes"],"type":"object"},"type":"array"}},"required":["address","connections"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/oauth/connections/{connection_id}/disconnect":{"post":{"tags":["assistants"],"summary":"Disconnect","description":"End one connection: its access token and its refresh token stop at\nonce, and the assistant must be connected again to come back.","operationId":"disconnect_api_v1_oauth_connections__connection_id__disconnect_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"disconnected":{"type":"boolean"},"id":{"type":"integer"}},"required":["disconnected","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/assistants":{"get":{"tags":["assistants"],"summary":"List Account Connections","description":"Every assistant connected in the organisation, newest first, and\nwhether the organisation allows them.\n\nEach connection names the person it acts as, what it may do, when it was\nconnected and last used, and `returns_to`: the host its sign-in answered\nto, which the server checked. The assistant's name is its own word.","operationId":"list_account_connections_api_v1_admin_assistants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"address":{"type":"string"},"allowed":{"type":"boolean"},"connections":{"items":{"properties":{"connected_at":{"type":"string"},"full_access":{"type":"boolean"},"id":{"type":"integer"},"last_used_at":{"type":"null"},"name":{"type":"string"},"person":{"properties":{"email":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"}},"required":["email","full_name","id"],"type":"object"},"returns_to":{"type":"string"},"scopes":{"type":"array"}},"required":["connected_at","full_access","id","last_used_at","name","person","returns_to","scopes"],"type":"object"},"type":"array"}},"required":["address","allowed","connections"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"put":{"tags":["assistants"],"summary":"Allow Assistants","description":"Turn assistants on or off for the organisation.\n\nOff ends every connection at once, refuses new ones, and closes `/mcp` to\neverybody in the organisation, whichever way they hold a token. An access\ntoken still reaches the API itself. On restores nothing: each person\nconnects their assistant again. `ended` counts the connections this call\nended.","operationId":"allow_assistants_api_v1_admin_assistants_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"address":{"type":"string"},"allowed":{"type":"boolean"},"connections":{"type":"array"},"ended":{"type":"integer"}},"required":["address","allowed","connections","ended"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/assistants/{connection_id}/disconnect":{"post":{"tags":["assistants"],"summary":"Disconnect As Administrator","description":"End anybody's connection in the organisation: its access token and its\nrefresh token stop at once. The audit trail records the administrator and\nnames whose connection it was.","operationId":"disconnect_as_administrator_api_v1_admin_assistants__connection_id__disconnect_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"disconnected":{"type":"boolean"},"id":{"type":"integer"}},"required":["disconnected","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/outside/{token}":{"get":{"tags":["outside"],"summary":"Open Page","description":"Read what the signed link in a letter stands for: the organisation\nthat wrote, the address it wrote to, and whether that address has\nunsubscribed. Needs no sign-in; the link is the proof.","operationId":"open_page_api_v1_outside__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"organisation":{"type":"string"},"unsubscribed":{"type":"boolean"}},"required":["email","organisation","unsubscribed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/outside/{token}/unsubscribe":{"post":{"tags":["outside"],"summary":"Unsubscribe","description":"Stop the organisation's letters to the outside contact the signed\nlink names, and return the contact's state. Needs no sign-in, and a\nmail client's one-click Unsubscribe button may post here.","operationId":"unsubscribe_api_v1_outside__token__unsubscribe_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"organisation":{"type":"string"},"unsubscribed":{"type":"boolean"}},"required":["email","organisation","unsubscribed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/outside/{token}/resubscribe":{"post":{"tags":["outside"],"summary":"Resubscribe","description":"Take back an unsubscribe, so the organisation may write again to the\noutside contact the signed link names. Returns the contact's state.\nNeeds no sign-in.","operationId":"resubscribe_api_v1_outside__token__resubscribe_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"organisation":{"type":"string"},"unsubscribed":{"type":"boolean"}},"required":["email","organisation","unsubscribed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/outside/{token}/forget":{"post":{"tags":["outside"],"summary":"Forget","description":"Delete their details. The link stops working with it.","operationId":"forget_api_v1_outside__token__forget_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"forgotten":{"type":"boolean"},"organisation":{"type":"string"}},"required":["forgotten","organisation"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments":{"get":{"tags":["payments"],"summary":"Status ","description":"Read how the account pays: the payment processor connected, the cards\non file and whether one is the default, and the numbers of the invoices\nthat can be collected now.\n\nAdministrators only.","operationId":"status__api_v1_payments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Status  Api V1 Payments Get"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/payments/methods/setup":{"post":{"tags":["payments"],"summary":"Start Card Setup","description":"Open a page on the processor where a card can be entered.\n\nDilliC never sees the number. What comes back is the hosted URL to send the\nadministrator to; the card itself arrives later, as a webhook.","operationId":"start_card_setup_api_v1_payments_methods_setup_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Start Card Setup Api V1 Payments Methods Setup Post"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/payments/methods/{method_id}/default":{"post":{"tags":["payments"],"summary":"Make Default","description":"Make one card on file the card renewals are charged to, in place of\nthe present default. Returns the account's payment state, as `GET\n/payments` gives it.\n\nAdministrators only. A card that was removed is refused.","operationId":"make_default_api_v1_payments_methods__method_id__default_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"method_id","in":"path","required":true,"schema":{"type":"integer","title":"Method Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Make Default Api V1 Payments Methods  Method Id  Default Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/methods/{method_id}":{"delete":{"tags":["payments"],"summary":"Remove Method","description":"Stop using a card on file. Past payments keep naming it, and where it\nwas the default another card on file takes its place. Returns the\naccount's payment state, as `GET /payments` gives it.\n\nAdministrators only.","operationId":"remove_method_api_v1_payments_methods__method_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"method_id","in":"path","required":true,"schema":{"type":"integer","title":"Method Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Method Api V1 Payments Methods  Method Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/invoices/{invoice_id}/checkout":{"post":{"tags":["payments"],"summary":"Checkout","description":"A hosted page for paying one invoice with the cardholder present.","operationId":"checkout_api_v1_payments_invoices__invoice_id__checkout_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Checkout Api V1 Payments Invoices  Invoice Id  Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/invoices/{invoice_id}/collect":{"post":{"tags":["payments"],"summary":"Collect One","description":"Charge the card on file for one invoice.\n\nA decline is a 200 with a failed payment, not an error: the attempt happened\nand is now part of this account's history, and the caller needs to see what\nthe bank said rather than a stack trace.","operationId":"collect_one_api_v1_payments_invoices__invoice_id__collect_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"invoice_status":{"type":"string"},"payment":{"properties":{"amount":{"type":"string"},"amount_cents":{"type":"integer"},"attempt":{"type":"integer"},"created_at":{"type":"string"},"failure_code":{"type":"string"},"failure_reason":{"type":"string"},"id":{"type":"integer"},"invoice_id":{"type":"integer"},"invoice_number":{"type":"string"},"provider":{"type":"string"},"refundable_cents":{"type":"integer"},"refunded":{"type":"string"},"refunded_cents":{"type":"integer"},"settled_at":{"type":"null"},"status":{"type":"string"}},"required":["amount","amount_cents","attempt","created_at","failure_code","failure_reason","id","invoice_id","invoice_number","provider","refundable_cents","refunded","refunded_cents","settled_at","status"],"type":"object"}},"required":["invoice_status","payment"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/collect":{"post":{"tags":["payments"],"summary":"Collect All","description":"Try everything outstanding. What `python -m app.collect` calls per account.","operationId":"collect_all_api_v1_payments_collect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Collect All Api V1 Payments Collect Post"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/payments/{payment_id}/refund":{"post":{"tags":["payments"],"summary":"Refund","description":"Refund a settled payment through the payment processor: `amount_cents`\nof it, or all that is left when none is given. Returns the payment with\nwhat has been refunded and what remains refundable.\n\nAdministrators only. An amount greater than what is left is refused.","operationId":"refund_api_v1_payments__payment_id__refund_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"integer","title":"Payment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refund Api V1 Payments  Payment Id  Refund Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/webhook/{provider}":{"post":{"tags":["payments"],"summary":"Receive Webhook","description":"Accept a signed event from the processor.\n\nThe body is read as raw bytes because the signature covers exactly what was\nsent: parsing and re-serialising it first would change the whitespace and\nbreak every signature.\n\nAn event this deployment cannot use is still a 200. A processor retries\nanything else, so answering \"ignored\" with an error would earn a retry\nstorm for an event that will never be wanted.","operationId":"receive_webhook_api_v1_payments_webhook__provider__post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PaymentProviderKind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"received":{"type":"string"},"status":{"type":"string"}},"required":["received","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/search":{"get":{"tags":["people"],"summary":"Search People","description":"The first people matching `q`, by name, or the people named by `ids`.\n\n`q` is matched word by word against the name and the address, every word\nsomewhere, case-insensitively. `ids` (comma-separated) answers with those\npeople whatever they are called, for a picker that has to show who is\nalready chosen. With `entity_id` and `needs`, only people who hold that\nright there are offered - an @-mention reaches only people who can read\nwhat they would be told about.","operationId":"search_people_api_v1_people_search_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ids"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}},{"name":"needs","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Perm"},{"type":"null"}],"title":"Needs"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Search People Api V1 People Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/poker":{"get":{"tags":["planning poker"],"summary":"Get Poker","description":"The room, as this person sees it.\n\nPolled, and doing three jobs because of it: reading the state, stamping the\nreader as present, and giving the round the chance to reveal itself now that\nsomebody has asked. The last is why the reveal feels immediate without a\nsocket - the answer is worked out on the request that would have shown the\nstale one.","operationId":"get_poker_api_v1_entities__entity_id__poker_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deck":{"items":{"type":"string"},"type":"array"},"estimable":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"type":"array"},"may_lead":{"type":"boolean"},"may_vote":{"type":"boolean"},"participants":{"items":{"properties":{"has_voted":{"type":"boolean"},"is_you":{"type":"boolean"},"may_vote":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"}},"required":["has_voted","is_you","may_vote","person","person_id"],"type":"object"},"type":"array"},"round":{"properties":{"id":{"type":"integer"},"item":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"my_vote":{"type":["null","string"]},"opened_at":{"type":"string"},"revealed":{"type":"boolean"},"revealed_at":{"type":"null"},"revealed_by":{"type":"null"},"settled_by":{"type":"null"},"settled_points":{"type":"null"},"spread":{"type":"null"},"votes":{"items":{"properties":{"changed":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"},"value":{"type":["null","string"]}},"required":["changed","person","person_id","value"],"type":"object"},"type":"array"}},"required":["id","item","my_vote","opened_at","revealed","revealed_at","revealed_by","settled_by","settled_points","spread","votes"],"type":["null","object"]},"session":{"properties":{"id":{"type":"integer"},"opened_at":{"type":"string"},"opened_by":{"type":"string"}},"required":["id","opened_at","opened_by"],"type":["null","object"]}},"required":["deck","estimable","may_lead","may_vote","participants","round","session"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/poker/session":{"post":{"tags":["planning poker"],"summary":"Open Poker Session","description":"Open the room. Idempotent: asking twice returns the session already\nrunning, because two people pressing the button at once is the normal way a\nmeeting starts and neither of them meant to make a second room.","operationId":"open_poker_session_api_v1_entities__entity_id__poker_session_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deck":{"items":{"type":"string"},"type":"array"},"estimable":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"type":"array"},"may_lead":{"type":"boolean"},"may_vote":{"type":"boolean"},"participants":{"items":{"properties":{"has_voted":{"type":"boolean"},"is_you":{"type":"boolean"},"may_vote":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"}},"required":["has_voted","is_you","may_vote","person","person_id"],"type":"object"},"type":"array"},"round":{"type":"null"},"session":{"properties":{"id":{"type":"integer"},"opened_at":{"type":"string"},"opened_by":{"type":"string"}},"required":["id","opened_at","opened_by"],"type":"object"}},"required":["deck","estimable","may_lead","may_vote","participants","round","session"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/poker/close":{"post":{"tags":["planning poker"],"summary":"Close Poker Session","description":"Close the room. The rounds and their votes stay: they are the record of\nhow the numbers on the backlog were arrived at.","operationId":"close_poker_session_api_v1_entities__entity_id__poker_close_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Poker Session Api V1 Entities  Entity Id  Poker Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/poker/leave":{"post":{"tags":["planning poker"],"summary":"Leave Poker Session","description":"Step out of the room without closing it.\n\nWorth an endpoint rather than leaving it to the staleness window, because\nthe person the round is waiting for is exactly the person who knows they are\nnot going to vote. Saying so releases the round now instead of in ninety\nseconds.","operationId":"leave_poker_session_api_v1_entities__entity_id__poker_leave_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deck":{"items":{"type":"string"},"type":"array"},"estimable":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"type":"array"},"may_lead":{"type":"boolean"},"may_vote":{"type":"boolean"},"participants":{"items":{"properties":{"has_voted":{"type":"boolean"},"is_you":{"type":"boolean"},"may_vote":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"}},"required":["has_voted","is_you","may_vote","person","person_id"],"type":"object"},"type":"array"},"round":{"properties":{"id":{"type":"integer"},"item":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"my_vote":{"type":"null"},"opened_at":{"type":"string"},"revealed":{"type":"boolean"},"revealed_at":{"type":"string"},"revealed_by":{"type":"null"},"settled_by":{"type":"null"},"settled_points":{"type":"null"},"spread":{"properties":{"agreed":{"type":"boolean"},"high":{"type":"number"},"low":{"type":"number"},"median":{"type":"number"},"unsure":{"type":"integer"}},"required":["agreed","high","low","median","unsure"],"type":"object"},"votes":{"items":{"properties":{"changed":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"},"value":{"type":"string"}},"required":["changed","person","person_id","value"],"type":"object"},"type":"array"}},"required":["id","item","my_vote","opened_at","revealed","revealed_at","revealed_by","settled_by","settled_points","spread","votes"],"type":"object"},"session":{"properties":{"id":{"type":"integer"},"opened_at":{"type":"string"},"opened_by":{"type":"string"}},"required":["id","opened_at","opened_by"],"type":"object"}},"required":["deck","estimable","may_lead","may_vote","participants","round","session"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/poker/round":{"post":{"tags":["planning poker"],"summary":"Open Round","description":"Put an item on the table.\n\nThe leader's call, and the one thing in a session that is not a vote. An\nunrevealed round left behind is revealed on the way out rather than\nabandoned - the votes were honestly cast and the room may want to see what\nit had before moving on.","operationId":"open_round_api_v1_entities__entity_id__poker_round_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__poker__RoundIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deck":{"items":{"type":"string"},"type":"array"},"estimable":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"type":"array"},"may_lead":{"type":"boolean"},"may_vote":{"type":"boolean"},"participants":{"items":{"properties":{"has_voted":{"type":"boolean"},"is_you":{"type":"boolean"},"may_vote":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"}},"required":["has_voted","is_you","may_vote","person","person_id"],"type":"object"},"type":"array"},"round":{"properties":{"id":{"type":"integer"},"item":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"my_vote":{"type":"null"},"opened_at":{"type":"string"},"revealed":{"type":"boolean"},"revealed_at":{"type":"null"},"revealed_by":{"type":"null"},"settled_by":{"type":"null"},"settled_points":{"type":"null"},"spread":{"type":"null"},"votes":{"type":"array"}},"required":["id","item","my_vote","opened_at","revealed","revealed_at","revealed_by","settled_by","settled_points","spread","votes"],"type":"object"},"session":{"properties":{"id":{"type":"integer"},"opened_at":{"type":"string"},"opened_by":{"type":"string"}},"required":["id","opened_at","opened_by"],"type":"object"}},"required":["deck","estimable","may_lead","may_vote","participants","round","session"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/poker/rounds/{round_id}/vote":{"put":{"tags":["planning poker"],"summary":"Cast Vote","description":"Pick a card, or change the one you picked.\n\nChanging is allowed right up to the reveal and is recorded as having\nhappened, because a room that can see somebody reconsidered is a room having\nthe conversation the practice is for. After the reveal it is refused: a vote\ncast once the numbers are on the table is not a secret ballot.","operationId":"cast_vote_api_v1_poker_rounds__round_id__vote_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deck":{"items":{"type":"string"},"type":"array"},"estimable":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"type":"array"},"may_lead":{"type":"boolean"},"may_vote":{"type":"boolean"},"participants":{"items":{"properties":{"has_voted":{"type":"boolean"},"is_you":{"type":"boolean"},"may_vote":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"}},"required":["has_voted","is_you","may_vote","person","person_id"],"type":"object"},"type":"array"},"round":{"properties":{"id":{"type":"integer"},"item":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"my_vote":{"type":"string"},"opened_at":{"type":"string"},"revealed":{"type":"boolean"},"revealed_at":{"type":["null","string"]},"revealed_by":{"type":"null"},"settled_by":{"type":"null"},"settled_points":{"type":"null"},"spread":{"properties":{"agreed":{"type":"boolean"},"high":{"type":"number"},"low":{"type":"number"},"median":{"type":"number"},"unsure":{"type":"integer"}},"required":["agreed","high","low","median","unsure"],"type":["null","object"]},"votes":{"items":{"properties":{"changed":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"},"value":{"type":"string"}},"required":["changed","person","person_id","value"],"type":"object"},"type":"array"}},"required":["id","item","my_vote","opened_at","revealed","revealed_at","revealed_by","settled_by","settled_points","spread","votes"],"type":"object"},"session":{"properties":{"id":{"type":"integer"},"opened_at":{"type":"string"},"opened_by":{"type":"string"}},"required":["id","opened_at","opened_by"],"type":"object"}},"required":["deck","estimable","may_lead","may_vote","participants","round","session"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/poker/rounds/{round_id}/reveal":{"post":{"tags":["planning poker"],"summary":"Reveal Round","description":"Turn the cards over without waiting for everybody.\n\nThe escape hatch, and the reason a session cannot be held hostage by\nsomebody who closed their laptop mid-round.","operationId":"reveal_round_api_v1_poker_rounds__round_id__reveal_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deck":{"items":{"type":"string"},"type":"array"},"estimable":{"items":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"type":"array"},"may_lead":{"type":"boolean"},"may_vote":{"type":"boolean"},"participants":{"items":{"properties":{"has_voted":{"type":"boolean"},"is_you":{"type":"boolean"},"may_vote":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"}},"required":["has_voted","is_you","may_vote","person","person_id"],"type":"object"},"type":"array"},"round":{"properties":{"id":{"type":"integer"},"item":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"null"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"my_vote":{"type":["null","string"]},"opened_at":{"type":"string"},"revealed":{"type":"boolean"},"revealed_at":{"type":"string"},"revealed_by":{"type":["null","string"]},"settled_by":{"type":"null"},"settled_points":{"type":"null"},"spread":{"properties":{"agreed":{"type":"boolean"},"high":{"type":["null","number"]},"low":{"type":["null","number"]},"median":{"type":["null","number"]},"unsure":{"type":"integer"}},"required":["agreed","high","low","median","unsure"],"type":"object"},"votes":{"items":{"properties":{"changed":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"},"value":{"type":"string"}},"required":["changed","person","person_id","value"],"type":"object"},"type":"array"}},"required":["id","item","my_vote","opened_at","revealed","revealed_at","revealed_by","settled_by","settled_points","spread","votes"],"type":"object"},"session":{"properties":{"id":{"type":"integer"},"opened_at":{"type":"string"},"opened_by":{"type":"string"}},"required":["id","opened_at","opened_by"],"type":"object"}},"required":["deck","estimable","may_lead","may_vote","participants","round","session"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/poker/rounds/{round_id}/settle":{"post":{"tags":["planning poker"],"summary":"Settle Round","description":"Write the number the room agreed onto the item.\n\nNot the median and not an average: what somebody decided, having seen the\nspread and heard the argument about it. The estimate the room settled on is\nkept on the round as well as on the item, because the item will be\nre-estimated later by people who were never in this room and the round is\nthe record of what was actually agreed here.","operationId":"settle_round_api_v1_poker_rounds__round_id__settle_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"round_id","in":"path","required":true,"schema":{"type":"integer","title":"Round Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deck":{"items":{"type":"string"},"type":"array"},"estimable":{"type":"array"},"may_lead":{"type":"boolean"},"may_vote":{"type":"boolean"},"participants":{"items":{"properties":{"has_voted":{"type":"boolean"},"is_you":{"type":"boolean"},"may_vote":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"}},"required":["has_voted","is_you","may_vote","person","person_id"],"type":"object"},"type":"array"},"round":{"properties":{"id":{"type":"integer"},"item":{"properties":{"acceptance_criteria":{"type":"string"},"description":{"type":"string"},"estimate_points":{"type":"number"},"id":{"type":"integer"},"level_label":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["acceptance_criteria","description","estimate_points","id","level_label","reference","title"],"type":"object"},"my_vote":{"type":"string"},"opened_at":{"type":"string"},"revealed":{"type":"boolean"},"revealed_at":{"type":"string"},"revealed_by":{"type":"null"},"settled_by":{"type":"string"},"settled_points":{"type":"number"},"spread":{"properties":{"agreed":{"type":"boolean"},"high":{"type":"number"},"low":{"type":"number"},"median":{"type":"number"},"unsure":{"type":"integer"}},"required":["agreed","high","low","median","unsure"],"type":"object"},"votes":{"items":{"properties":{"changed":{"type":"boolean"},"person":{"type":"string"},"person_id":{"type":"integer"},"value":{"type":"string"}},"required":["changed","person","person_id","value"],"type":"object"},"type":"array"}},"required":["id","item","my_vote","opened_at","revealed","revealed_at","revealed_by","settled_by","settled_points","spread","votes"],"type":"object"},"session":{"properties":{"id":{"type":"integer"},"opened_at":{"type":"string"},"opened_by":{"type":"string"}},"required":["id","opened_at","opened_by"],"type":"object"}},"required":["deck","estimable","may_lead","may_vote","participants","round","session"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/{key}":{"get":{"tags":["portal"],"summary":"Portal Front","description":"What a queue's portal says about itself, before anybody writes.","operationId":"portal_front_api_v1_portal__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"logo_url":{"type":["null","string"]},"planned_changes":{"items":{"properties":{"change_type":{"type":"string"},"done":{"type":"boolean"},"entity_name":{"type":"string"},"id":{"type":"integer"},"in_progress":{"type":"boolean"},"notice":{"type":"string"},"planned_end":{"type":"string"},"planned_start":{"type":"string"},"reference":{"type":"string"},"services":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"timezone":{"type":"string"},"title":{"type":"string"}},"required":["change_type","done","entity_name","id","in_progress","notice","planned_end","planned_start","reference","services","timezone","title"],"type":"object"},"type":"array"},"queue":{"properties":{"categories":{"items":{"type":"string"},"type":"array"},"description":{"type":"string"},"name":{"type":"string"},"resolution_minutes":{"type":"integer"},"response_minutes":{"type":"integer"}},"required":["categories","description","name","resolution_minutes","response_minutes"],"type":"object"}},"required":["logo_url","planned_changes","queue"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Raise Request","description":"Raise one. Answers with the link that follows it.","operationId":"raise_request_api_v1_portal__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RaiseIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"follow_url":{"type":"string"},"reference":{"type":"string"}},"required":["follow_url","reference"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/request/{token}":{"get":{"tags":["portal"],"summary":"Follow","description":"Read a request as its requester sees it, by the follow token they\nwere sent: its status, the messages they may read, attachments by name,\ncited articles, and whether it may still be answered or rated. Needs no\nsign-in.","operationId":"follow_api_v1_portal_request__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answered_at":{"type":"null"},"articles":{"items":{"properties":{"id":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string"}},"required":["id","title","url"],"type":"object"},"type":"array"},"attachments":{"items":{"properties":{"filename":{"type":"string"},"id":{"type":"integer"},"size_bytes":{"type":"integer"}},"required":["filename","id","size_bytes"],"type":"object"},"type":"array"},"created_at":{"type":"string"},"logo_url":{"type":["null","string"]},"may_rate":{"type":"boolean"},"messages":{"items":{"properties":{"author":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"from_agent":{"type":"boolean"},"id":{"type":"integer"}},"required":["author","body","created_at","from_agent","id"],"type":"object"},"type":"array"},"open":{"type":"boolean"},"queue_name":{"type":"string"},"raised_by":{"type":"string"},"rating":{"type":"null"},"reference":{"type":"string"},"resolved_at":{"type":["null","string"]},"status":{"type":"string"},"subject":{"type":"string"}},"required":["answered_at","articles","attachments","created_at","logo_url","may_rate","messages","open","queue_name","raised_by","rating","reference","resolved_at","status","subject"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/request/{token}/reply":{"post":{"tags":["portal"],"summary":"Reply","description":"The requester says something, which makes it the desk's turn again.","operationId":"reply_api_v1_portal_request__token__reply_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalReplyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answered_at":{"type":["null","string"]},"articles":{"type":"array"},"attachments":{"type":"array"},"created_at":{"type":"string"},"logo_url":{"type":"null"},"may_rate":{"type":"boolean"},"messages":{"items":{"properties":{"author":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"from_agent":{"type":"boolean"},"id":{"type":"integer"}},"required":["author","body","created_at","from_agent","id"],"type":"object"},"type":"array"},"open":{"type":"boolean"},"queue_name":{"type":"string"},"raised_by":{"type":"string"},"rating":{"type":"null"},"reference":{"type":"string"},"resolved_at":{"type":"null"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["answered_at","articles","attachments","created_at","logo_url","may_rate","messages","open","queue_name","raised_by","rating","reference","resolved_at","status","subject"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/request/{token}/rating":{"post":{"tags":["portal"],"summary":"Rate By Follow Token","description":"The requester says how it went, from the request's own page.","operationId":"rate_by_follow_token_api_v1_portal_request__token__rating_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answered_at":{"type":"null"},"articles":{"type":"array"},"attachments":{"type":"array"},"created_at":{"type":"string"},"logo_url":{"type":"null"},"may_rate":{"type":"boolean"},"messages":{"items":{"properties":{"author":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string"},"from_agent":{"type":"boolean"},"id":{"type":"integer"}},"required":["author","body","created_at","from_agent","id"],"type":"object"},"type":"array"},"open":{"type":"boolean"},"queue_name":{"type":"string"},"raised_by":{"type":"string"},"rating":{"type":"integer"},"reference":{"type":"string"},"resolved_at":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["answered_at","articles","attachments","created_at","logo_url","may_rate","messages","open","queue_name","raised_by","rating","reference","resolved_at","status","subject"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/rate/{token}":{"get":{"tags":["portal"],"summary":"Rating Page","description":"The letter's link: what is being rated, and whether it still can be.","operationId":"rating_page_api_v1_portal_rate__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"logo_url":{"type":"null"},"may_rate":{"type":"boolean"},"queue_name":{"type":"string"},"rating":{"type":"null"},"reference":{"type":"string"},"subject":{"type":"string"}},"required":["logo_url","may_rate","queue_name","rating","reference","subject"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal"],"summary":"Rate By Letter","description":"Rate a request from 1 to 5, with an optional comment, by the rating\ntoken in the letter that asked. Needs no sign-in. Returns the rating.\n\nA request is rated once, and only when resolved or closed.","operationId":"rate_by_letter_api_v1_portal_rate__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"may_rate":{"type":"boolean"},"rating":{"type":"integer"}},"required":["may_rate","rating"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/request/{token}/attachments":{"post":{"tags":["portal"],"summary":"Attach","description":"The requester sends a file with their request: the screenshot, the\ninvoice, the log. Through the follow token, so it can be done the moment\nthe request is raised or any time after, and only on one that is still\nopen - a closed request takes no more of anything.","operationId":"attach_api_v1_portal_request__token__attachments_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_attach_api_v1_portal_request__token__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"attachments":{"items":{"properties":{"filename":{"type":"string"},"id":{"type":"integer"},"size_bytes":{"type":"integer"}},"required":["filename","id","size_bytes"],"type":"object"},"type":"array"}},"required":["attachments"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/{key}/articles":{"get":{"tags":["portal"],"summary":"Articles","description":"The pages marked for requesters on this queue's entity and the ones\nabove it, most like `q` first - or the newest, with nothing asked.\nOffered as somebody types what they need, so the answer can arrive\nbefore the request does.","operationId":"articles_api_v1_portal__key__articles_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"articles":{"items":{"properties":{"id":{"type":"integer"},"summary":{"type":"string"},"title":{"type":"string"},"updated_at":{"type":"string"},"url":{"type":"string"}},"required":["id","summary","title","updated_at","url"],"type":"object"},"type":"array"}},"required":["articles"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/{key}/articles/{document_id}":{"get":{"tags":["portal"],"summary":"Read Article","description":"One article, as the portal shows it: links to other pages kept only\nwhere those are for requesters too, everything that needs a seat to\nopen left as its words. A page not marked for requesters answers as\nabsent, like a private queue.","operationId":"read_article_api_v1_portal__key__articles__document_id__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"body":{"type":"string"},"id":{"type":"integer"},"logo_url":{"type":"null"},"portal_url":{"type":"string"},"queue_name":{"type":"string"},"summary":{"type":"string"},"title":{"type":"string"},"updated_at":{"type":"string"},"url":{"type":"string"}},"required":["body","id","logo_url","portal_url","queue_name","summary","title","updated_at","url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/{key}/articles/{document_id}/helped":{"post":{"tags":["portal"],"summary":"Article Helped","description":"The requester says whether it answered. Remembered against the\nrequest where there is one, and against the queue alone where there is\nnot - a request never raised being what an article is for.","operationId":"article_helped_api_v1_portal__key__articles__document_id__helped_post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpedIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"helped":{"type":"boolean"}},"required":["helped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/privacy/export":{"get":{"tags":["privacy"],"summary":"Export My Data","description":"The right to know, answered for the signed-in person.","operationId":"export_my_data_api_v1_privacy_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"activity_log":{"items":{"properties":{"created_at":{"type":"string"},"summary":{"type":"string"},"verb":{"type":"string"}},"required":["created_at","summary","verb"],"type":"object"},"type":"array"},"approval_decisions":{"type":"array"},"assessment_participation":{"type":"array"},"assigned_work_items":{"type":"array"},"attributable_survey_answers":{"type":"array"},"authored":{"properties":{"change_requests":{"type":"array"},"factors":{"type":"array"},"rca_nodes":{"type":"array"}},"required":["change_requests","factors","rca_nodes"],"type":"object"},"factor_votes":{"type":"array"},"groups":{"type":"array"},"identity":{"properties":{"email":{"type":"string"},"external_id":{"type":"null"},"full_name":{"type":"string"},"id":{"type":"integer"},"is_account_admin":{"type":"boolean"},"joined_at":{"type":"string"},"last_sign_in_at":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["email","external_id","full_name","id","is_account_admin","joined_at","last_sign_in_at","status","title"],"type":"object"},"memberships":{"items":{"properties":{"entity_id":{"type":"integer"},"role":{"type":"string"}},"required":["entity_id","role"],"type":"object"},"type":"array"},"note":{"type":"string"},"rca_answers":{"type":"array"},"readiness_invitations":{"type":"array"},"uploaded_attachments":{"items":{"properties":{"created_at":{"type":"string"},"filename":{"type":"string"},"size_bytes":{"type":"integer"},"work_item_id":{"type":"integer"}},"required":["created_at","filename","size_bytes","work_item_id"],"type":"object"},"type":"array"}},"required":["activity_log","approval_decisions","assessment_participation","assigned_work_items","attributable_survey_answers","authored","factor_votes","groups","identity","memberships","note","rca_answers","readiness_invitations","uploaded_attachments"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/privacy/export/{person_id}":{"get":{"tags":["privacy"],"summary":"Export Person Data","description":"The same, fulfilled by an administrator on someone's behalf.","operationId":"export_person_data_api_v1_privacy_export__person_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"activity_log":{"type":"array"},"approval_decisions":{"type":"array"},"assessment_participation":{"type":"array"},"assigned_work_items":{"type":"array"},"attributable_survey_answers":{"type":"array"},"authored":{"properties":{"change_requests":{"type":"array"},"factors":{"type":"array"},"rca_nodes":{"type":"array"}},"required":["change_requests","factors","rca_nodes"],"type":"object"},"factor_votes":{"type":"array"},"groups":{"items":{"properties":{"added_at":{"type":["null","string"]},"group_id":{"type":"integer"},"name":{"type":"string"},"source":{"type":"string"}},"required":["added_at","group_id","name","source"],"type":"object"},"type":"array"},"identity":{"properties":{"email":{"type":"string"},"external_id":{"type":"null"},"full_name":{"type":"string"},"id":{"type":"integer"},"is_account_admin":{"type":"boolean"},"joined_at":{"type":"string"},"last_sign_in_at":{"type":"null"},"status":{"type":"string"},"title":{"type":"string"}},"required":["email","external_id","full_name","id","is_account_admin","joined_at","last_sign_in_at","status","title"],"type":"object"},"memberships":{"type":"array"},"note":{"type":"string"},"rca_answers":{"type":"array"},"readiness_invitations":{"items":{"properties":{"answered":{"type":"boolean"},"initiative_id":{"type":"integer"},"invited_at":{"type":"string"},"reminders":{"type":"integer"},"round_id":{"type":"integer"},"round_name":{"type":"string"},"withdrawn_at":{"type":"null"}},"required":["answered","initiative_id","invited_at","reminders","round_id","round_name","withdrawn_at"],"type":"object"},"type":"array"},"uploaded_attachments":{"type":"array"}},"required":["activity_log","approval_decisions","assessment_participation","assigned_work_items","attributable_survey_answers","authored","factor_votes","groups","identity","memberships","note","rca_answers","readiness_invitations","uploaded_attachments"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/privacy/contacts/{contact_id}/anonymise":{"post":{"tags":["privacy"],"summary":"Anonymise Contact","description":"The right to erasure, for somebody outside who asked a person here\nrather than using the link in their letters. The same rule as for a\nmember: the identity goes, what they said stays. See\nservices/outsider_rights.py for what that means for a contact.","operationId":"anonymise_contact_api_v1_privacy_contacts__contact_id__anonymise_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"anonymised":{"type":"boolean"},"id":{"type":"integer"}},"required":["anonymised","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/privacy/anonymise/{person_id}":{"post":{"tags":["privacy"],"summary":"Anonymise Person","description":"The right to erasure.\n\nThe identity is destroyed and the account deactivated. Content the person\ncreated stays, now unattributable, because it is also a record of what the\norganisation decided.","operationId":"anonymise_person_api_v1_privacy_anonymise__person_id__post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"full_name":{"type":"string"},"id":{"type":"integer"},"status":{"type":"string"}},"required":["full_name","id","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/entities/{entity_id}/factors":{"get":{"tags":["reports"],"summary":"Factors Report","description":"The factors report for an entity: each factor and objective with its\nstatus, KPI, target, readings and votes, the count in each status, the\nKPIs rolled up from the entities beneath, and the changes made to the\nset. `scope` is `entity` for the entity alone or `subtree` to include\nevery entity beneath it that the caller may see. The answer also holds\nthe same rows as a table of `columns` and `rows`.","operationId":"factors_report_api_v1_reports_entities__entity_id__factors_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"entity","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"all_columns":{"items":{"properties":{"default":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"}},"required":["default","key","label"],"type":"object"},"type":"array"},"changes":{"type":"array"},"columns":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":"array"},"counts":{"properties":{"accepted":{"type":"integer"},"proposed":{"type":"integer"},"rejected":{"type":"integer"}},"required":["accepted","proposed","rejected"],"type":"object"},"description":{"type":"string"},"entity_count":{"type":"integer"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"entity_path":{"items":{"type":"string"},"type":"array"},"factors":{"items":{"properties":{"achieved_value":{"type":"null"},"category":{"type":"string"},"current_source":{"type":["null","string"]},"current_value":{"type":["null","number"]},"days_since_reading":{"type":["null","integer"]},"drift":{"type":["null","number"]},"entity":{"type":"string"},"factor_statement":{"type":"string"},"goal":{"type":"string"},"id":{"type":"integer"},"kpi":{"type":"string"},"last_measured_on":{"type":["null","string"]},"objective_statement":{"type":"string"},"reading_count":{"type":"integer"},"status":{"type":"string"},"target_date":{"type":["null","string"]},"target_revisions":{"type":"integer"},"target_value":{"type":["null","number"]},"trend":{"type":["null","string"]},"unit":{"type":"string"},"vote_count":{"type":"integer"},"vote_mean":{"type":"null"}},"required":["achieved_value","category","current_source","current_value","days_since_reading","drift","entity","factor_statement","goal","id","kpi","last_measured_on","objective_statement","reading_count","status","target_date","target_revisions","target_value","trend","unit","vote_count","vote_mean"],"type":"object"},"type":"array"},"kind":{"type":"string"},"kpis":{"items":{"properties":{"contributors":{"items":{"properties":{"current":{"type":"number"},"entity":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"kind":{"type":"string"},"last_measured_on":{"type":["null","string"]},"name":{"type":"string"},"service":{"type":"string"},"service_id":{"type":["null","integer"]},"target":{"type":"number"},"trend":{"type":"string"},"weight":{"type":["null","number"]}},"required":["current","entity","entity_id","id","kind","last_measured_on","name","target","trend","weight"],"type":"object"},"type":"array"},"count":{"type":"integer"},"current":{"type":"number"},"entities":{"items":{"type":"string"},"type":"array"},"kpi":{"type":"string"},"kpi_id":{"type":"integer"},"lower_is_better":{"type":"boolean"},"measured":{"type":"integer"},"met":{"type":"boolean"},"rule":{"type":"string"},"services":{"items":{"type":"string"},"type":"array"},"target":{"type":"number"},"trends":{"properties":{"not enough readings":{"type":"integer"}},"required":["not enough readings"],"type":"object"},"unit":{"type":"string"},"weighted":{"type":"boolean"}},"required":["contributors","count","current","entities","kpi","kpi_id","lower_is_better","measured","met","rule","target","trends","unit","weighted"],"type":"object"},"type":"array"},"logo_url":{"type":"null"},"readings":{"properties":{"measured":{"type":"integer"},"never":{"type":"integer"},"stale":{"type":"integer"},"with_kpi":{"type":"integer"}},"required":["measured","never","stale","with_kpi"],"type":"object"},"rows":{"items":{"properties":{"achieved_value":{"type":"null"},"applicability_pct":{"type":"null"},"category":{"type":"string"},"current_source":{"type":["null","string"]},"current_value":{"type":["null","number"]},"days_since_reading":{"type":["null","integer"]},"drift":{"type":["null","number"]},"entity":{"type":"string"},"factor_statement":{"type":"string"},"goal":{"type":"string"},"id":{"type":"integer"},"kpi":{"type":"string"},"last_measured_on":{"type":["null","string"]},"objective_statement":{"type":"string"},"reading_count":{"type":"integer"},"status":{"type":"string"},"target_date":{"type":["null","string"]},"target_revisions":{"type":"integer"},"target_value":{"type":["null","number"]},"trend":{"type":["null","string"]},"unit":{"type":"string"},"vote_count":{"type":"integer"},"vote_mean":{"type":"null"}},"required":["achieved_value","applicability_pct","category","current_source","current_value","days_since_reading","drift","entity","factor_statement","goal","id","kpi","last_measured_on","objective_statement","reading_count","status","target_date","target_revisions","target_value","trend","unit","vote_count","vote_mean"],"type":"object"},"type":"array"},"scope":{"type":"string"},"terms":{"properties":{"assessment":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"category":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"change_request":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"factor":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"goal":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"initiative":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"kpi":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"pi_objective":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"planning_interval":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"risk":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"service":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"solution":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"sprint":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"value_stream":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"version":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"}},"required":["assessment","category","change_request","factor","goal","initiative","kpi","pi_objective","planning_interval","risk","service","solution","sprint","value_stream","version"],"type":"object"},"title":{"type":"string"}},"required":["all_columns","changes","columns","counts","description","entity_count","entity_id","entity_name","entity_path","factors","kind","kpis","logo_url","readings","rows","scope","terms","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/entities/{entity_id}/factors/export":{"get":{"tags":["reports"],"summary":"Export Factors Report","description":"The factors report as a file.\n\nBuilt from the same function the screen calls and cut to the same columns\nthe reader chose, so what downloads is what they were looking at. The\nwriter is the one custom reports already use - a shipped report and a\nwritten one produce the same `{columns, rows}`, which is the whole reason\nreporting/fixed.py exists.","operationId":"export_factors_report_api_v1_reports_entities__entity_id__factors_export_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fields"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"entity","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{},"text/csv":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/entities/{entity_id}/desk":{"get":{"tags":["reports"],"summary":"Service Desk Report","description":"The service desk report for an entity: the requests raised in the last\n`days` days (7, 30 or 90) and those still open, with reply and\nresolution times, the open requests counted by status and priority, and\nthe figures for each queue and each agent. `scope` is `entity` or\n`subtree`. The answer also holds the requests as a table of `columns`\nand `rows`.\n\nThe caller needs the right to view reports and the right to answer\nrequests on the entity.","operationId":"service_desk_report_api_v1_reports_entities__entity_id__desk_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"entity","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"agents":{"items":{"properties":{"agent":{"type":"string"},"incidents":{"type":"integer"},"late_now":{"type":"integer"},"median_reply_minutes":{"type":"null"},"median_resolution_minutes":{"type":"integer"},"open_now":{"type":"integer"},"person_id":{"type":"integer"},"raised":{"type":"integer"},"rating_avg":{"type":"number"},"ratings":{"type":"integer"},"reply_kept_pct":{"type":"null"},"reply_promises":{"type":"integer"},"resolution_kept_pct":{"type":"number"},"resolution_promises":{"type":"integer"},"resolved":{"type":"integer"}},"required":["agent","incidents","late_now","median_reply_minutes","median_resolution_minutes","open_now","person_id","raised","rating_avg","ratings","reply_kept_pct","reply_promises","resolution_kept_pct","resolution_promises","resolved"],"type":"object"},"type":"array"},"all_columns":{"items":{"properties":{"default":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"}},"required":["default","key","label"],"type":"object"},"type":"array"},"by_priority":{"properties":{"high":{"type":"integer"},"low":{"type":"integer"},"normal":{"type":"integer"},"urgent":{"type":"integer"}},"required":["high","low","normal","urgent"],"type":"object"},"by_status":{"properties":{"new":{"type":"integer"},"open":{"type":"integer"},"waiting":{"type":"integer"}},"required":["new","open","waiting"],"type":"object"},"columns":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":"array"},"days":{"type":"integer"},"description":{"type":"string"},"entity_count":{"type":"integer"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"entity_path":{"items":{"type":"string"},"type":"array"},"figures":{"properties":{"incidents":{"type":"integer"},"late_now":{"type":"integer"},"median_reply_minutes":{"type":["null","integer"]},"median_resolution_minutes":{"type":["null","integer"]},"open_now":{"type":"integer"},"raised":{"type":"integer"},"rating_avg":{"type":["null","number"]},"ratings":{"type":"integer"},"reply_kept_pct":{"type":["null","number"]},"reply_promises":{"type":"integer"},"resolution_kept_pct":{"type":["null","number"]},"resolution_promises":{"type":"integer"},"resolved":{"type":"integer"}},"required":["incidents","late_now","median_reply_minutes","median_resolution_minutes","open_now","raised","rating_avg","ratings","reply_kept_pct","reply_promises","resolution_kept_pct","resolution_promises","resolved"],"type":"object"},"kind":{"type":"string"},"logo_url":{"type":["null","string"]},"queues":{"items":{"properties":{"entity":{"type":"string"},"incidents":{"type":"integer"},"late_now":{"type":"integer"},"median_reply_minutes":{"type":["null","integer"]},"median_resolution_minutes":{"type":["null","integer"]},"open_now":{"type":"integer"},"queue":{"type":"string"},"queue_id":{"type":"integer"},"raised":{"type":"integer"},"rating_avg":{"type":["null","number"]},"ratings":{"type":"integer"},"reply_kept_pct":{"type":["null","number"]},"reply_promises":{"type":"integer"},"resolution_kept_pct":{"type":["null","number"]},"resolution_promises":{"type":"integer"},"resolved":{"type":"integer"}},"required":["entity","incidents","late_now","median_reply_minutes","median_resolution_minutes","open_now","queue","queue_id","raised","rating_avg","ratings","reply_kept_pct","reply_promises","resolution_kept_pct","resolution_promises","resolved"],"type":"object"},"type":"array"},"requests":{"items":{"properties":{"assignee":{"type":"string"},"assignee_id":{"type":["null","integer"]},"entity":{"type":"string"},"first_reply_minutes":{"type":["null","integer"]},"id":{"type":"integer"},"kind":{"type":"string"},"late_now":{"type":"boolean"},"paused_minutes":{"type":"integer"},"priority":{"type":"string"},"queue":{"type":"string"},"queue_id":{"type":"integer"},"raised_at":{"type":"string"},"rating":{"type":["null","integer"]},"reference":{"type":"string"},"reply_kept":{"type":["null","boolean"]},"requester":{"type":"string"},"resolution_kept":{"type":["null","boolean"]},"resolution_minutes":{"type":["null","integer"]},"resolved_at":{"type":["null","string"]},"status":{"type":"string"},"subject":{"type":"string"}},"required":["assignee","assignee_id","entity","first_reply_minutes","id","kind","late_now","paused_minutes","priority","queue","queue_id","raised_at","rating","reference","reply_kept","requester","resolution_kept","resolution_minutes","resolved_at","status","subject"],"type":"object"},"type":"array"},"rows":{"items":{"properties":{"assignee":{"type":"string"},"assignee_id":{"type":["null","integer"]},"entity":{"type":"string"},"first_reply_minutes":{"type":["null","integer"]},"id":{"type":"integer"},"kind":{"type":"string"},"late_now":{"type":"string"},"paused_minutes":{"type":"integer"},"priority":{"type":"string"},"queue":{"type":"string"},"queue_id":{"type":"integer"},"raised_at":{"type":"string"},"rating":{"type":["null","integer"]},"reference":{"type":"string"},"reply_kept":{"type":"string"},"requester":{"type":"string"},"resolution_kept":{"type":"string"},"resolution_minutes":{"type":["null","integer"]},"resolved_at":{"type":["null","string"]},"status":{"type":"string"},"subject":{"type":"string"}},"required":["assignee","assignee_id","entity","first_reply_minutes","id","kind","late_now","paused_minutes","priority","queue","queue_id","raised_at","rating","reference","reply_kept","requester","resolution_kept","resolution_minutes","resolved_at","status","subject"],"type":"object"},"type":"array"},"scope":{"type":"string"},"since":{"type":"string"},"terms":{"properties":{"assessment":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"category":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"change_request":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"factor":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"goal":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"initiative":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"kpi":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"pi_objective":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"planning_interval":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"risk":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"service":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"solution":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"sprint":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"value_stream":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"version":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"}},"required":["assessment","category","change_request","factor","goal","initiative","kpi","pi_objective","planning_interval","risk","service","solution","sprint","value_stream","version"],"type":"object"},"title":{"type":"string"},"until":{"type":"string"}},"required":["agents","all_columns","by_priority","by_status","columns","days","description","entity_count","entity_id","entity_name","entity_path","figures","kind","logo_url","queues","requests","rows","scope","since","terms","title","until"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/entities/{entity_id}/changes":{"get":{"tags":["reports"],"summary":"Change Report","description":"The change report for an entity: the change requests implemented in\nthe last `days` days (30, 90 or 180) and those still in progress, with\ntheir risk, outcome, lead time and the incidents each caused, and the\nfigures for each month and each service. `scope` is `entity` or\n`subtree`. The answer also holds the change requests as a table of\n`columns` and `rows`.\n\nThe caller needs the right to view reports and the right to view change\nrequests on the entity.","operationId":"change_report_api_v1_reports_entities__entity_id__changes_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Days"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"entity","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"all_columns":{"items":{"properties":{"default":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"}},"required":["default","key","label"],"type":"object"},"type":"array"},"by_month":{"items":{"properties":{"caused_incidents":{"type":"integer"},"emergency_share_pct":{"type":["null","number"]},"failed":{"type":"integer"},"failure_rate_pct":{"type":["null","number"]},"implemented":{"type":"integer"},"judged":{"type":"integer"},"live":{"type":"integer"},"median_lead_hours":{"type":["null","number"]},"month":{"type":"string"},"success_rate_pct":{"type":["null","number"]},"successful":{"type":"integer"}},"required":["caused_incidents","emergency_share_pct","failed","failure_rate_pct","implemented","judged","live","median_lead_hours","month","success_rate_pct","successful"],"type":"object"},"type":"array"},"by_service":{"items":{"properties":{"caused_incidents":{"type":"integer"},"emergency_share_pct":{"type":"number"},"failed":{"type":"integer"},"failure_rate_pct":{"type":"number"},"implemented":{"type":"integer"},"judged":{"type":"integer"},"live":{"type":"integer"},"median_lead_hours":{"type":"number"},"service":{"type":"string"},"service_id":{"type":"integer"},"success_rate_pct":{"type":"number"},"successful":{"type":"integer"}},"required":["caused_incidents","emergency_share_pct","failed","failure_rate_pct","implemented","judged","live","median_lead_hours","service","service_id","success_rate_pct","successful"],"type":"object"},"type":"array"},"changes":{"items":{"properties":{"change_type":{"type":"string"},"entity":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"impact":{"type":"string"},"implemented_at":{"type":["null","string"]},"incidents_caused":{"type":"integer"},"lead_hours":{"type":["null","number"]},"live":{"type":"boolean"},"outcome":{"type":["null","string"]},"raised_at":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"services":{"type":"string"},"state":{"type":"string"},"title":{"type":"string"},"window_hours":{"type":["null","number"]}},"required":["change_type","entity","entity_id","id","impact","implemented_at","incidents_caused","lead_hours","live","outcome","raised_at","reference","risk","services","state","title","window_hours"],"type":"object"},"type":"array"},"columns":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":"array"},"days":{"type":"integer"},"description":{"type":"string"},"entity_count":{"type":"integer"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"entity_path":{"items":{"type":"string"},"type":"array"},"figures":{"properties":{"caused_incidents":{"type":"integer"},"deployments":{"type":"integer"},"deployments_per_week":{"type":"number"},"emergency_share_pct":{"type":"number"},"failed":{"type":"integer"},"failure_rate_pct":{"type":"number"},"implemented":{"type":"integer"},"judged":{"type":"integer"},"live":{"type":"integer"},"median_lead_hours":{"type":"number"},"success_rate_pct":{"type":"number"},"successful":{"type":"integer"}},"required":["caused_incidents","deployments","deployments_per_week","emergency_share_pct","failed","failure_rate_pct","implemented","judged","live","median_lead_hours","success_rate_pct","successful"],"type":"object"},"kind":{"type":"string"},"logo_url":{"type":"null"},"rows":{"items":{"properties":{"change_type":{"type":"string"},"entity":{"type":"string"},"entity_id":{"type":"integer"},"id":{"type":"integer"},"impact":{"type":"string"},"implemented_at":{"type":["null","string"]},"incidents_caused":{"type":"integer"},"lead_hours":{"type":["null","number"]},"live":{"type":"boolean"},"outcome":{"type":"string"},"raised_at":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"services":{"type":"string"},"state":{"type":"string"},"title":{"type":"string"},"window_hours":{"type":["null","number"]}},"required":["change_type","entity","entity_id","id","impact","implemented_at","incidents_caused","lead_hours","live","outcome","raised_at","reference","risk","services","state","title","window_hours"],"type":"object"},"type":"array"},"scope":{"type":"string"},"since":{"type":"string"},"terms":{"properties":{"assessment":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"category":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"change_request":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"factor":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"goal":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"initiative":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"kpi":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"pi_objective":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"planning_interval":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"risk":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"service":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"solution":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"sprint":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"value_stream":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"version":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"}},"required":["assessment","category","change_request","factor","goal","initiative","kpi","pi_objective","planning_interval","risk","service","solution","sprint","value_stream","version"],"type":"object"},"title":{"type":"string"},"until":{"type":"string"}},"required":["all_columns","by_month","by_service","changes","columns","days","description","entity_count","entity_id","entity_name","entity_path","figures","kind","logo_url","rows","scope","since","terms","title","until"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/entities/{entity_id}/changes/export":{"get":{"tags":["reports"],"summary":"Export Change Report","description":"Download the change report as a file. `fmt` is `csv` or `xlsx`, and\n`fields` is a comma-separated list of column keys; without it the file\nholds the report's default columns. `days` and `scope` mean what they\nmean on the report itself.","operationId":"export_change_report_api_v1_reports_entities__entity_id__changes_export_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fields"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Days"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"entity","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"text/csv":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/entities/{entity_id}/desk/export":{"get":{"tags":["reports"],"summary":"Export Service Desk Report","description":"Download the service desk report as a file. `fmt` is `csv` or `xlsx`,\nand `fields` is a comma-separated list of column keys; without it the\nfile holds the report's default columns. `days` and `scope` mean what\nthey mean on the report itself.","operationId":"export_service_desk_report_api_v1_reports_entities__entity_id__desk_export_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fields"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"entity","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"text/csv":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/assessments/{assessment_id}":{"get":{"tags":["reports"],"summary":"Assessment Report","description":"An assessment's results as a report: every plotted point, the\naggregate, the number of respondents, the five points on which the\nrespondents most disagreed, the five weakest, and the initiatives linked\nto the assessment. The answer also holds the points as a table of\n`columns` and `rows`.\n\nThe caller needs the right to view reports and the right to see\nassessment results on the entity.","operationId":"assessment_report_api_v1_reports_assessments__assessment_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"aggregate":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{},"required":[],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"null"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"all_columns":{"items":{"properties":{"default":{"type":"boolean"},"key":{"type":"string"},"label":{"type":"string"}},"required":["default","key","label"],"type":"object"},"type":"array"},"anonymous":{"type":"boolean"},"assessment_date":{"type":"string"},"assessment_id":{"type":"integer"},"assessment_kind":{"type":"string"},"children":{"type":"array"},"columns":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"type":"object"},"type":"array"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"entity_path":{"items":{"type":"string"},"type":"array"},"future_date":{"type":"null"},"include_zero":{"type":"boolean"},"initiatives":{"type":"array"},"kind":{"type":"string"},"logo_url":{"type":"null"},"most_divided":{"items":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{"category_id":{"type":["null","integer"]},"category_name":{"type":"string"},"ot_count":{"type":"integer"},"ot_mean":{"type":"number"},"ot_std_dev":{"type":"number"},"service_ids":{"type":"array"},"services":{"type":"array"},"sw_count":{"type":"integer"},"sw_mean":{"type":"number"},"sw_std_dev":{"type":"number"}},"required":["category_id","category_name","ot_count","ot_mean","ot_std_dev","service_ids","services","sw_count","sw_mean","sw_std_dev"],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"integer"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"type":"array"},"points":{"items":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{"category_id":{"type":["null","integer"]},"category_name":{"type":"string"},"ot_count":{"type":"integer"},"ot_mean":{"type":"number"},"ot_std_dev":{"type":"number"},"service_ids":{"type":"array"},"services":{"type":"array"},"sw_count":{"type":"integer"},"sw_mean":{"type":"number"},"sw_std_dev":{"type":"number"}},"required":["category_id","category_name","ot_count","ot_mean","ot_std_dev","service_ids","services","sw_count","sw_mean","sw_std_dev"],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"integer"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"type":"array"},"respondent_count":{"type":"integer"},"rows":{"items":{"properties":{"agreement_pct":{"type":"integer"},"category":{"type":"string"},"dispersion":{"type":"number"},"extra":{"properties":{"category_id":{"type":["null","integer"]},"category_name":{"type":"string"},"ot_count":{"type":"integer"},"ot_mean":{"type":"number"},"ot_std_dev":{"type":"number"},"service_ids":{"type":"array"},"services":{"type":"array"},"sw_count":{"type":"integer"},"sw_mean":{"type":"number"},"sw_std_dev":{"type":"number"}},"required":["category_id","category_name","ot_count","ot_mean","ot_std_dev","service_ids","services","sw_count","sw_mean","sw_std_dev"],"type":"object"},"label":{"type":"string"},"ot_percent":{"type":"integer"},"quadrant":{"type":"string"},"reference_id":{"type":"integer"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"sw_percent":{"type":"integer"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["agreement_pct","category","dispersion","extra","label","ot_percent","quadrant","reference_id","response_count","std_dev","sw_percent","title","weight","x","y"],"type":"object"},"type":"array"},"status":{"type":"string"},"terms":{"properties":{"assessment":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"category":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"change_request":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"factor":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"goal":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"initiative":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"kpi":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"pi_objective":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"planning_interval":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"risk":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"service":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"solution":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"sprint":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"value_stream":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"},"version":{"properties":{"label":{"type":"string"},"plural":{"type":"string"}},"required":["label","plural"],"type":"object"}},"required":["assessment","category","change_request","factor","goal","initiative","kpi","pi_objective","planning_interval","risk","service","solution","sprint","value_stream","version"],"type":"object"},"title":{"type":"string"},"weakest":{"items":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{"category_id":{"type":["null","integer"]},"category_name":{"type":"string"},"ot_count":{"type":"integer"},"ot_mean":{"type":"number"},"ot_std_dev":{"type":"number"},"service_ids":{"type":"array"},"services":{"type":"array"},"sw_count":{"type":"integer"},"sw_mean":{"type":"number"},"sw_std_dev":{"type":"number"}},"required":["category_id","category_name","ot_count","ot_mean","ot_std_dev","service_ids","services","sw_count","sw_mean","sw_std_dev"],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"integer"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"type":"array"}},"required":["aggregate","all_columns","anonymous","assessment_date","assessment_id","assessment_kind","children","columns","description","entity_id","entity_name","entity_path","future_date","include_zero","initiatives","kind","logo_url","most_divided","points","respondent_count","rows","status","terms","title","weakest"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/assessments/{assessment_id}/export":{"get":{"tags":["reports"],"summary":"Export Assessment Report","description":"Download an assessment's report as a file. `fmt` is `csv` or `xlsx`,\nand `fields` is a comma-separated list of column keys; without it the\nfile holds the report's default columns.","operationId":"export_assessment_report_api_v1_reports_assessments__assessment_id__export_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fields"}}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{},"text/csv":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/assessments/{assessment_id}/rca":{"get":{"tags":["reports"],"summary":"Rca Report","description":"An assessment's root cause analysis as a report: its assertions with\ntheir status and factor, the root causes (accepted causes that have no\ncause of their own), the links from effect to cause, and a count of\neach. The answer also holds the same rows as a table of `columns` and\n`rows`.","operationId":"rca_report_api_v1_reports_assessments__assessment_id__rca_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rca Report Api V1 Reports Assessments  Assessment Id  Rca Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/assessments/{assessment_id}/rca/export":{"get":{"tags":["reports"],"summary":"Export Rca Report","description":"Download an assessment's root cause analysis report as a file. `fmt`\nis `csv` or `xlsx`, and `fields` is a comma-separated list of column\nkeys; without it the file holds the report's default columns.","operationId":"export_rca_report_api_v1_reports_assessments__assessment_id__rca_export_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fields"}}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{},"text/csv":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/planning-intervals/{pi_id}":{"get":{"tags":["reports"],"summary":"Pi Report","description":"A planning interval as a report: the plan while it is ahead, the outcome\nonce it has closed.\n\nRead by the print view and by the summariser, which is why it is the payload\nrather than a page - the same figures, in the shape `services/ai` knows how\nto talk about (spec 13.2 asks for both).","operationId":"pi_report_api_v1_reports_planning_intervals__pi_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pi Report Api V1 Reports Planning Intervals  Pi Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/compare":{"get":{"tags":["reports"],"summary":"Comparison Report","description":"Compare assessments. `assessment_ids` is a comma-separated list.\n\nServes both jobs the spec asks for: one entity over time, and competing\nDFSAs against each other.","operationId":"comparison_report_api_v1_reports_compare_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_ids","in":"query","required":true,"schema":{"type":"string","title":"Assessment Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"columns":{"items":{"properties":{"aggregate":{"properties":{"dispersion":{"type":"number"},"extra":{"properties":{},"required":[],"type":"object"},"label":{"type":"string"},"quadrant":{"type":"string"},"reference_id":{"type":"null"},"response_count":{"type":"integer"},"std_dev":{"type":"number"},"title":{"type":"string"},"weight":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","extra","label","quadrant","reference_id","response_count","std_dev","title","weight","x","y"],"type":"object"},"assessment_id":{"type":"integer"},"date":{"type":"string"},"kind":{"type":"string"},"respondent_count":{"type":"integer"},"title":{"type":"string"}},"required":["aggregate","assessment_id","date","kind","respondent_count","title"],"type":"object"},"type":"array"},"deltas":{"items":{"properties":{"dx":{"type":"number"},"dy":{"type":"number"},"letter":{"type":"string"},"title":{"type":"string"}},"required":["dx","dy","letter","title"],"type":"object"},"type":"array"},"kind":{"type":"string"},"kpis":{"items":{"properties":{"change":{"type":"number"},"factor":{"type":"string"},"factor_id":{"type":"integer"},"first_value":{"type":"number"},"kpi":{"type":"string"},"last_value":{"type":"number"},"letter":{"type":"string"},"lower_is_better":{"type":"boolean"},"readings":{"items":{"properties":{"measured_on":{"type":"string"},"value":{"type":"number"}},"required":["measured_on","value"],"type":"object"},"type":"array"},"target":{"type":"number"},"trend":{"type":"string"},"unit":{"type":"string"}},"required":["change","factor","factor_id","first_value","kpi","last_value","letter","lower_is_better","readings","target","trend","unit"],"type":"object"},"type":"array"},"rows":{"items":{"properties":{"letter":{"type":"string"},"title":{"type":"string"},"values":{"additionalProperties":{"properties":{"dispersion":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["dispersion","x","y"],"type":"object"},"type":"object"}},"required":["letter","title","values"],"type":"object"},"type":"array"},"title":{"type":"string"}},"required":["columns","deltas","kind","kpis","rows","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/ai/status":{"get":{"tags":["reports"],"summary":"Ai Status","description":"Whether the account may use the AI features and what it has left to\nspend: the plan, the model that answers, the month's credit allowance\nand balance, and a note that says the same in a sentence.","operationId":"ai_status_api_v1_reports_ai_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"credits":{"properties":{"allowance_remaining":{"type":"integer"},"credits_per_seat":{"type":"integer"},"enabled":{"type":"boolean"},"low":{"type":"boolean"},"model":{"type":"string"},"model_label":{"type":"string"},"monthly_allowance":{"type":"integer"},"output_weight":{"type":"integer"},"period_end":{"type":"string"},"period_start":{"type":"string"},"plan":{"type":"string"},"remaining":{"type":"integer"},"tokens_per_credit":{"type":"integer"},"topup_remaining":{"type":"integer"},"used_this_month":{"type":"integer"}},"required":["allowance_remaining","credits_per_seat","enabled","low","model","model_label","monthly_allowance","output_weight","period_end","period_start","plan","remaining","tokens_per_credit","topup_remaining","used_this_month"],"type":"object"},"enabled":{"type":"boolean"},"is_live":{"type":"boolean"},"model":{"type":"string"},"model_label":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"},"plan":{"type":"string"}},"required":["credits","enabled","is_live","model","model_label","name","note","plan"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/reports/ai/summarise":{"post":{"tags":["reports"],"summary":"Summarise","description":"Summarise a report with AI. Send the report payload as another\nreports endpoint returned it, with a title; the answer is the summary\nwith the credits charged and the credits remaining.\n\nRefused when the account's plan does not include AI, or when the\naccount has no credits left this month.","operationId":"summarise_api_v1_reports_ai_summarise_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummariseIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"credits_charged":{"type":"integer"},"credits_remaining":{"type":"integer"},"insights":{"type":"array"},"is_live":{"type":"boolean"},"provider":{"type":"string"},"recommendations":{"items":{"type":"string"},"type":"array"},"summary":{"type":"string"}},"required":["credits_charged","credits_remaining","insights","is_live","provider","recommendations","summary"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/reports/ai/draft":{"post":{"tags":["reports"],"summary":"Draft","description":"Draft a piece of writing with AI, or improve one. `intent` is `draft`\nor `improve`, `shape` says what kind of writing is wanted, and `context`,\n`text` and `instruction` carry the surroundings, what is written so far\nand any steer. The answer is the new text with a note, the credits\ncharged and the credits remaining.\n\nRefused when the account's plan does not include AI, or when the\naccount has no credits left this month. A comment is drafted only from\ntext that already holds a sentence.","operationId":"draft_api_v1_reports_ai_draft_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"credits_charged":{"type":"integer"},"credits_remaining":{"type":"integer"},"is_live":{"type":"boolean"},"note":{"type":"string"},"provider":{"type":"string"},"text":{"type":"string"}},"required":["credits_charged","credits_remaining","is_live","note","provider","text"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/reports/subjects":{"get":{"tags":["reports"],"summary":"Read Subjects","description":"What may be reported on, with what may be asked of each.\n\nThe whole catalogue in one answer, options included, because a report\nbuilder that has to ask the server what a menu holds is one that flickers -\nthe same reasoning that put the filter catalogue on the board payload.\n\nThis is the only schema that leaves the server. A field is here because\nsomebody put it on a subject, not because a table has a column.","operationId":"read_subjects_api_v1_reports_subjects_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"charts":{"items":{"type":"string"},"type":"array"},"entities":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"functions":{"properties":{"avg":{"type":"string"},"count":{"type":"string"},"max":{"type":"string"},"min":{"type":"string"},"sum":{"type":"string"}},"required":["avg","count","max","min","sum"],"type":"object"},"me":{"type":"string"},"subjects":{"items":{"properties":{"defaults":{"items":{"type":"string"},"type":"array"},"fields":{"items":{"properties":{"custom":{"type":"boolean"},"functions":{"items":{"type":"string"},"type":"array"},"hint":{"type":"string"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"ops":{"items":{"type":"string"},"type":"array"},"options":{"items":{"properties":{"label":{"type":"string"},"value":{"type":["integer","string"]}},"required":["label","value"],"type":"object"},"type":"array"},"unit_of":{"type":"string"}},"required":["functions","key","kind","label","ops"],"type":"object"},"type":"array"},"hint":{"type":"string"},"identity":{"items":{"items":{"type":"string"},"type":["string","array"]},"type":"array"},"key":{"type":"string"},"label":{"type":"string"}},"required":["defaults","fields","hint","identity","key","label"],"type":"object"},"type":"array"}},"required":["charts","entities","functions","me","subjects"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/custom":{"get":{"tags":["reports"],"summary":"List Reports","description":"Every report this person may open: their own, and the shared ones.","operationId":"list_reports_api_v1_reports_custom_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"reports":{"items":{"properties":{"aggregates":{"items":{"properties":{"field":{"type":"string"},"fn":{"type":"string"}},"required":["field","fn"],"type":"object"},"type":"array"},"chart":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":"null"},"fields":{"items":{"type":"string"},"type":"array"},"filters":{"type":"array"},"group_by":{"type":"string"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"mine":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"sort_by":{"type":"string"},"sort_dir":{"type":"string"},"subject":{"type":"string"},"subject_label":{"type":"string"}},"required":["aggregates","chart","created_at","description","entity_id","fields","filters","group_by","id","match_all","may_edit","mine","name","owner_id","owner_name","shared","sort_by","sort_dir","subject","subject_label"],"type":"object"},"type":"array"}},"required":["reports"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["reports"],"summary":"Create Report","description":"Save a report the caller owns: a name, a subject, the conditions that\nfilter it, the fields to show, and any grouping, aggregates, sorting and\nchart. Returns the report as stored, without its answer; read it to have\nthat.\n\nA report that cannot be answered is refused: one on a subject the caller\nmay not read, or one naming a field the subject lacks.","operationId":"create_report_api_v1_reports_custom_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"aggregates":{"items":{"properties":{"field":{"type":"string"},"fn":{"type":"string"}},"required":["field","fn"],"type":"object"},"type":"array"},"chart":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":["null","integer"]},"fields":{"items":{"type":"string"},"type":"array"},"filters":{"items":{"properties":{"field":{"type":"string"},"op":{"type":"string"},"value":{"type":"string"}},"required":["field","op","value"],"type":"object"},"type":"array"},"group_by":{"type":"string"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"mine":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"sort_by":{"type":"string"},"sort_dir":{"type":"string"},"subject":{"type":"string"},"subject_label":{"type":"string"}},"required":["aggregates","chart","created_at","description","entity_id","fields","filters","group_by","id","match_all","may_edit","mine","name","owner_id","owner_name","shared","sort_by","sort_dir","subject","subject_label"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/reports/custom/ask":{"post":{"tags":["reports"],"summary":"Ask Report","description":"What a report would answer with, without keeping the report.\n\nLists have this already - ask, look, change a condition, ask again - and\nmost questions never earn a name. The question is checked the way a saved\none is, so what it answers with now is what it would answer with saved;\nand the row is never added to the session, so nothing is written.","operationId":"ask_report_api_v1_reports_custom_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"columns":{"items":{"properties":{"hint":{"type":"string"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"options":{"type":"string"},"unit_of":{"type":"string"}},"required":["key","kind","label"],"type":"object"},"type":"array"},"considered":{"type":"integer"},"entity_count":{"type":"integer"},"group_by":{"type":"string"},"group_label":{"type":"string"},"groups":{"items":{"properties":{"group":{"type":"string"},"rows":{"type":"integer"},"totals":{"items":{"properties":{"field":{"type":"string"},"field_label":{"type":"string"},"fn":{"type":"string"},"label":{"type":"string"},"mixed":{"items":{"type":"string"},"type":"array"},"problem":{"type":"string"},"value":{"type":["null","integer"]}},"required":["field","field_label","fn","label","value"],"type":"object"},"type":"array"}},"required":["group","rows","totals"],"type":"object"},"type":"array"},"kind":{"type":"string"},"problem":{"type":"null"},"rows":{"items":{"properties":{"budget":{"type":["null","number"]},"committed":{"type":"number"},"currency":{"type":"string"},"duration":{"type":"string"},"estimate_points":{"type":["null","number"]},"factor":{"type":"string"},"fix_version":{"type":"string"},"guardrail":{"type":"string"},"kpi":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"},"original_estimate":{"type":"string"},"person":{"type":"string"},"reference":{"type":"string"},"remaining":{"type":"number"},"remaining_estimate":{"type":"string"},"spent_on":{"type":"string"},"state":{"type":"string"},"status":{"type":"string"},"target":{"type":"number"},"time_spent":{"type":"string"},"title":{"type":"string"}},"required":[],"type":"object"},"type":"array"},"subject":{"type":"string"},"subject_label":{"type":"string"},"totals":{"items":{"properties":{"field":{"type":"string"},"field_label":{"type":"string"},"fn":{"type":"string"},"label":{"type":"string"},"of":{"type":"string"},"value":{"type":"integer"},"written":{"type":"string"}},"required":["field","field_label","fn","label","value"],"type":"object"},"type":"array"},"truncated":{"type":"boolean"}},"required":["columns","considered","entity_count","group_by","group_label","groups","kind","problem","rows","subject","subject_label","totals","truncated"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/reports/custom/{report_id}":{"get":{"tags":["reports"],"summary":"Read Report","description":"The report, and what answers it now.\n\nAnswered fresh on every read rather than stored: the question is the saved\nthing, and what answers it today is what somebody opening it wants.","operationId":"read_report_api_v1_reports_custom__report_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"columns":{"items":{"properties":{"custom":{"type":"boolean"},"hint":{"type":"string"},"key":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"options":{"type":"string"},"unit_of":{"type":"string"}},"required":["key","kind","label"],"type":"object"},"type":"array"},"considered":{"type":"integer"},"entity_count":{"type":"integer"},"group_by":{"type":"string"},"group_label":{"type":"string"},"groups":{"items":{"properties":{"group":{"type":"string"},"rows":{"type":"integer"},"totals":{"items":{"properties":{"field":{"type":"string"},"field_label":{"type":"string"},"fn":{"type":"string"},"label":{"type":"string"},"value":{"type":"integer"}},"required":["field","field_label","fn","label","value"],"type":"object"},"type":"array"}},"required":["group","rows","totals"],"type":"object"},"type":"array"},"kind":{"type":"string"},"problem":{"type":"null"},"report":{"properties":{"aggregates":{"items":{"properties":{"field":{"type":"string"},"fn":{"type":"string"}},"required":["field","fn"],"type":"object"},"type":"array"},"chart":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":["null","integer"]},"fields":{"items":{"type":"string"},"type":"array"},"filters":{"items":{"properties":{"field":{"type":"string"},"op":{"type":"string"},"value":{"type":"string"}},"required":["field","op","value"],"type":"object"},"type":"array"},"group_by":{"type":"string"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"mine":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"sort_by":{"type":"string"},"sort_dir":{"type":"string"},"subject":{"type":"string"},"subject_label":{"type":"string"}},"required":["aggregates","chart","created_at","description","entity_id","fields","filters","group_by","id","match_all","may_edit","mine","name","owner_id","owner_name","shared","sort_by","sort_dir","subject","subject_label"],"type":"object"},"rows":{"items":{"properties":{"cf:downtime":{"type":["null","string"]},"cf:regulator":{"type":"string"},"current":{"type":"number"},"done_items":{"type":"integer"},"estimate_points":{"type":["null","number"]},"factor":{"type":"string"},"name":{"type":"string"},"objective":{"type":"string"},"reference":{"type":"string"},"status":{"type":"string"},"target":{"type":"number"},"title":{"type":"string"},"work_items":{"type":"integer"}},"required":[],"type":"object"},"type":"array"},"subject":{"type":"string"},"subject_label":{"type":"string"},"totals":{"items":{"properties":{"field":{"type":"string"},"field_label":{"type":"string"},"fn":{"type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["field","field_label","fn","label","value"],"type":"object"},"type":"array"},"truncated":{"type":"boolean"}},"required":["columns","considered","entity_count","group_by","group_label","groups","kind","problem","report","rows","subject","subject_label","totals","truncated"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["reports"],"summary":"Update Report","description":"Replace a saved report's whole definition - name, subject, conditions,\nfields, grouping, aggregates, sorting and chart - and return the report.\nThe body is checked as a new report's is.\n\nOnly its author or an administrator may change it; anybody else copies\nit first.","operationId":"update_report_api_v1_reports_custom__report_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Report Api V1 Reports Custom  Report Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["reports"],"summary":"Delete Report","description":"Delete a saved report, and answer with its name. Only its author or\nan administrator may.","operationId":"delete_report_api_v1_reports_custom__report_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"name":{"type":"string"}},"required":["deleted","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/custom/{report_id}/copy":{"post":{"tags":["reports"],"summary":"Copy Report","description":"Take a copy and make it yours.\n\nHow somebody disagrees with a shared report without arguing over it: the\ncopy is private, is theirs to change, and leaves the original as its author\nwrote it.","operationId":"copy_report_api_v1_reports_custom__report_id__copy_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"aggregates":{"items":{"properties":{"field":{"type":"string"},"fn":{"type":"string"}},"required":["field","fn"],"type":"object"},"type":"array"},"chart":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":"null"},"fields":{"items":{"type":"string"},"type":"array"},"filters":{"type":"array"},"group_by":{"type":"string"},"id":{"type":"integer"},"match_all":{"type":"boolean"},"may_edit":{"type":"boolean"},"mine":{"type":"boolean"},"name":{"type":"string"},"owner_id":{"type":"integer"},"owner_name":{"type":"string"},"shared":{"type":"boolean"},"sort_by":{"type":"string"},"sort_dir":{"type":"string"},"subject":{"type":"string"},"subject_label":{"type":"string"}},"required":["aggregates","chart","created_at","description","entity_id","fields","filters","group_by","id","match_all","may_edit","mine","name","owner_id","owner_name","shared","sort_by","sort_dir","subject","subject_label"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/custom/{report_id}/export":{"get":{"tags":["reports"],"summary":"Export Report","description":"The answer as a file.\n\nExported from the same run the screen draws, so what downloads is what was\non the screen - including the reader's own permission filter. A report\nsomebody may only partly read exports only the part they may read.","operationId":"export_report_api_v1_reports_custom__report_id__export_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{},"text/csv":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/custom/{report_id}/ai":{"post":{"tags":["reports"],"summary":"Summarise Custom","description":"AI analysis of a custom report, over the answer the reader actually got.\n\nRuns the report here rather than taking a payload from the client, which\nsettles two things. The summary is over the reader's own rows, so it cannot\ndescribe work they may not see; and nobody can be billed for summarising a\ndict they made up, which the shared /ai/summarise endpoint allows by\ndesign because it serves reports the server had already sent.\n\nThis is also where Perm.REPORT_AI is enforced. It has been declared since\nthe permission list was written and honoured nowhere, and a new surface is\nthe right place to start rather than the wrong place to widen the gap. The\nexisting endpoint is deliberately left alone: two of the default roles hold\nreport.view without report.ai, and quietly taking a working button away from\nthem is not a change to make in passing.","operationId":"summarise_custom_api_v1_reports_custom__report_id__ai_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"credits_charged":{"type":"integer"},"credits_remaining":{"type":"integer"},"insights":{"items":{"type":"string"},"type":"array"},"is_live":{"type":"boolean"},"provider":{"type":"string"},"recommendations":{"type":"array"},"summary":{"type":"string"}},"required":["credits_charged","credits_remaining","insights","is_live","provider","recommendations","summary"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/respond/{token}":{"get":{"tags":["respond"],"summary":"Open Survey","description":"The survey as the invitee sees it, or their own answers once given.","operationId":"open_survey_api_v1_respond__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"already_completed":{"type":"boolean"},"answers":{"items":{"properties":{"assessment_factor_id":{"type":"integer"},"comment":{"type":"string"},"kind":{"type":"null"},"letter":{"type":"string"},"ot_label":{"type":"string"},"ot_score":{"type":"integer"},"statement":{"type":"string"},"sw_label":{"type":"string"},"sw_score":{"type":"integer"}},"required":["assessment_factor_id","comment","kind","letter","ot_label","ot_score","statement","sw_label","sw_score"],"type":"object"},"type":"array"},"attributed":{"type":"boolean"},"completed_at":{"type":"string"},"entity_name":{"type":"string"},"future_date":{"type":"null"},"instructions":{"type":"string"},"kind":{"type":"string"},"mode":{"type":"string"},"open":{"type":"boolean"},"organisation":{"type":"string"},"questions":{"items":{"properties":{"assessment_factor_id":{"type":"integer"},"kind":{"type":"null"},"letter":{"type":"string"},"statement":{"type":"string"}},"required":["assessment_factor_id","kind","letter","statement"],"type":"object"},"type":"array"},"respondent":{"properties":{"email":{"type":"string"},"full_name":{"type":"string"}},"required":["email","full_name"],"type":"object"},"scale":{"items":{"properties":{"ot_label":{"type":"string"},"score":{"type":"integer"},"sw_label":{"type":"string"}},"required":["ot_label","score","sw_label"],"type":"object"},"type":"array"},"thank_you":{"type":"string"},"title":{"type":"string"},"updating":{"type":"boolean"}},"required":["already_completed","attributed","entity_name","future_date","instructions","kind","mode","open","organisation","questions","respondent","scale","title","updating"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/respond/{token}/answers":{"post":{"tags":["respond"],"summary":"Answer","description":"Record one outsider's answers. Answers with what they now see.","operationId":"answer_api_v1_respond__token__answers_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswersIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"already_completed":{"type":"boolean"},"answers":{"items":{"properties":{"assessment_factor_id":{"type":"integer"},"comment":{"type":"string"},"kind":{"type":"null"},"letter":{"type":"string"},"ot_label":{"type":"string"},"ot_score":{"type":"integer"},"statement":{"type":"string"},"sw_label":{"type":"string"},"sw_score":{"type":["null","integer"]}},"required":["assessment_factor_id","comment","kind","letter","ot_label","ot_score","statement","sw_label","sw_score"],"type":"object"},"type":"array"},"attributed":{"type":"boolean"},"completed_at":{"type":"string"},"entity_name":{"type":"string"},"future_date":{"type":"null"},"instructions":{"type":"string"},"kind":{"type":"string"},"mode":{"type":"string"},"open":{"type":"boolean"},"organisation":{"type":"string"},"questions":{"type":"array"},"respondent":{"properties":{"email":{"type":"string"},"full_name":{"type":"string"}},"required":["email","full_name"],"type":"object"},"scale":{"items":{"properties":{"ot_label":{"type":"string"},"score":{"type":"integer"},"sw_label":{"type":"string"}},"required":["ot_label","score","sw_label"],"type":"object"},"type":"array"},"thank_you":{"type":"string"},"title":{"type":"string"},"updating":{"type":"boolean"}},"required":["already_completed","answers","attributed","completed_at","entity_name","future_date","instructions","kind","mode","open","organisation","questions","respondent","scale","thank_you","title","updating"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/invitations":{"get":{"tags":["respondents"],"summary":"List Invitations","description":"The survey's invitations a page at a time - a survey may ask thousands -\nwith the counts its heading reads taken over all of them.","operationId":"list_invitations_api_v1_assessments__assessment_id__invitations_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answered":{"type":"integer"},"has_more":{"type":"boolean"},"invitations":{"items":{"properties":{"address_bounced":{"type":"boolean"},"anonymised":{"type":"boolean"},"completed_at":{"type":["null","string"]},"contact_id":{"type":"integer"},"email":{"type":"string"},"full_name":{"type":"string"},"groups":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"id":{"type":"integer"},"invited_at":{"type":"string"},"last_sent_at":{"type":"string"},"letter":{"type":"string"},"letter_reason":{"type":"string"},"revoked_at":{"type":["null","string"]},"status":{"type":"string"},"unsubscribed":{"type":"boolean"}},"required":["address_bounced","anonymised","completed_at","contact_id","email","full_name","groups","id","invited_at","last_sent_at","letter","letter_reason","revoked_at","status","unsubscribed"],"type":"object"},"type":"array"},"invite_body":{"type":"string"},"invite_subject":{"type":"string"},"limit":{"type":"integer"},"mail_configured":{"type":"boolean"},"matched":{"type":"integer"},"template":{"properties":{"body":{"type":"string"},"subject":{"type":"string"}},"required":["body","subject"],"type":"object"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"},"used":{"type":"integer"}},"required":["answered","has_more","invitations","invite_body","invite_subject","limit","mail_configured","matched","template","thank_you","thank_you_email","used"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["respondents"],"summary":"Invite","description":"Send the survey to groups, to addresses typed by hand, or both.","operationId":"invite_api_v1_assessments__assessment_id__invitations_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"already":{"type":"integer"},"insiders_skipped":{"type":"integer"},"invalid":{"type":"array"},"invited":{"type":"integer"},"limit":{"type":"integer"},"unsubscribed":{"items":{"type":"string"},"type":"array"},"used":{"type":"integer"}},"required":["already","insiders_skipped","invalid","invited","limit","unsubscribed","used"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invitations/{invitation_id}/resend":{"post":{"tags":["respondents"],"summary":"Resend","description":"Send an outside invitation again, as a new letter with a new link.\nThe old link stops opening anything. Answers `{\"ok\": true}`.\n\nNeeds the `assessment.launch` right on the assessment's entity. Refused\nwhere the invitation was revoked, or the invitee unsubscribed, asked to\nbe forgotten, or has an address that bounced.","operationId":"resend_api_v1_invitations__invitation_id__resend_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"integer","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invitations/{invitation_id}/contact":{"put":{"tags":["respondents"],"summary":"Correct Invitee","description":"Correct the address an invitation went to, from the invitation.\n\nSomebody typed in by hand is in no group, so the group screen cannot\nreach them; a mistyped or bounced address is found here, where the\nletter's fate is shown. The right to correct them is the right to send\nto them. It is the contact that changes - one contact across every\nsurvey and group, as `edit_contact` explains - and nothing is sent: the\nold letter's link still stands until somebody chooses Send again.","operationId":"correct_invitee_api_v1_invitations__invitation_id__contact_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"integer","title":"Invitation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteeAddressIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"contact_id":{"type":"integer"},"email":{"type":"string"},"moved":{"type":"boolean"}},"required":["contact_id","email","moved"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invitations/{invitation_id}/unsubscribe":{"post":{"tags":["respondents"],"summary":"Unsubscribe Invitee","description":"Stop letters to somebody who asked by some other way than the link -\na reply, a phone call. Only this way round: emailing them again is\ntheirs to choose, from their own link (see services/outsider_rights.py).","operationId":"unsubscribe_invitee_api_v1_invitations__invitation_id__unsubscribe_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"integer","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"contact_id":{"type":"integer"},"unsubscribed":{"type":"boolean"}},"required":["contact_id","unsubscribed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invitations/{invitation_id}/revoke":{"post":{"tags":["respondents"],"summary":"Revoke","description":"Withdraw an outside invitation, so its link stops opening the survey.\nAnswers `{\"ok\": true}`.\n\nNeeds the `assessment.launch` right on the assessment's entity. Refused\nonce the invitee has answered.","operationId":"revoke_api_v1_invitations__invitation_id__revoke_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"integer","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assessments/{assessment_id}/thank-you":{"put":{"tags":["respondents"],"summary":"Set Thank You","description":"What an outsider reads after answering. Editable at any point in the\nsurvey's life, because \"when to expect the next one\" is usually known\nafter this one has closed.","operationId":"set_thank_you_api_v1_assessments__assessment_id__thank_you_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"integer","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThankYouIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"thank_you":{"type":"string"},"thank_you_email":{"type":"boolean"}},"required":["id","thank_you","thank_you_email"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/risks":{"get":{"tags":["risks"],"summary":"List Risks","description":"The register, or one interval's or one initiative's slice of it.\n\n`scope=subtree` reads the register of this entity and of everything\nbeneath it that the reader may see, so a division's risks are every\nteam's, each row saying whose it is, the worst rated first. A risk is\nstill raised and answered on the entity it belongs to.\n\nA risk may be in the plan of one of its entity's services, and says so.\n`owned=direct` keeps those in no service's plan, `owned=service` those\nin one, and `service_id` one service's.","operationId":"list_risks_api_v1_entities__entity_id__risks_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"planning_interval_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Planning Interval Id"}},{"name":"initiative_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"}},{"name":"open_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Open Only"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"entity","title":"Scope"}},{"name":"owned","in":"query","required":false,"schema":{"enum":["all","direct","service"],"type":"string","default":"all","title":"Owned"}},{"name":"service_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Risks Api V1 Entities  Entity Id  Risks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["risks"],"summary":"Create Risk","description":"Raise a risk on an entity's register: a title, and optionally a\ndescription, a planning interval, a likelihood and an impact from 1 to\n5, and the initiative it threatens. Returns the risk, open, with its\nscore and rating.\n\nNeeds the `risk.manage` right on the entity.","operationId":"create_risk_api_v1_entities__entity_id__risks_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"created_by":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"impact":{"type":["null","integer"]},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"likelihood":{"type":["null","integer"]},"mitigation":{"type":"string"},"owner":{"type":"null"},"planning_interval_id":{"type":["null","integer"]},"rating":{"type":["null","string"]},"score":{"type":["null","integer"]},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"status":{"type":"string"},"title":{"type":"string"},"work_item_id":{"type":"null"}},"required":["created_at","created_by","description","entity_id","entity_name","id","impact","initiative_id","initiative_name","likelihood","mitigation","owner","planning_interval_id","rating","score","status","title","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/risks/{risk_id}/rate":{"put":{"tags":["risks"],"summary":"Rate Risk","description":"Place a risk on the matrix, and name what it threatens.\n\nSeparate from ROAM on purpose: rating a risk is a judgement about how much\nattention it deserves, and answering it is a decision about what to do.\nThe two are made by different people at different times, and one endpoint\nthat took both would let a rating be changed by whoever was answering.","operationId":"rate_risk_api_v1_risks__risk_id__rate_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"risk_id","in":"path","required":true,"schema":{"type":"integer","title":"Risk Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"created_by":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"impact":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"likelihood":{"type":"integer"},"mitigation":{"type":"string"},"owner":{"type":"null"},"planning_interval_id":{"type":"null"},"rating":{"type":"string"},"score":{"type":"integer"},"service":{"type":"null"},"service_id":{"type":"null"},"status":{"type":"string"},"title":{"type":"string"},"work_item_id":{"type":"null"}},"required":["created_at","created_by","description","entity_id","entity_name","id","impact","initiative_id","initiative_name","likelihood","mitigation","owner","planning_interval_id","rating","score","status","title","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/risks/{risk_id}":{"put":{"tags":["risks"],"summary":"Roam Risk","description":"Answer a risk: resolve, own, accept or mitigate it.\n\nTwo rules, and both are about the answer meaning something. An owned risk\nneeds an owner, because \"owned\" with nobody named is the same as open with\nextra confidence. A mitigated one needs a plan - either written here or a\npiece of work carrying it - because a mitigation nobody can point at is a\nhope.","operationId":"roam_risk_api_v1_risks__risk_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"risk_id","in":"path","required":true,"schema":{"type":"integer","title":"Risk Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoamIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"created_by":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"impact":{"type":["null","integer"]},"initiative_id":{"type":["null","integer"]},"initiative_name":{"type":"string"},"likelihood":{"type":["null","integer"]},"mitigation":{"type":"string"},"owner":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":["null","object"]},"planning_interval_id":{"type":"null"},"rating":{"type":["null","string"]},"score":{"type":["null","integer"]},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"status":{"type":"string"},"title":{"type":"string"},"work_item_id":{"type":"null"}},"required":["created_at","created_by","description","entity_id","entity_name","id","impact","initiative_id","initiative_name","likelihood","mitigation","owner","planning_interval_id","rating","score","status","title","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/planning-intervals":{"get":{"tags":["scaled delivery"],"summary":"List Planning Intervals","description":"The intervals this train has planned.\n\nLive by default, like the sprint list: an interval whose numbers have been\ntaken is history, and the list somebody plans from should hold what is ahead.","operationId":"list_planning_intervals_api_v1_entities__entity_id__planning_intervals_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Scope","default":"live"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Planning Intervals Api V1 Entities  Entity Id  Planning Intervals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["scaled delivery"],"summary":"Create Planning Interval","description":"Plan a planning interval on an entity, from a name, a start date and\na shape: the number of iterations, their length in days, and whether\nthe last is an innovation and planning iteration. The end date follows\nfrom the shape unless one is given. Answers with the interval and the\ndates of each iteration.\n\nThe caller needs the right to manage planning intervals on the entity.","operationId":"create_planning_interval_api_v1_entities__entity_id__planning_intervals_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanningIntervalIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Planning Interval Api V1 Entities  Entity Id  Planning Intervals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}":{"put":{"tags":["scaled delivery"],"summary":"Update Planning Interval","description":"Correct an interval, or write up what it was for.\n\nThe window and the shape stop moving once the interval has closed, for the\nreason a sprint's do: they are what the charts were drawn against and what\nthe objectives were agreed for. The name and the goal stay editable.","operationId":"update_planning_interval_api_v1_planning_intervals__pi_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanningIntervalIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Planning Interval Api V1 Planning Intervals  Pi Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/generate-iterations":{"post":{"tags":["scaled delivery"],"summary":"Generate Iterations","description":"Put every team on the train onto this interval's cadence.\n\nSafe to run again: it fills in what is missing and leaves what is there.\nA team whose own sprint overlaps a window is skipped and named rather than\nmoved - see services/cadence.py for why that is deliberate.","operationId":"generate_iterations_api_v1_planning_intervals__pi_id__generate_iterations_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Iterations Api V1 Planning Intervals  Pi Id  Generate Iterations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/start":{"post":{"tags":["scaled delivery"],"summary":"Start Planning Interval","description":"Start a planning interval and lock its PI objectives: from here on,\nwhat each team committed to and its planned business value stand as\nagreed. Answers with the interval's id and state.\n\nRefused while another planning interval on the same entity is running.\nThe caller needs the right to manage planning intervals on the entity.","operationId":"start_planning_interval_api_v1_planning_intervals__pi_id__start_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"state":{"type":"string"}},"required":["id","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/complete":{"post":{"tags":["scaled delivery"],"summary":"Complete Planning Interval","description":"Close the interval and take its numbers.\n\nRefuses while a committed objective has no actual business value against it,\nbecause predictability computed over a half-filled inspect-and-adapt is a\nnumber that will be quoted and should not exist. An uncommitted objective\nnobody scored is fine - not delivering stretch work is not an omission.","operationId":"complete_planning_interval_api_v1_planning_intervals__pi_id__complete_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Planning Interval Api V1 Planning Intervals  Pi Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/archive":{"post":{"tags":["scaled delivery"],"summary":"Archive Planning Interval","description":"Archive a planning interval, which takes it off the list of live\nintervals, or restore it with `archived=false`. Answers with the\ninterval. The caller needs the right to manage planning intervals on the\nentity.","operationId":"archive_planning_interval_api_v1_planning_intervals__pi_id__archive_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archive Planning Interval Api V1 Planning Intervals  Pi Id  Archive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/confidence-vote":{"put":{"tags":["scaled delivery"],"summary":"Set Confidence Vote","description":"Record how confident the room was, at the time it was asked.\n\nA single number rather than a poll, because the vote happens out loud with\nhands in the air and what leaves the room is the average and the\nconversation it started. Recording it here is so that it can be read beside\nthe predictability it turned into - a train that votes four and delivers\nsixty per cent has learned something about its planning, not its delivery.","operationId":"set_confidence_vote_api_v1_planning_intervals__pi_id__confidence_vote_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfidenceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Confidence Vote Api V1 Planning Intervals  Pi Id  Confidence Vote Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/objectives":{"get":{"tags":["scaled delivery"],"summary":"List Objectives","description":"List a planning interval's PI objectives, team by team, each with\nwhether it is committed, its planned and actual business value, and the\nfactor, KPI and target it is written against. The answer also names\nevery team on the train, including those with no objective yet, and\nsays whether the objectives are locked.\n\nAn objective may be in the plan of one of its team's services, and says\nso. `owned=direct` keeps those in no service's plan, `owned=service`\nthose in one, and `service_id` one service's.","operationId":"list_objectives_api_v1_planning_intervals__pi_id__objectives_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}},{"name":"owned","in":"query","required":false,"schema":{"enum":["all","direct","service"],"type":"string","default":"all","title":"Owned"}},{"name":"service_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"objectives":{"items":{"properties":{"business_value_actual":{"type":"null"},"business_value_planned":{"type":"null"},"committed":{"type":"boolean"},"created_by":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor":{"type":"null"},"id":{"type":"integer"},"kpi":{"type":"null"},"planning_interval_id":{"type":"integer"},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"sort_order":{"type":"integer"},"target_value":{"type":"null"},"title":{"type":"string"}},"required":["business_value_actual","business_value_planned","committed","created_by","description","entity_id","entity_name","factor","id","kpi","planning_interval_id","service","service_id","sort_order","target_value","title"],"type":"object"},"type":"array"},"planning_interval":{"properties":{"id":{"type":"integer"},"locked":{"type":"boolean"},"name":{"type":"string"},"state":{"type":"string"}},"required":["id","locked","name","state"],"type":"object"},"teams":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"}},"required":["objectives","planning_interval","teams"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["scaled delivery"],"summary":"Create Objective","description":"Write a PI objective for a team in a planning interval. `entity_id`\nnames the team, which must be on the train or be the train itself;\n`committed` is false for a stretch objective; the planned business\nvalue runs from one to ten. Naming a `factor_id` copies that factor's\nKPI and current target onto the objective. Answers with the objective.\n\nThe caller needs the right to edit PI objectives on the team.","operationId":"create_objective_api_v1_planning_intervals__pi_id__objectives_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"business_value_actual":{"type":"null"},"business_value_planned":{"type":"null"},"committed":{"type":"boolean"},"created_by":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor":{"type":"null"},"id":{"type":"integer"},"kpi":{"type":"null"},"planning_interval_id":{"type":"integer"},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"sort_order":{"type":"integer"},"target_value":{"type":"null"},"title":{"type":"string"}},"required":["business_value_actual","business_value_planned","committed","created_by","description","entity_id","entity_name","factor","id","kpi","planning_interval_id","service","service_id","sort_order","target_value","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pi-objectives/{objective_id}":{"put":{"tags":["scaled delivery"],"summary":"Update Objective","description":"Edit a PI objective: its title, description, order, linked factor,\nwhether it is committed and its planned business value. The objective\nstays with its team; `entity_id` in the body is ignored. `service_id`\nmoves it into the plan of one of the team's services, or with null back\nto the team's own; left out, it stays where it is. Answers with the\nobjective.\n\nOnce the planning interval has started, a change to `committed` or to\nthe planned business value is refused; the wording can still be\ncorrected. The caller needs the right to edit PI objectives on the\nteam.","operationId":"update_objective_api_v1_pi_objectives__objective_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"integer","title":"Objective Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"business_value_actual":{"type":"null"},"business_value_planned":{"type":["null","integer"]},"committed":{"type":"boolean"},"created_by":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":["null","object"]},"description":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor":{"type":"null"},"id":{"type":"integer"},"kpi":{"type":"null"},"planning_interval_id":{"type":"integer"},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":["null","object"]},"service_id":{"type":["null","integer"]},"sort_order":{"type":"integer"},"target_value":{"type":"null"},"title":{"type":"string"}},"required":["business_value_actual","business_value_planned","committed","created_by","description","entity_id","entity_name","factor","id","kpi","planning_interval_id","sort_order","target_value","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scaled delivery"],"summary":"Delete Objective","description":"Delete a PI objective. Refused once its planning interval has\nstarted, when the objectives are what was agreed. The caller needs the\nright to edit PI objectives on the team.","operationId":"delete_objective_api_v1_pi_objectives__objective_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"integer","title":"Objective Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pi-objectives/{objective_id}/actual-value":{"put":{"tags":["scaled delivery"],"summary":"Set Actual Value","description":"What the business owners said it turned out to be worth.\n\nA separate endpoint from the rest of the objective on purpose. It is written\nby different people, at a different meeting, about a promise that has already\nbeen made - and putting it behind the same PUT would let the delivered value\nbe edited in the same breath as the committed one.","operationId":"set_actual_value_api_v1_pi_objectives__objective_id__actual_value_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"integer","title":"Objective Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualValueIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Actual Value Api V1 Pi Objectives  Objective Id  Actual Value Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/program-board":{"get":{"tags":["scaled delivery"],"summary":"Program Board","description":"Teams down the side, iterations across the top, features in the cells.\n\nThe one artefact of PI planning that a wall of paper does better than most\nsoftware, and the reason is that the string between two cards is doing the\nwork. So the dependencies are the payload here rather than an afterthought:\nevery link whose two ends sit on different teams, with the iterations they\nsit in, so the drawing can put a line between two cells and a reader can see\nthe one that runs backwards in time.\n\nNothing new is stored for any of it. A dependency is a `WorkItemLink`, which\nhas held \"A blocks B\" once and read it correctly from both ends since long\nbefore there was a train to draw.","operationId":"program_board_api_v1_planning_intervals__pi_id__program_board_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"cards":{"items":{"properties":{"child_count":{"type":"integer"},"entity_id":{"type":"integer"},"estimate_size":{"type":"string"},"id":{"type":"integer"},"iteration":{"type":["null","integer"]},"iteration_span":{"items":{"type":"integer"},"type":["null","array"]},"level_key":{"type":"string"},"level_label":{"type":"string"},"reference":{"type":"string"},"score":{"type":"null"},"state":{"type":"string"},"state_category":{"type":"null"},"title":{"type":"string"}},"required":["child_count","entity_id","estimate_size","id","iteration","iteration_span","level_key","level_label","reference","score","state","state_category","title"],"type":"object"},"type":"array"},"dependencies":{"items":{"properties":{"backwards":{"type":"boolean"},"from_entity_id":{"type":"integer"},"from_iteration":{"type":"null"},"from_work_item_id":{"type":"integer"},"id":{"type":"integer"},"label":{"type":"string"},"to_entity_id":{"type":"integer"},"to_iteration":{"type":"null"},"to_work_item_id":{"type":"integer"}},"required":["backwards","from_entity_id","from_iteration","from_work_item_id","id","label","to_entity_id","to_iteration","to_work_item_id"],"type":"object"},"type":"array"},"iterations":{"items":{"properties":{"end_date":{"type":"string"},"index":{"type":"integer"},"is_ip":{"type":"boolean"},"name":{"type":"string"},"start_date":{"type":"string"}},"required":["end_date","index","is_ip","name","start_date"],"type":"object"},"type":"array"},"planning_interval":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"state":{"type":"string"}},"required":["id","name","state"],"type":"object"},"teams":{"items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"unplanned":{"items":{"type":"integer"},"type":"array"}},"required":["cards","dependencies","iterations","planning_interval","teams","unplanned"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/planning-intervals/{pi_id}/metrics":{"get":{"tags":["scaled delivery"],"summary":"Metrics","description":"A planning interval's metrics: predictability, velocity, feature\ncycle time, flow efficiency and flow distribution, with the interval's\nstate and confidence vote. The caller needs the right to view reports\non the entity.","operationId":"metrics_api_v1_planning_intervals__pi_id__metrics_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"pi_id","in":"path","required":true,"schema":{"type":"integer","title":"Pi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Api V1 Planning Intervals  Pi Id  Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portfolio/kanban":{"get":{"tags":["scaled delivery"],"summary":"Portfolio Kanban","description":"Every epic on the portfolio kanban, in its column, ranked by WSJF.\n\nAccount-wide rather than entity-scoped, because a portfolio is the level at\nwhich an organisation compares things that are not otherwise comparable -\nand a kanban that could only show one division's epics would be answering a\nquestion nobody at that level is asking. What a reader may see is still\ntheir own: an initiative on an entity they hold no rights over is left out.","operationId":"portfolio_kanban_api_v1_portfolio_kanban_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"columns":{"items":{"properties":{"budget_cents":{"type":["null","integer"]},"category":{"type":"string"},"currency":{"type":"string"},"id":{"type":"integer"},"initiatives":{"items":{"properties":{"budget_cents":{"type":["null","integer"]},"business_case":{"properties":{"business_outcomes":{"type":"string"},"hypothesis":{"type":"string"},"leading_indicators":{"type":"string"},"mvp_definition":{"type":"string"},"nfr_notes":{"type":"string"}},"required":["business_outcomes","hypothesis","leading_indicators","mvp_definition","nfr_notes"],"type":"object"},"currency":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":"integer"},"funnel_entered_at":{"type":["null","string"]},"id":{"type":"integer"},"may_leave_portfolio":{"type":"boolean"},"name":{"type":"string"},"pending_approvals":{"type":"array"},"prioritisation":{"properties":{"components":{"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"state":{"properties":{"category":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["category","id","name"],"type":"object"},"status":{"type":"string"},"transitions":{"items":{"properties":{"direction":{"type":"string"},"gated":{"type":"boolean"},"name":{"type":"string"},"to_state_id":{"type":"integer"},"to_state_name":{"type":"string"}},"required":["direction","gated","name","to_state_id","to_state_name"],"type":"object"},"type":"array"},"value_stream":{"properties":{"budget_cents":{"type":"integer"},"currency":{"type":"string"},"guardrail":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"over_cents":{"type":"integer"},"remaining_cents":{"type":"integer"}},"required":["budget_cents","currency","guardrail","id","name","over_cents","remaining_cents"],"type":["null","object"]}},"required":["budget_cents","business_case","currency","description","entity_id","funnel_entered_at","id","may_leave_portfolio","name","pending_approvals","prioritisation","state","status","transitions","value_stream"],"type":"object"},"type":"array"},"name":{"type":"string"}},"required":["budget_cents","category","currency","id","initiatives","name"],"type":"object"},"type":"array"},"not_on_kanban":{"items":{"properties":{"budget_cents":{"type":"null"},"business_case":{"properties":{"business_outcomes":{"type":"string"},"hypothesis":{"type":"string"},"leading_indicators":{"type":"string"},"mvp_definition":{"type":"string"},"nfr_notes":{"type":"string"}},"required":["business_outcomes","hypothesis","leading_indicators","mvp_definition","nfr_notes"],"type":"object"},"currency":{"type":"string"},"description":{"type":"string"},"entity_id":{"type":"integer"},"funnel_entered_at":{"type":["null","string"]},"id":{"type":"integer"},"may_leave_portfolio":{"type":"boolean"},"name":{"type":"string"},"pending_approvals":{"type":"array"},"prioritisation":{"properties":{"components":{"type":"array"},"label":{"type":"string"},"meaning":{"type":"string"},"method":{"type":"string"},"score":{"type":"null"}},"required":["components","label","meaning","method","score"],"type":"object"},"state":{"type":"null"},"status":{"type":"string"},"transitions":{"items":{"properties":{"direction":{"type":"string"},"gated":{"type":"boolean"},"name":{"type":"string"},"to_state_id":{"type":"integer"},"to_state_name":{"type":"string"}},"required":["direction","gated","name","to_state_id","to_state_name"],"type":"object"},"type":"array"},"value_stream":{"type":"null"}},"required":["budget_cents","business_case","currency","description","entity_id","funnel_entered_at","id","may_leave_portfolio","name","pending_approvals","prioritisation","state","status","transitions","value_stream"],"type":"object"},"type":"array"},"workflow_id":{"type":"integer"}},"required":["columns","not_on_kanban","workflow_id"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/initiatives/{initiative_id}/business-case":{"put":{"tags":["scaled delivery"],"summary":"Set Business Case","description":"Replace an initiative's business case: its hypothesis, business\noutcomes, leading indicators, MVP definition, notes on non-functional\nrequirements and the value stream it draws on. A field left out is\ncleared. Answers with the initiative.\n\nA value stream budgeted in another currency than the initiative is\nrefused. The caller needs the right to manage the portfolio on the\ninitiative's entity.","operationId":"set_business_case_api_v1_initiatives__initiative_id__business_case_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessCaseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Business Case Api V1 Initiatives  Initiative Id  Business Case Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/transition":{"post":{"tags":["scaled delivery"],"summary":"Transition Initiative","description":"Move an epic along the portfolio kanban.\n\nThe same `workflow.transition` a story and a change request go through, so\nthe lean-portfolio-management gate opens the same approval request, is\ndecided on the epic the same way the other two are decided on their own\nsubjects, and writes the same audit row. Nothing here is portfolio\nmachinery; the portfolio is a workflow.","operationId":"transition_initiative_api_v1_initiatives__initiative_id__transition_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"applied":{"type":"boolean"},"approval_request_id":{"type":["null","integer"]},"id":{"type":"integer"},"message":{"type":"string"},"state":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}},"required":["applied","approval_request_id","id","message","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/initiatives/{initiative_id}/leave-portfolio":{"post":{"tags":["scaled delivery"],"summary":"Leave Portfolio","description":"Take an epic off the portfolio kanban, back to not being on it.\n\nThe funnel's one step back. Every other column's is the column to its left;\nthe funnel had none at all, so an epic proposed to the portfolio by mistake\nstayed proposed - the same dead end cancelling a work item used to be, one\nscreen over.\n\nNot a transition, and it is worth saying why rather than forcing it into\none. A `WorkflowTransition` is a pair of states, and there is no state on\nthe far side of this: `state_id` goes null and the epic reappears under\n\"Not on the portfolio yet\", the list it was in before anybody proposed it.\nIts workflow is left named so that sending it back to the funnel later\nreturns it to the same kanban rather than to the account default.\n\nNothing else is touched. The business case, the value stream, the WSJF\nscore and every audit row stay where they are - this says the epic is not\nbeing funded through the portfolio right now, not that the thinking about\nit never happened.","operationId":"leave_portfolio_api_v1_initiatives__initiative_id__leave_portfolio_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"initiative_id","in":"path","required":true,"schema":{"type":"integer","title":"Initiative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"applied":{"type":"boolean"},"id":{"type":"integer"},"state":{"type":"null"}},"required":["applied","id","state"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/value-streams":{"get":{"tags":["scaled delivery"],"summary":"List Value Streams","description":"The value streams at or beneath this entity, and what they are funding.\n\nThe committed figure is the sum of the budgets of the epics drawing on the\nstream that are past the authority - which is what a guardrail conversation\nis actually about. An epic still in the funnel is a proposal and is counted\nseparately, so \"what have we spent\" and \"what have we been asked for\" stay\ntwo questions. Which states are past the authority is the workflow's own\nanswer, and an archived epic has stopped drawing - see services/funding.","operationId":"list_value_streams_api_v1_entities__entity_id__value_streams_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Value Streams Api V1 Entities  Entity Id  Value Streams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["scaled delivery"],"summary":"Create Value Stream","description":"Create a value stream, from a name and, optionally, a description, a\nbudget in whole cents, a currency, guardrail notes and a `soft` or\n`hard` guardrail. The stream belongs to the entity named in the body's\n`entity_id`. Without a currency it takes the account's default.\nAnswers with the stream's id and name.\n\nThe caller needs the right to manage the portfolio on the entity in the\npath.","operationId":"create_value_stream_api_v1_entities__entity_id__value_streams_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueStreamIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/budget":{"get":{"tags":["scaled delivery"],"summary":"Entity Budget","description":"The money at and beneath this entity, summed without weighting.\n\nInitiatives and value streams as two totals rather than one, because an\ninitiative draws on a stream and adding them would count the same money\ntwice; and per currency, because a sum across currencies has no unit.\nNarrowed to the parts the reader may see, like every subtree read.","operationId":"entity_budget_api_v1_entities__entity_id__budget_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"by_service":{"items":{"properties":{"initiative_count":{"type":"integer"},"initiatives":{"items":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"count":{"type":"integer"},"currency":{"type":"string"},"forecast_cents":{"type":"integer"},"remaining_cents":{"type":"integer"}},"required":["actual_cents","budget_cents","committed_cents","count","currency","forecast_cents","remaining_cents"],"type":"object"},"type":"array"},"service":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"service_id":{"type":"integer"}},"required":["initiative_count","initiatives","service","service_id"],"type":"object"},"type":"array"},"direct":{"items":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"count":{"type":"integer"},"currency":{"type":"string"},"forecast_cents":{"type":"integer"},"remaining_cents":{"type":"integer"}},"required":["actual_cents","budget_cents","committed_cents","count","currency","forecast_cents","remaining_cents"],"type":"object"},"type":"array"},"entity_count":{"type":"integer"},"entity_id":{"type":"integer"},"initiatives":{"items":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"count":{"type":"integer"},"currency":{"type":"string"},"forecast_cents":{"type":"integer"},"remaining_cents":{"type":"integer"}},"required":["actual_cents","budget_cents","committed_cents","count","currency","forecast_cents","remaining_cents"],"type":"object"},"type":"array"},"value_streams":{"items":{"properties":{"actual_cents":{"type":"integer"},"budget_cents":{"type":"integer"},"committed_cents":{"type":"integer"},"count":{"type":"integer"},"currency":{"type":"string"},"forecast_cents":{"type":"integer"},"remaining_cents":{"type":"integer"}},"required":["actual_cents","budget_cents","committed_cents","count","currency","forecast_cents","remaining_cents"],"type":"object"},"type":"array"}},"required":["entity_count","entity_id","initiatives","value_streams"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/value-streams/{stream_id}":{"put":{"tags":["scaled delivery"],"summary":"Update Value Stream","description":"Replace a value stream's name, description, entity, budget, guardrail\nnotes and order. The stream keeps its currency and its guardrail unless\nthe body names new ones. Answers with the stream's id and name.\n\nThe caller needs the right to manage the portfolio on the stream's\nentity.","operationId":"update_value_stream_api_v1_value_streams__stream_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"integer","title":"Stream Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueStreamIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search":{"get":{"tags":["search"],"summary":"Search","description":"Work items, change requests, initiatives, assessments and pages by name.\n\n`entity_id` narrows to one part of the organisation; without it the search\ncovers everywhere the person can see, which is what somebody chasing a\nreference wants.","operationId":"search_api_v1_search_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"query":{"type":"string"},"results":{"items":{"properties":{"archived":{"type":"boolean"},"detail":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"reference":{"type":"string"},"title":{"type":"string"}},"required":["archived","detail","entity_id","entity_name","id","kind","reference","title"],"type":"object"},"type":"array"},"truncated":{"type":"boolean"}},"required":["query","results","truncated"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/queues":{"get":{"tags":["service desk"],"summary":"List Queues","description":"List an entity's service desk queues, each with its response and\nresolution targets, working hours, categories, assignment method, the\nnumber of open requests, whether the desk is open now, and the portal\naddress and email address a requester would use. `may_answer` and\n`may_configure` say what the caller may do here.","operationId":"list_queues_api_v1_entities__entity_id__queues_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"may_answer":{"type":"boolean"},"may_configure":{"type":"boolean"},"queues":{"items":{"properties":{"address":{"type":"string"},"assignment":{"type":"string"},"categories":{"items":{"type":"string"},"type":"array"},"description":{"type":"string"},"email":{"type":["null","string"]},"hours":{"properties":{"days":{"items":{"type":"integer"},"type":"array"},"end":{"type":"string"},"start":{"type":"string"},"tz":{"type":"string"}},"required":["days","end","start","tz"],"type":["null","object"]},"id":{"type":"integer"},"name":{"type":"string"},"open_count":{"type":"integer"},"open_now":{"type":"boolean"},"portal_url":{"type":"string"},"public":{"type":"boolean"},"resolution_minutes":{"type":"integer"},"response_minutes":{"type":"integer"},"sla_by_priority":{"type":"null"}},"required":["address","assignment","categories","description","email","hours","id","name","open_count","open_now","portal_url","public","resolution_minutes","response_minutes","sla_by_priority"],"type":"object"},"type":"array"}},"required":["may_answer","may_configure","queues"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["service desk"],"summary":"Create Queue","description":"Open a service desk queue on an entity. A queue needs a name; its\nresponse and resolution targets, email address, categories, assignment\nmethod (`manual`, `round_robin` or `least_loaded`) and working hours are\noptional. Answers with the queue's id, name, key and the address of its\nportal.\n\nThe caller needs the `sprint.manage` right on the entity.","operationId":"create_queue_api_v1_entities__entity_id__queues_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"name":{"type":"string"},"portal_url":{"type":"string"}},"required":["id","key","name","portal_url"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/desk-beneath":{"get":{"tags":["service desk"],"summary":"Desk Beneath","description":"The desks one level down, with what is on them now.\n\nFor each child the reader may see that has a queue somewhere beneath it:\nwhat is open and late across the child's whole subtree, and the child's\nown queues with their counts. A child with no desk anywhere beneath it is\nleft out rather than shown as quiet.\nA parent of teams therefore sees the teams' queues; a parent of parents\nsees the parents with their totals. Read as counts rather than as\nrequests, because a parent's desk is for seeing where the load is, and\nthe requests themselves are the child's desk's business - which is\nwhere a press on a row goes.","operationId":"desk_beneath_api_v1_entities__entity_id__desk_beneath_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"children":{"items":{"properties":{"entity_id":{"type":"integer"},"late_count":{"type":"integer"},"name":{"type":"string"},"open_count":{"type":"integer"},"queues":{"items":{"properties":{"id":{"type":"integer"},"late_count":{"type":"integer"},"name":{"type":"string"},"open_count":{"type":"integer"}},"required":["id","late_count","name","open_count"],"type":"object"},"type":"array"}},"required":["entity_id","late_count","name","open_count","queues"],"type":"object"},"type":"array"},"late_count":{"type":"integer"},"open_count":{"type":"integer"}},"required":["children","late_count","open_count"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queues/{queue_id}":{"put":{"tags":["service desk"],"summary":"Update Queue","description":"Edit a queue. A full replace, and `QueueUpdate` makes it one.","operationId":"update_queue_api_v1_queues__queue_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"integer","title":"Queue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["service desk"],"summary":"Delete Queue","description":"Take a queue away: its portal address stops answering.\n\nOnly an empty one. A queue with requests on it, open or closed, is the\nrecord of what people asked and were told, and those rows name it; the\nway to stop more arriving is to make it private. The queue this\ndeployment's own feedback is forwarded to stays whatever is on it.","operationId":"delete_queue_api_v1_queues__queue_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"integer","title":"Queue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}},"required":["deleted","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/requests":{"get":{"tags":["service desk"],"summary":"List Requests","description":"List an entity's requests, newest first, each with its status,\npriority, queue, requester, assignee, linked work item and the state of\nits response and resolution clocks. Only open requests are listed unless\n`open_only` is false; `queue_id` and `kind` narrow the list further.\n\nThe caller needs the right to answer requests on the entity.","operationId":"list_requests_api_v1_entities__entity_id__requests_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"queue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Id"}},{"name":"open_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Open Only"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RequestKind"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"requests":{"items":{"properties":{"assignee_id":{"type":["null","integer"]},"assignee_name":{"type":"string"},"category":{"type":"string"},"caused_by_change_id":{"type":["null","integer"]},"chat_channel":{"type":"string"},"clocks":{"properties":{"resolution":{"properties":{"breached":{"type":"boolean"},"due_at":{"type":"string"},"kept":{"type":"null"},"met_at":{"type":"null"},"minutes_left":{"type":"integer"}},"required":["breached","due_at","kept","met_at","minutes_left"],"type":"object"},"response":{"properties":{"breached":{"type":"boolean"},"due_at":{"type":"string"},"kept":{"type":["null","boolean"]},"met_at":{"type":["null","string"]},"minutes_left":{"type":["null","integer"]}},"required":["breached","due_at","kept","met_at","minutes_left"],"type":"object"}},"required":["resolution","response"],"type":"object"},"created_at":{"type":"string"},"detected_at":{"type":["null","string"]},"fix_change_id":{"type":"null"},"id":{"type":"integer"},"kind":{"type":"string"},"known_error":{"type":"string"},"language":{"type":"string"},"last_from":{"type":["null","string"]},"paused_minutes":{"type":"integer"},"priority":{"type":"string"},"problem_id":{"type":"null"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"rating":{"type":"null"},"rating_comment":{"type":"string"},"reference":{"type":"string"},"requester_email":{"type":"string"},"requester_name":{"type":"string"},"root_cause":{"type":"string"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"severity":{"type":["null","string"]},"started_at":{"type":"null"},"status":{"type":"string"},"subject":{"type":"string"},"summary":{"type":"string"},"updated_at":{"type":"string"},"via_chat":{"type":"boolean"},"work_item_id":{"type":"null"},"work_item_reference":{"type":"string"},"work_item_title":{"type":"string"}},"required":["assignee_id","assignee_name","category","caused_by_change_id","clocks","created_at","detected_at","fix_change_id","id","kind","known_error","language","last_from","paused_minutes","priority","problem_id","queue_id","queue_name","rating","rating_comment","reference","requester_email","requester_name","root_cause","services","severity","started_at","status","subject","summary","updated_at","work_item_id","work_item_reference","work_item_title"],"type":"object"},"type":"array"}},"required":["requests"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["service desk"],"summary":"Raise From Inside","description":"Raise a request, an incident or a problem from inside the organisation\n(plan phase 2). The desk only took things from outside before; an\nincident is reported by the people watching the service, and a problem\nis opened by the desk itself.","operationId":"raise_from_inside_api_v1_entities__entity_id__requests_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RaiseInsideIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"reference":{"type":"string"}},"required":["id","kind","reference"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}":{"get":{"tags":["service desk"],"summary":"Read Request","description":"One request and everything said about it, internal notes included.","operationId":"read_request_api_v1_requests__request_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"attachments":{"items":{"properties":{"content_type":{"type":"string"},"filename":{"type":"string"},"id":{"type":"integer"},"size_bytes":{"type":"integer"}},"required":["content_type","filename","id","size_bytes"],"type":"object"},"type":"array"},"messages":{"items":{"properties":{"author":{"type":"string"},"body":{"type":"string"},"by_chat":{"type":"boolean"},"by_email":{"type":"boolean"},"created_at":{"type":"string"},"from_agent":{"type":"boolean"},"id":{"type":"integer"},"internal":{"type":"boolean"}},"required":["author","body","by_email","created_at","from_agent","id","internal"],"type":"object"},"type":"array"},"request":{"properties":{"assignee_id":{"type":["null","integer"]},"assignee_name":{"type":"string"},"category":{"type":"string"},"caused_by_change":{"properties":{"actual_start":{"type":"null"},"change_type":{"type":"string"},"id":{"type":"integer"},"outcome":{"type":"null"},"planned_start":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["actual_start","change_type","id","outcome","planned_start","reference","risk","state_name","title"],"type":["null","object"]},"caused_by_change_id":{"type":["null","integer"]},"chat_channel":{"type":"string"},"clocks":{"properties":{"resolution":{"properties":{"breached":{"type":"boolean"},"due_at":{"type":["null","string"]},"kept":{"type":["null","boolean"]},"met_at":{"type":["null","string"]},"minutes_left":{"type":["null","integer"]}},"required":["breached","due_at","kept","met_at","minutes_left"],"type":"object"},"response":{"properties":{"breached":{"type":"boolean"},"due_at":{"type":["null","string"]},"kept":{"type":["null","boolean"]},"met_at":{"type":["null","string"]},"minutes_left":{"type":["null","integer"]}},"required":["breached","due_at","kept","met_at","minutes_left"],"type":"object"}},"required":["resolution","response"],"type":"object"},"created_at":{"type":"string"},"detected_at":{"type":["null","string"]},"fix_change":{"properties":{"actual_start":{"type":"null"},"change_type":{"type":"string"},"id":{"type":"integer"},"outcome":{"type":"null"},"planned_start":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["actual_start","change_type","id","outcome","planned_start","reference","risk","state_name","title"],"type":"object"},"fix_change_id":{"type":["null","integer"]},"id":{"type":"integer"},"incidents":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"priority":{"type":"string"},"reference":{"type":"string"},"resolved_at":{"type":"null"},"severity":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["created_at","id","kind","priority","reference","resolved_at","severity","status","subject"],"type":"object"},"type":"array"},"kind":{"type":"string"},"known_error":{"type":"string"},"language":{"type":"string"},"last_from":{"type":["null","string"]},"page":{"properties":{"acknowledged_at":{"type":"null"},"acknowledged_by_name":{"type":"string"},"ended_at":{"type":"null"},"id":{"type":"integer"},"next_at":{"type":"string"},"policy_id":{"type":"integer"},"policy_name":{"type":"string"},"request_id":{"type":"integer"},"round":{"type":"integer"},"rounds":{"type":"integer"},"started_at":{"type":"string"},"started_by_name":{"type":"string"},"state":{"type":"string"},"step":{"type":"integer"},"steps":{"type":"integer"},"told":{"items":{"properties":{"at":{"type":"string"},"covering_for_name":{"type":"string"},"name":{"type":"string"},"person_id":{"type":"integer"},"rota_name":{"type":"string"},"round":{"type":"integer"},"step":{"type":"integer"}},"required":["at","covering_for_name","name","person_id","rota_name","round","step"],"type":"object"},"type":"array"}},"required":["acknowledged_at","acknowledged_by_name","ended_at","id","next_at","policy_id","policy_name","request_id","round","rounds","started_at","started_by_name","state","step","steps","told"],"type":["null","object"]},"page_policy":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":["null","object"]},"paused_minutes":{"type":"integer"},"priority":{"type":"string"},"problem":{"type":"null"},"problem_id":{"type":"null"},"queue_id":{"type":"integer"},"queue_name":{"type":"string"},"rating":{"type":["null","integer"]},"rating_comment":{"type":"string"},"reference":{"type":"string"},"requester_email":{"type":"string"},"requester_name":{"type":"string"},"root_cause":{"type":"string"},"services":{"items":{"properties":{"archived_at":{"type":"null"},"criticality":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"weight_pct":{"type":"null"}},"required":["archived_at","criticality","id","kind","name","stage"],"type":"object"},"type":"array"},"severity":{"type":["null","string"]},"started_at":{"type":"null"},"status":{"type":"string"},"subject":{"type":"string"},"suggestions":{"properties":{"dismissed":{"type":"boolean"},"language":{"type":"string"},"priority":{"type":"string"},"queue_id":{"type":"null"},"queue_name":{"type":"string"},"summary":{"type":"string"},"triaged_at":{"type":"string"}},"required":["dismissed","language","priority","queue_id","queue_name","summary","triaged_at"],"type":["null","object"]},"summary":{"type":"string"},"updated_at":{"type":"string"},"via_chat":{"type":"boolean"},"work_item_id":{"type":["null","integer"]},"work_item_reference":{"type":"string"},"work_item_title":{"type":"string"}},"required":["assignee_id","assignee_name","category","caused_by_change_id","clocks","created_at","detected_at","fix_change_id","id","kind","known_error","language","last_from","paused_minutes","priority","problem_id","queue_id","queue_name","rating","rating_comment","reference","requester_email","requester_name","root_cause","services","severity","started_at","status","subject","suggestions","summary","updated_at","work_item_id","work_item_reference","work_item_title"],"type":"object"}},"required":["attachments","messages","request"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["service desk"],"summary":"Update Request","description":"Move it, hand it on, or tie it to the work that resolves it.","operationId":"update_request_api_v1_requests__request_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"status":{"type":"string"}},"required":["id","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/request-attachments/{attachment_id}":{"get":{"tags":["service desk"],"summary":"Download Request Attachment","description":"For whoever may answer the request it came with.","operationId":"download_request_attachment_api_v1_request_attachments__attachment_id__get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/octet-stream":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/reply":{"post":{"tags":["service desk"],"summary":"Reply","description":"Answer, or make a note. A public reply is what stops the first clock.","operationId":"reply_api_v1_requests__request_id__reply_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"internal":{"type":"boolean"},"status":{"type":"string"}},"required":["id","internal","status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/destinations":{"get":{"tags":["service desk"],"summary":"Destinations","description":"The queues this request could be moved to: every queue in the account\nthe caller may answer on, bar the one it is in. Named with their part of\nthe organisation, because two teams may both have a queue called\nSupport.","operationId":"destinations_api_v1_requests__request_id__destinations_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"destinations":{"items":{"properties":{"entity_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["entity_name","id","name"],"type":"object"},"type":"array"}},"required":["destinations"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/cause-candidates":{"get":{"tags":["service desk"],"summary":"Cause Candidates","description":"The changes that could have caused this incident: implemented against\none of its services in the three days before it started.","operationId":"cause_candidates_api_v1_requests__request_id__cause_candidates_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"changes":{"items":{"properties":{"actual_start":{"type":"string"},"change_type":{"type":"string"},"id":{"type":"integer"},"outcome":{"type":"null"},"planned_start":{"type":"string"},"reference":{"type":"string"},"risk":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["actual_start","change_type","id","outcome","planned_start","reference","risk","state_name","title"],"type":"object"},"type":"array"}},"required":["changes"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/problems":{"get":{"tags":["service desk"],"summary":"List Problems","description":"The open problems here, for an incident to be grouped under.","operationId":"list_problems_api_v1_entities__entity_id__problems_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"problems":{"items":{"properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"priority":{"type":"string"},"reference":{"type":"string"},"resolved_at":{"type":"null"},"severity":{"type":"null"},"status":{"type":"string"},"subject":{"type":"string"}},"required":["created_at","id","kind","priority","reference","resolved_at","severity","status","subject"],"type":"object"},"type":"array"}},"required":["problems"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/bulk":{"post":{"tags":["service desk"],"summary":"Update Requests","description":"The same change to several requests at once: hand five to somebody,\nclose a morning's worth, move a batch that landed on the wrong desk.\n\nWhat the patch names - the person, the work, the queue - is checked once\nbefore anything is touched, so a refusal is a refusal of the whole batch\nand never of its second half. What can still differ per request is\nwhether the caller may answer on it, and a request they may not is\nskipped and named rather than failing the rest.","operationId":"update_requests_api_v1_requests_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"changed":{"items":{"type":"integer"},"type":"array"},"skipped":{"items":{"properties":{"id":{"type":"integer"},"reason":{"type":"string"}},"required":["id","reason"],"type":"object"},"type":"array"}},"required":["changed","skipped"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/requests/{request_id}/work-item":{"post":{"tags":["service desk"],"summary":"Work Item From Request","description":"The answer turned out to be work: raise it, on the request's own part\nof the organisation, and tie the two together.\n\nThe item is made the way the board makes one - same checks, same first\ncolumn, same page for a top rung - so it is an ordinary item that\nhappens to remember where it came from. The request keeps the thread;\nthe item gets the subject, who asked, and what they said first, so\nwhoever picks it up can read it without opening the desk.","operationId":"work_item_from_request_api_v1_requests__request_id__work_item_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkItemFromRequestIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"}},"required":["id","reference"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/canned-replies":{"get":{"tags":["service desk"],"summary":"List Canned","description":"What the composer offers at this desk: its own and the ones from\nabove, nearest first.","operationId":"list_canned_api_v1_entities__entity_id__canned_replies_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"holes":{"items":{"type":"string"},"type":"array"},"may_configure":{"type":"boolean"},"replies":{"items":{"properties":{"body":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"id":{"type":"integer"},"own":{"type":"boolean"},"title":{"type":"string"}},"required":["body","entity_id","entity_name","id","own","title"],"type":"object"},"type":"array"}},"required":["holes","may_configure","replies"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["service desk"],"summary":"Create Canned","description":"Write a canned reply for an entity's desk, from a title and a body.\nThe body may carry the placeholders `{name}`, `{reference}`, `{queue}`\nand `{agent}`, which are filled in when the reply is used; any other\nplaceholder is refused. Answers with the reply's id and title.\n\nThe caller needs the `sprint.manage` right on the entity.","operationId":"create_canned_api_v1_entities__entity_id__canned_replies_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"title":{"type":"string"}},"required":["id","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/canned-replies/{reply_id}":{"put":{"tags":["service desk"],"summary":"Update Canned","description":"Replace a canned reply's title and body, under the same rules as\nwriting one, and answer with its id and title. The caller needs the\n`sprint.manage` right on the entity the reply belongs to.","operationId":"update_canned_api_v1_canned_replies__reply_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"integer","title":"Reply Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"title":{"type":"string"}},"required":["id","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["service desk"],"summary":"Delete Canned","description":"Delete a canned reply, so that the desk and the desks beneath it no\nlonger offer it. The caller needs the `sprint.manage` right on the\nentity the reply belongs to.","operationId":"delete_canned_api_v1_canned_replies__reply_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"integer","title":"Reply Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}},"required":["deleted","id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/answers":{"get":{"tags":["service desk"],"summary":"Likely Answers","description":"The pages most like this request, from the desk's entity and the ones\nabove it, as far as the reader may read: what the organisation already\nknows, put in front of the question. Matched on the subject and what the\nrequester last said - see services/knowledge.","operationId":"likely_answers_api_v1_requests__request_id__answers_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answers":{"items":{"properties":{"audience":{"type":"string"},"cited":{"type":"boolean"},"entity_name":{"type":"string"},"id":{"type":"integer"},"portal_url":{"type":["null","string"]},"review_overdue":{"type":"boolean"},"score":{"type":"integer"},"summary":{"type":"string"},"title":{"type":"string"}},"required":["audience","cited","entity_name","id","portal_url","review_overdue","score","summary","title"],"type":"object"},"type":"array"},"words":{"items":{"type":"string"},"type":"array"}},"required":["answers","words"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/answers/{document_id}/use":{"post":{"tags":["service desk"],"summary":"Use Answer","description":"An agent puts a page into their reply: the words to insert, and a\nnote that it was handed over.","operationId":"use_answer_api_v1_requests__request_id__answers__document_id__use_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"text":{"type":"string"},"title":{"type":"string"}},"required":["id","text","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/article":{"post":{"tags":["service desk"],"summary":"Article From Request","description":"The answer this request got becomes a page: the question as its\nSymptoms, the last reply as its Fix, filed under the queue's answers,\nthe team's until somebody marks it for requesters. For whoever may\nwrite pages on the desk's entity.","operationId":"article_from_request_api_v1_requests__request_id__article_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"parent_id":{"type":"integer"},"title":{"type":"string"}},"required":["id","parent_id","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/triage":{"post":{"tags":["service desk"],"summary":"Triage Request","description":"Ask the assistant what this request is and where it belongs. The\nanswer is written onto the request as suggestions and shown as chips;\nnothing moves until an agent applies one. Metered like a report's\nsummary: the stub answers for nothing, a live model costs credits.","operationId":"triage_request_api_v1_requests__request_id__triage_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"credits_charged":{"type":"integer"},"credits_remaining":{"type":"integer"},"is_live":{"type":"boolean"},"language":{"type":"string"},"note":{"type":"string"},"priority":{"type":"string"},"provider":{"type":"string"},"queue_id":{"type":["null","integer"]},"reasons":{"items":{"type":"string"},"type":"array"},"suggestions":{"properties":{"dismissed":{"type":"boolean"},"language":{"type":"string"},"priority":{"type":"string"},"queue_id":{"type":["null","integer"]},"queue_name":{"type":"string"},"summary":{"type":"string"},"triaged_at":{"type":"string"}},"required":["dismissed","language","priority","queue_id","queue_name","summary","triaged_at"],"type":"object"},"summary":{"type":"string"}},"required":["credits_charged","credits_remaining","is_live","language","note","priority","provider","queue_id","reasons","suggestions","summary"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/answers/rank":{"post":{"tags":["service desk"],"summary":"Rank Answers","description":"Ask the assistant which of the likely answers answers it, with a\nreply drafted from the best - or, where none does, the next step. Asked\nwith the pages the knowledge service found and no others, so what comes\nback is grounded in what the organisation wrote.","operationId":"rank_answers_api_v1_requests__request_id__answers_rank_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"answers":{"items":{"properties":{"audience":{"type":"string"},"cited":{"type":"boolean"},"confidence":{"type":"number"},"entity_name":{"type":"string"},"id":{"type":"integer"},"portal_url":{"type":["null","string"]},"review_overdue":{"type":"boolean"},"score":{"type":"integer"},"summary":{"type":"string"},"title":{"type":"string"},"why":{"type":"string"}},"required":["audience","cited","confidence","entity_name","id","portal_url","review_overdue","score","summary","title","why"],"type":"object"},"type":"array"},"ask_draft":{"type":["null","string"]},"credits_charged":{"type":"integer"},"credits_remaining":{"type":"integer"},"is_live":{"type":"boolean"},"next_step":{"type":"string"},"note":{"type":"string"},"provider":{"type":"string"},"ranked":{"items":{"properties":{"confidence":{"type":"number"},"document_id":{"type":"integer"},"why":{"type":"string"}},"required":["confidence","document_id","why"],"type":"object"},"type":"array"},"reply_draft":{"type":["null","string"]}},"required":["answers","ask_draft","credits_charged","credits_remaining","is_live","next_step","note","provider","ranked","reply_draft"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/requests/{request_id}/suggestions/dismiss":{"post":{"tags":["service desk"],"summary":"Dismiss Suggestions","description":"No, thank you: the chips stay away for this request.","operationId":"dismiss_suggestions_api_v1_requests__request_id__suggestions_dismiss_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"suggestions":{"properties":{"dismissed":{"type":"boolean"},"language":{"type":"string"},"priority":{"type":"string"},"queue_id":{"type":"null"},"queue_name":{"type":"string"},"summary":{"type":"string"},"triaged_at":{"type":"string"}},"required":["dismissed","language","priority","queue_id","queue_name","summary","triaged_at"],"type":"object"}},"required":["suggestions"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/queue-rules":{"get":{"tags":["service desk"],"summary":"List Rules","description":"The rules read when a request arrives on this entity, in order.","operationId":"list_rules_api_v1_entities__entity_id__queue_rules_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"kinds":{"items":{"type":"string"},"type":"array"},"may_configure":{"type":"boolean"},"rules":{"items":{"properties":{"assignee_id":{"type":"null"},"assignee_name":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"position":{"type":"integer"},"priority":{"type":"string"},"queue_id":{"type":"null"},"queue_name":{"type":"string"},"value":{"type":"string"}},"required":["assignee_id","assignee_name","id","kind","position","priority","queue_id","queue_name","value"],"type":"object"},"type":"array"}},"required":["kinds","may_configure","rules"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["service desk"],"summary":"Create Rule","description":"Add a routing rule, read last, for requests arriving on an entity.\nA rule matches a `domain`, a `keyword` or a `category` against `value`,\nand must do at least one thing: file the request on one of the entity's\nqueues, set its priority, or assign it to a person. Answers with the\nrule's id and position.\n\nThe caller needs the `sprint.manage` right on the entity.","operationId":"create_rule_api_v1_entities__entity_id__queue_rules_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__servicedesk__RuleIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"position":{"type":"integer"}},"required":["id","position"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue-rules/{rule_id}":{"put":{"tags":["service desk"],"summary":"Update Rule","description":"Replace what a routing rule matches and what it does, under the same\nrules as adding one. The rule keeps its position. Answers with its id.\nThe caller needs the `sprint.manage` right on the rule's entity.","operationId":"update_rule_api_v1_queue_rules__rule_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__servicedesk__RuleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Rule Api V1 Queue Rules  Rule Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["service desk"],"summary":"Delete Rule","description":"Delete a routing rule, so that arriving requests are no longer read\nagainst it. The caller needs the `sprint.manage` right on the rule's\nentity.","operationId":"delete_rule_api_v1_queue_rules__rule_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Rule Api V1 Queue Rules  Rule Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/queue-rules/order":{"put":{"tags":["service desk"],"summary":"Order Rules","description":"The order the rules are read in: first match wins, so it matters.","operationId":"order_rules_api_v1_entities__entity_id__queue_rules_order_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__servicedesk__RuleOrderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"ids":{"items":{"type":"integer"},"type":"array"}},"required":["ids"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}/requests/take-next":{"post":{"tags":["service desk"],"summary":"Take Next","description":"Put the caller's name on the most urgent request nobody holds: highest\npriority first, then closest to falling due, the way the list is read.\nAnswers 404 when nothing is waiting, which is good news.","operationId":"take_next_api_v1_entities__entity_id__requests_take_next_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"reference":{"type":"string"},"subject":{"type":"string"}},"required":["id","reference","subject"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup":{"get":{"tags":["signup"],"summary":"Signup Open","description":"Whether this deployment takes sign-ups, so the sign-in screen knows\nwhether to offer the link at all rather than offering one that refuses -\nand the same for the demo account.","operationId":"signup_open_api_v1_signup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"demo":{"properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"],"type":["null","object"]},"open":{"type":"boolean"}},"required":["demo","open"],"type":"object"}}},"x-dillic-recorded":true}}},"post":{"tags":["signup"],"summary":"Request Signup","description":"Take the details and send the letter. Creates no organisation yet.\n\nAnswers 202 rather than 201 because nothing has been created: the honest\nstatus for \"we have your request and something will happen when you act on\nthe email\".","operationId":"request_signup_api_v1_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"hours":{"type":"integer"},"message":{"type":"string"}},"required":["email","hours","message"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/verify":{"post":{"tags":["signup"],"summary":"Verify Signup","description":"Prove the address, build the organisation, and sign them in.\n\nSigned in on the way out rather than sent to the login screen: they have\njust proved the address and typed the password, and asking for it again is\na form for its own sake.","operationId":"verify_signup_api_v1_signup_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__signup__VerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"account":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"created":{"type":"boolean"},"person":{"properties":{"email":{"type":"string"},"id":{"type":"integer"}},"required":["email","id"],"type":"object"}},"required":["account","created","person"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/sso/discover":{"post":{"tags":["identity"],"summary":"Discover","description":"Which sign-in buttons to offer whoever typed this address.\n\nAn address nobody claims answers with an empty list rather than a refusal:\none sign-in page serves every tenant, and a page that said \"no such\norganisation\" would answer questions about who our customers are.","operationId":"discover_api_v1_auth_sso_discover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"providers":{"items":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"},"type":"array"}},"required":["providers"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/sso/{provider_id}/start":{"get":{"tags":["identity"],"summary":"Start","description":"Leave for the identity provider.\n\nEverything this end will need on the way back is written down first, keyed\nby a random handle: the answer is only accepted if it quotes one, which is\nwhat makes an unsolicited response useless.\n\n`client` says who is asking - a browser, or the mobile app - and is kept on\nthe request rather than carried round the trip, so nothing that comes back\ncan change its mind about where it lands.","operationId":"start_api_v1_auth_sso__provider_id__start_get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"redirect_to","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Redirect To"}},{"name":"client","in":"query","required":false,"schema":{"type":"string","default":"web","title":"Client"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"307":{"description":"Redirect","x-dillic-recorded":true}}}},"/api/v1/auth/sso/{provider_id}/callback":{"get":{"tags":["identity"],"summary":"Callback","description":"Back from an OIDC provider, holding an authorisation code.","operationId":"callback_api_v1_auth_sso__provider_id__callback_get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"303":{"description":"Redirect","x-dillic-recorded":true}}}},"/api/v1/auth/sso/saml/acs":{"post":{"tags":["identity"],"summary":"Assertion Consumer","description":"Back from a SAML provider, holding a signed assertion.\n\nPosted by the browser, so the connection it belongs to is not in the URL -\nit is whichever one this end asked, which is what RelayState carries back\nand what the request record says.","operationId":"assertion_consumer_api_v1_auth_sso_saml_acs_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_assertion_consumer_api_v1_auth_sso_saml_acs_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"303":{"description":"Redirect","x-dillic-recorded":true}}}},"/api/v1/auth/sso/exchange":{"post":{"tags":["identity"],"summary":"Exchange","description":"Turn the code a native sign-in ended with into a device token.\n\nThe far side of `_land` for the mobile app. The code is single-use and\nshort-lived, so a URL that leaked through a log or a screenshot is worth\nnothing a minute later, and nothing after the app has used it. No second\nfactor is asked for here: the directory applied its own policy before it\nvouched for anybody, which is the same reason a browser's directory\nsign-in is not challenged.","operationId":"exchange_api_v1_auth_sso_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"expires_at":{"type":"string"},"full_name":{"type":"string"},"id":{"type":"integer"},"token":{"type":"string"},"token_id":{"type":"integer"}},"required":["email","expires_at","full_name","id","token","token_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/sso/saml/metadata":{"get":{"tags":["identity"],"summary":"Sp Metadata","description":"What to hand the directory's administrator.\n\nOne document for the deployment rather than one per connection: the entity\nid and the assertion consumer service are the same whoever is connecting,\nand a per-connection copy would be three identical files to keep in step.","operationId":"sp_metadata_api_v1_auth_sso_saml_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/samlmetadata+xml":{}},"x-dillic-recorded":true}}}},"/api/v1/auth/sso/saml/settings":{"get":{"tags":["identity"],"summary":"Sp Settings","description":"The same two facts as JSON, for the screen that shows them to be copied.","operationId":"sp_settings_api_v1_auth_sso_saml_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"acs_url":{"type":"string"},"entity_id":{"type":"string"},"metadata_url":{"type":"string"}},"required":["acs_url","entity_id","metadata_url"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/status":{"get":{"tags":["status"],"summary":"Status Page","description":"How this deployment is, in words anybody may read.\n\nIts own short-lived session rather than `SessionDep`, because the first\nthing this page has to survive is the database being the thing that is\nbroken - and a dependency that opens one would fail before the handler ran,\nturning the page that explains an outage into part of it.","operationId":"status_page_api_v1_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"checked_at":{"type":"string"},"components":{"items":{"properties":{"name":{"type":"string"},"note":{"type":"string"},"status":{"type":"string"}},"required":["name","note","status"],"type":"object"},"type":"array"},"maintenance":{"properties":{"message":{"type":"string"},"since":{"type":"string"},"until":{"type":"null"}},"required":["message","since","until"],"type":["null","object"]},"region":{"type":["null","string"]},"signup_open":{"type":"boolean"},"status":{"type":"string"}},"required":["checked_at","components","maintenance","region","signup_open","status"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/maintenance/bypass":{"post":{"tags":["status"],"summary":"Bypass","description":"Exchange the operator's bypass key for a cookie that lets one browser\npast maintenance. Needs no sign-in. A wrong key answers not found, as\ndoes any key while there is no maintenance.","operationId":"bypass_api_v1_maintenance_bypass_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BypassIn"}}},"required":true},"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tenant":{"get":{"tags":["admin"],"summary":"Tenant Data","description":"Where the data lives, and what an export of it would hold.","operationId":"tenant_data_api_v1_admin_tenant_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"account_name":{"type":"string"},"excluded":{"items":{"type":"string"},"type":"array"},"file_bytes":{"type":"integer"},"file_count":{"type":"integer"},"files_missing":{"type":"integer"},"region":{"type":["null","string"]},"row_count":{"type":"integer"},"schema_revision":{"type":"string"},"tables":{"properties":{"browsersession":{"type":"integer"},"entity":{"type":"integer"},"entitytype":{"type":"integer"},"membership":{"type":"integer"},"person":{"type":"integer"},"role":{"type":"integer"}},"required":["browsersession","entity","entitytype","membership","person","role"],"type":"object"}},"required":["account_name","excluded","file_bytes","file_count","files_missing","region","row_count","schema_revision","tables"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/admin/tenant/export":{"get":{"tags":["admin"],"summary":"Export","description":"The whole tenant, as one archive.\n\nWritten to a temporary file and streamed rather than built in memory: an\narchive is every row and every file an organisation has, and holding that\ntwice in the API's heap to hand it over once is how one large tenant's\nbackup becomes everybody's outage. The file is deleted once the response\nhas finished going out, which is what the background task is for.","operationId":"export_api_v1_admin_tenant_export_get","responses":{"200":{"description":"Successful Response","content":{"application/zip":{}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/tokens":{"get":{"tags":["tokens"],"summary":"List Tokens","description":"This person's tokens, and what a token may be scoped to.\n\nThe catalogue travels with the list for the same reason it does everywhere\nelse here: a form that has to ask the server what its own menu contains is\na form that flickers.","operationId":"list_tokens_api_v1_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"prefix":{"type":"string"},"scope_groups":{"items":{"properties":{"name":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"}},"required":["name","scopes"],"type":"object"},"type":"array"},"tokens":{"items":{"properties":{"created_at":{"type":"string"},"expired":{"type":"boolean"},"expires_at":{"type":["null","string"]},"full_access":{"type":"boolean"},"id":{"type":"integer"},"kind":{"type":"string"},"last_used_at":{"type":["null","string"]},"name":{"type":"string"},"platform":{"type":"string"},"prefix":{"type":"string"},"revoked_at":{"type":"null"},"scopes":{"type":"array"}},"required":["created_at","expired","expires_at","full_access","id","kind","last_used_at","name","platform","prefix","revoked_at","scopes"],"type":"object"},"type":"array"}},"required":["prefix","scope_groups","tokens"],"type":"object"}}},"x-dillic-recorded":true}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["tokens"],"summary":"Create Token","description":"Issue one, and return the secret exactly once.\n\nThe only response that will ever contain it. Everything afterwards - this\nendpoint's own list, the audit trail, a support conversation - has the\nprefix and the hash, and neither is enough to use.","operationId":"create_token_api_v1_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"expired":{"type":"boolean"},"expires_at":{"type":["null","string"]},"full_access":{"type":"boolean"},"id":{"type":"integer"},"kind":{"type":"string"},"last_used_at":{"type":"null"},"name":{"type":"string"},"platform":{"type":"string"},"prefix":{"type":"string"},"revoked_at":{"type":"null"},"scopes":{"items":{"type":"string"},"type":"array"},"secret":{"type":"string"},"shown_once":{"type":"boolean"}},"required":["created_at","expired","expires_at","full_access","id","kind","last_used_at","name","platform","prefix","revoked_at","scopes","secret","shown_once"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/tokens/{token_id}/revoke":{"post":{"tags":["tokens"],"summary":"Revoke Token","description":"Stop it working, and keep the row.\n\nRevoked rather than deleted, the same as a SCIM token: what it did is in\nthe audit trail, and a row that vanishes takes the explanation of those\nentries with it.","operationId":"revoke_token_api_v1_tokens__token_id__revoke_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string"},"expired":{"type":"boolean"},"expires_at":{"type":"null"},"full_access":{"type":"boolean"},"id":{"type":"integer"},"kind":{"type":"string"},"last_used_at":{"type":["null","string"]},"name":{"type":"string"},"platform":{"type":"string"},"prefix":{"type":"string"},"revoked_at":{"type":"string"},"scopes":{"type":"array"}},"required":["created_at","expired","expires_at","full_access","id","kind","last_used_at","name","platform","prefix","revoked_at","scopes"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/scopes":{"get":{"tags":["tokens"],"summary":"List Scopes","description":"Every permission key a token may be scoped to.\n\nThe same list the roles screen is built from, because a scope is a\npermission and there is only one list of those.","operationId":"list_scopes_api_v1_tokens_scopes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Scopes Api V1 Tokens Scopes Get"}}}}}}},"/api/v1/work-items/{work_item_id}/trace":{"get":{"tags":["trace"],"summary":"Trace","description":"Trace a work item back to what it is for: the items above it, the\ninitiative they carry out, the root cause it addresses, the assertion\nand objective behind that, and the goal. Answers with the levels from\nthe goal down, and a sentence for each link that is missing.\n\nNeeds the `work.view` right on the item's entity. Analysis the reader\nmay not see is withheld, and `analysis_hidden` is true.","operationId":"trace_api_v1_work_items__work_item_id__trace_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"work_item_id","in":"path","required":true,"schema":{"type":"integer","title":"Work Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"analysis_hidden":{"type":"boolean"},"complete":{"type":"boolean"},"item":{"properties":{"id":{"type":"integer"},"kind":{"type":"string"},"level_label":{"type":"string"},"reference":{"type":"string"},"state_name":{"type":"string"},"title":{"type":"string"}},"required":["id","kind","level_label","reference","state_name","title"],"type":"object"},"levels":{"items":{"properties":{"key":{"type":"string"},"label":{"type":"string"},"missing":{"type":"boolean"},"nodes":{"items":{"properties":{"assessment_id":{"type":"integer"},"assessment_title":{"type":"string"},"category_name":{"type":"string"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"factor_id":{"type":["null","integer"]},"factor_statement":{"type":"string"},"id":{"type":"integer"},"kind":{"type":"string"},"level_label":{"type":"string"},"reference":{"type":"string"},"state_name":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["id","kind","title"],"type":"object"},"type":"array"}},"required":["key","label","missing","nodes"],"type":"object"},"type":"array"},"missing":{"items":{"type":"string"},"type":"array"}},"required":["analysis_hidden","complete","item","levels","missing"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trust":{"get":{"tags":["trust"],"summary":"Trust Page","description":"Every answer, grouped by the domain a security review asks it under.","operationId":"trust_page_api_v1_trust_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"document":{"type":"string"},"domains":{"items":{"properties":{"code":{"type":"string"},"controls":{"items":{"properties":{"answer":{"type":"string"},"detail":{"type":"string"},"evidence":{"items":{"type":"string"},"type":"array"},"question":{"type":"string"}},"required":["answer","detail","evidence","question"],"type":"object"},"type":"array"},"name":{"type":"string"}},"required":["code","controls","name"],"type":"object"},"type":"array"},"labels":{"properties":{"no":{"type":"string"},"partial":{"type":"string"},"yes":{"type":"string"}},"required":["no","partial","yes"],"type":"object"},"position":{"properties":{"documents":{"items":{"properties":{"name":{"type":"string"},"title":{"type":"string"}},"required":["name","title"],"type":"object"},"type":"array"},"encryption_at_rest":{"type":"string"},"end_of_life":{"properties":{"notice_days":{"type":"integer"},"read_only_days":{"type":"integer"},"text":{"type":"string"}},"required":["notice_days","read_only_days","text"],"type":"object"},"exit":{"properties":{"format_version":{"type":"integer"},"text":{"type":"string"},"trackers":{"type":"integer"}},"required":["format_version","text","trackers"],"type":"object"},"fedramp":{"type":"string"},"notice_days":{"type":"integer"},"region":{"type":["null","string"]},"security_address":{"type":"string"},"sub_processors":{"items":{"properties":{"name":{"type":"string"},"receives":{"type":"string"},"where":{"type":"string"},"why":{"type":"string"}},"required":["name","receives","where","why"],"type":"object"},"type":"array"},"support_address":{"type":"string"}},"required":["documents","encryption_at_rest","end_of_life","exit","fedramp","notice_days","region","security_address","sub_processors","support_address"],"type":"object"},"questions":{"type":"integer"},"tally":{"properties":{"no":{"type":"integer"},"partial":{"type":"integer"},"yes":{"type":"integer"}},"required":["no","partial","yes"],"type":"object"}},"required":["document","domains","labels","position","questions","tally"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/public/documents":{"get":{"tags":["public documents"],"summary":"Documents","description":"Which documents this deployment has to show.","operationId":"documents_api_v1_public_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"documents":{"items":{"properties":{"name":{"type":"string"},"title":{"type":"string"}},"required":["name","title"],"type":"object"},"type":"array"}},"required":["documents"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/v1/public/documents/{name}":{"get":{"tags":["public documents"],"summary":"Document","description":"One document, as the Markdown it was written in.","operationId":"document_api_v1_public_documents__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"markdown":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"}},"required":["markdown","name","title"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/hooks/{key}":{"post":{"tags":["trackers"],"summary":"Receive Hook","description":"Take a tracker's word that something has changed there, and sync the\nconnection on the scheduler's next tick. The body is not read. The call\nmust carry the connection's secret: as a bearer token, in\n`X-DilliC-Sync-Secret` or `X-Gitlab-Token`, or as GitHub's\n`X-Hub-Signature-256` of the body.","operationId":"receive_hook_api_v1_trackers_hooks__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"accepted":{"type":"boolean"}},"required":["accepted"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/hooks/{key}/{secret}":{"post":{"tags":["trackers"],"summary":"Receive Hook By Address","description":"The same, for a tracker that can send an address and nothing else:\nthe secret is the last part of the address.","operationId":"receive_hook_by_address_api_v1_trackers_hooks__key___secret__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"accepted":{"type":"boolean"}},"required":["accepted"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/{connection_id}/hook":{"post":{"tags":["trackers"],"summary":"Make Hook","description":"Give this connection an address the far end can call when something\nchanges, and answer it with its secret, once. Asked again, it makes a\nnew address and secret, and the old ones stop working.\n\nAdministrators only.","operationId":"make_hook_api_v1_trackers__connection_id__hook_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"address":{"type":"string"},"address_with_secret":{"type":"string"},"secret":{"type":"string"},"secret_header":{"type":"string"},"shown_once":{"type":"boolean"}},"required":["address","address_with_secret","secret","secret_header","shown_once"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["trackers"],"summary":"Remove Hook","description":"Take the connection's address away. The far end's calls are refused\nfrom then on, and the connection syncs on the clock alone.\n\nAdministrators only.","operationId":"remove_hook_api_v1_trackers__connection_id__hook_delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/{connection_id}/import":{"post":{"tags":["trackers"],"summary":"Bring In","description":"Make a work item of every issue at the far end that is nothing here\nyet, and link each pair - an import without a file. On a connection that\nkeeps change requests it raises a change request for every change\nrecord. With `dry_run`, which is the default, it answers how many it\nwould make and the first twenty, and makes nothing.\n\nAdministrators only.","operationId":"bring_in_api_v1_trackers__connection_id__import_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BringIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"already_here":{"type":"integer"},"created":{"type":"integer"},"dry_run":{"type":"boolean"},"gated":{"type":"integer"},"preview":{"items":{"properties":{"remote_key":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["remote_key","status","title"],"type":"object"},"type":"array"},"read":{"type":"integer"},"would_create":{"type":"integer"}},"required":["already_here","dry_run","read"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers":{"get":{"tags":["trackers"],"summary":"List Connections","description":"List the account's tracker connections: the entity each syncs, its\nprovider, project, direction and whether it is enabled, with how many\nitems it links and statuses it maps. The token is never answered, only\nwhether one is set.","operationId":"list_connections_api_v1_trackers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Connections Api V1 Trackers Get"}}}}},"security":[{"session":[]},{"token":[]}]},"post":{"tags":["trackers"],"summary":"Create Connection","description":"Connect an entity's board to a project in an outside tracker and\nanswer the connection. The body needs an entity of the account, a\nproject key and an API token; Jira needs the site's address as well.\nA `record` of `change_request` connects the entity's change requests\nto a service desk's change records instead, where the tracker has them.\nA `record` of `initiative` connects its initiatives to the initiatives\nof a product in Aha!, or the epics of a program in Jira Align.\n\nAdministrators only.","operationId":"create_connection_api_v1_trackers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"account_email":{"type":"string"},"base_url":{"type":"string"},"carries_comments":{"type":"boolean"},"created_at":{"type":"string"},"direction":{"type":"string"},"enabled":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"has_secret":{"type":"boolean"},"has_token":{"type":"boolean"},"hook_address":{"type":"string"},"id":{"type":"integer"},"linked_items":{"type":"integer"},"mapped_statuses":{"type":"integer"},"name":{"type":"string"},"project_key":{"type":"string"},"provider":{"type":"string"},"pull_new":{"type":"boolean"},"pulled_through":{"type":"null"},"record":{"type":"string"},"sync_comments":{"type":"boolean"},"writes_status":{"type":"boolean"}},"required":["account_email","base_url","created_at","direction","enabled","entity_id","entity_name","has_token","id","linked_items","mapped_statuses","name","project_key","provider","pulled_through","writes_status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"session":[]},{"token":[]}]}},"/api/v1/trackers/events":{"get":{"tags":["trackers"],"summary":"List Events","description":"What the syncs have been doing, for anybody.\n\nNot admin-only, and that is the point of it: an item whose title changed\nunder somebody is a question they should be able to answer themselves.","operationId":"list_events_api_v1_trackers_events_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Connection Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Events Api V1 Trackers Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/{connection_id}":{"put":{"tags":["trackers"],"summary":"Update Connection","description":"Replace a tracker connection's settings and answer the connection. An\n`api_token` left out keeps the stored one. Moving the connection to\nanother entity deletes its links and its status mapping, which belonged\nto the old board. The `record` cannot be changed.\n\nAdministrators only.","operationId":"update_connection_api_v1_trackers__connection_id__put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"account_email":{"type":"string"},"base_url":{"type":"string"},"carries_comments":{"type":"boolean"},"created_at":{"type":"string"},"direction":{"type":"string"},"enabled":{"type":"boolean"},"entity_id":{"type":"integer"},"entity_name":{"type":"string"},"has_secret":{"type":"boolean"},"has_token":{"type":"boolean"},"hook_address":{"type":"string"},"id":{"type":"integer"},"linked_items":{"type":"integer"},"mapped_statuses":{"type":"integer"},"name":{"type":"string"},"project_key":{"type":"string"},"provider":{"type":"string"},"pull_new":{"type":"boolean"},"pulled_through":{"type":"null"},"record":{"type":"string"},"sync_comments":{"type":"boolean"},"writes_status":{"type":"boolean"}},"required":["account_email","base_url","created_at","direction","enabled","entity_id","entity_name","has_token","id","linked_items","mapped_statuses","name","project_key","provider","pulled_through","writes_status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["trackers"],"summary":"Delete Connection","description":"Disconnect, and leave both sides as they are.\n\nNothing is deleted at the far end and nothing is changed here - the two\nsystems simply stop being told about each other. The links go, because a\nlink with no connection is a claim nothing can act on; the log stays,\nbecause it explains changes that were really made to real work.","operationId":"delete_connection_api_v1_trackers__connection_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer"},"removed":{"type":"boolean"},"unlinked":{"type":"integer"}},"required":["id","removed","unlinked"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/{connection_id}/statuses":{"get":{"tags":["trackers"],"summary":"List Statuses","description":"The mapping, and everything the screen needs to edit it.\n\nThree things beside the mapping itself. The states of the workflow this\nconnection's board runs, because a mapping is only meaningful against\nthem. Whether this tracker can be told a status, which decides whether the\nwrite-back half is offered at all. And the statuses this connection has\nactually *seen* at the far end, which is the difference between a screen\nsomebody can fill in and one that asks them to remember how Jira spells\nits own statuses.","operationId":"list_statuses_api_v1_trackers__connection_id__statuses_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"connection_id":{"type":"integer"},"mappings":{"items":{"properties":{"id":{"type":"integer"},"remote_status":{"type":"string"},"state_id":{"type":"integer"},"write_back":{"type":"boolean"}},"required":["id","remote_status","state_id","write_back"],"type":"object"},"type":"array"},"provider":{"type":"string"},"record":{"type":"string"},"seen":{"items":{"type":"string"},"type":"array"},"states":{"items":{"properties":{"id":{"type":"integer"},"meaning":{"type":"string"},"name":{"type":"string"}},"required":["id","meaning","name"],"type":"object"},"type":"array"},"writes_status":{"type":"boolean"}},"required":["connection_id","mappings","provider","seen","states","writes_status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["trackers"],"summary":"Set Statuses","description":"Replace the mapping for this connection.\n\nEvery objection is raised before anything is written, because a mapping\nhalf-saved is a mapping that would move work somewhere nobody chose.","operationId":"set_statuses_api_v1_trackers__connection_id__statuses_put","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusMapsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"connection_id":{"type":"integer"},"mappings":{"items":{"properties":{"id":{"type":"integer"},"remote_status":{"type":"string"},"state_id":{"type":"integer"},"write_back":{"type":"boolean"}},"required":["id","remote_status","state_id","write_back"],"type":"object"},"type":"array"},"provider":{"type":"string"},"record":{"type":"string"},"seen":{"type":"array"},"states":{"items":{"properties":{"id":{"type":"integer"},"meaning":{"type":"string"},"name":{"type":"string"}},"required":["id","meaning","name"],"type":"object"},"type":"array"},"writes_status":{"type":"boolean"}},"required":["connection_id","mappings","provider","seen","states","writes_status"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/{connection_id}/links":{"get":{"tags":["trackers"],"summary":"List Links","description":"List the work items a tracker connection links to issues at the far\nend: each item's reference and title, the remote key and address, and\nwhen it was last pushed and pulled. A connection that syncs change\nrequests lists those, each with its `change_request_id`, and one that\nsyncs initiatives lists those, each with its `initiative_id` and its\nname as the title. One that syncs requests or incidents lists those,\neach with its `request_id` and its subject as the title.","operationId":"list_links_api_v1_trackers__connection_id__links_get","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Links Api V1 Trackers  Connection Id  Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["trackers"],"summary":"Link Item","description":"Say that this item and that issue are the same thing.\n\nNeeded because the two systems have been tracking the same work separately,\nwhich is the state every organisation adopting this is actually in. Without\nit the first sync would create a duplicate of everything.","operationId":"link_item_api_v1_trackers__connection_id__links_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"change_request_id":{"type":["null","integer"]},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"remote_key":{"type":"string"},"remote_url":{"type":"string"},"request_id":{"type":["null","integer"]},"work_item_id":{"type":["null","integer"]}},"required":["id","remote_key","remote_url","work_item_id"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/{connection_id}/links/{link_id}":{"delete":{"tags":["trackers"],"summary":"Unlink Item","description":"Remove the link between a work item and its issue at the far end, so\nthe connection stops syncing the pair. The work item and the issue stay\nas they are.\n\nAdministrators only.","operationId":"unlink_item_api_v1_trackers__connection_id__links__link_id__delete","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trackers/{connection_id}/sync":{"post":{"tags":["trackers"],"summary":"Sync Now","description":"Sync this connection now, and say what happened.\n\nA button as well as a schedule, because the first thing anybody does after\nsetting one of these up is want to know whether it works - and finding out\nby waiting for a cron is how somebody concludes it does not.","operationId":"sync_now_api_v1_trackers__connection_id__sync_post","security":[{"session":[]},{"token":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"at":{"type":"string"},"conflicts":{"type":"integer"},"created":{"type":"integer"},"events":{"items":{"properties":{"change_request_id":{"type":"null"},"connection_id":{"type":"integer"},"created_at":{"type":"string"},"detail":{"type":"string"},"id":{"type":"integer"},"initiative_id":{"type":["null","integer"]},"outcome":{"type":"string"},"remote_key":{"type":"string"},"request_id":{"type":"null"},"work_item_id":{"type":["null","integer"]}},"required":["connection_id","created_at","detail","id","outcome","remote_key","work_item_id"],"type":"object"},"type":"array"},"failed":{"type":"integer"},"gated":{"type":"integer"},"pulled":{"type":"integer"},"pushed":{"type":"integer"}},"required":["at","conflicts","events","failed","gated","pulled","pushed"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meta":{"get":{"tags":["meta"],"summary":"Api Meta","description":"Which versions exist, which is current, and what is promised of them.\n\nUnauthenticated on purpose. Somebody deciding whether to build against this\nshould not have to get a credential first to find out how long it lasts,\nand there is nothing here that is not already in the README.","operationId":"api_meta_api_meta_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"current":{"type":"string"},"not_promised":{"items":{"type":"string"},"type":"array"},"reference":{"properties":{"document":{"type":"string"},"llms":{"type":"string"},"mcp":{"type":"string"},"openapi":{"type":"string"},"openapi_index":{"type":"string"}},"required":["document","openapi"],"type":"object"},"stability":{"items":{"type":"string"},"type":"array"},"versions":{"items":{"properties":{"current":{"type":"boolean"},"deprecated":{"type":"boolean"},"sunset_on":{"type":"null"},"version":{"type":"string"}},"required":["current","deprecated","sunset_on","version"],"type":"object"},"type":"array"}},"required":["current","not_promised","reference","stability","versions"],"type":"object"}}},"x-dillic-recorded":true}}}},"/scim/v2/Users":{"get":{"tags":["identity"],"summary":"List Users","description":"List the account's people as SCIM users, each with the roles they hold\nas its groups. `filter` takes `userName eq \"...\"` or `externalId eq \"...\"`\nand refuses anything else; `startIndex` counts from one and `count` sets\nthe page size.","operationId":"list_users_scim_v2_Users_get","parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"string","default":"","title":"Filter"}},{"name":"startIndex","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Startindex"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Count"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"Resources":{"items":{"properties":{"active":{"type":"boolean"},"displayName":{"type":"string"},"emails":{"items":{"properties":{"primary":{"type":"boolean"},"type":{"type":"string"},"value":{"type":"string"}},"required":["primary","type","value"],"type":"object"},"type":"array"},"externalId":{"type":["null","string"]},"groups":{"items":{"properties":{"display":{"type":"string"},"value":{"type":"string"}},"required":["display","value"],"type":"object"},"type":"array"},"id":{"type":"string"},"meta":{"properties":{"created":{"type":"string"},"location":{"type":"string"},"resourceType":{"type":"string"}},"required":["created","location","resourceType"],"type":"object"},"name":{"properties":{"familyName":{"type":"string"},"formatted":{"type":"string"},"givenName":{"type":"string"}},"required":["familyName","formatted","givenName"],"type":"object"},"schemas":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"},"userName":{"type":"string"}},"required":["active","displayName","emails","externalId","groups","id","meta","name","schemas","title","userName"],"type":"object"},"type":"array"},"itemsPerPage":{"type":"integer"},"schemas":{"items":{"type":"string"},"type":"array"},"startIndex":{"type":"integer"},"totalResults":{"type":"integer"}},"required":["Resources","itemsPerPage","schemas","startIndex","totalResults"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["identity"],"summary":"Create User","description":"Add a person to the account from a SCIM user and answer the user\ncreated. The body needs a `userName` or an email address; an address the\naccount already holds is refused as a `uniqueness` conflict. The person\nhas no password and signs in through the directory.","operationId":"create_user_scim_v2_Users_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"displayName":{"type":"string"},"emails":{"items":{"properties":{"primary":{"type":"boolean"},"type":{"type":"string"},"value":{"type":"string"}},"required":["primary","type","value"],"type":"object"},"type":"array"},"externalId":{"type":["null","string"]},"groups":{"type":"array"},"id":{"type":"string"},"meta":{"properties":{"created":{"type":"string"},"location":{"type":"string"},"resourceType":{"type":"string"}},"required":["created","location","resourceType"],"type":"object"},"name":{"properties":{"familyName":{"type":"string"},"formatted":{"type":"string"},"givenName":{"type":"string"}},"required":["familyName","formatted","givenName"],"type":"object"},"schemas":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"},"userName":{"type":"string"}},"required":["active","displayName","emails","externalId","groups","id","meta","name","schemas","title","userName"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/Users/{person_id}":{"get":{"tags":["identity"],"summary":"Read User","description":"Answer one person as a SCIM user, with the roles they hold as its\ngroups.","operationId":"read_user_scim_v2_Users__person_id__get","parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read User Scim V2 Users  Person Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["identity"],"summary":"Replace User","description":"Update a person from a whole SCIM user and answer the user as it now\nstands. The address, name, `externalId` and `active` change where the body\ncarries them; a body without a `title` clears a job title the directory\nset. Setting `active` to false deactivates the person and signs them out.","operationId":"replace_user_scim_v2_Users__person_id__put","parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"displayName":{"type":"string"},"emails":{"items":{"properties":{"primary":{"type":"boolean"},"type":{"type":"string"},"value":{"type":"string"}},"required":["primary","type","value"],"type":"object"},"type":"array"},"externalId":{"type":"null"},"groups":{"type":"array"},"id":{"type":"string"},"meta":{"properties":{"created":{"type":"string"},"location":{"type":"string"},"resourceType":{"type":"string"}},"required":["created","location","resourceType"],"type":"object"},"name":{"properties":{"familyName":{"type":"string"},"formatted":{"type":"string"},"givenName":{"type":"string"}},"required":["familyName","formatted","givenName"],"type":"object"},"schemas":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"},"userName":{"type":"string"}},"required":["active","displayName","emails","externalId","groups","id","meta","name","schemas","title","userName"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["identity"],"summary":"Patch User","description":"The operation a directory actually uses.\n\nDeactivation arrives as a PATCH setting `active` to false, and it arrives\nin three shapes depending on who is sending it - a bare boolean, the string\n\"False\" from one well-known implementation, and a path with a filter on it.\nAll three mean the same thing.","operationId":"patch_user_scim_v2_Users__person_id__patch","parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"displayName":{"type":"string"},"emails":{"items":{"properties":{"primary":{"type":"boolean"},"type":{"type":"string"},"value":{"type":"string"}},"required":["primary","type","value"],"type":"object"},"type":"array"},"externalId":{"type":["null","string"]},"groups":{"items":{"properties":{"display":{"type":"string"},"value":{"type":"string"}},"required":["display","value"],"type":"object"},"type":"array"},"id":{"type":"string"},"meta":{"properties":{"created":{"type":"string"},"location":{"type":"string"},"resourceType":{"type":"string"}},"required":["created","location","resourceType"],"type":"object"},"name":{"properties":{"familyName":{"type":"string"},"formatted":{"type":"string"},"givenName":{"type":"string"}},"required":["familyName","formatted","givenName"],"type":"object"},"schemas":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"},"userName":{"type":"string"}},"required":["active","displayName","emails","externalId","groups","id","meta","name","schemas","title","userName"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["identity"],"summary":"Delete User","description":"Deactivate rather than destroy.\n\nWhat this person did is the record of what happened, and a leaver whose\nrows vanished would take other people's history with them. The directory\nsees a user that is no longer active, which is the fact it was asserting.","operationId":"delete_user_scim_v2_Users__person_id__delete","parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response","content":{"application/json":{}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/Groups":{"get":{"tags":["identity"],"summary":"List Groups","description":"List the account's roles as SCIM groups, each with the people who hold\nit as its members. `filter` takes `displayName eq \"...\"` and refuses\nanything else; `startIndex` counts from one and `count` sets the page\nsize.","operationId":"list_groups_scim_v2_Groups_get","parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"string","default":"","title":"Filter"}},{"name":"startIndex","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Startindex"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Count"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Groups Scim V2 Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["identity"],"summary":"Create Group","description":"Create a role from a SCIM group and answer the group created. The body\nneeds a `displayName` no role in the account already has. The role grants\nno rights until an administrator sets them.\n\nEach member named receives the role on the entity the account's sign-in\nconnection names. Where the connection names no entity, a group sent with\nmembers is refused.","operationId":"create_group_scim_v2_Groups_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"members":{"items":{"properties":{"display":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"required":["display","type","value"],"type":"object"},"type":"array"},"meta":{"properties":{"location":{"type":"string"},"resourceType":{"type":"string"}},"required":["location","resourceType"],"type":"object"},"schemas":{"items":{"type":"string"},"type":"array"}},"required":["displayName","id","members","meta","schemas"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/Groups/{role_id}":{"get":{"tags":["identity"],"summary":"Read Group","description":"Answer one role as a SCIM group, with the people who hold it as its\nmembers.","operationId":"read_group_scim_v2_Groups__role_id__get","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Group Scim V2 Groups  Role Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["identity"],"summary":"Patch Group","description":"Members joining and leaving, which is all a directory sends here.\n\nEntra ID names the members in the value. Okta removes one by naming it in\nthe path - `members[value eq \"42\"]`, with no value at all - and renames a\ngroup with a pathless replace carrying `displayName`. All of these are read.","operationId":"patch_group_scim_v2_Groups__role_id__patch","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"members":{"items":{"properties":{"display":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"required":["display","type","value"],"type":"object"},"type":"array"},"meta":{"properties":{"location":{"type":"string"},"resourceType":{"type":"string"}},"required":["location","resourceType"],"type":"object"},"schemas":{"items":{"type":"string"},"type":"array"}},"required":["displayName","id","members","meta","schemas"],"type":"object"}}},"x-dillic-recorded":true},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["identity"],"summary":"Delete Group","description":"Empty the group rather than delete the role.\n\nA role is referred to by every membership and every approval gate that\nnames it. What the directory is saying is that nobody is in this group any\nmore, and that is what happens.","operationId":"delete_group_scim_v2_Groups__role_id__delete","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/ServiceProviderConfig":{"get":{"tags":["identity"],"summary":"Service Provider Config","description":"What this implementation supports, which a directory reads before it\nstarts so it does not have to discover the answer by being refused.","operationId":"service_provider_config_scim_v2_ServiceProviderConfig_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"authenticationSchemes":{"items":{"properties":{"description":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"required":["description","name","type"],"type":"object"},"type":"array"},"bulk":{"properties":{"maxOperations":{"type":"integer"},"maxPayloadSize":{"type":"integer"},"supported":{"type":"boolean"}},"required":["maxOperations","maxPayloadSize","supported"],"type":"object"},"changePassword":{"properties":{"supported":{"type":"boolean"}},"required":["supported"],"type":"object"},"documentationUri":{"type":"string"},"etag":{"properties":{"supported":{"type":"boolean"}},"required":["supported"],"type":"object"},"filter":{"properties":{"maxResults":{"type":"integer"},"supported":{"type":"boolean"}},"required":["maxResults","supported"],"type":"object"},"meta":{"properties":{"resourceType":{"type":"string"}},"required":["resourceType"],"type":"object"},"patch":{"properties":{"supported":{"type":"boolean"}},"required":["supported"],"type":"object"},"schemas":{"items":{"type":"string"},"type":"array"},"sort":{"properties":{"supported":{"type":"boolean"}},"required":["supported"],"type":"object"}},"required":["authenticationSchemes","bulk","changePassword","documentationUri","etag","filter","meta","patch","schemas","sort"],"type":"object"}}},"x-dillic-recorded":true}}}},"/api/health":{"get":{"summary":"Health","description":"Answer `{\"status\": \"ok\"}` without a sign-in, for a load balancer's probe.","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"status":{"type":"string"}},"required":["status"],"type":"object"}}},"x-dillic-recorded":true}}}}},"components":{"schemas":{"AbsenceIn":{"properties":{"start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"},"note":{"type":"string","title":"Note","default":""}},"type":"object","title":"AbsenceIn"},"AcceptIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"},"kind":{"anyOf":[{"$ref":"#/components/schemas/ServiceKind"},{"type":"null"}]},"criticality":{"anyOf":[{"$ref":"#/components/schemas/ServiceCriticality"},{"type":"null"}]}},"type":"object","required":["ids"],"title":"AcceptIn","description":"Assets to make services of. `kind` and `criticality` apply to every\none; left out, each takes the kind read off its type, and medium."},"ActionIn":{"properties":{"kind":{"$ref":"#/components/schemas/AutomationActionKind"},"config":{"additionalProperties":true,"type":"object","title":"Config","default":{}}},"type":"object","required":["kind"],"title":"ActionIn"},"ActivityIn":{"properties":{"kind":{"type":"string","title":"Kind","default":"communication"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"channel":{"type":"string","title":"Channel","default":""},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"group_ids":{"items":{"type":"integer"},"type":"array","title":"Group Ids","default":[]},"planned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned At"},"actual_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual At"},"status":{"type":"string","title":"Status","default":"planned"},"reach":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reach"}},"type":"object","required":["title"],"title":"ActivityIn"},"ActualValueIn":{"properties":{"business_value_actual":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Business Value Actual"}},"type":"object","title":"ActualValueIn"},"AddressIn":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"type":"string","title":"Full Name","default":""}},"type":"object","required":["email"],"title":"AddressIn","description":"One address, with a name when there is one."},"AgreementIn":{"properties":{"agreement":{"type":"integer","maximum":3.0,"minimum":-3.0,"title":"Agreement"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["agreement"],"title":"AgreementIn"},"AlertFormat":{"type":"string","enum":["generic","grafana","pagerduty"],"title":"AlertFormat","description":"The shape an alert arrives in at `POST /api/alerts/{key}`.\n\nGeneric is DilliC's own, for a desk or a monitor whose own automation\ncan post JSON; the other two are the webhooks Grafana's unified alerting\nand PagerDuty send as they send them, so neither needs a relay."},"AnswersIn":{"properties":{"answers":{"items":{"$ref":"#/components/schemas/app__api__respond__AnswerIn"},"type":"array","title":"Answers"}},"type":"object","required":["answers"],"title":"AnswersIn"},"AppIn":{"properties":{"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor","default":""},"description":{"type":"string","title":"Description","default":""},"base_url":{"type":"string","title":"Base Url","default":""},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","default":[]}},"type":"object","required":["name"],"title":"AppIn"},"ApprovalVerdict":{"type":"string","enum":["approve","reject"],"title":"ApprovalVerdict"},"AskIn":{"properties":{"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"shared":{"type":"boolean","title":"Shared","default":false},"subject":{"type":"string","title":"Subject"},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"filters":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Filters","default":[]},"match_all":{"type":"boolean","title":"Match All","default":true},"fields":{"items":{"type":"string"},"type":"array","title":"Fields","default":[]},"group_by":{"type":"string","title":"Group By","default":""},"aggregates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Aggregates","default":[]},"sort_by":{"type":"string","title":"Sort By","default":""},"sort_dir":{"type":"string","title":"Sort Dir","default":"asc"},"chart":{"type":"string","title":"Chart","default":""}},"type":"object","required":["subject"],"title":"AskIn","description":"A report asked rather than kept, which is why it needs no name."},"AssessIn":{"properties":{"answers":{"additionalProperties":{"type":"integer"},"type":"object","title":"Answers","default":{}}},"type":"object","title":"AssessIn"},"AssessmentIn":{"properties":{"title":{"type":"string","title":"Title"},"instructions":{"type":"string","title":"Instructions","default":""},"solution_name":{"type":"string","title":"Solution Name","default":""},"solution_description":{"type":"string","title":"Solution Description","default":""},"assessment_date":{"type":"string","format":"date","title":"Assessment Date"},"anonymous":{"type":"boolean","title":"Anonymous","default":false},"kind":{"$ref":"#/components/schemas/AssessmentKind","default":"CSA"},"future_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Future Date"},"initiative_ids":{"items":{"type":"integer"},"type":"array","title":"Initiative Ids","default":[]},"baseline_csa_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baseline Csa Id"},"thank_you":{"type":"string","title":"Thank You","default":""},"thank_you_email":{"type":"boolean","title":"Thank You Email","default":false},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}},"type":"object","required":["title","assessment_date"],"title":"AssessmentIn"},"AssessmentKind":{"type":"string","enum":["CSA","DFSA","COMPOSITE"],"title":"AssessmentKind"},"AssistantsIn":{"properties":{"allowed":{"type":"boolean","title":"Allowed"}},"type":"object","required":["allowed"],"title":"AssistantsIn"},"AssistedIn":{"properties":{"reference":{"type":"string","title":"Reference"},"tool":{"type":"string","title":"Tool"},"prompt":{"type":"string","title":"Prompt"},"response":{"type":"string","title":"Response","default":""}},"type":"object","required":["reference","tool","prompt"],"title":"AssistedIn","description":"An exchange with an AI coding assistant, sent by the hook that saw it.\n\nAddressed by reference rather than by id, because a hook knows the branch\nname and the prompt and nothing else about the item."},"AttachChildrenIn":{"properties":{"work_item_ids":{"items":{"type":"integer"},"type":"array","title":"Work Item Ids"}},"type":"object","required":["work_item_ids"],"title":"AttachChildrenIn","description":"Items that already exist, to be moved beneath this one."},"AttachWorkItemsIn":{"properties":{"work_item_ids":{"items":{"type":"integer"},"type":"array","title":"Work Item Ids"}},"type":"object","required":["work_item_ids"],"title":"AttachWorkItemsIn","description":"Work items that already exist, to be adopted by this initiative."},"AuthoriseIn":{"properties":{"version_id":{"type":"integer","title":"Version Id"}},"type":"object","required":["version_id"],"title":"AuthoriseIn"},"AutomationActionKind":{"type":"string","enum":["assign","transition","set_field","add_tag","comment","notify"],"title":"AutomationActionKind","description":"What a rule does when it fires.\n\nSix, and the list is deliberately short. Every one of them is something a\nperson can already do on the item's own screen, which is the constraint\nthat keeps this an automation engine rather than a second product with its\nown powers: a rule is a way of not having to remember, never a way of doing\nsomething nobody could have done by hand."},"AutomationOutcome":{"type":"string","enum":["ran","failed","refused","stopped"],"title":"AutomationOutcome","description":"What happened when a rule met its trigger.\n\nA rule whose conditions simply did not match is not here, and that absence\nis the design: every event would otherwise write a row per rule saying\nnothing happened, and a log that is mostly silence is a log nobody reads.\nWhat is written down is every time a rule *acted*, and every time it wanted\nto and could not."},"BillingCycle":{"type":"string","enum":["monthly","annual"],"title":"BillingCycle","description":"Spec 4.3 prices the paid plan two ways. The annual price is not twelve\ntimes the monthly one, so the cycle has to be stored, not derived."},"BoardIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"methodology":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Methodology"},"uses_sprints":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Uses Sprints"},"sprint_length_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sprint Length Days"},"backlog_fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Backlog Fields"},"card_fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Card Fields"},"card_colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Colour"}},"type":"object","title":"BoardIn"},"BoardWorkflowIn":{"properties":{"workflow_id":{"type":"integer","title":"Workflow Id"}},"type":"object","required":["workflow_id"],"title":"BoardWorkflowIn"},"Body_add_attachment_api_v1_work_items__work_item_id__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_add_attachment_api_v1_work_items__work_item_id__attachments_post"},"Body_assertion_consumer_api_v1_auth_sso_saml_acs_post":{"properties":{"SAMLResponse":{"type":"string","title":"Samlresponse"},"RelayState":{"type":"string","title":"Relaystate","default":""}},"type":"object","required":["SAMLResponse"],"title":"Body_assertion_consumer_api_v1_auth_sso_saml_acs_post"},"Body_attach_api_v1_portal_request__token__attachments_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files","default":[]}},"type":"object","title":"Body_attach_api_v1_portal_request__token__attachments_post"},"Body_import_factor_readings_api_v1_entities__entity_id__factors__factor_id__readings_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_factor_readings_api_v1_entities__entity_id__factors__factor_id__readings_import_post"},"Body_import_initiative_readings_api_v1_initiatives__initiative_id__readings_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_initiative_readings_api_v1_initiatives__initiative_id__readings_import_post"},"Body_import_pages_api_v1_entities__entity_id__pages_import_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["files"],"title":"Body_import_pages_api_v1_entities__entity_id__pages_import_post"},"Body_send_feedback_api_v1_feedback_post":{"properties":{"kind":{"type":"string","title":"Kind","default":"bug"},"summary":{"type":"string","title":"Summary","default":""},"details":{"type":"string","title":"Details","default":""},"screen":{"type":"string","title":"Screen","default":""},"screen_title":{"type":"string","title":"Screen Title","default":""},"platform":{"type":"string","title":"Platform","default":""},"context":{"type":"string","title":"Context","default":"{}"},"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files","default":[]}},"type":"object","title":"Body_send_feedback_api_v1_feedback_post"},"Body_set_avatar_api_v1_me_avatar_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_set_avatar_api_v1_me_avatar_post"},"Body_set_logo_api_v1_admin_entities__entity_id__logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_set_logo_api_v1_admin_entities__entity_id__logo_post"},"Body_upload_inline_api_v1_entities__entity_id__uploads_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_inline_api_v1_entities__entity_id__uploads_post"},"BranchIn":{"properties":{"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]}},"type":"object","title":"BranchIn"},"BringIn":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","title":"BringIn"},"BulkEditIn":{"properties":{"work_item_ids":{"items":{"type":"integer"},"type":"array","title":"Work Item Ids"},"patch":{"$ref":"#/components/schemas/WorkItemPatch"}},"type":"object","required":["work_item_ids","patch"],"title":"BulkEditIn"},"BulkIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"},"patch":{"$ref":"#/components/schemas/RequestPatch"}},"type":"object","required":["ids","patch"],"title":"BulkIn","description":"One change to several requests: the ids, and what to do to each."},"BulkTransitionIn":{"properties":{"work_item_ids":{"items":{"type":"integer"},"type":"array","title":"Work Item Ids"},"to_state_id":{"type":"integer","title":"To State Id"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["work_item_ids","to_state_id"],"title":"BulkTransitionIn"},"BusinessCaseIn":{"properties":{"hypothesis":{"type":"string","title":"Hypothesis","default":""},"business_outcomes":{"type":"string","title":"Business Outcomes","default":""},"leading_indicators":{"type":"string","title":"Leading Indicators","default":""},"mvp_definition":{"type":"string","title":"Mvp Definition","default":""},"nfr_notes":{"type":"string","title":"Nfr Notes","default":""},"value_stream_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value Stream Id"}},"type":"object","title":"BusinessCaseIn"},"BypassIn":{"properties":{"key":{"type":"string","maxLength":200,"minLength":1,"title":"Key"}},"type":"object","required":["key"],"title":"BypassIn"},"CannedIn":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"}},"type":"object","required":["title","body"],"title":"CannedIn"},"CapacityIn":{"properties":{"people":{"items":{"$ref":"#/components/schemas/PersonCapacityIn"},"type":"array","title":"People","default":[]}},"type":"object","title":"CapacityIn","description":"Who can take on what, this sprint, replaced in one press.\n\nThe whole set rather than one person at a time, because the sprint's own\ncapacity is derived from it: saving one row at a time would walk the total\nthrough numbers nobody chose, and a team watching it would see the sprint\nlook over-committed on the way to being planned."},"CardIn":{"properties":{"value":{"type":"string","title":"Value"}},"type":"object","required":["value"],"title":"CardIn"},"CatalogueKind":{"type":"string","enum":["component","link_reason"],"title":"CatalogueKind","description":"Which administrator-kept list a request is about (spec 7.2).\n\nThe two lists work is organised by that are *not* open to everybody: the\ncomponents a piece of work touches, and the reasons two items may be tied\ntogether. Both are closed for the same reason - a list anybody can add to\nis a list where Billing, billing and Invoicing all exist and none of them\ncan be filtered on - and both therefore need the same escape hatch, which\nis why one enum covers them.\n\nLabels are not here. They are open by design: anybody coins one by typing\nit, so there is nothing to ask for."},"CategoryIn":{"properties":{"name":{"type":"string","title":"Name"},"goal_name":{"type":"string","title":"Goal Name","default":""},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["name"],"title":"CategoryIn"},"ChallengeIn":{"properties":{"challenge":{"type":"string","title":"Challenge"}},"type":"object","required":["challenge"],"title":"ChallengeIn"},"ChangeImportIn":{"properties":{"provider":{"type":"string","title":"Provider"},"entity_id":{"type":"integer","title":"Entity Id"},"rows":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Rows"},"csv_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csv Text"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","required":["provider","entity_id"],"title":"ChangeImportIn"},"ChangeIn":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"ChangeIn"},"ChangeModelIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"change_type":{"$ref":"#/components/schemas/ChangeRequestType","default":"standard"},"implementation_plan":{"type":"string","title":"Implementation Plan","default":""},"rollback_plan":{"type":"string","title":"Rollback Plan","default":""},"test_plan":{"type":"string","title":"Test Plan","default":""},"notice":{"type":"string","title":"Notice","default":""},"assessment":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Assessment"},"service_ids":{"items":{"type":"integer"},"type":"array","title":"Service Ids","default":[]},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name"],"title":"ChangeModelIn"},"ChangeOutcome":{"type":"string","enum":["successful","successful_with_issues","failed","rolled_back"],"title":"ChangeOutcome"},"ChangePasswordIn":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordIn"},"ChangeRequestIn":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"change_type":{"anyOf":[{"$ref":"#/components/schemas/ChangeRequestType"},{"type":"null"}]},"risk":{"$ref":"#/components/schemas/RiskLevel","default":"medium"},"impact":{"$ref":"#/components/schemas/RiskLevel","default":"medium"},"implementation_plan":{"type":"string","title":"Implementation Plan","default":""},"rollback_plan":{"type":"string","title":"Rollback Plan","default":""},"test_plan":{"type":"string","title":"Test Plan","default":""},"planned_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned Start"},"planned_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned End"},"actual_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual Start"},"actual_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actual End"},"timezone":{"type":"string","title":"Timezone","default":""},"assignee_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assignee Id"},"service_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Service Ids"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"},"announced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Announced"},"model_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Id"}},"type":"object","required":["title"],"title":"ChangeRequestIn"},"ChangeRequestType":{"type":"string","enum":["standard","normal","emergency"],"title":"ChangeRequestType","description":"ITIL 4 change enablement.\n\nA standard change is pre-authorised: the risk is known and the procedure\nagreed, so it does not go back to the authority every time. A normal change\nis assessed and authorised individually. An emergency change is authorised\nby a reduced authority and documented afterwards."},"ChangeType":{"type":"string","enum":["partial_reset","full_reset","cosmetic"],"title":"ChangeType","description":"Spec 9.9 - how a factor edit affects the assessment comparison chain."},"ChildOrderIn":{"properties":{"work_item_ids":{"items":{"type":"integer"},"type":"array","title":"Work Item Ids"}},"type":"object","required":["work_item_ids"],"title":"ChildOrderIn","description":"The children of one item, in the order they should now read."},"CodeIn":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"CodeIn"},"ColumnIn":{"properties":{"name":{"type":"string","title":"Name"},"status_ids":{"items":{"type":"integer"},"type":"array","title":"Status Ids"},"wip_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wip Limit"}},"type":"object","required":["name","status_ids"],"title":"ColumnIn"},"ColumnsIn":{"properties":{"columns":{"items":{"$ref":"#/components/schemas/ColumnIn"},"type":"array","title":"Columns"}},"type":"object","required":["columns"],"title":"ColumnsIn"},"CommentIn":{"properties":{"body":{"type":"string","title":"Body"},"parent_comment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Comment Id"}},"type":"object","required":["body"],"title":"CommentIn"},"CommentPatch":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"CommentPatch"},"ComponentsIn":{"properties":{"rice_reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rice Reach"},"rice_impact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rice Impact"},"rice_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rice Confidence"},"rice_effort":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rice Effort"},"ice_impact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ice Impact"},"ice_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ice Confidence"},"ice_ease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ice Ease"},"wsjf_business_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wsjf Business Value"},"wsjf_time_criticality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wsjf Time Criticality"},"wsjf_risk_reduction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wsjf Risk Reduction"},"wsjf_job_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wsjf Job Size"}},"type":"object","title":"ComponentsIn","description":"Every method's components as one request body.\n\nOne body rather than four, because a caller is scoring whatever the rung it\nis writing to uses and the server already knows which that is. Fields\nbelonging to another method are refused rather than ignored: silently\ndropping a number somebody typed is worse than telling them the rung does\nnot ask for it."},"CompositeIn":{"properties":{"title":{"type":"string","title":"Title"},"assessment_date":{"type":"string","format":"date","title":"Assessment Date"},"child_assessment_ids":{"items":{"type":"integer"},"type":"array","title":"Child Assessment Ids"}},"type":"object","required":["title","assessment_date","child_assessment_ids"],"title":"CompositeIn"},"ConductIn":{"properties":{"title":{"type":"string","title":"Title"},"instructions":{"type":"string","title":"Instructions","default":""},"assessment_date":{"type":"string","format":"date","title":"Assessment Date"},"future_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Future Date"},"baseline_csa_id":{"type":"integer","title":"Baseline Csa Id"},"anonymous":{"type":"boolean","title":"Anonymous","default":false},"thank_you":{"type":"string","title":"Thank You","default":""},"thank_you_email":{"type":"boolean","title":"Thank You Email","default":false}},"type":"object","required":["title","assessment_date","baseline_csa_id"],"title":"ConductIn","description":"The assessment face of a solution that already exists."},"ConfidenceIn":{"properties":{"vote":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vote"}},"type":"object","title":"ConfidenceIn"},"ConnectionIn":{"properties":{"entity_id":{"type":"integer","title":"Entity Id"},"provider":{"$ref":"#/components/schemas/TrackerProvider","default":"jira"},"record":{"$ref":"#/components/schemas/SyncRecord","default":"work_item"},"name":{"type":"string","title":"Name","default":""},"base_url":{"type":"string","title":"Base Url","default":""},"project_key":{"type":"string","title":"Project Key","default":""},"account_email":{"type":"string","title":"Account Email","default":""},"api_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Token"},"api_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Secret"},"direction":{"$ref":"#/components/schemas/SyncDirection","default":"push"},"enabled":{"type":"boolean","title":"Enabled","default":true},"pull_new":{"type":"boolean","title":"Pull New","default":false},"sync_comments":{"type":"boolean","title":"Sync Comments","default":false}},"type":"object","required":["entity_id"],"title":"ConnectionIn"},"ContactIn":{"properties":{"full_name":{"type":"string","title":"Full Name","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"ContactIn"},"CopyIn":{"properties":{"with_children":{"type":"boolean","title":"With Children","default":true}},"type":"object","title":"CopyIn","description":"What a copy carries beyond the item itself.\n\nThe breakdown beneath travels by default: a story's sub-tasks are part of\nwhat the story is, and a copy without them is a copy of the title."},"CoverIn":{"properties":{"person_id":{"type":"integer","title":"Person Id"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["person_id","start","end"],"title":"CoverIn"},"CreditsIn":{"properties":{"credits":{"type":"integer","maximum":1000000.0,"minimum":1.0,"title":"Credits"}},"type":"object","required":["credits"],"title":"CreditsIn"},"CurrencyIn":{"properties":{"currency":{"type":"string","title":"Currency"}},"type":"object","required":["currency"],"title":"CurrencyIn"},"DashboardIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"shared":{"type":"boolean","title":"Shared","default":false},"gadgets":{"items":{"$ref":"#/components/schemas/GadgetIn"},"type":"array","title":"Gadgets","default":[]}},"type":"object","required":["name"],"title":"DashboardIn"},"DayOffIn":{"properties":{"name":{"type":"string","title":"Name"},"note":{"type":"string","title":"Note","default":""},"start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}},"type":"object","required":["name"],"title":"DayOffIn"},"Decision":{"properties":{"client_id":{"type":"string","title":"Client Id","default":""},"redirect_uri":{"type":"string","title":"Redirect Uri","default":""},"response_type":{"type":"string","title":"Response Type","default":""},"code_challenge":{"type":"string","title":"Code Challenge","default":""},"code_challenge_method":{"type":"string","title":"Code Challenge Method","default":""},"state":{"type":"string","title":"State","default":""},"resource":{"type":"string","title":"Resource","default":""},"approve":{"type":"boolean","title":"Approve"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","default":[]}},"type":"object","required":["approve"],"title":"Decision"},"DependsOnIn":{"properties":{"depends_on_ids":{"items":{"type":"integer"},"type":"array","title":"Depends On Ids","default":[]}},"type":"object","title":"DependsOnIn"},"DeviceIn":{"properties":{"name":{"type":"string","title":"Name","default":""},"platform":{"type":"string","title":"Platform","default":""}},"type":"object","title":"DeviceIn","description":"The phone that is signing in, when it is one.\n\nPresent on a sign-in from the mobile app and absent from a browser's, and\nthat presence is the whole of what decides between a cookie and a token."},"DisableIn":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"DisableIn"},"DiscoverIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"DiscoverIn"},"DiscoveryFormat":{"type":"string","enum":["generic","aws","azure","gcp","kubernetes","terraform"],"title":"DiscoveryFormat","description":"The shape an inventory arrives in at `POST /api/discovery/{key}`.\n\nGeneric is DilliC's own, for anything that can post JSON. The other five\nare what a command already prints, so a scheduled one-liner is the whole\ncollector: `aws resourcegroupstaggingapi get-resources`, `az resource\nlist`, `gcloud asset search-all-resources`, `kubectl get ... -o json`\nand `terraform show -json`."},"DocumentIn":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"work_item_ids":{"items":{"type":"integer"},"type":"array","title":"Work Item Ids","default":[]},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"review_by":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Review By"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels","default":[]},"is_template":{"type":"boolean","title":"Is Template","default":false},"audience":{"$ref":"#/components/schemas/PageAudience","default":"team"},"expected_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Updated At"}},"type":"object","required":["title"],"title":"DocumentIn"},"DoorIn":{"properties":{"name":{"type":"string","title":"Name"},"queue_id":{"type":"integer","title":"Queue Id"},"kind":{"type":"string","title":"Kind","default":"slack"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"reply_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Url"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name","queue_id"],"title":"DoorIn"},"DraftIn":{"properties":{"intent":{"type":"string","enum":["draft","improve"],"title":"Intent","default":"draft"},"kind":{"type":"string","title":"Kind","default":"story"},"shape":{"type":"string","enum":["requirement","retrospective","comment","message","page"],"title":"Shape","default":"requirement"},"context":{"type":"string","title":"Context","default":""},"text":{"type":"string","title":"Text","default":""},"instruction":{"type":"string","title":"Instruction","default":""}},"type":"object","title":"DraftIn","description":"A request from the editor's AI-assist menu.\n\nOne endpoint for both halves of it: drafting and improving differ in the\nprompt and in what they are given, not in what they cost or who may ask."},"EdgeIn":{"properties":{"effect_node_id":{"type":"integer","title":"Effect Node Id"},"cause_node_id":{"type":"integer","title":"Cause Node Id"}},"type":"object","required":["effect_node_id","cause_node_id"],"title":"EdgeIn"},"EditIn":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"thank_you":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thank You"},"thank_you_email":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thank You Email"},"invite_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Subject"},"invite_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Body"}},"type":"object","title":"EditIn","description":"What can change once an assessment exists. Each field left out stays."},"EntityIn":{"properties":{"entity_type_id":{"type":"integer","title":"Entity Type Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"parent_entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Entity Id"},"weight_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight Pct"},"leader_person_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Leader Person Id"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"timezone":{"type":"string","title":"Timezone","default":""},"archive_after_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive After Days"},"sprint_length_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sprint Length Days"},"cost_rate_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Rate Cents"},"work_item_prefix":{"type":"string","title":"Work Item Prefix","default":""},"status":{"$ref":"#/components/schemas/EntityStatus","default":"active"}},"type":"object","required":["entity_type_id","name"],"title":"EntityIn"},"EntityStatus":{"type":"string","enum":["active","inactive"],"title":"EntityStatus","description":"Whether a part of the organisation is still running.\n\nAn entity is never deleted once work has hung off it - its history is the\nrecord of what happened there - so a team that has been wound up is marked\ninactive instead. It keeps everything it holds and stops being offered as\nsomewhere to put new work."},"EntityTypeIn":{"properties":{"name":{"type":"string","title":"Name"},"parent_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Type Id"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["name"],"title":"EntityTypeIn"},"EnvironmentIn":{"properties":{"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key","default":""},"rank":{"type":"integer","title":"Rank","default":0},"is_production":{"type":"boolean","title":"Is Production","default":false},"expects_authorisation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expects Authorisation"},"gated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Gated"}},"type":"object","required":["name"],"title":"EnvironmentIn"},"EvidenceIn":{"properties":{"request_id":{"type":"integer","title":"Request Id"}},"type":"object","required":["request_id"],"title":"EvidenceIn"},"ExchangeIn":{"properties":{"code":{"type":"string","title":"Code"},"device":{"$ref":"#/components/schemas/DeviceIn","default":{"name":"","platform":""}}},"type":"object","required":["code"],"title":"ExchangeIn"},"ExtendsIn":{"properties":{"on":{"type":"boolean","title":"On"}},"type":"object","required":["on"],"title":"ExtendsIn"},"FactorIn":{"properties":{"factor_statement":{"type":"string","title":"Factor Statement"},"objective_statement":{"type":"string","title":"Objective Statement","default":""},"category_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id"},"kpi_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Kpi Id"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"accept":{"type":"boolean","title":"Accept","default":false},"target":{"anyOf":[{"$ref":"#/components/schemas/app__api__factors__TargetIn"},{"type":"null"}]}},"type":"object","required":["factor_statement"],"title":"FactorIn"},"FactorServicesIn":{"properties":{"service_ids":{"items":{"type":"integer"},"type":"array","title":"Service Ids","default":[]}},"type":"object","title":"FactorServicesIn"},"FactorStatus":{"type":"string","enum":["proposed","accepted","rejected"],"title":"FactorStatus"},"FieldIn":{"properties":{"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description","default":""},"kind":{"$ref":"#/components/schemas/FieldKind","default":"text"},"options":{"items":{"$ref":"#/components/schemas/FieldOptionIn"},"type":"array","title":"Options","default":[]},"levels":{"items":{"$ref":"#/components/schemas/FieldLevelIn"},"type":"array","title":"Levels","default":[]}},"type":"object","required":["label"],"title":"FieldIn"},"FieldKind":{"type":"string","enum":["text","paragraph","number","date","select","multi_select","person","checkbox","url","app"],"title":"FieldKind","description":"What a custom field holds, and therefore how it is asked, drawn and read.\n\nThe kind is the whole of a field's behaviour. It settles which column on the\nvalue row is written, which control the dialog draws, which operators a\ncondition may use and how the thing sorts - so a field's kind is fixed once\nit is created. Changing it would leave every value already stored in the\nwrong column, answering a question nobody asked.\n\nNine, and not more, because each one here is a different *question* rather\nthan a different rendering of one. A url is a text a reader can follow; a\ncheckbox is a choice with two options nobody should have to write down; a\nperson is a choice whose options are the account's directory and are\ntherefore never authored. Anything that would only differ in its placeholder\ntext is a text field with a description."},"FieldLevelIn":{"properties":{"level_key":{"type":"string","title":"Level Key"},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","required":["level_key"],"title":"FieldLevelIn"},"FieldOptionIn":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["label"],"title":"FieldOptionIn","description":"One answer a select field offers.\n\nThe key is optional and generally absent: the client sends the words, and a\nkey is derived from them. Sending one is how an existing option is *kept* -\nthe key is what every answer already given is stored against, so a rename\nthat arrived without it would read as a removal and a new option."},"FieldOrderIn":{"properties":{"field_ids":{"items":{"type":"integer"},"type":"array","title":"Field Ids"}},"type":"object","required":["field_ids"],"title":"FieldOrderIn","description":"The order the fields read in, as a list of ids."},"FieldValueIn":{"properties":{"value":{"type":"string","title":"Value","default":""},"display":{"type":"string","title":"Display","default":""}},"type":"object","title":"FieldValueIn"},"FillVersionIn":{"properties":{"work_item_ids":{"items":{"type":"integer"},"type":"array","title":"Work Item Ids","default":[]},"epic_ids":{"items":{"type":"integer"},"type":"array","title":"Epic Ids","default":[]},"state_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"State Ids"}},"type":"object","title":"FillVersionIn","description":"What to aim at this release: work by name, or whole epics."},"FollowIn":{"properties":{"policy_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Policy Id"}},"type":"object","title":"FollowIn","description":"The policy a queue or a service follows; null follows none."},"ForgotIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotIn"},"FreezeIn":{"properties":{"name":{"type":"string","title":"Name"},"reason":{"type":"string","title":"Reason","default":""},"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"},"timezone":{"type":"string","title":"Timezone","default":""},"exempt_types":{"items":{"$ref":"#/components/schemas/ChangeRequestType"},"type":"array","title":"Exempt Types","default":["emergency"]},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}},"type":"object","required":["name"],"title":"FreezeIn"},"GadgetIn":{"properties":{"entity_id":{"type":"integer","title":"Entity Id"},"subject":{"type":"string","title":"Subject","default":"work_items"},"title":{"type":"string","title":"Title","default":""},"kind":{"$ref":"#/components/schemas/GadgetKind","default":"number"},"query":{"type":"string","title":"Query","default":""},"options":{"additionalProperties":true,"type":"object","title":"Options","default":{}},"width":{"type":"integer","title":"Width","default":1}},"type":"object","required":["entity_id"],"title":"GadgetIn"},"GadgetKind":{"type":"string","enum":["number","list","breakdown","sprint","burndown","velocity","throughput","cumulative_flow","cycle_time","aging","arrivals","kpi","money"],"title":"GadgetKind","description":"How a gadget draws the answer to its question.\n\nA dashboard is read at a glance, from across a room, during a stand-up -\nso what belongs on one is a number somebody can react to, a short list\nthey can act on, or a picture that says where the work is piling up or\nwhich way it is going. The pictures are most of the list, on purpose: a\nfigure has to be read, a shape is seen. Anything that needs studying is a\nreport, and this product already has those.\n\nThe graphs after the first four are each one question a team asks about\nits flow, drawn the way that question is usually drawn, and none takes a\nknob beyond the window it looks over. A gadget with three settings is a\nreport with a smaller frame."},"GateIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"approver_role_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approver Role Id"},"min_approvals":{"type":"integer","title":"Min Approvals","default":1},"allow_self_approval":{"type":"boolean","title":"Allow Self Approval","default":false}},"type":"object","required":["name"],"title":"GateIn"},"GroupIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"owner_entity_id":{"type":"integer","title":"Owner Entity Id"},"rule_entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rule Entity Id"},"rule_beneath":{"type":"boolean","title":"Rule Beneath","default":true},"rule_role_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rule Role Id"},"rule_title":{"type":"string","title":"Rule Title","default":""}},"type":"object","required":["name","owner_entity_id"],"title":"GroupIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HelpedIn":{"properties":{"helped":{"type":"boolean","title":"Helped"},"request_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Token"}},"type":"object","required":["helped"],"title":"HelpedIn","description":"Whether an article answered it. With a request's token where there is\none; without, it is a question never asked, which is the point."},"IgnoreIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"},"forget_type":{"type":"boolean","title":"Forget Type","default":false}},"type":"object","required":["ids"],"title":"IgnoreIn"},"ImportIn":{"properties":{"provider":{"type":"string","title":"Provider"},"entity_id":{"type":"integer","title":"Entity Id"},"initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"},"rows":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Rows"},"csv_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csv Text"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","required":["provider","entity_id"],"title":"ImportIn"},"IncidentSeverity":{"type":"string","enum":["sev1","sev2","sev3","sev4"],"title":"IncidentSeverity","description":"How bad an incident is, one to four, the way most operations teams\nsay it. SEV1 and SEV2 are major: they wake the owners of the services\nthey are on."},"InitiativeIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"budget_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"kpi_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Kpi Id"},"target_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Value"},"achieved_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Achieved Value"},"status":{"$ref":"#/components/schemas/InitiativeStatus","default":"proposed"},"parent_initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Initiative Id"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}},"type":"object","required":["name"],"title":"InitiativeIn"},"InitiativeServiceIn":{"properties":{"service_id":{"type":"integer","title":"Service Id"},"role":{"$ref":"#/components/schemas/ServiceRole","default":"enhances"}},"type":"object","required":["service_id"],"title":"InitiativeServiceIn"},"InitiativeServicesIn":{"properties":{"services":{"items":{"$ref":"#/components/schemas/InitiativeServiceIn"},"type":"array","title":"Services","default":[]}},"type":"object","title":"InitiativeServicesIn"},"InitiativeStatus":{"type":"string","enum":["proposed","approved","in_progress","complete","cancelled"],"title":"InitiativeStatus"},"IntegrationIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"reference_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Prefix"},"rotate_secret":{"type":"boolean","title":"Rotate Secret","default":false},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"},"api_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Token"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repository"},"comment_on_code":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Comment On Code"},"create_branches":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Create Branches"},"move_on_merge":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Move On Merge"}},"type":"object","title":"IntegrationIn"},"InviteIn":{"properties":{"group_ids":{"items":{"type":"integer"},"type":"array","title":"Group Ids","default":[]},"people":{"items":{"$ref":"#/components/schemas/app__api__respondents__PersonIn"},"type":"array","title":"People","default":[]},"invite_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Subject"},"invite_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Body"}},"type":"object","title":"InviteIn","description":"Whole groups, people typed by hand, or both."},"InviteNewIn":{"properties":{"invite_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Subject"},"invite_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Body"}},"type":"object","title":"InviteNewIn"},"InviteeAddressIn":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"InviteeAddressIn"},"ItemFieldsIn":{"properties":{"values":{"additionalProperties":true,"type":"object","title":"Values"}},"type":"object","required":["values"],"title":"ItemFieldsIn","description":"The answers to write, keyed by field key.\n\nA partial write, the way a patch is: a field left out is left alone, and a\nfield sent empty is cleared. Both are things somebody means, and a payload\nthat could only say \"here is everything\" would clear every field a client\nhappened not to know about.\n\nThe value's shape follows the field's kind - a string, a number, an ISO\nday, an option key, a list of them for a multi-select, a person's id, a\nboolean. What each kind accepts is settled in services/fields.py."},"ItemTagsIn":{"properties":{"names":{"items":{"type":"string"},"type":"array","title":"Names"}},"type":"object","required":["names"],"title":"ItemTagsIn","description":"The names of one kind that should be on this item, as a set.\n\nNames rather than ids, because that is what makes a label coinable in the\nsame breath as it is applied: the reader types a word, and whether it\nalready existed is the server's problem rather than a second round trip.\nA component that does not exist is refused instead - see services.tags."},"KpiIn":{"properties":{"name":{"type":"string","title":"Name"},"unit":{"type":"string","title":"Unit"},"lower_is_better":{"type":"boolean","title":"Lower Is Better","default":false},"range_low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Range Low"},"range_high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Range High"},"decimal_places":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decimal Places"},"rollup":{"type":"string","title":"Rollup","default":"none"},"source":{"anyOf":[{"$ref":"#/components/schemas/KpiSource"},{"type":"null"}]}},"type":"object","required":["name","unit"],"title":"KpiIn"},"KpiSource":{"type":"string","enum":["incidents","major_incidents","restore_hours","on_time","change_failure","satisfaction","first_response_hours","lead_time_hours","changes","availability","cycle_time_days"],"title":"KpiSource","description":"Where a KPI's readings come from, when nobody types them in.\n\nAll but one are read off the service desk and the change log for the\nservices the owner is about, one calendar month at a time - see\n`services/service_metrics.py`, which also says what unit each is in and\nwhich way is better. Cycle time is read off the work instead: a factor's\npart of the organisation, or an initiative's own items."},"LanguageIn":{"properties":{"locale":{"type":"string","title":"Locale","default":""}},"type":"object","title":"LanguageIn"},"LevelEstimateIn":{"properties":{"estimate_scale":{"type":"string","title":"Estimate Scale"}},"type":"object","required":["estimate_scale"],"title":"LevelEstimateIn","description":"The unit a rung is estimated in: \"points\" or \"tshirt\"."},"LevelIn":{"properties":{"label":{"type":"string","title":"Label"},"plural":{"type":"string","title":"Plural","default":""},"like":{"type":"string","title":"Like"}},"type":"object","required":["label","like"],"title":"LevelIn","description":"A new kind of work, made in the image of one that exists.\n\n`like` names the rung whose rules the new one takes: the same depth, the\nsame unit of estimate, the same answer to whether it gets a card or takes\nacceptance criteria. Copying a rung rather than asking eight questions,\nbecause the rung an admin is adding is almost always \"a task, but called\nsomething else\" - a spike, an incident, a chore - and eight questions is\neight ways to make one that behaves like nothing else on the board."},"LevelNameIn":{"properties":{"label":{"type":"string","title":"Label"},"plural":{"type":"string","title":"Plural","default":""}},"type":"object","required":["label"],"title":"LevelNameIn","description":"What this organisation calls a rung, in both forms."},"LinkIn":{"properties":{"work_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Item Id"},"change_request_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Change Request Id"},"initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"},"request_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Request Id"},"reference":{"type":"string","title":"Reference","default":""},"remote_key":{"type":"string","title":"Remote Key","default":""}},"type":"object","title":"LinkIn"},"LinkInitiativeIn":{"properties":{"initiative_id":{"type":"integer","title":"Initiative Id"}},"type":"object","required":["initiative_id"],"title":"LinkInitiativeIn"},"LinkTypeIn":{"properties":{"key":{"type":"string","title":"Key"},"outward_label":{"type":"string","title":"Outward Label"},"inward_label":{"type":"string","title":"Inward Label"}},"type":"object","required":["key","outward_label","inward_label"],"title":"LinkTypeIn"},"LinkTypesIn":{"properties":{"link_types":{"items":{"$ref":"#/components/schemas/LinkTypeIn"},"type":"array","title":"Link Types"}},"type":"object","required":["link_types"],"title":"LinkTypesIn"},"ListIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"filters":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Filters","default":[]},"match_all":{"type":"boolean","title":"Match All","default":true},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"fields":{"items":{"type":"string"},"type":"array","title":"Fields","default":[]},"sort_by":{"type":"string","title":"Sort By","default":"rank"},"covers":{"type":"string","title":"Covers","default":"this"},"covers_entity_ids":{"items":{"type":"integer"},"type":"array","title":"Covers Entity Ids","default":[]}},"type":"object","required":["name"],"title":"ListIn","description":"A saved list as its author wrote it, in whichever of the two ways.\n\nA question can be built - a field, an operator and a value, and another row\n- or typed: `priority is Critical and (component is Billing or label is\ntech-debt)`. Sending `query` means it was typed and is authoritative;\nleaving it out means it was built.\n\nWhichever half arrives, both are stored. A built question is written back\nout as text so it can be read and pasted, and a typed one keeps `filters`\nfilled in wherever its shape is one the builder could draw - so the two\nways of asking stay one question rather than becoming two features."},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"device":{"anyOf":[{"$ref":"#/components/schemas/DeviceIn"},{"type":"null"}]}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MembersIn":{"properties":{"person_ids":{"items":{"type":"integer"},"type":"array","title":"Person Ids","default":[]},"people":{"items":{"$ref":"#/components/schemas/AddressIn"},"type":"array","title":"People","default":[]}},"type":"object","title":"MembersIn"},"MembershipIn":{"properties":{"person_id":{"type":"integer","title":"Person Id"},"entity_id":{"type":"integer","title":"Entity Id"},"role_id":{"type":"integer","title":"Role Id"}},"type":"object","required":["person_id","entity_id","role_id"],"title":"MembershipIn"},"MfaPolicyIn":{"properties":{"policy":{"type":"string","title":"Policy"}},"type":"object","required":["policy"],"title":"MfaPolicyIn"},"ModulesIn":{"properties":{"modules":{"items":{"type":"string"},"type":"array","title":"Modules"}},"type":"object","required":["modules"],"title":"ModulesIn"},"MovesIn":{"properties":{"leads_to":{"items":{"$ref":"#/components/schemas/app__api__admin__MoveIn"},"type":"array","title":"Leads To"}},"type":"object","required":["leads_to"],"title":"MovesIn","description":"The whole set of moves out of one status.\n\nReplace-at-once, like the board's column layout (api/delivery): the client\nsends the end state and the server validates it whole. A workflow read one\nmove at a time is a workflow that can be left halfway through an edit."},"NodeIn":{"properties":{"node_type":{"$ref":"#/components/schemas/RcaNodeType"},"text":{"type":"string","title":"Text"},"factor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Factor Id"},"explains_node_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Explains Node Id"}},"type":"object","required":["node_type","text"],"title":"NodeIn"},"NoticeIn":{"properties":{"subject":{"type":"string","title":"Subject","default":""},"message":{"type":"string","title":"Message","default":""}},"type":"object","title":"NoticeIn","description":"A word to the people invited, sent with a change to the survey.\n\nBoth optional. Left empty, the change is made and nobody is written to -\nexcept a reminder, which then says what it always said. A message with\nno subject goes under the survey's title."},"ObjectiveIn":{"properties":{"entity_id":{"type":"integer","title":"Entity Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"committed":{"type":"boolean","title":"Committed","default":true},"business_value_planned":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Business Value Planned"},"factor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Factor Id"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}},"type":"object","required":["entity_id","title"],"title":"ObjectiveIn"},"ObjectiveLinkIn":{"properties":{"factor_id":{"type":"integer","title":"Factor Id"}},"type":"object","required":["factor_id"],"title":"ObjectiveLinkIn"},"OrderIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"}},"type":"object","required":["ids"],"title":"OrderIn"},"OutcomeIn":{"properties":{"outcome":{"$ref":"#/components/schemas/ChangeOutcome"},"review_notes":{"type":"string","title":"Review Notes","default":""}},"type":"object","required":["outcome"],"title":"OutcomeIn"},"OverrideIn":{"properties":{"risk":{"$ref":"#/components/schemas/RiskLevel"},"impact":{"$ref":"#/components/schemas/RiskLevel"}},"type":"object","required":["risk","impact"],"title":"OverrideIn"},"PageAudience":{"type":"string","enum":["team","requesters"],"title":"PageAudience","description":"Who may read a page: the team, as every page always was, or the\npeople outside who write to the team's desk as well.\n\nNot a sharing model. A page is scoped to its entity and read by the\nroles there, and that stays the whole of who may *edit* it. This says\none more thing: whether the page is also an answer the desk may hand to\na requester - served under the portal of any queue on this entity or\none beneath it, to anybody with the link, the way the queue's own\nportal page is. A requester-facing article is public by design; a page\nthat should not be is left as the team's."},"PageCommentIn":{"properties":{"body":{"type":"string","title":"Body"},"parent_comment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Comment Id"}},"type":"object","required":["body"],"title":"PageCommentIn"},"PageIn":{"properties":{"policy_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Policy Id"}},"type":"object","title":"PageIn","description":"A policy to page with; left out, the request's own is used."},"PageWatchIn":{"properties":{"watching":{"type":"boolean","title":"Watching"}},"type":"object","required":["watching"],"title":"PageWatchIn"},"PanelIn":{"properties":{"where":{"type":"string","title":"Where","default":"work_item"},"kind":{"type":"string","title":"Kind","default":"rows"},"title":{"type":"string","title":"Title","default":""},"path":{"type":"string","title":"Path","default":""},"height":{"type":"integer","title":"Height","default":320},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","title":"PanelIn"},"PasskeyAnswerIn":{"properties":{"challenge":{"type":"string","title":"Challenge"},"credential":{"additionalProperties":true,"type":"object","title":"Credential"},"device":{"anyOf":[{"$ref":"#/components/schemas/DeviceIn"},{"type":"null"}]}},"type":"object","required":["challenge","credential"],"title":"PasskeyAnswerIn"},"PasskeyRegisterIn":{"properties":{"handle":{"type":"string","title":"Handle"},"credential":{"additionalProperties":true,"type":"object","title":"Credential"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["handle","credential"],"title":"PasskeyRegisterIn"},"PasskeySetupAnswerIn":{"properties":{"challenge":{"type":"string","title":"Challenge"},"handle":{"type":"string","title":"Handle"},"credential":{"additionalProperties":true,"type":"object","title":"Credential"},"name":{"type":"string","title":"Name","default":""},"device":{"anyOf":[{"$ref":"#/components/schemas/DeviceIn"},{"type":"null"}]}},"type":"object","required":["challenge","handle","credential"],"title":"PasskeySetupAnswerIn"},"PasswordIn":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"PasswordIn"},"PaymentProviderKind":{"type":"string","enum":["manual","stripe"],"title":"PaymentProviderKind","description":"Who moves the money.\n\n`manual` is not \"no payments\" - it is an administrator recording that money\narrived some other way, which is a real settlement path a business needs\neven when a processor is connected (a bank transfer, say)."},"Perm":{"type":"string","enum":["module.planning","module.change","module.approvals","module.portfolio","module.servicedesk","module.pages","module.adoption","admin.entities","admin.people","admin.roles","admin.terminology","admin.kpis","admin.workflows","admin.integrations","factor.view","factor.propose","factor.vote","factor.refine","factor.accept","factor.reorder","assessment.view","assessment.create","assessment.launch","assessment.respond","assessment.results","assessment.composite","assessment.manage","rca.view","rca.propose","rca.respond","rca.accept","initiative.view","initiative.edit","work.view","work.edit","work.transition","work.approve","sprint.manage","work.log_time","request.answer","workflow.extend","document.view","document.edit","poker.vote","poker.lead","pi.manage","pi.objective","risk.manage","portfolio.view","portfolio.manage","change.view","change.edit","change.approve","service.manage","freeze.manage","adoption.view","adoption.manage","groups.manage","report.view","report.ai"],"title":"Perm","description":"Permission keys. Roles hold a list of these, except the modules."},"PersonCapacityIn":{"properties":{"person_id":{"type":"integer","title":"Person Id"},"capacity_points":{"type":"number","title":"Capacity Points"}},"type":"object","required":["person_id","capacity_points"],"title":"PersonCapacityIn"},"PersonStatus":{"type":"string","enum":["active","inactive"],"title":"PersonStatus"},"PinIn":{"properties":{"kind":{"type":"string","title":"Kind"},"target":{"type":"string","title":"Target"}},"type":"object","required":["kind","target"],"title":"PinIn"},"Plan":{"type":"string","enum":["starter","paid"],"title":"Plan"},"PlanChangeIn":{"properties":{"plan":{"$ref":"#/components/schemas/Plan"},"cycle":{"$ref":"#/components/schemas/BillingCycle","default":"monthly"},"seats":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Seats"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["plan","seats"],"title":"PlanChangeIn"},"PlanningIntervalIn":{"properties":{"name":{"type":"string","title":"Name"},"goal":{"type":"string","title":"Goal","default":""},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"iteration_length_days":{"type":"integer","title":"Iteration Length Days","default":14},"iteration_count":{"type":"integer","title":"Iteration Count","default":5},"has_ip_iteration":{"type":"boolean","title":"Has Ip Iteration","default":true}},"type":"object","required":["name","start_date"],"title":"PlanningIntervalIn"},"PolicyIn":{"properties":{"name":{"type":"string","title":"Name"},"repeats":{"type":"integer","title":"Repeats","default":0},"steps":{"items":{"$ref":"#/components/schemas/StepIn"},"type":"array","title":"Steps"}},"type":"object","required":["name","steps"],"title":"PolicyIn"},"PortalReplyIn":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"PortalReplyIn"},"PreferencesIn":{"properties":{"kinds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Kinds"},"by_email":{"type":"boolean","title":"By Email","default":true},"by_push":{"type":"boolean","title":"By Push","default":true},"preferred_assistant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Assistant"},"chat_kind":{"type":"string","title":"Chat Kind","default":""},"chat_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Url"},"cadence":{"type":"string","title":"Cadence","default":"immediate"},"digest_hour":{"type":"integer","title":"Digest Hour","default":8},"timezone":{"type":"string","title":"Timezone","default":""},"letter_locale":{"type":"string","title":"Letter Locale","default":""}},"type":"object","title":"PreferencesIn"},"Prioritisation":{"type":"string","enum":["priority","rice","ice","wsjf"],"title":"Prioritisation","description":"How a rung of the ladder decides what to pick up next (spec 13.2).\n\nFour answers, chosen per rung by an administrator, because an organisation\ndoes not order its epics the way it orders its defects and should not have\nto pretend otherwise.\n\n  * **Priority.** The organisation's own scale (ScaleKind.PRIORITY), set by\n    hand. What most work needs: somebody looks at it and says how much it\n    matters. The default, and never wrong.\n  * **RICE.** Reach x impact x confidence, over effort. A product technique\n    for choosing between things that reach different numbers of people, and\n    the only one of the four that asks how many.\n  * **ICE.** Impact x confidence x ease. RICE with the counting taken out -\n    three judgements on one ladder, which is what a team reaches for when\n    reach is unknowable or the same for everything on the list.\n  * **WSJF.** Cost of delay over job size. SAFe prescribes it and it belongs\n    to nobody; see services/wsjf.py.\n\nDeliberately one choice rather than several flags. A rung scored two ways is\na rung with two orderings, and the argument about which to read is worse\nthan either.\n\nImpact and urgency were here once, as two fields beside the priority they\nwere said to be read from. They were nobody's method - not ITIL's, which\nuses them for a change rather than for a backlog item, and not any of the\nfour above - so what they actually did was ask for two numbers and use\nneither. A change request keeps its own impact, which is ITIL's and is a\ndifferent question (models/change.ChangeRequest)."},"PrioritisationIn":{"properties":{"prioritisation":{"$ref":"#/components/schemas/Prioritisation"}},"type":"object","required":["prioritisation"],"title":"PrioritisationIn","description":"Which of the four techniques a rung, or the portfolio, is ordered by."},"Provider":{"type":"string","enum":["github","bitbucket","gitlab","sourceforge","rhodecode","azure_devops","ci","jira","servicenow","monday","freshservice","clickup","miro","asana","airtable","zoho_sprints","teamwork","aha","productboard","nifty","superhuman_docs","targetprocess","shortcut","flock","azure_boards","linear","rally","trello","planner","zendesk","redmine","openproject","youtrack","wrike"],"title":"Provider","description":"External systems DilliC links to (spec 13.1)."},"ProviderIn":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled","default":true},"issuer":{"type":"string","title":"Issuer","default":""},"client_id":{"type":"string","title":"Client Id","default":""},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"},"scopes":{"type":"string","title":"Scopes","default":"openid email profile"},"idp_entity_id":{"type":"string","title":"Idp Entity Id","default":""},"idp_sso_url":{"type":"string","title":"Idp Sso Url","default":""},"idp_certificates":{"items":{"type":"string"},"type":"array","title":"Idp Certificates","default":[]},"email_claim":{"type":"string","title":"Email Claim","default":"email"},"name_claim":{"type":"string","title":"Name Claim","default":"name"},"title_claim":{"type":"string","title":"Title Claim","default":""},"jit_provisioning":{"type":"boolean","title":"Jit Provisioning","default":false},"jit_role_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Jit Role Id"},"jit_entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Jit Entity Id"}},"type":"object","required":["kind","name"],"title":"ProviderIn","description":"A sign-in connection as an administrator describes it.\n\nOne shape for both protocols, the way the table is: what SAML needs is\nempty on an OIDC connection and the other way round, and a form that asked\nthe same question twice under two names would be a form nobody could fill\nin from a directory's own setup page."},"QuestionIn":{"properties":{"text":{"type":"string","title":"Text"},"help":{"type":"string","title":"Help","default":""},"dimension":{"type":"string","title":"Dimension","default":"risk"},"answers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Answers","default":[]}},"type":"object","required":["text"],"title":"QuestionIn"},"QueueIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"public":{"type":"boolean","title":"Public","default":true},"response_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Minutes"},"resolution_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resolution Minutes"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Categories"},"assignment":{"type":"string","title":"Assignment","default":"manual"},"hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hours"},"sla_by_priority":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sla By Priority"}},"type":"object","required":["name"],"title":"QueueIn"},"QueueUpdate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"public":{"type":"boolean","title":"Public"},"response_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Minutes"},"resolution_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resolution Minutes"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Categories"},"assignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment"},"hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hours"},"sla_by_priority":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sla By Priority"}},"type":"object","required":["name","description","public","response_minutes","resolution_minutes","email"],"title":"QueueUpdate","description":"An edit to a queue. Every field required, and that is the point.\n\n`QueueIn` defaults `public` to True, which is right for creation and\ndangerous here: a PUT that only meant to rename a queue would carry no\nvisibility and quietly turn a private queue into an address anybody\noutside can write to. Nothing would raise, and the first sign would be a\nstranger's request in an internal queue.\n\nSo the update has its own model with no defaults. Omitting a field is a\n422 rather than a silent change - a full replace that actually requires\nthe whole thing, which is what PUT was supposed to mean."},"QuickFilterIn":{"properties":{"name":{"type":"string","title":"Name"},"query":{"type":"string","title":"Query","default":""}},"type":"object","required":["name"],"title":"QuickFilterIn"},"QuickFiltersIn":{"properties":{"quick_filters":{"items":{"$ref":"#/components/schemas/QuickFilterIn"},"type":"array","title":"Quick Filters","default":[]}},"type":"object","title":"QuickFiltersIn","description":"The whole row of buttons, replaced in one press.\n\nSaved whole rather than one at a time for the reason the columns are: what\nmakes the set right - no two buttons with the same name, and the order they\nsit in - is a property of the row rather than of any button in it."},"RaiseIn":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"type":"string","title":"Full Name","default":""},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},"type":"object","required":["email","subject","body"],"title":"RaiseIn"},"RaiseInsideIn":{"properties":{"kind":{"$ref":"#/components/schemas/RequestKind","default":"request"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body","default":""},"queue_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Id"},"priority":{"$ref":"#/components/schemas/RequestPriority","default":"normal"},"severity":{"anyOf":[{"$ref":"#/components/schemas/IncidentSeverity"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"caused_by_change_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Caused By Change Id"},"problem_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Problem Id"},"service_ids":{"items":{"type":"integer"},"type":"array","title":"Service Ids","default":[]}},"type":"object","required":["subject"],"title":"RaiseInsideIn","description":"A request, an incident or a problem raised from inside the\norganisation, by somebody who answers the desk."},"RankIn":{"properties":{"ordered_ids":{"items":{"type":"integer"},"type":"array","title":"Ordered Ids"}},"type":"object","required":["ordered_ids"],"title":"RankIn"},"RateIn":{"properties":{"likelihood":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Likelihood"},"impact":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Impact"},"initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"}},"type":"object","title":"RateIn","description":"Where a risk sits on the matrix, and what it threatens."},"RatingIn":{"properties":{"rating":{"type":"integer","title":"Rating"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["rating"],"title":"RatingIn"},"RcaNodeType":{"type":"string","enum":["ASSERTION","CAUSE"],"title":"RcaNodeType"},"RcaStatus":{"type":"string","enum":["proposed","accepted","rejected"],"title":"RcaStatus"},"ReadingIn":{"properties":{"value":{"type":"number","title":"Value"},"measured_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Measured On"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","required":["value"],"title":"ReadingIn"},"RefineIn":{"properties":{"factor_statement":{"type":"string","title":"Factor Statement"},"objective_statement":{"type":"string","title":"Objective Statement"},"category_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id"},"kpi_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Kpi Id"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"change_type":{"$ref":"#/components/schemas/ChangeType","default":"cosmetic"},"rationale":{"type":"string","title":"Rationale","default":""},"target":{"anyOf":[{"$ref":"#/components/schemas/app__api__factors__TargetIn"},{"type":"null"}]}},"type":"object","required":["factor_statement","objective_statement"],"title":"RefineIn"},"RefundIn":{"properties":{"amount_cents":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Amount Cents"}},"type":"object","title":"RefundIn"},"RegistrationIn":{"properties":{"platform":{"type":"string","title":"Platform"},"push_token":{"type":"string","title":"Push Token"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["platform","push_token"],"title":"RegistrationIn"},"ReleaseIn":{"properties":{"move_unfinished_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Move Unfinished To"},"released_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Released On"}},"type":"object","title":"ReleaseIn"},"ReorderIn":{"properties":{"factor_ids":{"items":{"type":"integer"},"type":"array","title":"Factor Ids"}},"type":"object","required":["factor_ids"],"title":"ReorderIn"},"ReplyIn":{"properties":{"body":{"type":"string","title":"Body"},"internal":{"type":"boolean","title":"Internal","default":false},"then_status":{"anyOf":[{"$ref":"#/components/schemas/RequestStatus"},{"type":"null"}]}},"type":"object","required":["body"],"title":"ReplyIn"},"ReportIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"shared":{"type":"boolean","title":"Shared","default":false},"subject":{"type":"string","title":"Subject"},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"filters":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Filters","default":[]},"match_all":{"type":"boolean","title":"Match All","default":true},"fields":{"items":{"type":"string"},"type":"array","title":"Fields","default":[]},"group_by":{"type":"string","title":"Group By","default":""},"aggregates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Aggregates","default":[]},"sort_by":{"type":"string","title":"Sort By","default":""},"sort_dir":{"type":"string","title":"Sort Dir","default":"asc"},"chart":{"type":"string","title":"Chart","default":""}},"type":"object","required":["name","subject"],"title":"ReportIn"},"RequestIn":{"properties":{"kind":{"$ref":"#/components/schemas/CatalogueKind"},"name":{"type":"string","title":"Name"},"inward_label":{"type":"string","title":"Inward Label","default":""},"note":{"type":"string","title":"Note","default":""},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"work_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Item Id"}},"type":"object","required":["kind","name"],"title":"RequestIn"},"RequestKind":{"type":"string","enum":["request","incident","problem"],"title":"RequestKind","description":"What a thing on the desk is (plan phase 2).\n\nA request is somebody asking for something. An incident is something\nthat has broken: it carries a severity, when it started, the services\nthat went down and the change that caused it. A problem is the reason\nbehind one or more incidents: it carries a root cause, a known error and\nthe change raised to fix it. One table and one list, because the desk\nreads all three, and three of everything would be three desks."},"RequestPatch":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/RequestStatus"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/RequestPriority"},{"type":"null"}]},"assignee_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assignee Id"},"work_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Item Id"},"queue_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Id"},"service_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Service Ids"},"severity":{"anyOf":[{"$ref":"#/components/schemas/IncidentSeverity"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"caused_by_change_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Caused By Change Id"},"problem_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Problem Id"},"root_cause":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Root Cause"},"known_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Known Error"},"fix_change_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fix Change Id"}},"type":"object","title":"RequestPatch"},"RequestPriority":{"type":"string","enum":["low","normal","high","urgent"],"title":"RequestPriority","description":"How soon a request should be looked at, against the others on the desk.\n\nFour rungs and a fixed list, for the reason `RequestStatus` is one: the\ndesk's list is sorted on this before it is sorted on the clock, and a\nladder every organisation wrote for itself would be a ladder the sort\ncould not read. Set by the desk, not by the person asking - everybody's\nown request is urgent - and `NORMAL` until somebody says otherwise."},"RequestStatus":{"type":"string","enum":["new","open","waiting","resolved","closed"],"title":"RequestStatus","description":"Where a service request has got to.\n\nA fixed list, where a work item's statuses are the organisation's own\n(see `WorkflowState`), and the difference is deliberate but it is a cost\nrather than a win. A board's columns are how a team describes its own\nprocess and a ceiling of seven would have been our ceiling on their\nvocabulary; a service request's lifecycle is answering somebody, and the\nthree that matter - has anybody replied, is it our turn, is it over - are\nwhat the clock is measured against. Making them configurable would mean\nasking every account to tell us which of their statuses stop an SLA, which\nis a question with one right answer and several ways to get it wrong.\n\nIf an organisation needs its own words here, the honest fix is the workflow\nengine with a third kind, not a longer enum."},"ResetIn":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetIn"},"ResistanceIn":{"properties":{"group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Id"},"heard":{"type":"string","title":"Heard"},"root_cause":{"type":"string","title":"Root Cause","default":""},"response":{"type":"string","title":"Response","default":""},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"status":{"type":"string","title":"Status","default":"open"}},"type":"object","required":["heard"],"title":"ResistanceIn"},"RiskIn":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"planning_interval_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Planning Interval Id"},"likelihood":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Likelihood"},"impact":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Impact"},"initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}},"type":"object","required":["title"],"title":"RiskIn"},"RiskLevel":{"type":"string","enum":["low","medium","high"],"title":"RiskLevel"},"RoamIn":{"properties":{"status":{"$ref":"#/components/schemas/RoamStatus"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"mitigation":{"type":"string","title":"Mitigation","default":""},"work_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Item Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"likelihood":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Likelihood"},"impact":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Impact"},"initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}},"type":"object","required":["status"],"title":"RoamIn","description":"An edit of a risk. The answer is always given; the rest only when the\ncaller sends it, so an older caller answering a risk leaves its wording\nand its rating alone."},"RoamStatus":{"type":"string","enum":["open","resolved","owned","accepted","mitigated"],"title":"RoamStatus","description":"What the room decided to do about a risk it named (spec 13.1).\n\nROAM is four answers to one question, asked out loud at the end of a\nplanning session so that no risk leaves the room unanswered:\n\n  * **Resolved.** Looked at, and it is not a risk after all.\n  * **Owned.** Still a risk; somebody is named and will carry it.\n  * **Accepted.** Real, and nothing can be done about it. Say so.\n  * **Mitigated.** There is a plan, and often a piece of work carrying it.\n\n`OPEN` is the fifth state and the one a room never needs, because there\nevery risk gets an answer before anybody leaves. In a database they\narrive one at a time and are ROAMed later, so \"raised, not yet answered\" has\nto be a value - and it is the one the list is filtered on."},"RoleIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","default":[]}},"type":"object","required":["name"],"title":"RoleIn"},"RotaIn":{"properties":{"name":{"type":"string","title":"Name"},"timezone":{"type":"string","title":"Timezone","default":""},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"shift_hours":{"type":"integer","title":"Shift Hours","default":168},"member_ids":{"items":{"type":"integer"},"type":"array","title":"Member Ids","default":[]}},"type":"object","required":["name","starts_at"],"title":"RotaIn"},"RowsIn":{"properties":{"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows","default":[]}},"type":"object","title":"RowsIn"},"SafeLevel":{"type":"string","enum":["none","essential","portfolio","full"],"title":"SafeLevel","description":"How much of SAFe this organisation runs (spec 13.1).\n\nAn account-level choice rather than a per-board one, because everything SAFe\nadds sits *above* a board: a cadence several teams share, a planning interval\nover it, a portfolio the trains are funded from. A board still says which\nmethodology it runs - a Kanban team on a SAFe train is an ordinary thing -\nand this says how much scaffolding exists for it to sit in.\n\nOrdered, and the order is the point: each level is the one before it plus\nmore. `reaches` is how everything else asks.\n\n  * **None.** The product as it was: initiatives, epics, stories, boards,\n    sprints. Nothing here appears.\n  * **Essential.** A train and its cadence. Planning intervals, iterations\n    generated across every team on the train at once, PI objectives with\n    business value, a program board, ROAM risks, and the enabler rungs.\n    Not WSJF: every account ranks its epics that way already.\n  * **Portfolio.** Lean portfolio management above the trains: initiatives\n    move through a portfolio kanban behind an LPM gate, carry an epic\n    hypothesis and a lean business case, and are funded from value streams\n    with guardrails.\n  * **Full.** Large solution: a capability is an initiative one level down\n    the entity tree, and the roll-up reads across the trains beneath it.\n\nRaising a level provisions more and moves nothing. Lowering one hides what\nthe level added; it never deletes it, because an initiative's business case\nmust not evaporate because somebody stepped back a level for a quarter."},"SafeLevelIn":{"properties":{"level":{"$ref":"#/components/schemas/SafeLevel"}},"type":"object","required":["level"],"title":"SafeLevelIn"},"SameAsIn":{"properties":{"service_id":{"type":"integer","title":"Service Id"}},"type":"object","required":["service_id"],"title":"SameAsIn"},"ScaleIn":{"properties":{"options":{"items":{"$ref":"#/components/schemas/ScaleOptionIn"},"type":"array","title":"Options"}},"type":"object","required":["options"],"title":"ScaleIn","description":"The whole scale, saved in one go.\n\nWhole rather than an option at a time, the way a board's columns are: what\nmakes a scale valid - one rank per rung, thresholds that climb - is a\nproperty of the set. Half a new scale applied is a scale that sorts\nwrongly, and sorting correctly is the entire reason it has numbers."},"ScaleKind":{"type":"string","enum":["priority","size","wsjf","rice_impact","rice_confidence","ice"],"title":"ScaleKind","description":"Which of the organisation's ordinal scales an option belongs to.\n\nPriorities and T-shirt sizes are the same shape of thing: a short list an\norganisation writes for itself, whose order is not the order of its words.\nAlphabetically Critical, High, Low, Medium puts the least urgent third, and\nL, M, S, XL, XS is not a size order at all - so an option carries a rank,\nand the kind says which list that rank is a position in."},"ScaleOptionIn":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"rank":{"type":"integer","title":"Rank"},"points_ceiling":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Points Ceiling"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"}},"type":"object","required":["key","label","rank"],"title":"ScaleOptionIn"},"ScimTokenIn":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ScimTokenIn"},"Scope":{"type":"string","enum":["live","archived","all"],"title":"Scope","description":"Which of it a caller is asking for.\n\n`LIVE` is the default everywhere a person is choosing what to do next.\n`ALL` is what search and a report use, because looking for something\nspecific usually means looking for something old."},"SeatsIn":{"properties":{"seats":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Seats"}},"type":"object","required":["seats"],"title":"SeatsIn"},"ServiceCriticality":{"type":"string","enum":["low","medium","high","critical"],"title":"ServiceCriticality","description":"How much it matters when a service is down.\n\nOne more rung than RiskLevel, on purpose: a change's risk is a judgement\nabout the change, and a service's criticality is a fact about the\norganisation. \"Critical\" is the rung a bank's payments run on and a\nhospital's records, and a change touching one is read differently by\neverybody who approves it."},"ServiceIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"kind":{"$ref":"#/components/schemas/ServiceKind","default":"application"},"criticality":{"$ref":"#/components/schemas/ServiceCriticality","default":"medium"},"stage":{"$ref":"#/components/schemas/ServiceStage","default":"live"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"weight_pct":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Weight Pct"},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}},"type":"object","required":["name"],"title":"ServiceIn"},"ServiceKind":{"type":"string","enum":["application","infrastructure","platform","business_service"],"title":"ServiceKind","description":"What kind of thing a configuration item is.\n\nFour rungs rather than a free text: what a change calendar, a collision\nand an incident report all need is to tell the thing customers see (a\nbusiness service) from the things it is built on, and a kind chosen from\na list is the one way to be sure two teams spell \"platform\" the same."},"ServiceRole":{"type":"string","enum":["establishes","enhances","retires"],"title":"ServiceRole","description":"What an initiative does to a service it names."},"ServiceStage":{"type":"string","enum":["planned","live"],"title":"ServiceStage","description":"Where a service is in its life, short of being retired.\n\nA planned service is one an initiative is establishing: named now, so\nthe work and the changes building it can say so, and live once somebody\nwho keeps the services says it is. Retired is not a stage here - it is\n`archived_at`, which every other retired thing in the product uses too."},"SettleIn":{"properties":{"points":{"type":"number","title":"Points"}},"type":"object","required":["points"],"title":"SettleIn"},"SignupIn":{"properties":{"organisation":{"type":"string","title":"Organisation"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["organisation","full_name","email","password"],"title":"SignupIn"},"SolutionIn":{"properties":{"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"initiative_ids":{"items":{"type":"integer"},"type":"array","title":"Initiative Ids"}},"type":"object","required":["initiative_ids"],"title":"SolutionIn","description":"A solution proposed before it is assessed. Name only when it groups two\nor more initiatives - with one, the solution is that initiative."},"SpendIn":{"properties":{"kind":{"type":"string","title":"Kind","default":"actual"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"spent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Spent On"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"reference":{"type":"string","maxLength":200,"title":"Reference","default":""}},"type":"object","required":["amount_cents"],"title":"SpendIn"},"SprintIn":{"properties":{"name":{"type":"string","title":"Name"},"goal":{"type":"string","title":"Goal","default":""},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"capacity_points":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capacity Points"},"retrospective":{"type":"string","title":"Retrospective","default":""}},"type":"object","required":["name","start_date","end_date"],"title":"SprintIn"},"StakeholderIn":{"properties":{"group_id":{"type":"integer","title":"Group Id"},"influence":{"type":"integer","title":"Influence","default":3},"support":{"type":"integer","title":"Support","default":3},"impact":{"additionalProperties":true,"type":"object","title":"Impact","default":{}},"sponsor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sponsor Id"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["group_id"],"title":"StakeholderIn"},"StateCategory":{"type":"string","enum":["backlog","todo","in_progress","blocked","review","done","cancelled"],"title":"StateCategory","description":"The word a status is translated to on its way out of the product.\n\nThis used to be what a status *was*: an admin picked one of these seven and\ntyped a name beside it. That made the seven a ceiling on how precisely an\norganisation could describe its own workflow, which is exactly backwards -\nthe names are the organisation's and the ceiling should not have been ours.\nA status now describes itself (see `models.change.WorkflowState`), and this\nenum has retreated to the one job it was always right for.\n\nThat job is interchange. Jira, ServiceNow, Monday and Freshservice each have\ntheir own small fixed vocabulary of what a status means, and translating\nbetween two of them needs a fixed vocabulary in the middle or it is name\nmatching and a guess. So this is the middle, produced from a status by\n`services.workflow.meaning()` and never stored, chosen or asked for.\n\nNothing inside the product should ask a translation word whether work is\nfinished. `services.workflow.is_closed()` and `is_complete()` ask the status."},"StatusCreateIn":{"properties":{"name":{"type":"string","title":"Name"},"state":{"$ref":"#/components/schemas/StateCategory","default":"in_progress"},"comes_from":{"items":{"type":"integer"},"type":"array","title":"Comes From","default":[]},"leads_to":{"items":{"$ref":"#/components/schemas/app__api__admin__MoveIn"},"type":"array","title":"Leads To","default":[]}},"type":"object","required":["name"],"title":"StatusCreateIn","description":"A new status, and how work is to reach it and leave it.\n\nBoth lists are part of creating it rather than a second step, because a\nstatus with no way in is a status no card can ever be put into. Adding one\nused to wire it to and from everything, which hid that rule by making it\nimpossible to break; asking is the honest version."},"StatusIn":{"properties":{"name":{"type":"string","title":"Name"},"state":{"$ref":"#/components/schemas/StateCategory","default":"in_progress"}},"type":"object","required":["name"],"title":"StatusIn","description":"What a status is: a name, and one of seven states (StateCategory) -\nbacklog, ready, in progress, waiting on something, being reviewed,\ncomplete or cancelled. See models.change.WorkflowState."},"StatusMapIn":{"properties":{"remote_status":{"type":"string","title":"Remote Status"},"state_id":{"type":"integer","title":"State Id"},"write_back":{"type":"boolean","title":"Write Back","default":true}},"type":"object","required":["remote_status","state_id"],"title":"StatusMapIn"},"StatusMapsIn":{"properties":{"mappings":{"items":{"$ref":"#/components/schemas/StatusMapIn"},"type":"array","title":"Mappings","default":[]}},"type":"object","title":"StatusMapsIn","description":"The whole mapping, replaced in one go.\n\nNot one row at a time, because the rule that at most one row per state is\nwritten back is a rule about the set rather than about a row: saving them\none by one would need every intermediate state to be legal, and it is the\nfinished mapping an administrator has an opinion about."},"StepIn":{"properties":{"rota_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rota Id"},"person_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Person Id"},"ack_minutes":{"type":"integer","title":"Ack Minutes","default":15}},"type":"object","title":"StepIn"},"StorageIn":{"properties":{"blocks":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Blocks"}},"type":"object","required":["blocks"],"title":"StorageIn"},"SubmitIn":{"properties":{"answers":{"items":{"$ref":"#/components/schemas/app__api__assessments__AnswerIn"},"type":"array","title":"Answers"}},"type":"object","required":["answers"],"title":"SubmitIn"},"SubscriptionIn":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events","default":[]},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"active":{"type":"boolean","title":"Active","default":true},"format":{"type":"string","title":"Format","default":"json"}},"type":"object","required":["name","url"],"title":"SubscriptionIn"},"SummariseIn":{"properties":{"report":{"additionalProperties":true,"type":"object","title":"Report"},"title":{"type":"string","title":"Title","default":"Report"}},"type":"object","required":["report"],"title":"SummariseIn"},"SurveyScaleIn":{"properties":{"include_neutral":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Neutral"},"survey_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Survey Mode"},"sw_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sw Labels"},"ot_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ot Labels"},"agreement_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Agreement Labels"},"quadrant_texts":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Quadrant Texts"}},"type":"object","title":"SurveyScaleIn","description":"A whole scale at a time. Every field optional, so a screen may change one\nthing without restating the rest."},"SyncDirection":{"type":"string","enum":["push","pull","both"],"title":"SyncDirection","description":"Which way work moves across a connection.\n\nPush-only is first and is the default, because it is the one that cannot\nlose anything: this product writes to the other system and never reads back,\nso nothing here can be overwritten by anything there. A team turns on the\nother half once it believes the first."},"SyncRecord":{"type":"string","enum":["work_item","change_request","initiative","request","incident"],"title":"SyncRecord","description":"What a connection keeps in step.\n\nA board's work items, which is what every connection synced before this\nexisted and is still the default, or the change requests of the same part\nof the organisation. They are two connections rather than one with a\nswitch on each row, because they go to two different places at the far\nend: a story and the change that authorises it are separate records in a\nservice desk, as they are here.\n\nOr its initiatives, where the far end is a tool that plans above the\nwork: an initiative in Aha!, an epic in Jira Align.\n\nOr what is on its desk: its requests, or its incidents, each kept in\nstep with the tickets of another service desk. They are two kinds and\ntwo connections, for the reason work and changes are: most desks keep an\nincident and a request in different places, and a connection names one."},"TagIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["name"],"title":"TagIn"},"TagKind":{"type":"string","enum":["component","label"],"title":"TagKind","description":"Which of the two lists of names a tag belongs to.\n\nComponents and labels are the same shape - a name an organisation keeps, and\nany number of them on one item - and differ in one rule: a component is the\nadministrator's vocabulary, while a label may be coined by whoever needs it.\nThat is a permission, not a schema, so they share a table and the rule lives\nwhere rules live."},"TeamMoveIn":{"properties":{"from_status_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Status Id"},"to_status_id":{"type":"integer","title":"To Status Id"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["to_status_id"],"title":"TeamMoveIn"},"TeamMovesIn":{"properties":{"moves":{"items":{"$ref":"#/components/schemas/TeamMoveIn"},"type":"array","title":"Moves"}},"type":"object","required":["moves"],"title":"TeamMovesIn","description":"Every move this board added, replaced in one save.\n\nWhole rather than one at a time, for the reason the columns and the quick\nfilters are: what makes the set right - no move repeated, none leading\nnowhere this board draws - is a property of the set. A gate is not offered.\nDeciding that a move needs somebody's approval is a statement about the\norganisation's governance, and a team that could gate its own moves could\nalso ungate them."},"TeamStatusIn":{"properties":{"name":{"type":"string","title":"Name"},"state":{"$ref":"#/components/schemas/StateCategory","default":"in_progress"}},"type":"object","required":["name"],"title":"TeamStatusIn","description":"A status a board is adding for itself.\n\nIts state is here and `is_initial` is not. Exactly one status in a\nworkflow is where new work arrives, so a second one would not be a richer\nprocess, it would make \"where does new work go\" a guess on every board in\nthe account."},"TerminologyIn":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"plural":{"type":"string","title":"Plural","default":""}},"type":"object","required":["key","label"],"title":"TerminologyIn"},"ThankYouIn":{"properties":{"thank_you":{"type":"string","title":"Thank You","default":""},"thank_you_email":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thank You Email"}},"type":"object","title":"ThankYouIn"},"ThemeAssignIn":{"properties":{"response_id":{"type":"integer","title":"Response Id"},"theme_id":{"type":"integer","title":"Theme Id"},"attached":{"type":"boolean","title":"Attached","default":true}},"type":"object","required":["response_id","theme_id"],"title":"ThemeAssignIn"},"ThemeIn":{"properties":{"name":{"type":"string","title":"Name"},"colour":{"type":"string","title":"Colour","default":"#B2461E"}},"type":"object","required":["name"],"title":"ThemeIn"},"TickIn":{"properties":{"done":{"type":"boolean","title":"Done"}},"type":"object","required":["done"],"title":"TickIn","description":"A checklist item's whole status: done, or not yet."},"TokenIn":{"properties":{"name":{"type":"string","title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","default":[]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["name"],"title":"TokenIn"},"TrackerProvider":{"type":"string","enum":["jira","github","clickup","miro","asana","airtable","zoho_sprints","teamwork","aha","productboard","nifty","superhuman_docs","targetprocess","shortcut","azure_boards","linear","servicenow","monday","freshservice","gitlab","rally","trello","planner","zendesk","bmc_helix","manageengine","ivanti","solarwinds","sysaid","topdesk","haloitsm","easyvista","smartsheet","wrike","notion","basecamp","youtrack","agileplace","workfront","jira_align","smax","salesforce","redmine","openproject","ms_project","businessmap","freshdesk","zoho_desk","hubspot","dynamics","glpi","connectwise","autotask"],"title":"TrackerProvider","description":"Whose tracker is at the far end.\n\nTwo, and both are chosen because they are the two an organisation running\nthis product is most likely to already be running *beside* it: a Jira the\nbusiness reports out of, and a GitHub the engineers live in."},"TransitionIn":{"properties":{"to_state_id":{"type":"integer","title":"To State Id"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["to_state_id"],"title":"TransitionIn"},"UnauthoriseIn":{"properties":{"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"UnauthoriseIn","description":"Why a release is coming out from under this change."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValueStreamIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"entity_id":{"type":"integer","title":"Entity Id"},"budget_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"guardrail_notes":{"type":"string","title":"Guardrail Notes","default":""},"guardrail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guardrail"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["name","entity_id"],"title":"ValueStreamIn"},"VersionIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"release_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Release Date"}},"type":"object","required":["name"],"title":"VersionIn"},"VersionPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"release_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Release Date"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"}},"type":"object","title":"VersionPatch","description":"Read with `exclude_unset`, so a field left out is left alone and a field\nsent as null is cleared - the same rule a work item's patch follows."},"VoidIn":{"properties":{"reason":{"type":"string","maxLength":1000,"title":"Reason","default":""}},"type":"object","title":"VoidIn"},"VoteIn":{"properties":{"score":{"type":"integer","maximum":3.0,"minimum":-3.0,"title":"Score"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["score"],"title":"VoteIn"},"WatchIn":{"properties":{"watching":{"type":"boolean","title":"Watching"}},"type":"object","required":["watching"],"title":"WatchIn"},"WorkItemFromRequestIn":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"level_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Key"}},"type":"object","title":"WorkItemFromRequestIn","description":"What the work raised from a request is called, and on which rung.\nBoth optional: the request's subject on the ladder's working rung is\nthe right answer nearly every time."},"WorkItemIn":{"properties":{"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"acceptance_criteria":{"type":"string","title":"Acceptance Criteria","default":""},"level_key":{"type":"string","title":"Level Key","default":"story"},"parent_work_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Work Item Id"},"estimate_points":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimate Points"},"estimate_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Estimate Size"},"assignee_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assignee Id"},"sprint_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sprint Id"},"reporter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reporter Id"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"}},"type":"object","required":["title"],"title":"WorkItemIn"},"WorkItemLinkIn":{"properties":{"link_type_id":{"type":"integer","title":"Link Type Id"},"target_work_item_id":{"type":"integer","title":"Target Work Item Id"}},"type":"object","required":["link_type_id","target_work_item_id"],"title":"WorkItemLinkIn","description":"Tie this item to another one, for a reason the organisation has named."},"WorkItemParentIn":{"properties":{"parent_work_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Work Item Id"},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"initiative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initiative Id"}},"type":"object","title":"WorkItemParentIn","description":"Where an item should sit: one of three answers.\n\nA work item parent settles both the entity and the initiative by itself, so\nnaming one is enough. `initiative_id` puts the item under an initiative with\nnothing between, and `entity_id` puts it on the entity serving nothing at\nall - which is where work starts before anybody has justified it."},"WorkItemPatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"stakeholder_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stakeholder Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"acceptance_criteria":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acceptance Criteria"},"estimate_points":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimate Points"},"estimate_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Estimate Size"},"original_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Estimate"},"remaining_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remaining Estimate"},"assignee_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assignee Id"},"sprint_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sprint Id"},"reporter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reporter Id"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"fix_version_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fix Version Id"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"level_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Key"},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"}},"type":"object","title":"WorkItemPatch","description":"A partial edit: the fields named are the fields written.\n\nRead with `exclude_unset`, so a field left out is left alone and a field\nsent as null is *cleared* - unassigned, taken out of its sprint, un-sized.\nThe two are different intentions and a partial update has to be able to\ntell them apart, which is why absence rather than nullness is what means\n\"no opinion\"."},"WorkflowIn":{"properties":{"name":{"type":"string","title":"Name"},"copy_from":{"type":"integer","title":"Copy From"}},"type":"object","required":["name","copy_from"],"title":"WorkflowIn"},"WorkflowUpdateIn":{"properties":{"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["name"],"title":"WorkflowUpdateIn"},"WorklogIn":{"properties":{"duration":{"type":"string","title":"Duration"},"spent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Spent On"},"note":{"type":"string","title":"Note","default":""},"remaining_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remaining Estimate"},"adjust_remaining":{"type":"boolean","title":"Adjust Remaining","default":true}},"type":"object","required":["duration"],"title":"WorklogIn","description":"One sitting of work.\n\n`spent_on` defaults to today, because the common case is logging what you\nhave just done; the field exists because the second most common case is\nwriting up Friday on Monday."},"WorklogPatch":{"properties":{"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"},"spent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Spent On"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"WorklogPatch"},"app__api__admin__MoveIn":{"properties":{"to_state_id":{"type":"integer","title":"To State Id"},"name":{"type":"string","title":"Name","default":""},"gate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gate Id"}},"type":"object","required":["to_state_id"],"title":"MoveIn","description":"One move out of a status, as an administrator describes it."},"app__api__admin__PersonIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"is_account_admin":{"type":"boolean","title":"Is Account Admin","default":false},"status":{"$ref":"#/components/schemas/PersonStatus","default":"active"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["email","full_name"],"title":"PersonIn"},"app__api__adoption__AnswerIn":{"properties":{"scores":{"additionalProperties":{"type":"integer"},"type":"object","title":"Scores"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["scores"],"title":"AnswerIn"},"app__api__adoption__RoundIn":{"properties":{"group_id":{"type":"integer","title":"Group Id"},"name":{"type":"string","title":"Name","default":""},"dimensions":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Dimensions"},"per_person":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Per Person"},"invite_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Subject"},"invite_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Body"}},"type":"object","required":["group_id"],"title":"RoundIn"},"app__api__adoption__TargetIn":{"properties":{"kpi_id":{"type":"integer","title":"Kpi Id"},"target_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Value"},"target_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target Date"}},"type":"object","required":["kpi_id"],"title":"TargetIn"},"app__api__alerts__SourceIn":{"properties":{"name":{"type":"string","title":"Name"},"queue_id":{"type":"integer","title":"Queue Id"},"format":{"$ref":"#/components/schemas/AlertFormat","default":"generic"},"default_severity":{"$ref":"#/components/schemas/IncidentSeverity","default":"sev3"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name","queue_id"],"title":"SourceIn"},"app__api__assessments__AnswerIn":{"properties":{"assessment_factor_id":{"type":"integer","title":"Assessment Factor Id"},"sw_score":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":-3.0},{"type":"null"}],"title":"Sw Score"},"ot_score":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":-3.0},{"type":"null"}],"title":"Ot Score"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["assessment_factor_id","sw_score","ot_score"],"title":"AnswerIn"},"app__api__assessments__ArchiveIn":{"properties":{"archived":{"type":"boolean","title":"Archived","default":true}},"type":"object","title":"ArchiveIn","description":"Archive it, or put it back. One call, because it is one decision."},"app__api__automation__RuleIn":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"},"trigger":{"type":"string","title":"Trigger"},"conditions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Conditions","default":[]},"match_all":{"type":"boolean","title":"Match All","default":true},"enabled":{"type":"boolean","title":"Enabled","default":true},"actions":{"items":{"$ref":"#/components/schemas/ActionIn"},"type":"array","title":"Actions","default":[]}},"type":"object","required":["name","trigger"],"title":"RuleIn"},"app__api__automation__RuleOrderIn":{"properties":{"rule_ids":{"items":{"type":"integer"},"type":"array","title":"Rule Ids"}},"type":"object","required":["rule_ids"],"title":"RuleOrderIn"},"app__api__catalogue__DecisionIn":{"properties":{"approve":{"type":"boolean","title":"Approve"},"name":{"type":"string","title":"Name","default":""},"inward_label":{"type":"string","title":"Inward Label","default":""},"description":{"type":"string","title":"Description","default":""},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["approve"],"title":"DecisionIn"},"app__api__changemgmt__ArchiveIn":{"properties":{"archived":{"type":"boolean","title":"Archived","default":true}},"type":"object","title":"ArchiveIn","description":"Archive it, or put it back. One call, because it is one decision."},"app__api__changemgmt__DecisionIn":{"properties":{"verdict":{"$ref":"#/components/schemas/ApprovalVerdict"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["verdict"],"title":"DecisionIn"},"app__api__changerisk__RuleIn":{"properties":{"workflow_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Id"},"risk":{"$ref":"#/components/schemas/RiskLevel"},"change_type":{"anyOf":[{"$ref":"#/components/schemas/ChangeRequestType"},{"type":"null"}]},"gate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gate Id"}},"type":"object","required":["risk"],"title":"RuleIn"},"app__api__cmdb__ArchiveIn":{"properties":{"archived":{"type":"boolean","title":"Archived","default":true}},"type":"object","title":"ArchiveIn"},"app__api__collab__MoveIn":{"properties":{"entry_ids":{"items":{"type":"integer"},"type":"array","title":"Entry Ids"},"to_work_item_id":{"type":"integer","title":"To Work Item Id"}},"type":"object","required":["entry_ids","to_work_item_id"],"title":"MoveIn","description":"Lines that landed on the wrong item, and the right one."},"app__api__delivery__ArchiveIn":{"properties":{"archived":{"type":"boolean","title":"Archived","default":true}},"type":"object","title":"ArchiveIn","description":"Archive it, or put it back. One call, because it is one decision."},"app__api__discovery__SourceIn":{"properties":{"name":{"type":"string","title":"Name"},"entity_id":{"type":"integer","title":"Entity Id"},"format":{"$ref":"#/components/schemas/DiscoveryFormat","default":"generic"},"whole":{"type":"boolean","title":"Whole","default":true},"active":{"type":"boolean","title":"Active","default":true},"ignored_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ignored Types"}},"type":"object","required":["name","entity_id"],"title":"SourceIn"},"app__api__factors__TargetIn":{"properties":{"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"current_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Value"},"target_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Value"},"target_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target Date"},"achieved_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Achieved Value"}},"type":"object","title":"TargetIn"},"app__api__groups__ArchiveIn":{"properties":{"archived":{"type":"boolean","title":"Archived","default":true}},"type":"object","title":"ArchiveIn"},"app__api__initiatives__ArchiveIn":{"properties":{"archived":{"type":"boolean","title":"Archived","default":true}},"type":"object","title":"ArchiveIn","description":"Archive it, or put it back. One call, because it is one decision."},"app__api__mfa__VerifyIn":{"properties":{"challenge":{"type":"string","title":"Challenge"},"code":{"type":"string","title":"Code"},"device":{"anyOf":[{"$ref":"#/components/schemas/DeviceIn"},{"type":"null"}]}},"type":"object","required":["challenge","code"],"title":"VerifyIn"},"app__api__poker__RoundIn":{"properties":{"work_item_id":{"type":"integer","title":"Work Item Id"}},"type":"object","required":["work_item_id"],"title":"RoundIn"},"app__api__respond__AnswerIn":{"properties":{"assessment_factor_id":{"type":"integer","title":"Assessment Factor Id"},"sw_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sw Score"},"ot_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ot Score"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["assessment_factor_id","sw_score","ot_score"],"title":"AnswerIn"},"app__api__respondents__PersonIn":{"properties":{"email":{"type":"string","title":"Email"},"full_name":{"type":"string","title":"Full Name","default":""}},"type":"object","required":["email"],"title":"PersonIn","description":"One address, with a name when the inviter has one."},"app__api__servicedesk__RuleIn":{"properties":{"kind":{"type":"string","title":"Kind"},"value":{"type":"string","title":"Value"},"queue_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Id"},"priority":{"anyOf":[{"$ref":"#/components/schemas/RequestPriority"},{"type":"null"}]},"assignee_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assignee Id"}},"type":"object","required":["kind","value"],"title":"RuleIn"},"app__api__servicedesk__RuleOrderIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"}},"type":"object","required":["ids"],"title":"RuleOrderIn"},"app__api__signup__VerifyIn":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyIn"}},"securitySchemes":{"session":{"type":"apiKey","description":"The cookie a browser holds after signing in. Programs use a token.","in":"cookie","name":"dillic_session"},"token":{"type":"http","description":"An access token, sent as `Authorization: Bearer dlc_pat_...`. A person makes their own under Access tokens; an administrator installs an app under Administration for a program that is nobody in particular.","scheme":"bearer"}}}}