{"openapi":"3.1.0","info":{"title":"Odotify API","description":"The one public API behind the Odotify dashboard, white-label portal, API keys and MCP server (FR-API-001).","version":"0.1.0"},"paths":{"/v1/me":{"get":{"tags":["me"],"summary":"Get Me","description":"The signed-in user and the organizations they can switch between (FR-ACC-005).","operationId":"getMe","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"tags":["me"],"summary":"Update Me","description":"Save the signed-in user's own preferences, such as the dashboard language.","operationId":"updateMe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs":{"get":{"tags":["organizations"],"summary":"List Orgs","operationId":"listOrgs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgWithRole"},"title":"Response Listorgs"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["organizations"],"summary":"Create Org","description":"Create an organization. The caller becomes its owner.","operationId":"createOrg","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Replays return the first result","title":"Idempotency-Key"},"description":"Replays return the first result"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Org"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}":{"get":{"tags":["organizations"],"summary":"Get Org","operationId":"getOrg","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Org"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"tags":["organizations"],"summary":"Update Org","description":"Rename the organization. Owners can also require two-factor sign-in for all members\nand change the data residency, which limits where new servers can be created.","operationId":"updateOrg","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Org"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/members":{"get":{"tags":["members"],"summary":"List Members","operationId":"listMembers","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Member"},"title":"Response Listmembers"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/members/{membership_id}":{"patch":{"tags":["members"],"summary":"Update Member","description":"Change a member's role or scope. An organization always keeps at least one owner.","operationId":"updateMember","parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["members"],"summary":"Remove Member","description":"Remove a member. Destructive: reachable only from a signed-in dashboard session.","operationId":"removeMember","parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/invitations":{"get":{"tags":["members"],"summary":"List Invitations","operationId":"listInvitations","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"},"title":"Response Listinvitations"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["members"],"summary":"Create Invitation","description":"Invite someone by email with a pre-selected role and scope (FR-ACC-004).\n\nReturns 202 with the job that sends the email; the invitation expires after\nthe configured time to live.","operationId":"createInvitation","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Replays return the first result","title":"Idempotency-Key"},"description":"Replays return the first result"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreated"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/invitations/{invitation_id}":{"delete":{"tags":["members"],"summary":"Revoke Invitation","operationId":"revokeInvitation","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invitation Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/invitations/accept":{"post":{"tags":["members"],"summary":"Accept Invitation","description":"Join an organization with the token from an invitation email.\n\nThe signed-in user's email must match the address the invitation was sent to.","operationId":"acceptInvitation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationAccept"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgWithRole"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/audit-events":{"get":{"tags":["audit"],"summary":"List Audit Events","description":"The organization's audit log, newest first, filterable as FR-AUD-003 requires.","operationId":"listAuditEvents","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"actor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact action, or a prefix ending in `.*`","title":"Action"},"description":"Exact action, or a prefix ending in `.*`"},{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AuditEvent_"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/audit-events/verify":{"get":{"tags":["audit"],"summary":"Verify Audit Chain","description":"Recompute the hash chain to prove no audit row was altered or removed.","operationId":"verifyAuditChain","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditVerification"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/jobs":{"get":{"tags":["jobs"],"summary":"List Jobs","operationId":"listJobs","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Job_"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","description":"A job with its steps, timings and, on failure, the reason and the fix (FR-SRV-029).","operationId":"getJob","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDetail"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/attach-key":{"get":{"tags":["servers"],"summary":"Get Attach Key","description":"The organization's SSH public key, created on first request and never\nreplaced silently. Run `setup_command` as root on the server: it creates\n`ssh_user`, the user Odotify always attaches as, with this key and\npasswordless sudo.","operationId":"getAttachKey","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachKey"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers":{"get":{"tags":["servers"],"summary":"List Servers","operationId":"listServers","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Server"},"title":"Response Listservers"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["servers"],"summary":"Attach Server","description":"Attach an existing Ubuntu or Debian server over SSH (FR-SRV-011).\n\nOdotify logs in with the organization's attach key before answering. If it\ncannot log in or become root, the request fails with `ssh_key_refused`,\n`ssh_unreachable`, `sudo_needs_password` or `host_key_changed`, and\n`details.remedy` says what to change. Otherwise it returns 202 with the\nprovisioning job (preflight, baseline, agent).","operationId":"attachServer","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Replays return the first result","title":"Idempotency-Key"},"description":"Replays return the first result"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAttach"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAttached"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}":{"get":{"tags":["servers"],"summary":"Get Server","operationId":"getServer","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["servers"],"summary":"Detach Server","description":"Detach a server with no instances. An attached host is left untouched\n(204). A server Odotify created at a cloud provider is destroyed and its\nbilling stops: that runs as a job (202 with `job_id`).","operationId":"detachServer","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"202":{"description":"Cloud server: deletion job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}/metrics":{"get":{"tags":["servers"],"summary":"Get Server Metrics","description":"CPU, memory, disk, network and PostgreSQL connections over a time range,\nfrom the agent's one-minute samples (kept 30 days). Longer ranges come in\nlarger buckets: 1 minute for 1h, up to 4 hours for 30d.","operationId":"getServerMetrics","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"range","in":"query","required":false,"schema":{"enum":["1h","6h","24h","7d","14d","30d"],"type":"string","default":"24h","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerMetrics"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}/retry":{"post":{"tags":["servers"],"summary":"Retry Provisioning","description":"Run provisioning again after fixing what the failed job reported.","operationId":"retryServerProvisioning","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}/agent-update":{"post":{"tags":["servers"],"summary":"Update Agent","description":"Install the newest agent release on the server. The agent checks the\ndownload against the release's SHA-256, replaces itself and restarts; the\njob finishes when it reports the new version. Instances keep running.","operationId":"updateServerAgent","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}/postgres":{"get":{"tags":["servers"],"summary":"Get Postgres","description":"The tunable PostgreSQL parameters as the agent last reported them (FR-DBO-001).","operationId":"getServerPostgres","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerPostgres"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["servers"],"summary":"Apply Postgres","description":"Change PostgreSQL parameters (FR-DBO-002). Changes that need a restart are\nrefused with 409 unless confirm_restart is set; a value PostgreSQL rejects, or\none it cannot start with, is undone.","operationId":"applyServerPostgres","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostgresApply"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances":{"get":{"tags":["instances"],"summary":"List Instances","operationId":"listInstances","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"server_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Instance"},"title":"Response Listinstances"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["instances"],"summary":"Create Instance","description":"Create an Odoo instance on an active server (FR-INV-001).\n\nReturns 202 with the creation job and the initial admin password, which is\nshown only in this response. The instance gets a platform subdomain with a\nTLS certificate and the default backup schedule (daily, keep seven).","operationId":"createInstance","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Replays return the first result","title":"Idempotency-Key"},"description":"Replays return the first result"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceCreated"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}":{"get":{"tags":["instances"],"summary":"Get Instance","operationId":"getInstance","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceDetail"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["instances"],"summary":"Delete Instance","description":"Delete an instance and everything it has, in any state but creating\n(FR-INS-016): container, database, files, backups, certificates and its\nplatform DNS record. Type the instance's name to confirm. Not reversible.","operationId":"deleteInstance","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmName"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/restart":{"post":{"tags":["instances"],"summary":"Restart Instance","operationId":"restartInstance","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/backups":{"get":{"tags":["instances"],"summary":"List Backups","operationId":"listBackups","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Backup"},"title":"Response Listbackups"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["backups"],"summary":"Run Backup","description":"Take an on-demand backup now (FR-BAK-005). Kept until deleted by hand.","operationId":"runBackup","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/backups/{backup_id}/download":{"post":{"tags":["instances"],"summary":"Download Backup","description":"A short-lived link to download one backup archive from managed storage\n(FR-WLB-003). Every download is written to the audit log.","operationId":"downloadBackup","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Backup Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupDownload"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/history":{"get":{"tags":["instances"],"summary":"Instance History","description":"The instance's status history: each problem it had and when it cleared.","operationId":"getInstanceHistory","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Alert"},"title":"Response Getinstancehistory"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/staging":{"post":{"tags":["instances"],"summary":"Create Staging","description":"Make a staging copy of a production instance (FR-STG-001).\n\nThe copy is restored from a fresh backup of production and neutralized before\nit starts: outgoing mail, scheduled actions and payment providers are off.","operationId":"createStaging","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Replays return the first result","title":"Idempotency-Key"},"description":"Replays return the first result"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagingCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceCreated"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/refresh":{"post":{"tags":["instances"],"summary":"Refresh Staging","description":"Replace a staging copy's data with a fresh, neutralized copy of production\n(FR-STG-004). Type the staging instance's name to confirm.","operationId":"refreshStaging","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmName"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/alerts":{"get":{"tags":["instances"],"summary":"List Alerts","operationId":"listAlerts","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"include_resolved","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Resolved"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Alert"},"title":"Response Listalerts"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/backup-destinations":{"get":{"tags":["backups"],"summary":"List Destinations","operationId":"listBackupDestinations","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Destination"},"title":"Response Listbackupdestinations"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["backups"],"summary":"Create Destination","description":"Add your own S3, GCS, Azure or SFTP storage (FR-BAK-004).\n\nCredentials are encrypted and only ever sent to your servers' agents. A\nconnection test runs from every active server; for SFTP, add the returned\npublic key to the account first, then run the test.","operationId":"createBackupDestination","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationSaved"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/backup-destinations/{destination_id}":{"patch":{"tags":["backups"],"summary":"Update Destination","operationId":"updateBackupDestination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Destination Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationSaved"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["backups"],"summary":"Delete Destination","description":"Remove a destination no schedule uses. Archives already stored there are kept.","operationId":"deleteBackupDestination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Destination Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmName"}}}},"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/backup-destinations/{destination_id}/test":{"post":{"tags":["backups"],"summary":"Test Destination","description":"Write, read back and delete a test file from every active server (FR-BAK-006).","operationId":"testBackupDestination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Destination Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/backup-usage":{"get":{"tags":["backups"],"summary":"Backup Usage","operationId":"getBackupUsage","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupUsage"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/backup-schedules":{"post":{"tags":["backups"],"summary":"Create Schedule","description":"Add a schedule (FR-BAK-001). Keep either a number of backups or of days.","operationId":"createBackupSchedule","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupScheduleIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaved"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/backup-schedules/{schedule_id}":{"put":{"tags":["backups"],"summary":"Update Schedule","operationId":"updateBackupSchedule","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupScheduleIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaved"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["backups"],"summary":"Delete Schedule","description":"Stop a schedule. Its existing backups stay until deleted.","operationId":"deleteBackupSchedule","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSaved"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/backups/{backup_id}":{"patch":{"tags":["backups"],"summary":"Update Backup","operationId":"updateBackup","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Backup Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupNote"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Backup"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["backups"],"summary":"Delete Backup","description":"Delete a backup's archive from the server and its destination (FR-BAK-016).","operationId":"deleteBackup","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Backup Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/backups/{backup_id}/restore":{"post":{"tags":["backups"],"summary":"Restore Backup","description":"Restore a backup into this instance or into a new one (FR-BAK-014, FR-BAK-015).\n\nRestoring over this instance replaces its database and files. It is only\npossible from the dashboard, needs the instance's name typed to confirm, and\ntakes a safety backup first; the old data is kept until the restored instance\nanswers, and put back if anything fails.","operationId":"restoreBackup","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Backup Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/domains":{"post":{"tags":["domains"],"summary":"Add Domain","description":"Add your own domain (FR-DOM-001). Point an A record at the server first:\nOdotify checks DNS, then requests the certificate. Names that do not point\nhere yet wait, and each shows what to change.","operationId":"addDomain","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainChanged"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/domains/{domain_id}":{"patch":{"tags":["domains"],"summary":"Update Domain","description":"Make a domain primary, or make it redirect to the primary (FR-DOM-004).","operationId":"updateDomain","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Domain Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainUpdate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainChanged"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["domains"],"summary":"Remove Domain","operationId":"removeDomain","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Domain Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainChanged"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/domains/check":{"post":{"tags":["domains"],"summary":"Check Domains","description":"Check DNS again and request certificates for names that now point here.","operationId":"checkDomains","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/repository":{"get":{"tags":["deploys"],"summary":"Get Repository","operationId":"getRepository","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Repository"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["deploys"],"summary":"Set Repository","description":"Connect a Git repository of custom addons (FR-GIT-001).\n\nAdd the returned public key as a read-only deploy key, and the webhook URL with\nthe secret (shown once) to the repository's push webhooks: GitHub sends it as\nthe signing secret, GitLab as the token.","operationId":"setRepository","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositorySaved"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["deploys"],"summary":"Delete Repository","description":"Disconnect the repository. The deployed code keeps running.","operationId":"deleteRepository","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/deployments":{"get":{"tags":["deploys"],"summary":"List Deployments","operationId":"listDeployments","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Deployment"},"title":"Response Listdeployments"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["deploys"],"summary":"Deploy","description":"Deploy the branch's latest commit, or any commit by sha (a rollback).\n\nModules whose files changed are upgraded. A database backup is taken first;\nif the upgrade fails, the previous code and database come back.","operationId":"deploy","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/deployments/{deployment_id}":{"get":{"tags":["deploys"],"summary":"Get Deployment","operationId":"getDeployment","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deployment Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDetail"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/billing":{"get":{"tags":["billing"],"summary":"Get Billing","description":"Plan, billing standing, usage against the plan's limits and managed\nbackup storage so far this period (FR-BIL-002, FR-BIL-006).","operationId":"getBilling","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/billing/checkout":{"post":{"tags":["billing"],"summary":"Start Checkout","description":"Subscribe to a paid plan through Stripe Checkout. Send the user to `url`.\n\nAny trial time left carries over: the card is saved now and charged when the\ntrial ends, unless `start_now`. Prices include VAT where it applies; business\ncustomers in the EU can enter a VAT number for the reverse charge.","operationId":"startCheckout","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrl"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/billing/change":{"post":{"tags":["billing"],"summary":"Change Plan","description":"Upgrade, downgrade or switch between monthly and yearly billing.\n\nUpgrades and period changes are charged at once, prorated; downgrades are\ncredited on the next invoice. A smaller plan must hold what already runs.","operationId":"changePlan","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/billing/cancel":{"post":{"tags":["billing"],"summary":"Cancel Subscription","description":"Cancel at the end of the paid period, or keep the plan after all. When it\nends the organization moves to the free plan; nothing is deleted.","operationId":"cancelSubscription","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/billing/portal":{"post":{"tags":["billing"],"summary":"Open Portal","description":"The Stripe customer portal: card, billing address, VAT number, invoices,\nplan changes and cancellation.","operationId":"openBillingPortal","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrl"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/api-keys":{"get":{"tags":["api keys"],"summary":"List Api Keys","operationId":"listApiKeys","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"},"title":"Response Listapikeys"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["api keys"],"summary":"Create Api Key","description":"Create an API key (FR-API-003). The secret is returned this once.\n\nThe key acts with `role`, optionally narrowed to servers or instances, and\nstops working if you stop being an owner or admin. Keys cannot delete\nanything: destructive operations need a signed-in person.","operationId":"createApiKey","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/api-keys/{key_id}":{"delete":{"tags":["api keys"],"summary":"Revoke Api Key","description":"Revoke a key at once. It stays listed, marked revoked, for the audit trail.","operationId":"revokeApiKey","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/webhooks/events":{"get":{"tags":["webhooks"],"summary":"List Events","description":"The event types an endpoint can subscribe to.","operationId":"listWebhookEvents","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Listwebhookevents"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","operationId":"listWebhooks","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"},"title":"Response Listwebhooks"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["webhooks"],"summary":"Create Webhook","description":"Add an endpoint (FR-API-011). Each request is signed:\n`Odotify-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">` with the\nsigning secret returned here once. Failed deliveries are retried for about a day.","operationId":"createWebhook","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreated"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/webhooks/{webhook_id}":{"patch":{"tags":["webhooks"],"summary":"Update Webhook","operationId":"updateWebhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["webhooks"],"summary":"Delete Webhook","operationId":"deleteWebhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/webhooks/{webhook_id}/deliveries":{"get":{"tags":["webhooks"],"summary":"List Deliveries","description":"The latest 50 deliveries, newest first.","operationId":"listWebhookDeliveries","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"},"title":"Response Listwebhookdeliveries"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/webhooks/{webhook_id}/test":{"post":{"tags":["webhooks"],"summary":"Test Webhook","description":"Queue a `ping` event to the endpoint.","operationId":"testWebhook","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/webhooks/{webhook_id}/deliveries/{delivery_id}/replay":{"post":{"tags":["webhooks"],"summary":"Replay Delivery","description":"Send a past event again, with the same event id.","operationId":"replayWebhookDelivery","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delivery Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/options":{"get":{"tags":["cloud servers"],"summary":"Cloud Options","description":"What can be created: locations allowed by the organization's data\nresidency, the sizes Odotify provides, and the organization's own credentials.","operationId":"getCloudOptions","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudOptions"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/credentials":{"post":{"tags":["cloud servers"],"summary":"Add Credential","description":"Save a Hetzner Cloud API token (read and write) so Odotify can create\nservers in your own Hetzner project. The token is checked, then encrypted.","operationId":"addCloudCredential","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCredentialCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCredential"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/credentials/{credential_id}":{"delete":{"tags":["cloud servers"],"summary":"Delete Credential","description":"Remove a cloud credential. A linked account is also revoked at the provider.","operationId":"deleteCloudCredential","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/credentials/{credential_id}/catalog":{"get":{"tags":["cloud servers"],"summary":"Cloud Catalog","description":"Regions and sizes this cloud account can create a server in, loaded from\nthe provider (DigitalOcean) and kept for ten minutes. Other providers answer\n422 catalog_not_available; type their size instead.","operationId":"getCloudCatalog","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCatalog"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/oauth/{provider}/start":{"post":{"tags":["cloud servers"],"summary":"Start Oauth","description":"Link a cloud account over OAuth (DigitalOcean). Send the browser to the\nreturned URL; the provider sends it back to the dashboard, which completes\nthe link with POST /v1/cloud/oauth/complete. Valid for 15 minutes.","operationId":"startCloudOAuth","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudOAuthStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudOAuthStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/aws":{"post":{"tags":["cloud servers"],"summary":"Start Aws Link","description":"Link an AWS account (ADR 0021). Returns a CloudFormation template that\ncreates a role trusting Odotify with an external id made for this link.\nDeploy it in your account, then send the role ARN to\nPUT /cloud/aws/{credential_id}. Odotify never holds an AWS key of yours.","operationId":"startAwsLink","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsLinkStart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsLink"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/aws/{credential_id}":{"get":{"tags":["cloud servers"],"summary":"Get Aws Link","description":"The template and external id of an AWS link again, to finish or redo it.","operationId":"getAwsLink","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsLink"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["cloud servers"],"summary":"Complete Aws Link","description":"Send the ARN of the role the template created. Odotify assumes it once to\ncheck it, then the account can be used to create servers.","operationId":"completeAwsLink","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsLinkComplete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCredential"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/gcp":{"post":{"tags":["cloud servers"],"summary":"Start Gcp Link","description":"Link a Google Cloud project (ADR 0024). Returns gcloud commands that\ncreate a service account with an id made for this link, give it a custom\nrole limited to Compute Engine, and let Odotify's service account act as\nit. Run them in your project, then send the project id to\nPUT /cloud/gcp/{credential_id}. Odotify never holds a key of yours.","operationId":"startGcpLink","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpLinkStart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpLink"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/gcp/{credential_id}":{"get":{"tags":["cloud servers"],"summary":"Get Gcp Link","description":"The setup commands of a Google Cloud link again, to finish or redo it.","operationId":"getGcpLink","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpLink"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["cloud servers"],"summary":"Complete Gcp Link","description":"Send the id of the project you ran the commands in. Odotify acts as the\nservice account once to check it, then the project can be used to create\nservers.","operationId":"completeGcpLink","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpLinkComplete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCredential"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/azure":{"post":{"tags":["cloud servers"],"summary":"Start Azure Link","description":"Link an Azure subscription (ADR 0031). Returns Azure CLI commands that\nadd Odotify's Microsoft Entra app to your tenant, create a resource group\nwith a name made for this link, and give the app Contributor on that\nresource group only. Run them, then send the subscription and tenant ids to\nPUT /cloud/azure/{credential_id}. Odotify never holds a key of yours.","operationId":"startAzureLink","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AzureLinkStart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AzureLink"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/cloud/azure/{credential_id}":{"get":{"tags":["cloud servers"],"summary":"Get Azure Link","description":"The setup commands of an Azure link again, to finish or redo it.","operationId":"getAzureLink","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AzureLink"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["cloud servers"],"summary":"Complete Azure Link","description":"Send the subscription and tenant ids the commands printed. Odotify signs\nin to your tenant and reads the resource group once to check it, then the\nsubscription can be used to create servers.","operationId":"completeAzureLink","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AzureLinkComplete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCredential"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/cloud":{"post":{"tags":["cloud servers"],"summary":"Create Cloud Server","description":"Create a cloud server and provision it (FR-SRV-010).\n\nWith `offer_id`, Odotify provides the server (Hetzner) and bills it monthly\nwith your subscription. With `credential_id` and `server_type`, it is created\nin that cloud account of yours (Hetzner, DigitalOcean, Vultr, Akamai, AWS, Google\nCloud or Azure)\nand the provider bills you. Returns 202 with the job.","operationId":"createCloudServer","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Replays return the first result","title":"Idempotency-Key"},"description":"Replays return the first result"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudServerCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAttached"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/cloud/oauth/complete":{"post":{"tags":["cloud servers"],"summary":"Complete Oauth","description":"Finish linking a cloud account: the dashboard's callback page sends the\nstate and code the provider returned. Only the person who started the link\ncan finish it, and only once.","operationId":"completeCloudOAuth","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudOAuthComplete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudOAuthCompleted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/partners":{"get":{"tags":["agency"],"summary":"List Partners","description":"Instances this organization lends to partners, the ones it borrows, and\nthe code a partner needs to share instances with it (FR-ACC-006).","operationId":"listPartners","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Partners"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["agency"],"summary":"Grant Access","description":"Lend named instances to a partner organization with a role (operator,\ndeveloper or viewer). Its members get that role on those instances, never\nmore than their own role at the partner. Nothing is copied or moved.","operationId":"grantPartnerAccess","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrant"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/partners/{grant_id}":{"patch":{"tags":["agency"],"summary":"Update Access","operationId":"updatePartnerAccess","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrant"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["agency"],"summary":"Revoke Access","description":"Take the access back. It ends on the partner's next request.","operationId":"revokePartnerAccess","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instance-templates":{"get":{"tags":["agency"],"summary":"List Templates","operationId":"listInstanceTemplates","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstanceTemplate"},"title":"Response Listinstancetemplates"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["agency"],"summary":"Create Template","description":"Save what new instances start with (FR-TPL-001). Create an instance from\nit with `template_id` on POST /instances.","operationId":"createInstanceTemplate","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTemplateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTemplate"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instance-templates/{template_id}":{"put":{"tags":["agency"],"summary":"Update Template","operationId":"updateInstanceTemplate","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTemplateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTemplate"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["agency"],"summary":"Delete Template","operationId":"deleteInstanceTemplate","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instance-templates/{template_id}/default":{"put":{"tags":["agency"],"summary":"Set Default Template","description":"Make it the template the dashboard picks first (FR-TPL-002).","operationId":"setDefaultInstanceTemplate","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTemplate"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/branding":{"get":{"tags":["agency"],"summary":"Get Branding","description":"The white-label profile: what clients see on the portal and in emails.","operationId":"getBranding","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Branding"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["agency"],"summary":"Update Branding","description":"Set the product name, colour, support contacts, the portal's own hostname\n(CNAME it to the address shown) and the sender for client emails (verify it\nwith the DNS records shown). Needs the Agency plan.","operationId":"updateBranding","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Branding"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/branding/image":{"put":{"tags":["agency"],"summary":"Set Branding Image","description":"Upload the logo, the logo for dark backgrounds, or the favicon (256 KB at most).","operationId":"setBrandingImage","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingImage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Branding"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/branding/check":{"post":{"tags":["agency"],"summary":"Check Branding","description":"Look again at the portal hostname and the sender domain's DNS records.","operationId":"checkBranding","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Branding"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/fleet":{"get":{"tags":["agency"],"summary":"Get Fleet","description":"Every instance you can reach, in every organization you work in or that a\npartner lends to one of yours, with one health verdict each (FR-MON-008).","operationId":"getFleet","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fleet"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/portal/branding":{"get":{"tags":["portal"],"summary":"Portal Branding","description":"Public: the branding for a portal hostname. 404 for any other name.","operationId":"getPortalBranding","parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":253,"description":"The portal's hostname","title":"Host"},"description":"The portal's hostname"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalBranding"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/portal/assets/{org_id}/{kind}":{"get":{"tags":["portal"],"summary":"Portal Asset","description":"Public: one of an agency's portal images.","operationId":"getPortalAsset","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["logo","logo_dark","favicon"],"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/email":{"get":{"tags":["platform"],"summary":"Get Email Settings","description":"The provider Odotify sends all its email through: sign-up codes,\ninvitations, alerts and billing notices.","operationId":"getEmailSettings","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSettings"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["platform"],"summary":"Update Email Settings","description":"Choose the provider. The password or API key is encrypted and never shown again.","operationId":"updateEmailSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSettings"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/email/test":{"post":{"tags":["platform"],"summary":"Send Test Email","description":"Send a test message with the saved setting and report the provider's answer.","operationId":"sendTestEmail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEmail"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/customers":{"get":{"tags":["platform"],"summary":"List Customers","description":"Every organization on the platform, newest first, with its plan, billing\nstanding and size. Platform admins only.","operationId":"listCustomers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Customer"},"type":"array","title":"Response Listcustomers"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/customers/{org_id}":{"get":{"tags":["platform"],"summary":"Get Customer","description":"One customer's members, servers, instances, billing and recent audit log,\nread only. Platform admins only.","operationId":"getCustomer","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDetail"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/customers/{org_id}/members/{user_id}/verify-email":{"post":{"tags":["platform"],"summary":"Verify Customer Email","description":"Mark a member's sign-in email as confirmed, for someone whose code never\narrived. Recorded in the customer's audit log as `member.email_verified`\nwith actor type `operator`. Platform admins only.","operationId":"verifyCustomerEmail","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerMember"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/customers/{org_id}/support-session":{"post":{"tags":["platform"],"summary":"Start Support Session","description":"Open the customer's organization with the admin role, for `minutes`\n(60 by default, at most 240). The reason and the start go into the\ncustomer's audit log, and so does everything done during the session,\nwith actor type `operator`. Platform admins only.","operationId":"startSupportSession","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportSessionStart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportSession"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["platform"],"summary":"End Support Session","description":"End your support session in this customer's organization now.","operationId":"endSupportSession","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/enterprise/packages":{"get":{"tags":["platform"],"summary":"List Platform Enterprise Packages","description":"The Enterprise packages shared with every customer, newest first per\nOdoo major. Platform admins only.","operationId":"listPlatformEnterprisePackages","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EnterprisePackage"},"type":"array","title":"Response Listplatformenterprisepackages"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["platform"],"summary":"Create Platform Enterprise Package","description":"Upload an Odoo Enterprise package (.deb or source .tar.gz from\nodoo.com/page/download) that every customer can use once they accept the\nEnterprise terms. PUT the file to the returned link, then call\nmarkPlatformEnterprisePackageUploaded. A newer upload for the same major\nreplaces the older one. Platform admins only.","operationId":"createPlatformEnterprisePackage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePackageCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePackageStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/enterprise/packages/{package_id}/uploaded":{"post":{"tags":["platform"],"summary":"Mark Platform Enterprise Package Uploaded","description":"Say the upload finished. Odotify checks the file arrived, at its size,\nand offers it to every customer for its Odoo major.","operationId":"markPlatformEnterprisePackageUploaded","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePackage"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/enterprise/packages/{package_id}":{"delete":{"tags":["platform"],"summary":"Delete Platform Enterprise Package","description":"Stop sharing a package. Instances keep the Enterprise modules they have;\nnew Enterprise instances of that major need another source.","operationId":"deletePlatformEnterprisePackage","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Package Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/plans":{"get":{"tags":["platform"],"summary":"List Platform Plans","description":"Every plan, in display order, with its Stripe product and price.\nPlatform admins only.","operationId":"listPlatformPlans","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlatformPlan"},"type":"array","title":"Response Listplatformplans"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["platform"],"summary":"Create Platform Plan","description":"Add a plan and create its Stripe product and monthly USD price. If\nStripe refuses, the plan is still saved and sync_error says why.","operationId":"createPlatformPlan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformPlanCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformPlan"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/plans/{code}":{"put":{"tags":["platform"],"summary":"Update Platform Plan","description":"Change a plan. Limits and features apply at once to everyone on it. A\nnew price creates a new Stripe price and archives the old one: customers\nalready subscribed keep paying the old price until they change plans.","operationId":"updatePlatformPlan","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformPlanFields"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformPlan"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/plans/{code}/sync":{"post":{"tags":["platform"],"summary":"Sync Platform Plan","description":"Push the plan to Stripe again, for example after Stripe was set up.","operationId":"syncPlatformPlan","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformPlan"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/stripe":{"get":{"tags":["platform"],"summary":"Get Stripe Connection","description":"Which Stripe account Odotify bills through, and whether its webhook is ready.","operationId":"getStripeConnection","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnection"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["platform"],"summary":"Connect Stripe","description":"Connect a Stripe account with its secret or restricted key. Odotify checks\nthe key, creates the webhook endpoint for billing events and stores both\nsecrets encrypted. Replaces any account connected before.","operationId":"connectStripe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnect"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnection"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["platform"],"summary":"Disconnect Stripe","description":"Disconnect the account and remove the webhook Odotify created. Billing\nfalls back to the ODOTIFY_STRIPE_* variables, if any. Subscriptions in Stripe\nare not touched.","operationId":"disconnectStripe","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnection"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/discounts":{"get":{"tags":["platform"],"summary":"List Discount Codes","description":"The latest 100 discount codes, newest first, with how often each was used.\nPlatform admins only.","operationId":"listDiscountCodes","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DiscountCode"},"type":"array","title":"Response Listdiscountcodes"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["platform"],"summary":"Create Discount Codes","description":"Make discount codes in Stripe: one code you type, or a batch of random\nones sharing the same discount. Customers enter them on the checkout page.","operationId":"createDiscountCodes","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountCodeCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DiscountCode"},"type":"array","title":"Response Creatediscountcodes"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/platform/discounts/{code_id}/active":{"put":{"tags":["platform"],"summary":"Set Discount Code Active","description":"Turn a code off so checkout refuses it, or back on. Customers who already\nused it keep their discount.","operationId":"setDiscountCodeActive","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountCodeActive"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountCode"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/insights/statements":{"get":{"tags":["database"],"summary":"Get Statements","description":"The slow-query report from pg_stat_statements (FR-DBO-004), as the agent\nlast reported it. Query text is normalized and every literal is redacted on\nthe server, so no business data is included (FR-DBO-005).","operationId":"getSlowQueries","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["total_time","mean_time","calls","temp_usage"],"type":"string","default":"total_time","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statements"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/insights/activity":{"get":{"tags":["database"],"summary":"Get Activity","description":"Live statements, idle transactions and lock waits from the last refresh\n(FR-DBO-007). Refresh with kinds=[\"activity\"] for a current view.","operationId":"getRunningStatements","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/insights/indexes":{"get":{"tags":["database"],"summary":"Get Index Health","description":"Unused, duplicate and invalid indexes, foreign keys without a supporting\nindex, and tables read mostly by sequential scans (FR-DBO-008).","operationId":"getIndexHealth","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexHealth"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/insights/indexes/{name}":{"get":{"tags":["database"],"summary":"Get Index Status","description":"One index's last checked status (FR-DBO-009); 404 until it was checked\nwith a refresh naming the index.","operationId":"getIndexStatus","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexStatus"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/insights/plans/{queryid}":{"get":{"tags":["database"],"summary":"Get Plan","description":"A statement's generic plan (FR-DBO-006); 404 until it was planned with a\nrefresh naming the queryid. Planning never runs the statement.","operationId":"getQueryPlan","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"queryid","in":"path","required":true,"schema":{"type":"string","title":"Queryid"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryPlan"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/insights/refresh":{"post":{"tags":["database"],"summary":"Refresh","description":"Ask the agent for a fresh report, a statement's plan or an index's status.\nReturns a job; when it succeeds, read the report again.","operationId":"refreshInsights","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightRefresh"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/db-changes/create-index":{"post":{"tags":["database"],"summary":"Propose Create Index","description":"Propose an index, built online with CREATE INDEX CONCURRENTLY\n(FR-DBO-010). It waits for approval in the dashboard (FR-DBO-012), unless a\nperson with approval rights sets approve from the dashboard.","operationId":"proposeCreateIndex","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DbChangeStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/db-changes/drop-index":{"post":{"tags":["database"],"summary":"Propose Drop Index","description":"Propose dropping an index with DROP INDEX CONCURRENTLY. The result keeps\nthe exact SQL to recreate it (FR-DBO-011). Constraint indexes are refused.","operationId":"proposeDropIndex","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexDrop"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DbChangeStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}/db-changes/postgres":{"post":{"tags":["database"],"summary":"Propose Postgres","description":"Propose PostgreSQL parameter changes. A person approves them by typing\nthe server's name; changes needing a restart say so.","operationId":"proposePostgresChange","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostgresProposal"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DbChange"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/db-changes":{"get":{"tags":["database"],"summary":"List Db Changes","operationId":"listDbChanges","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","approved","rejected","expired","succeeded","failed"],"type":"string"},{"type":"null"}],"title":"State"}},{"name":"instance_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DbChange"},"title":"Response Listdbchanges"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/db-changes/{change_id}":{"get":{"tags":["database"],"summary":"Get Db Change","operationId":"getDbChange","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DbChange"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/db-changes/{change_id}/approve":{"post":{"tags":["database"],"summary":"Approve Db Change","description":"Approve and run a proposed change. Dashboard sessions only: API keys and\nassistants can propose, never approve.","operationId":"approveDbChange","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeApprove"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DbChangeStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/db-changes/{change_id}/reject":{"post":{"tags":["database"],"summary":"Reject Db Change","operationId":"rejectDbChange","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeReject"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DbChange"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/oauth/login":{"get":{"tags":["assistants"],"summary":"Accept Login","description":"Hydra's login step: the person is signed in to the dashboard (Kratos), so\ntell Hydra who they are. The dashboard page sends them to sign in first.","operationId":"acceptOAuthLogin","parameters":[{"name":"login_challenge","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":8192,"title":"Login Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Redirect"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/oauth/consent":{"get":{"tags":["assistants"],"summary":"Get Consent","description":"What the assistant asks for, in plain language, and the organizations the\nperson may connect it to (FR-MCP-003).","operationId":"getOAuthConsent","parameters":[{"name":"consent_challenge","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":8192,"title":"Consent Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentInfo"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assistants"],"summary":"Accept Consent","description":"Connect the assistant to one organization with the scopes the person\nkept. Writing is dropped for roles that cannot write (FR-MCP-012).","operationId":"acceptOAuthConsent","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentAccept"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Redirect"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/oauth/consent/reject":{"post":{"tags":["assistants"],"summary":"Reject Consent","operationId":"rejectOAuthConsent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentReject"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Redirect"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/assistants":{"get":{"tags":["assistants"],"summary":"List Assistants","description":"Connected assistants (FR-MCP-004): everyone's for owners and admins,\notherwise your own.","operationId":"listAssistants","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assistants"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/assistants/{assistant_id}":{"delete":{"tags":["assistants"],"summary":"Revoke Assistant","description":"Disconnect an assistant: its next request is refused, and its tokens are\nrevoked at the OAuth server.","operationId":"revokeAssistant","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Assistant Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/enterprise":{"get":{"tags":["imports and restore drills"],"summary":"Get Enterprise Access","description":"Whether the organization has Odoo Enterprise access: a GitHub token,\nuploaded packages, or both.","operationId":"getEnterpriseAccess","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseAccess"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["imports and restore drills"],"summary":"Set Enterprise Access","description":"Save the organization's Odoo Enterprise access (FR-INS-003).\n\nOdotify does not resell Enterprise. Give a GitHub token of an account Odoo\nhas given access to odoo/enterprise (Odoo partners and Odoo.sh customers\nhave it); it is checked with GitHub before it is saved, and kept sealed.\nThe subscription code, if given, is registered in each Enterprise database.","operationId":"setEnterpriseAccess","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseAccessSet"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseAccess"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["imports and restore drills"],"summary":"Delete Enterprise Access","description":"Forget the Enterprise access. Enterprise instances keep running the\naddons they have; new ones, and copies of them, need access again.","operationId":"deleteEnterpriseAccess","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/enterprise/packages":{"post":{"tags":["imports and restore drills"],"summary":"Create Enterprise Package","description":"Upload the Odoo Enterprise package for one Odoo major (ADR 0025).\n\nFor customers without access to odoo/enterprise on GitHub: download the\nEnterprise .deb (or the source .tar.gz) for the version from\nodoo.com/page/download, start an upload here, PUT the file to the returned\nlink, then call markEnterprisePackageUploaded. Servers keep only the\nEnterprise modules from it. A newer upload for the same major replaces the\nolder one; instances already running keep the modules they have.","operationId":"createEnterprisePackage","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePackageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePackageStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/enterprise/packages/{package_id}/uploaded":{"post":{"tags":["imports and restore drills"],"summary":"Mark Enterprise Package Uploaded","description":"Say the upload finished. Odotify checks the file arrived, at its size,\nand puts it in use for its Odoo major.","operationId":"markEnterprisePackageUploaded","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Package Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePackage"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/enterprise/packages/{package_id}":{"delete":{"tags":["imports and restore drills"],"summary":"Delete Enterprise Package","description":"Remove an uploaded package. Instances keep the Enterprise modules they\nalready have.","operationId":"deleteEnterprisePackage","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Package Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/enterprise/terms":{"post":{"tags":["imports and restore drills"],"summary":"Accept Enterprise Terms","description":"Accept the Odoo Enterprise terms for the organization (ADR 0033): you\nconfirm it holds a valid Odoo Enterprise subscription, from Odoo S.A. or an\nOdoo partner, that covers every database it runs on Enterprise here. Once\naccepted, the Enterprise packages Odotify shares can be used. Owners and\nadmins only, signed in to the dashboard. Who accepted, when and which\nversion are kept and written to the audit log.","operationId":"acceptEnterpriseTerms","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseTermsAccept"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseAccess"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/enterprise":{"post":{"tags":["imports and restore drills"],"summary":"Switch To Enterprise","description":"Move a Community instance onto Odoo Enterprise.\n\nThe server downloads Enterprise with the organization's access, dumps the\ndatabase, installs web_enterprise and restarts Odoo; if anything fails it\nrestores the dump and stays on Community. There is no way back to\nCommunity from here: that means uninstalling Enterprise modules and their\ndata, which is left to Odoo itself.","operationId":"switchInstanceToEnterprise","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/imports":{"post":{"tags":["imports and restore drills"],"summary":"Create Import","description":"Bring a database from Odoo.sh, Odoo Online or your own server (FR-INS-005).\n\nDownload a backup from the source's database manager as a zip with the\nfilestore (or a pg_dump custom-format `.dump`), then either upload it with\nthe returned link or give a link the server can download it from. Then\ncreate an instance with this import's id. Versions are checked before\nanything is restored: the database must be from the same Odoo major as the\nnew instance. An Enterprise database needs the organization's Enterprise\naccess, and then runs on Enterprise.","operationId":"createImport","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["imports and restore drills"],"summary":"List Imports","operationId":"listImports","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstanceImport"},"title":"Response Listimports"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/imports/{import_id}":{"get":{"tags":["imports and restore drills"],"summary":"Get Import","operationId":"getImport","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceImport"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/imports/{import_id}/uploaded":{"post":{"tags":["imports and restore drills"],"summary":"Mark Uploaded","description":"Say the upload finished. Odotify checks the file arrived, at its size.","operationId":"markImportUploaded","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceImport"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/backups/{backup_id}/verify":{"post":{"tags":["imports and restore drills"],"summary":"Verify Backup","description":"Run a restore drill of this backup now (ADR 0017).\n\nThe server restores it into a scratch database beside the instance, checks\nthat Odoo loads it with the code the instance runs and that every\nattachment's file is there, then drops the copy. The instance keeps running\nthroughout. A drill that passes earns a signed certificate.","operationId":"verifyBackup","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Backup Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/restore-drills":{"get":{"tags":["imports and restore drills"],"summary":"List Drills","operationId":"listRestoreDrills","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RestoreVerification"},"title":"Response Listrestoredrills"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/restore-drills/settings":{"get":{"tags":["imports and restore drills"],"summary":"Get Drill Settings","operationId":"getRestoreDrillSettings","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrillStatus"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["imports and restore drills"],"summary":"Set Drill Settings","description":"How often the newest backup is restored in a drill: weekly, monthly (the\ndefault for production instances) or off.","operationId":"setRestoreDrillSettings","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrillSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrillStatus"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/restore-drills/{verification_id}":{"get":{"tags":["imports and restore drills"],"summary":"Get Drill","operationId":"getRestoreDrill","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"verification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Verification Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreVerification"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/certificates/keys":{"get":{"tags":["imports and restore drills"],"summary":"Certificate Keys","description":"The platform keys that sign restore certificates. No sign-in needed.","operationId":"listCertificateKeys","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CertificateKey"},"type":"array","title":"Response Listcertificatekeys"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/certificates/{certificate_id}":{"get":{"tags":["imports and restore drills"],"summary":"Get Certificate","description":"A restore certificate and whether its signature checks out. No sign-in\nneeded: give the link to an auditor, a client or an insurer.","operationId":"getRestoreCertificate","parameters":[{"name":"certificate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Certificate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Certificate"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/database-clusters":{"get":{"tags":["database clusters, upgrades, compliance"],"summary":"List Clusters","description":"External PostgreSQL clusters the organization's instances can use.","operationId":"listDatabaseClusters","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseCluster"},"title":"Response Listdatabaseclusters"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["database clusters, upgrades, compliance"],"summary":"Create Cluster","description":"Register an external PostgreSQL (FR-INS-013): Amazon RDS or Aurora,\nCloud SQL, Azure, a provider's managed database, or a primary with\nstandbys. The password is kept encrypted and reaches only the servers\nwhose instances use the cluster. Check it from a server before use.","operationId":"createDatabaseCluster","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseClusterCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseCluster"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/database-clusters/{cluster_id}":{"get":{"tags":["database clusters, upgrades, compliance"],"summary":"Get Cluster","operationId":"getDatabaseCluster","parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseCluster"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"tags":["database clusters, upgrades, compliance"],"summary":"Update Cluster","description":"Change how the cluster is reached, or rotate its password. Check it\nagain afterwards: that sends the change to the server.","operationId":"updateDatabaseCluster","parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseClusterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseCluster"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["database clusters, upgrades, compliance"],"summary":"Delete Cluster","description":"Forget a cluster no instance uses. The cluster itself is not touched.","operationId":"deleteDatabaseCluster","parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/database-clusters/{cluster_id}/check":{"post":{"tags":["database clusters, upgrades, compliance"],"summary":"Check Cluster","description":"Connect to every host of the cluster from one of your servers: which\nhost takes writes, its version, and whether the server's PostgreSQL client\ncan back it up.","operationId":"checkDatabaseCluster","parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseClusterCheck"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/database":{"post":{"tags":["database clusters, upgrades, compliance"],"summary":"Move Database","description":"Move the instance's database onto an external cluster, to another one,\nor back onto its server. Odoo stops while the database is copied; if it\ndoes not start on the copy, it starts again where it was.","operationId":"moveInstanceDatabase","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseMove"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/filestore":{"post":{"tags":["database clusters, upgrades, compliance"],"summary":"Move Filestore","description":"Move the instance's files into object storage, or back onto its server.\nOdoo stops while they move; if anything fails, the database and files come\nback as they were and Odoo starts again. Odoo 17.0 to 19.0.","operationId":"moveInstanceFilestore","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilestoreMove"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/upgrades":{"get":{"tags":["database clusters, upgrades, compliance"],"summary":"List Upgrades","operationId":"listInstanceUpgrades","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstanceUpgrade"},"title":"Response Listinstanceupgrades"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["database clusters, upgrades, compliance"],"summary":"Start Upgrade","description":"Test an upgrade to the next Odoo major (FR-INS-017).\n\nOdotify makes a neutralized staging copy of production, reports what\nhappens to every installed module and upgrades the copy with OCA's\nOpenUpgrade. Production is untouched until someone promotes the upgrade.\nOdoo Enterprise databases are upgraded by Odoo S.A. instead.","operationId":"startInstanceUpgrade","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/upgrades/{upgrade_id}":{"get":{"tags":["database clusters, upgrades, compliance"],"summary":"Get Upgrade","operationId":"getInstanceUpgrade","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"upgrade_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upgrade Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceUpgrade"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["database clusters, upgrades, compliance"],"summary":"Cancel Upgrade","description":"Close an upgrade that will not be promoted. Its staging copy stays\nuntil you delete it.","operationId":"cancelInstanceUpgrade","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"upgrade_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upgrade Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/upgrades/{upgrade_id}/promote":{"post":{"tags":["database clusters, upgrades, compliance"],"summary":"Promote Upgrade","description":"Upgrade production the way the test upgraded its copy. Production is\nbacked up first, and any failure puts back its database and the previous\nmajor. Only from the dashboard, with the instance's name typed.","operationId":"promoteInstanceUpgrade","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"upgrade_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upgrade Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradePromote"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/compliance/audit-integrity":{"get":{"tags":["database clusters, upgrades, compliance"],"summary":"Audit Integrity","description":"Check that the audit log is complete and unaltered: the hash chain of\nevery event, and the signed chain heads Odotify records every hour.","operationId":"checkAuditIntegrity","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditIntegrity"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/compliance/evidence":{"get":{"tags":["database clusters, upgrades, compliance"],"summary":"Evidence Pack","description":"The organization's evidence for its own audits (SOC 2, ISO 27001):\nwho has access, API keys and their age, backup success, restore drills\nwith their certificates, open alerts and the audit log's integrity.","operationId":"getEvidencePack","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidencePack"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/odoo-users":{"get":{"tags":["instances"],"summary":"List Odoo Users","description":"The instance's active internal Odoo users, read live from its database\nthrough the server's agent, to choose whom to log in as.","operationId":"listOdooUsers","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OdooUsers"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/login":{"post":{"tags":["instances"],"summary":"Login As","description":"A single-use link that signs the browser into the instance's Odoo as\nthe chosen user, without their password. It expires after a minute and\nevery link issued is in the audit log.","operationId":"loginAsOdooUser","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginAsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginAsLink"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/addons":{"get":{"tags":["addons"],"summary":"List Addons","description":"The modules uploaded to the instance and their state in Odoo, read live\nfrom the server.","operationId":"listInstanceAddons","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonModules"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/addons/uploads":{"get":{"tags":["addons"],"summary":"List Uploads","operationId":"listAddonUploads","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddonUpload"},"title":"Response Listaddonuploads"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["addons"],"summary":"Create Upload","description":"Upload a zip of one or more Odoo modules (each a folder with a\n__manifest__.py), up to 200 MB. PUT the zip to the returned link, then call\ninstallAddonUpload.","operationId":"createAddonUpload","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonUploadCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonUploadStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/addons/uploads/{upload_id}":{"get":{"tags":["addons"],"summary":"Get Upload","operationId":"getAddonUpload","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upload Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonUploadDetail"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/addons/uploads/{upload_id}/install":{"post":{"tags":["addons"],"summary":"Install Upload","description":"Install an uploaded zip. A backup is required first: take one in the\njob (backup_first, the default), or confirm one exists. The server dumps\nthe database again just before installing; if Odoo fails, the previous\nmodules and database come back.","operationId":"installAddonUpload","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upload Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonInstallRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonInstallStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/addons/{module}":{"delete":{"tags":["addons"],"summary":"Remove Addon","description":"Delete an uploaded module's files from the server. Only a module that\nis not installed: uninstall it in Odoo's Apps first.","operationId":"removeInstanceAddon","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"module","in":"path","required":true,"schema":{"type":"string","title":"Module"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/firewall":{"get":{"tags":["firewall"],"summary":"Get Rules","operationId":"getInstanceFirewall","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRules"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["firewall"],"summary":"Set Rules","description":"Apply the rules on the instance's server: nginx checks them and reloads\nwithin seconds. Refused, with nothing changed, if nginx rejects them.","operationId":"setInstanceFirewall","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRules"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRules"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/firewall/traffic":{"get":{"tags":["firewall"],"summary":"Get Traffic","description":"Allowed and blocked requests per day. Counts are exact.","operationId":"getInstanceFirewallTraffic","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":14,"title":"Days"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA time zone for days","title":"Tz"},"description":"IANA time zone for days"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallTraffic"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/firewall/requests":{"get":{"tags":["firewall"],"summary":"List Requests","description":"The request log, newest first. Kept 14 days.","operationId":"listInstanceFirewallRequests","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"IP, path or user agent","title":"Q"},"description":"IP, path or user agent"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":3},{"type":"null"}],"description":"2xx, 3xx, 4xx, 5xx or a code","title":"Status"},"description":"2xx, 3xx, 4xx, 5xx or a code"},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Method"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country"}},{"name":"verdict","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"allowed, blocked, or one reason (ip, country, path, bot, rate_limit...)","title":"Verdict"},"description":"allowed, blocked, or one reason (ip, country, path, bot, rate_limit...)"},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRequestPage"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/firewall/requests.csv":{"get":{"tags":["firewall"],"summary":"Export Requests","description":"The filtered log as CSV, newest first, up to 50,000 rows.","operationId":"exportInstanceFirewallRequests","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":3},{"type":"null"}],"title":"Status"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Method"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country"}},{"name":"verdict","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"allowed, blocked, or one reason (ip, country, path, bot, rate_limit...)","title":"Verdict"},"description":"allowed, blocked, or one reason (ip, country, path, bot, rate_limit...)"}],"responses":{"200":{"description":"Successful Response","content":{"text/csv":{}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}/firewall":{"get":{"tags":["firewall"],"summary":"Get Server Firewall","description":"Server-wide blocks, automatic bans and the host firewall (ufw), as the\nagent last reported them (about once a minute).","operationId":"getServerFirewall","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerFirewall"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["firewall"],"summary":"Set Server Firewall","operationId":"setServerFirewall","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerFirewallSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerFirewall"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/servers/{server_id}/firewall/bans/{ip}":{"delete":{"tags":["firewall"],"summary":"Lift Ban","operationId":"liftServerFirewallBan","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/email":{"get":{"tags":["email"],"summary":"Get Org Email","description":"The email provider the organization's Odoo instances send through.","operationId":"getOrgEmail","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEmailSettings"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["email"],"summary":"Set Org Email","description":"Save the organization's email provider (Mailgun, Postmark, Amazon SES or\nany SMTP server) and set it as the outgoing mail server of every production\ninstance. Odoo uses it at once, and instances created later get it too.\nThe password or token is kept encrypted and never returned.","operationId":"setOrgEmail","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEmailUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEmailSaved"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["email"],"summary":"Remove Org Email","description":"Stop using the organization's email provider. Odotify's mail server is\nremoved from every production instance; mail servers added in Odoo stay.","operationId":"removeOrgEmail","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobMaybe"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/email/test":{"post":{"tags":["email"],"summary":"Test Org Email","description":"Send a test email through the saved provider from one of the\norganization's servers, the way its Odoo instances send. A blocked port or\na refused login comes back as the error.","operationId":"testOrgEmail","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEmailTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEmailTestSent"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/orgs/{org_id}/instances/{instance_id}/push":{"get":{"tags":["instances"],"summary":"Preview Push","description":"Compare a staging copy with its production instance, live from their\nservers: staging's Git commit, the uploaded addons and the Odoo apps\ninstalled. Data is never compared or pushed.","operationId":"previewPushToProduction","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushPreview"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["instances"],"summary":"Push","description":"Push the chosen changes to production as one job: a backup of\nproduction first, then the commit, the addons and the apps. Each step\nputs production back if Odoo fails. Refused if anything changed since the\npreview whose fingerprint is sent.","operationId":"pushToProduction","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushStarted"}}}},"4XX":{"description":"Request refused; see `error.code`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}},"components":{"schemas":{"AccessGrant":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id","description":"The organization that owns the instances"},"grantee_org_id":{"type":"string","format":"uuid","title":"Grantee Org Id","description":"The partner organization"},"partner_name":{"type":"string","title":"Partner Name","description":"The organization on the other side"},"role":{"type":"string","enum":["operator","developer","viewer"],"title":"Role"},"instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Instance Ids"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","org_id","grantee_org_id","partner_name","role","instance_ids","note","expires_at","created_at"],"title":"AccessGrant"},"AccessGrantCreate":{"properties":{"partner_code":{"type":"string","maxLength":63,"minLength":1,"title":"Partner Code","description":"The partner organization's code, shown on its Partners tab"},"role":{"type":"string","enum":["operator","developer","viewer"],"title":"Role"},"instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"Instance Ids"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"note":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Note"}},"type":"object","required":["partner_code","role","instance_ids"],"title":"AccessGrantCreate"},"AccessGrantUpdate":{"properties":{"role":{"anyOf":[{"type":"string","enum":["operator","developer","viewer"]},{"type":"null"}],"title":"Role"},"instance_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1},{"type":"null"}],"title":"Instance Ids"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Send null with clear_expiry to make it open-ended"},"clear_expiry":{"type":"boolean","title":"Clear Expiry","default":false}},"type":"object","title":"AccessGrantUpdate"},"Activity":{"properties":{"collected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Collected At"},"items":{"items":{"$ref":"#/components/schemas/ActivityRow"},"type":"array","title":"Items"}},"type":"object","required":["collected_at","items"],"title":"Activity"},"ActivityRow":{"properties":{"pid":{"type":"integer","title":"Pid"},"state":{"type":"string","title":"State"},"wait_event_type":{"type":"string","title":"Wait Event Type"},"wait_event":{"type":"string","title":"Wait Event"},"query_seconds":{"type":"integer","title":"Query Seconds"},"transaction_seconds":{"type":"integer","title":"Transaction Seconds"},"blocked_by":{"items":{"type":"integer"},"type":"array","title":"Blocked By"},"query":{"type":"string","title":"Query"}},"type":"object","required":["pid","state","wait_event_type","wait_event","query_seconds","transaction_seconds","blocked_by","query"],"title":"ActivityRow"},"AddonInstallRequest":{"properties":{"install":{"type":"boolean","title":"Install","description":"Install modules not installed yet. When false they are only added to Odoo's Apps list. Modules already installed are always upgraded","default":true},"backup_first":{"type":"boolean","title":"Backup First","description":"Take a full backup of the instance before anything changes","default":true},"backup_confirmed":{"type":"boolean","title":"Backup Confirmed","description":"Without backup_first: the caller confirms the instance has a recent backup","default":false}},"type":"object","title":"AddonInstallRequest"},"AddonInstallStarted":{"properties":{"upload":{"$ref":"#/components/schemas/AddonUpload"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["upload","job_id"],"title":"AddonInstallStarted"},"AddonModule":{"properties":{"name":{"type":"string","title":"Name","description":"The module's technical name"},"title":{"type":"string","title":"Title","description":"The name in its manifest"},"version":{"type":"string","title":"Version","default":""},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"state":{"type":"string","title":"State","description":"Its state in Odoo (installed, uninstalled, to upgrade, ...); not_listed before Odoo has seen it; unknown when the database could not be read"},"action":{"anyOf":[{"type":"string","enum":["installed","upgraded","added"]},{"type":"null"}],"title":"Action","description":"What an upload did with it"}},"type":"object","required":["name","title","state"],"title":"AddonModule"},"AddonModules":{"properties":{"modules":{"items":{"$ref":"#/components/schemas/AddonModule"},"type":"array","title":"Modules"},"database_error":{"type":"string","title":"Database Error","description":"Set when the module states could not be read","default":""}},"type":"object","required":["modules"],"title":"AddonModules"},"AddonUpload":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"},"state":{"type":"string","enum":["awaiting_upload","queued","running","succeeded","failed"],"title":"State"},"install":{"type":"boolean","title":"Install"},"backup_first":{"type":"boolean","title":"Backup First"},"backup_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Backup Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"modules":{"items":{"$ref":"#/components/schemas/AddonModule"},"type":"array","title":"Modules"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","filename","size_bytes","state","install","backup_first","modules","created_at"],"title":"AddonUpload"},"AddonUploadCreate":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename","description":"The zip's file name"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes","description":"The zip's size in bytes, as uploaded"}},"type":"object","required":["filename","size_bytes"],"title":"AddonUploadCreate"},"AddonUploadDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"},"state":{"type":"string","enum":["awaiting_upload","queued","running","succeeded","failed"],"title":"State"},"install":{"type":"boolean","title":"Install"},"backup_first":{"type":"boolean","title":"Backup First"},"backup_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Backup Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"modules":{"items":{"$ref":"#/components/schemas/AddonModule"},"type":"array","title":"Modules"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log"}},"type":"object","required":["id","filename","size_bytes","state","install","backup_first","modules","created_at"],"title":"AddonUploadDetail"},"AddonUploadStarted":{"properties":{"upload":{"$ref":"#/components/schemas/AddonUpload"},"target":{"$ref":"#/components/schemas/Upload","description":"Where to PUT the zip. Then call installAddonUpload"}},"type":"object","required":["upload","target"],"title":"AddonUploadStarted"},"Alert":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"target_type":{"type":"string","title":"Target Type"},"target_id":{"type":"string","title":"Target Id"},"kind":{"type":"string","title":"Kind"},"severity":{"type":"string","title":"Severity"},"message":{"type":"string","title":"Message"},"state":{"type":"string","title":"State"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["id","target_type","target_id","kind","severity","message","state","created_at","resolved_at"],"title":"Alert"},"ApiKey":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix","description":"The first characters, to recognise the key"},"role":{"type":"string","title":"Role"},"scope_server_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Server Ids"},"scope_instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Instance Ids"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"last_used_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used Ip"}},"type":"object","required":["id","name","prefix","role","scope_server_ids","scope_instance_ids","created_by","created_at","expires_at","revoked_at","last_used_at","last_used_ip"],"title":"ApiKey"},"ApiKeyCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"role":{"type":"string","title":"Role","description":"Any role you could grant except owner","default":"operator"},"scope_server_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"title":"Scope Server Ids"},"scope_instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"title":"Scope Instance Ids"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["name"],"title":"ApiKeyCreate"},"ApiKeyCreated":{"properties":{"api_key":{"$ref":"#/components/schemas/ApiKey"},"secret":{"type":"string","title":"Secret","description":"Shown this once. Send it as `Authorization: Bearer <secret>`"}},"type":"object","required":["api_key","secret"],"title":"ApiKeyCreated"},"Assistant":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","user_id","client_id","client_name","scopes","created_at","last_used_at"],"title":"Assistant"},"Assistants":{"properties":{"mcp_url":{"type":"string","title":"Mcp Url","description":"Paste this into the assistant to connect it"},"items":{"items":{"$ref":"#/components/schemas/Assistant"},"type":"array","title":"Items"}},"type":"object","required":["mcp_url","items"],"title":"Assistants"},"AttachKey":{"properties":{"public_key":{"type":"string","title":"Public Key"},"fingerprint":{"type":"string","title":"Fingerprint"},"ssh_user":{"type":"string","title":"Ssh User","description":"The Linux user Odotify logs in as. It is the key's comment, so on Google Cloud the user created from the Metadata SSH key has this name"},"setup_command":{"type":"string","title":"Setup Command","description":"Run as root on the server: creates ssh_user, adds the key to its authorized_keys and grants passwordless sudo. Safe to run again"}},"type":"object","required":["public_key","fingerprint","ssh_user","setup_command"],"title":"AttachKey","description":"The organization's SSH attach key. Add the public key to the server's\nauthorized_keys before attaching (FR-SRV-011)."},"AuditEvent":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"seq":{"type":"integer","title":"Seq"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"actor_type":{"type":"string","title":"Actor Type"},"on_behalf_of":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"On Behalf Of"},"action":{"type":"string","title":"Action"},"target_type":{"type":"string","title":"Target Type"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"before":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"After"},"ip":{"anyOf":[{"type":"string","format":"ipvanyaddress"},{"type":"null"}],"title":"Ip"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"hash":{"type":"string","title":"Hash"}},"type":"object","required":["id","seq","occurred_at","actor_id","actor_type","on_behalf_of","action","target_type","target_id","before","after","ip","request_id","hash"],"title":"AuditEvent"},"AuditIntegrity":{"properties":{"ok":{"type":"boolean","title":"Ok"},"events":{"type":"integer","title":"Events"},"chain_ok":{"type":"boolean","title":"Chain Ok"},"first_bad_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Bad Seq"},"anchors":{"type":"integer","title":"Anchors","description":"Signed chain heads checked"},"anchors_failed":{"items":{"type":"integer"},"type":"array","title":"Anchors Failed"},"latest_anchor_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Anchor Seq"},"latest_anchor_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Anchor At"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["ok","events","chain_ok","first_bad_seq","anchors","anchors_failed","latest_anchor_seq","latest_anchor_at","checked_at"],"title":"AuditIntegrity"},"AuditVerification":{"properties":{"ok":{"type":"boolean","title":"Ok"},"events":{"type":"integer","title":"Events"},"first_bad_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Bad Seq"}},"type":"object","required":["ok","events","first_bad_seq"],"title":"AuditVerification"},"AwsLink":{"properties":{"credential_id":{"type":"string","format":"uuid","title":"Credential Id"},"principal":{"type":"string","title":"Principal","description":"The AWS principal the role trusts (Odotify's account)"},"external_id":{"type":"string","title":"External Id","description":"Generated by Odotify for this link only"},"template":{"type":"string","title":"Template","description":"CloudFormation template (JSON) that creates the role"},"stack_name":{"type":"string","title":"Stack Name"},"cli":{"type":"string","title":"Cli","description":"AWS CLI commands that deploy it and print the role ARN"}},"type":"object","required":["credential_id","principal","external_id","template","stack_name","cli"],"title":"AwsLink"},"AwsLinkComplete":{"properties":{"role_arn":{"type":"string","maxLength":600,"minLength":20,"title":"Role Arn","description":"arn:aws:iam::<account>:role/OdotifyServers"}},"type":"object","required":["role_arn"],"title":"AwsLinkComplete"},"AwsLinkStart":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"AwsLinkStart"},"AzureLink":{"properties":{"credential_id":{"type":"string","format":"uuid","title":"Credential Id"},"app_id":{"type":"string","title":"App Id","description":"Odotify's Microsoft Entra app (client id) you add to your tenant"},"resource_group":{"type":"string","title":"Resource Group","description":"Generated by Odotify for this link only: create the resource group with exactly this name"},"role":{"type":"string","title":"Role","description":"The role the app gets on that resource group only"},"subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id","description":"Once the link is confirmed"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id","description":"Once the link is confirmed"},"script":{"type":"string","title":"Script","description":"Azure CLI commands that set it up; replace <your-subscription-id> first"},"suggested_sizes":{"items":{"type":"string"},"type":"array","title":"Suggested Sizes","description":"Common VM sizes; any Standard_* size works"}},"type":"object","required":["credential_id","app_id","resource_group","role","subscription_id","tenant_id","script","suggested_sizes"],"title":"AzureLink"},"AzureLinkComplete":{"properties":{"subscription_id":{"type":"string","maxLength":40,"minLength":36,"title":"Subscription Id"},"tenant_id":{"type":"string","maxLength":40,"minLength":36,"title":"Tenant Id","description":"The Microsoft Entra tenant (directory) id"}},"type":"object","required":["subscription_id","tenant_id"],"title":"AzureLinkComplete"},"AzureLinkStart":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"AzureLinkStart"},"Backup":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"schedule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Schedule Id"},"trigger":{"type":"string","title":"Trigger"},"contents":{"type":"string","title":"Contents"},"status":{"type":"string","title":"Status"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"destination":{"type":"string","title":"Destination"},"destination_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Destination Id"},"remote_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Path"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","instance_id","schedule_id","trigger","contents","status","size_bytes","sha256","location","destination","destination_id","remote_path","note","error","started_at","finished_at","deleted_at","created_at"],"title":"Backup"},"BackupDownload":{"properties":{"url":{"type":"string","title":"Url","description":"Valid for 15 minutes"},"filename":{"type":"string","title":"Filename"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["url","filename","expires_in"],"title":"BackupDownload"},"BackupNote":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"BackupNote"},"BackupRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"contents":{"type":"string","enum":["full","db"],"title":"Contents","default":"full"},"destination":{"anyOf":[{"type":"string","enum":["managed","server","custom"]},{"type":"null"}],"title":"Destination","description":"Default: Odotify storage if available, else the server"},"destination_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Destination Id"}},"type":"object","title":"BackupRequest"},"BackupSchedule":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"cadence":{"type":"string","title":"Cadence"},"retention_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Count"},"retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Days"},"contents":{"type":"string","title":"Contents"},"destination":{"type":"string","title":"Destination","description":"managed (Odotify storage), server (stays on the server) or custom"},"destination_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Destination Id"},"is_default":{"type":"boolean","title":"Is Default"}},"type":"object","required":["id","cadence","retention_count","retention_days","contents","destination","destination_id","is_default"],"title":"BackupSchedule"},"BackupScheduleIn":{"properties":{"cadence":{"type":"string","title":"Cadence","description":"hourly, every_3h, every_6h, every_12h, daily, weekly, monthly"},"retention_count":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Retention Count"},"retention_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Retention Days"},"contents":{"type":"string","enum":["full","db"],"title":"Contents","default":"full"},"destination":{"type":"string","enum":["managed","server","custom"],"title":"Destination","default":"managed"},"destination_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Destination Id"}},"type":"object","required":["cadence"],"title":"BackupScheduleIn"},"BackupStarted":{"properties":{"backup":{"$ref":"#/components/schemas/Backup"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["backup","job_id"],"title":"BackupStarted"},"BackupUsage":{"properties":{"destinations":{"items":{"$ref":"#/components/schemas/BackupUsageRow"},"type":"array","title":"Destinations"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"}},"type":"object","required":["destinations","computed_at"],"title":"BackupUsage"},"BackupUsageRow":{"properties":{"destination":{"type":"string","title":"Destination"},"destination_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Destination Id"},"backups":{"type":"integer","title":"Backups"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["destination","destination_id","backups","size_bytes"],"title":"BackupUsageRow"},"Billing":{"properties":{"plan":{"type":"string","title":"Plan","description":"The plan whose limits apply now"},"plan_name":{"type":"string","title":"Plan Name"},"subscribed_plan":{"type":"string","title":"Subscribed Plan"},"status":{"$ref":"#/components/schemas/BillingStatus"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"past_due_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Past Due Since"},"has_payment_method":{"type":"boolean","title":"Has Payment Method"},"billing_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Interval","description":"month or year once subscribed"},"online_payment":{"type":"boolean","title":"Online Payment","description":"False until Stripe is configured"},"terms_version":{"type":"string","title":"Terms Version"},"terms_accepted_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Accepted Version"},"usage":{"items":{"$ref":"#/components/schemas/QuotaUsage"},"type":"array","title":"Usage"},"storage":{"$ref":"#/components/schemas/StorageInfo"},"api_rate_per_minute":{"type":"integer","title":"Api Rate Per Minute"},"plans":{"items":{"$ref":"#/components/schemas/PlanInfo"},"type":"array","title":"Plans"}},"type":"object","required":["plan","plan_name","subscribed_plan","status","trial_ends_at","current_period_end","cancel_at_period_end","past_due_since","has_payment_method","online_payment","terms_version","terms_accepted_version","usage","storage","api_rate_per_minute","plans"],"title":"Billing"},"BillingStatus":{"type":"string","enum":["trialing","free","active","past_due","restricted","canceled"],"title":"BillingStatus"},"Branding":{"properties":{"product_name":{"type":"string","title":"Product Name"},"primary_color":{"type":"string","title":"Primary Color"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"},"support_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Url"},"has_logo":{"type":"boolean","title":"Has Logo"},"has_logo_dark":{"type":"boolean","title":"Has Logo Dark"},"has_favicon":{"type":"boolean","title":"Has Favicon"},"portal_hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Hostname"},"portal_status":{"type":"string","title":"Portal Status","description":"none, pending, active or failed"},"portal_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Detail"},"portal_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Url"},"portal_records":{"items":{"$ref":"#/components/schemas/DnsRecord"},"type":"array","title":"Portal Records"},"sender_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Name"},"sender_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Address"},"sender_verified":{"type":"boolean","title":"Sender Verified"},"sender_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Detail"},"sender_records":{"items":{"$ref":"#/components/schemas/DnsRecord"},"type":"array","title":"Sender Records"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["product_name","primary_color","support_email","support_url","has_logo","has_logo_dark","has_favicon","portal_hostname","portal_status","portal_detail","portal_url","portal_records","sender_name","sender_address","sender_verified","sender_detail","sender_records","updated_at"],"title":"Branding"},"BrandingImage":{"properties":{"kind":{"type":"string","enum":["logo","logo_dark","favicon"],"title":"Kind"},"content_type":{"type":"string","enum":["image/png","image/svg+xml","image/jpeg","image/x-icon","image/webp"],"title":"Content Type"},"data_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Base64","description":"At most 256 KB once decoded; null removes the image"}},"type":"object","required":["kind","content_type","data_base64"],"title":"BrandingImage"},"BrandingUpdate":{"properties":{"product_name":{"type":"string","maxLength":80,"minLength":1,"title":"Product Name"},"primary_color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Primary Color","default":"#2563eb"},"support_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Support Email"},"support_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Support Url"},"portal_hostname":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Portal Hostname","description":"e.g. portal.youragency.com; null removes it"},"sender_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Sender Name"},"sender_address":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Sender Address","description":"e.g. support@youragency.com"}},"type":"object","required":["product_name"],"title":"BrandingUpdate"},"CancelRequest":{"properties":{"cancel":{"type":"boolean","title":"Cancel","description":"True cancels at the end of the paid period; false withdraws that"}},"type":"object","required":["cancel"],"title":"CancelRequest"},"Certificate":{"properties":{"certificate":{"additionalProperties":true,"type":"object","title":"Certificate","description":"The signed statement. Its canonical form is JSON with sorted keys and no spaces, encoded as UTF-8"},"signature":{"type":"string","title":"Signature","description":"Ed25519 signature of the canonical form, base64"},"key_id":{"type":"string","title":"Key Id"},"public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Key","description":"The platform key that signed it, raw, base64"},"valid":{"type":"boolean","title":"Valid","description":"The signature checks out against the platform key"}},"type":"object","required":["certificate","signature","key_id","public_key","valid"],"title":"Certificate"},"CertificateKey":{"properties":{"key_id":{"type":"string","title":"Key Id"},"algorithm":{"type":"string","title":"Algorithm"},"public_key":{"type":"string","title":"Public Key"}},"type":"object","required":["key_id","algorithm","public_key"],"title":"CertificateKey"},"ChangeApprove":{"properties":{"confirm":{"anyOf":[{"type":"string","maxLength":63},{"type":"null"}],"title":"Confirm","description":"Required when confirm_text is set"}},"type":"object","title":"ChangeApprove"},"ChangeReject":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"type":"object","title":"ChangeReject"},"CheckoutRequest":{"properties":{"plan":{"type":"string","title":"Plan","description":"starter, pro or agency"},"accept_terms":{"type":"boolean","title":"Accept Terms","description":"The Terms of Service, SLA and Data Processing Agreement are accepted"},"start_now":{"type":"boolean","title":"Start Now","description":"End the free trial now instead of when it runs out","default":false},"interval":{"type":"string","enum":["month","year"],"title":"Interval","description":"Pay monthly, or yearly for ten months' price","default":"month"}},"type":"object","required":["plan","accept_terms"],"title":"CheckoutRequest"},"CloudCatalog":{"properties":{"provider":{"type":"string","title":"Provider"},"regions":{"items":{"$ref":"#/components/schemas/CloudRegion"},"type":"array","title":"Regions","description":"Regions open for new servers and allowed by the data residency"},"sizes":{"items":{"$ref":"#/components/schemas/CloudSize"},"type":"array","title":"Sizes"}},"type":"object","required":["provider","regions","sizes"],"title":"CloudCatalog"},"CloudCredential":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider":{"type":"string","title":"Provider"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind","description":"token (pasted), oauth (linked, refreshed by Odotify), aws_role, gcp_sa or azure_sp"},"account_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Label","description":"The provider account it reaches"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"OAuth links: refreshed before this"},"status":{"type":"string","title":"Status","description":"ok, pending (AWS role, Google Cloud or Azure link not confirmed yet), expired (link it again) or error"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","provider","name","kind","account_label","expires_at","status","last_checked_at","last_error","created_at"],"title":"CloudCredential"},"CloudCredentialCreate":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"},"provider":{"type":"string","title":"Provider","description":"hetzner, digitalocean, vultr or linode (AWS, Google Cloud and Azure are linked instead)","default":"hetzner"},"token":{"type":"string","maxLength":200,"minLength":10,"title":"Token","description":"A read-write API token"}},"type":"object","required":["name","token"],"title":"CloudCredentialCreate"},"CloudOAuthComplete":{"properties":{"state":{"type":"string","maxLength":128,"minLength":16,"title":"State"},"code":{"type":"string","maxLength":512,"minLength":1,"title":"Code"}},"type":"object","required":["state","code"],"title":"CloudOAuthComplete"},"CloudOAuthCompleted":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"credential_id":{"type":"string","format":"uuid","title":"Credential Id"},"account_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Label"}},"type":"object","required":["org_id","credential_id","account_label"],"title":"CloudOAuthCompleted"},"CloudOAuthStart":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name","description":"Your name for this account"}},"type":"object","required":["name"],"title":"CloudOAuthStart"},"CloudOAuthStarted":{"properties":{"authorize_url":{"type":"string","title":"Authorize Url","description":"Send the browser here"}},"type":"object","required":["authorize_url"],"title":"CloudOAuthStarted"},"CloudOffer":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"server_type":{"type":"string","title":"Server Type"},"cpus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cpus"},"memory_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Gb"},"disk_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Gb"},"monthly_price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Price","description":"From Stripe, when configured"}},"type":"object","required":["id","label","server_type"],"title":"CloudOffer"},"CloudOptions":{"properties":{"resold_available":{"type":"boolean","title":"Resold Available","description":"Odotify can provide and bill the server"},"locations":{"items":{"type":"string"},"type":"array","title":"Locations","description":"Hetzner locations allowed by the organization's data residency"},"provider_locations":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Provider Locations","description":"Allowed locations per provider"},"oauth_providers":{"items":{"type":"string"},"type":"array","title":"Oauth Providers","description":"Providers whose accounts can be linked over OAuth"},"gcp_available":{"type":"boolean","title":"Gcp Available","description":"Google Cloud projects can be linked on this installation","default":false},"azure_available":{"type":"boolean","title":"Azure Available","description":"Azure subscriptions can be linked on this installation","default":false},"offers":{"items":{"$ref":"#/components/schemas/CloudOffer"},"type":"array","title":"Offers"},"credentials":{"items":{"$ref":"#/components/schemas/CloudCredential"},"type":"array","title":"Credentials"}},"type":"object","required":["resold_available","locations","offers","credentials"],"title":"CloudOptions"},"CloudRegion":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name","description":"As the provider names it, e.g. Amsterdam 3"}},"type":"object","required":["slug","name"],"title":"CloudRegion"},"CloudServerCreate":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"},"location":{"type":"string","title":"Location"},"offer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Id","description":"For a server Odotify provides"},"credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credential Id","description":"Create it in one of your own cloud accounts instead"},"server_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Type","description":"With credential_id: the provider's size, e.g. cx32 (Hetzner), s-2vcpu-4gb (DigitalOcean), vc2-2c-4gb (Vultr), g6-standard-2 (Akamai), t3.large (AWS) or e2-standard-2 (Google Cloud)"}},"type":"object","required":["name","location"],"title":"CloudServerCreate"},"CloudSize":{"properties":{"slug":{"type":"string","title":"Slug"},"plan":{"type":"string","title":"Plan","description":"basic, general_purpose, cpu_optimized, memory_optimized or storage_optimized, as the provider's own page groups them"},"cpu":{"type":"string","title":"Cpu","description":"regular, premium_intel or premium_amd"},"vcpus":{"type":"integer","title":"Vcpus"},"memory_mb":{"type":"integer","title":"Memory Mb"},"disk_gb":{"type":"integer","title":"Disk Gb"},"transfer_tb":{"type":"number","title":"Transfer Tb"},"price_monthly":{"type":"number","title":"Price Monthly","description":"US dollars a month, billed by the provider"},"regions":{"items":{"type":"string"},"type":"array","title":"Regions","description":"Listed regions where this size is available"}},"type":"object","required":["slug","plan","cpu","vcpus","memory_mb","disk_gb","transfer_tb","price_monthly","regions"],"title":"CloudSize"},"ConfirmName":{"properties":{"confirm_name":{"type":"string","title":"Confirm Name"}},"type":"object","required":["confirm_name"],"title":"ConfirmName"},"ConsentAccept":{"properties":{"consent_challenge":{"type":"string","maxLength":8192,"minLength":1,"title":"Consent Challenge"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"scopes":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Scopes"}},"type":"object","required":["consent_challenge","org_id","scopes"],"title":"ConsentAccept"},"ConsentInfo":{"properties":{"client_name":{"type":"string","title":"Client Name"},"client_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uri"},"scopes":{"items":{"$ref":"#/components/schemas/ConsentScope"},"type":"array","title":"Scopes"},"orgs":{"items":{"$ref":"#/components/schemas/ConsentOrg"},"type":"array","title":"Orgs"}},"type":"object","required":["client_name","client_uri","scopes","orgs"],"title":"ConsentInfo"},"ConsentOrg":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"eligible":{"type":"boolean","title":"Eligible"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["id","name","role","eligible","reason"],"title":"ConsentOrg"},"ConsentReject":{"properties":{"consent_challenge":{"type":"string","maxLength":8192,"minLength":1,"title":"Consent Challenge"}},"type":"object","required":["consent_challenge"],"title":"ConsentReject"},"ConsentScope":{"properties":{"scope":{"type":"string","title":"Scope"},"description":{"type":"string","title":"Description"}},"type":"object","required":["scope","description"],"title":"ConsentScope"},"Customer":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"region_policy":{"type":"string","title":"Region Policy"},"plan":{"type":"string","title":"Plan"},"billing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Status","description":"null when the organization has no subscription row yet"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"members":{"type":"integer","title":"Members"},"servers":{"type":"integer","title":"Servers"},"instances":{"type":"integer","title":"Instances"}},"type":"object","required":["id","name","slug","created_at","region_policy","plan","billing_status","trial_ends_at","current_period_end","cancel_at_period_end","stripe_customer_id","owner_email","members","servers","instances"],"title":"Customer"},"CustomerDetail":{"properties":{"customer":{"$ref":"#/components/schemas/Customer"},"billing":{"$ref":"#/components/schemas/Billing"},"members":{"items":{"$ref":"#/components/schemas/CustomerMember"},"type":"array","title":"Members"},"servers":{"items":{"$ref":"#/components/schemas/CustomerServer"},"type":"array","title":"Servers"},"instances":{"items":{"$ref":"#/components/schemas/CustomerInstance"},"type":"array","title":"Instances"},"recent_audit":{"items":{"$ref":"#/components/schemas/AuditEvent"},"type":"array","title":"Recent Audit","description":"The newest 25 audit log entries"},"support_sessions":{"items":{"$ref":"#/components/schemas/SupportSession"},"type":"array","title":"Support Sessions","description":"The latest 10, newest first"},"enterprise_terms":{"items":{"$ref":"#/components/schemas/EnterpriseTermsAcceptance"},"type":"array","title":"Enterprise Terms","description":"Acceptances of the Odoo Enterprise terms, newest first (ADR 0033)"},"enterprise_terms_version":{"type":"string","title":"Enterprise Terms Version","description":"The current version of the terms"}},"type":"object","required":["customer","billing","members","servers","instances","recent_audit","support_sessions","enterprise_terms_version"],"title":"CustomerDetail"},"CustomerInstance":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"server_id":{"type":"string","format":"uuid","title":"Server Id"},"odoo_major":{"type":"string","title":"Odoo Major"},"edition":{"type":"string","title":"Edition"},"kind":{"type":"string","title":"Kind"},"run_state":{"type":"string","title":"Run State"},"health":{"type":"string","title":"Health"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","slug","server_id","odoo_major","edition","kind","run_state","health","created_at"],"title":"CustomerInstance"},"CustomerMember":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"email_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Verified","description":"Whether the person confirmed their sign-in email; null when the sign-in service could not be asked"}},"type":"object","required":["user_id","email","role","created_at"],"title":"CustomerMember"},"CustomerServer":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"provider":{"type":"string","title":"Provider"},"host":{"type":"string","title":"Host"},"provider_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Location"},"lifecycle_state":{"type":"string","title":"Lifecycle State"},"health":{"type":"string","title":"Health"},"agent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version"},"last_heartbeat_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Heartbeat At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","provider","host","provider_location","lifecycle_state","health","agent_version","last_heartbeat_at","created_at"],"title":"CustomerServer"},"DatabaseCluster":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"provider":{"type":"string","title":"Provider"},"hosts":{"items":{"type":"string"},"type":"array","title":"Hosts"},"port":{"type":"integer","title":"Port"},"admin_user":{"type":"string","title":"Admin User"},"sslmode":{"type":"string","title":"Sslmode"},"maintenance_db":{"type":"string","title":"Maintenance Db"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"status":{"type":"string","title":"Status","description":"unknown, ok, degraded or unreachable"},"problems":{"items":{"type":"string"},"type":"array","title":"Problems"},"server_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Version"},"primary_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Host","description":"The host taking writes and, behind a managed endpoint, its address"},"last_failover_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Failover At"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"instances":{"type":"integer","title":"Instances","description":"Instances whose database is on it","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","provider","hosts","port","admin_user","sslmode","maintenance_db","location","status","problems","server_version","primary_host","last_failover_at","last_checked_at","created_at"],"title":"DatabaseCluster"},"DatabaseClusterCheck":{"properties":{"server_id":{"type":"string","format":"uuid","title":"Server Id","description":"Check from this server, where Odoo will connect"}},"type":"object","required":["server_id"],"title":"DatabaseClusterCheck"},"DatabaseClusterCreate":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name","description":"Lowercase letters, digits, dashes"},"provider":{"type":"string","enum":["aws_rds","aws_aurora","google_cloud_sql","azure","digitalocean","self_managed","other"],"title":"Provider","default":"other"},"hosts":{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1,"title":"Hosts","description":"A managed service's endpoint, or a primary and its standbys: Odoo uses whichever host accepts writes, so a promoted standby takes over by itself"},"port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Port","default":5432},"admin_user":{"type":"string","maxLength":63,"minLength":1,"title":"Admin User","description":"A user that can create roles and databases (rds_superuser on RDS, cloudsqlsuperuser on Cloud SQL, azure_pg_admin on Azure)"},"password":{"type":"string","maxLength":512,"minLength":1,"title":"Password","description":"Kept encrypted"},"sslmode":{"type":"string","enum":["disable","prefer","require","verify-ca","verify-full"],"title":"Sslmode","default":"require"},"maintenance_db":{"type":"string","maxLength":63,"title":"Maintenance Db","default":"postgres"},"location":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Location","description":"Where it runs, e.g. eu-central-1"}},"type":"object","required":["name","hosts","admin_user","password"],"title":"DatabaseClusterCreate"},"DatabaseClusterUpdate":{"properties":{"hosts":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1},{"type":"null"}],"title":"Hosts"},"port":{"anyOf":[{"type":"integer","maximum":65535.0,"minimum":1.0},{"type":"null"}],"title":"Port"},"admin_user":{"anyOf":[{"type":"string","maxLength":63,"minLength":1},{"type":"null"}],"title":"Admin User"},"password":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Password","description":"Only to change it"},"sslmode":{"anyOf":[{"type":"string","enum":["disable","prefer","require","verify-ca","verify-full"]},{"type":"null"}],"title":"Sslmode"},"location":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Location"}},"type":"object","title":"DatabaseClusterUpdate"},"DatabaseMove":{"properties":{"db_cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Db Cluster Id","description":"The cluster to move to; null moves it back onto the instance's server"},"confirm_name":{"type":"string","title":"Confirm Name","description":"The instance's name: Odoo stops while it moves"}},"type":"object","required":["db_cluster_id","confirm_name"],"title":"DatabaseMove"},"DbChange":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"server_id":{"type":"string","format":"uuid","title":"Server Id"},"instance_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Instance Id"},"kind":{"type":"string","title":"Kind","description":"index.create, index.drop or postgres.tune"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"summary":{"type":"string","title":"Summary"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"confirm_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Text","description":"What to type to approve, for changes to a running service"},"state":{"type":"string","enum":["pending","approved","rejected","expired","succeeded","failed"],"title":"State"},"requested_by":{"type":"string","format":"uuid","title":"Requested By"},"requested_via":{"type":"string","title":"Requested Via","description":"session, api_key or mcp"},"requester_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester Label","description":"The assistant's or API key's name"},"decided_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Decided By"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","server_id","instance_id","kind","params","summary","reason","confirm_text","state","requested_by","requested_via","requester_label","decided_by","decided_at","decision_note","job_id","result","expires_at","created_at"],"title":"DbChange"},"DbChangeStarted":{"properties":{"change":{"$ref":"#/components/schemas/DbChange"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["change","job_id"],"title":"DbChangeStarted"},"DeliveryStatus":{"type":"string","enum":["pending","succeeded","failed"],"title":"DeliveryStatus"},"DeployRequest":{"properties":{"ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ref","description":"Branch or full commit sha; default the branch"}},"type":"object","title":"DeployRequest"},"Deployment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"trigger":{"type":"string","title":"Trigger"},"ref":{"type":"string","title":"Ref"},"sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha"},"previous_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Sha"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"upgraded_modules":{"items":{"type":"string"},"type":"array","title":"Upgraded Modules"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","trigger","ref","sha","previous_sha","author","message","upgraded_modules","status","error","job_id","started_at","finished_at","created_at"],"title":"Deployment"},"DeploymentDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"trigger":{"type":"string","title":"Trigger"},"ref":{"type":"string","title":"Ref"},"sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha"},"previous_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Sha"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"upgraded_modules":{"items":{"type":"string"},"type":"array","title":"Upgraded Modules"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log"}},"type":"object","required":["id","trigger","ref","sha","previous_sha","author","message","upgraded_modules","status","error","job_id","started_at","finished_at","created_at","log"],"title":"DeploymentDetail"},"DeploymentStarted":{"properties":{"deployment":{"$ref":"#/components/schemas/Deployment"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["deployment","job_id"],"title":"DeploymentStarted"},"Destination":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Key","description":"SFTP: add this to the account's authorized_keys"},"status":{"type":"string","title":"Status","description":"untested, ok or failed"},"last_tested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Tested At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","kind","config","public_key","status","last_tested_at","last_error","created_at"],"title":"Destination"},"DestinationCreate":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"},"kind":{"type":"string","enum":["s3","gcs","azure","sftp","local"],"title":"Kind"},"config":{"additionalProperties":{"type":"string"},"type":"object","title":"Config","description":"s3: bucket, prefix, endpoint, region, provider; gcs: bucket, prefix; azure: account, container, prefix; sftp: host, port, user, path, prefix"},"credentials":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Credentials","description":"s3: access_key, secret_key; gcs: service_account_json; azure: account_key; sftp: none (Odotify generates a key pair)"}},"type":"object","required":["name","kind","config"],"title":"DestinationCreate"},"DestinationSaved":{"properties":{"destination":{"$ref":"#/components/schemas/Destination"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id","description":"The connection test, if one started"}},"type":"object","required":["destination","job_id"],"title":"DestinationSaved"},"DestinationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":63,"minLength":1},{"type":"null"}],"title":"Name"},"config":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Config"},"credentials":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Credentials"}},"type":"object","title":"DestinationUpdate"},"DiscountCode":{"properties":{"id":{"type":"string","title":"Id"},"code":{"type":"string","title":"Code"},"active":{"type":"boolean","title":"Active"},"times_redeemed":{"type":"integer","title":"Times Redeemed"},"max_redemptions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Redemptions"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"first_time_only":{"type":"boolean","title":"First Time Only"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"percent_off":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Off"},"amount_off_usd":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Off Usd"},"duration":{"type":"string","title":"Duration"},"duration_in_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration In Months"},"plans":{"items":{"type":"string"},"type":"array","title":"Plans"}},"type":"object","required":["id","code","active","times_redeemed","max_redemptions","expires_at","first_time_only","created_at","name","percent_off","amount_off_usd","duration","duration_in_months","plans"],"title":"DiscountCode"},"DiscountCodeActive":{"properties":{"active":{"type":"boolean","title":"Active"}},"type":"object","required":["active"],"title":"DiscountCodeActive"},"DiscountCodeCreate":{"properties":{"percent_off":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Percent Off","description":"Percentage taken off; or use amount_off_usd"},"amount_off_usd":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Amount Off Usd","description":"US dollars taken off each invoice"},"duration":{"type":"string","enum":["once","repeating","forever"],"title":"Duration","description":"once: the first invoice; repeating: duration_in_months; forever","default":"once"},"duration_in_months":{"anyOf":[{"type":"integer","maximum":36.0,"minimum":1.0},{"type":"null"}],"title":"Duration In Months"},"plans":{"items":{"type":"string"},"type":"array","title":"Plans","description":"Plan codes it applies to; empty for every plan"},"code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Code","description":"The code customers type; empty to generate random codes"},"count":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Count","description":"How many random codes to make","default":1},"max_redemptions":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Redemptions","description":"How many times each code can be used; empty for no limit"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Codes stop working after this"},"first_time_only":{"type":"boolean","title":"First Time Only","description":"Only for customers who have never paid Odotify before","default":false},"name":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Name","description":"Shown on the customer's invoice"}},"type":"object","title":"DiscountCodeCreate"},"DnsRecord":{"properties":{"type":{"type":"string","enum":["CNAME","TXT"],"title":"Type"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"purpose":{"type":"string","title":"Purpose"},"ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ok","description":"Whether the last check found it; null before a check"}},"type":"object","required":["type","name","value","purpose","ok"],"title":"DnsRecord"},"Domain":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"hostname":{"type":"string","title":"Hostname"},"is_primary":{"type":"boolean","title":"Is Primary"},"is_platform":{"type":"boolean","title":"Is Platform"},"redirect":{"type":"boolean","title":"Redirect","description":"Answers with a redirect to the primary domain"},"dns_status":{"type":"string","title":"Dns Status","description":"pending, ok, proxied, wrong, missing, caa_blocked; active for the platform address"},"dns_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Detail"},"dns_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Dns Checked At"},"cert_status":{"type":"string","title":"Cert Status"},"cert_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cert Error"},"cert_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cert Expires At"}},"type":"object","required":["id","hostname","is_primary","is_platform","redirect","dns_status","dns_detail","dns_checked_at","cert_status","cert_error","cert_expires_at"],"title":"Domain"},"DomainChanged":{"properties":{"domain":{"anyOf":[{"$ref":"#/components/schemas/Domain"},{"type":"null"}]},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["domain","job_id"],"title":"DomainChanged"},"DomainCreate":{"properties":{"hostname":{"type":"string","maxLength":253,"minLength":3,"title":"Hostname"},"redirect":{"type":"boolean","title":"Redirect","default":false}},"type":"object","required":["hostname"],"title":"DomainCreate"},"DomainUpdate":{"properties":{"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"},"redirect":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Redirect"}},"type":"object","title":"DomainUpdate"},"DrillCheck":{"properties":{"name":{"type":"string","title":"Name","description":"archive, database, version, files or odoo"},"ok":{"type":"boolean","title":"Ok"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["name","ok","detail"],"title":"DrillCheck"},"DrillReport":{"properties":{"passed":{"type":"boolean","title":"Passed"},"checks":{"items":{"$ref":"#/components/schemas/DrillCheck"},"type":"array","title":"Checks"},"odoo_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Odoo Version"},"tables":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tables"},"modules_installed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Modules Installed"},"users_active":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Users Active"},"attachments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attachments"},"attachments_missing":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attachments Missing"},"database_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Database Bytes"},"filestore_files":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filestore Files"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","required":["passed","checks"],"title":"DrillReport"},"DrillSettings":{"properties":{"cadence":{"type":"string","enum":["off","weekly","monthly"],"title":"Cadence","description":"How often the latest backup is restored in a drill"}},"type":"object","required":["cadence"],"title":"DrillSettings"},"DrillStatus":{"properties":{"cadence":{"type":"string","title":"Cadence"},"last":{"anyOf":[{"$ref":"#/components/schemas/RestoreVerification"},{"type":"null"}],"description":"The most recent drill"},"last_passed":{"anyOf":[{"$ref":"#/components/schemas/RestoreVerification"},{"type":"null"}],"description":"The most recent drill that passed"}},"type":"object","required":["cadence","last","last_passed"],"title":"DrillStatus"},"EmailConfig":{"properties":{"provider":{"$ref":"#/components/schemas/EmailProvider"},"from_address":{"type":"string","maxLength":320,"minLength":3,"pattern":"^[^@\\s]+@[^@\\s]+$","title":"From Address"},"from_name":{"type":"string","maxLength":120,"title":"From Name","default":"Odotify"},"smtp_host":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Smtp Host"},"smtp_port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Smtp Port","default":587},"smtp_username":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Smtp Username"},"smtp_security":{"type":"string","pattern":"^(starttls|tls|none)$","title":"Smtp Security","default":"starttls"},"mailgun_domain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Mailgun Domain"},"mailgun_region":{"type":"string","pattern":"^(us|eu)$","title":"Mailgun Region","default":"eu"},"ses_region":{"type":"string","maxLength":32,"title":"Ses Region","default":"eu-central-1"},"ses_access_key_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Ses Access Key Id"}},"additionalProperties":false,"type":"object","required":["provider","from_address"],"title":"EmailConfig","description":"The non-secret part of the email setting. The secret (SMTP password,\nMailgun API key, Postmark server token or SES secret access key) is kept\napart, sealed, and never returned by the API."},"EmailProvider":{"type":"string","enum":["smtp","mailgun","postmark","ses"],"title":"EmailProvider"},"EmailSettings":{"properties":{"config":{"anyOf":[{"$ref":"#/components/schemas/EmailConfig"},{"type":"null"}],"description":"Null until a provider is saved"},"has_secret":{"type":"boolean","title":"Has Secret","description":"A password or API key is stored (never returned)"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"fallback":{"type":"string","title":"Fallback","description":"What sends mail while nothing is saved: `smtp` (ODOTIFY_SMTP_*) or `log`"}},"type":"object","required":["config","has_secret","updated_at","fallback"],"title":"EmailSettings"},"EmailSettingsUpdate":{"properties":{"config":{"$ref":"#/components/schemas/EmailConfig"},"secret":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Secret","description":"Password or API key. Leave out to keep the stored one; empty removes it."}},"type":"object","required":["config"],"title":"EmailSettingsUpdate"},"EnterpriseAccess":{"properties":{"configured":{"type":"boolean","title":"Configured","description":"A GitHub token is saved, or at least one package is uploaded"},"packages":{"items":{"$ref":"#/components/schemas/EnterprisePackage"},"type":"array","title":"Packages","description":"Enterprise packages uploaded, newest first per major"},"github_login":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Login","description":"The GitHub account the saved token belongs to"},"has_subscription_code":{"type":"boolean","title":"Has Subscription Code","default":false},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When GitHub last confirmed the token can read odoo/enterprise"},"sources":{"additionalProperties":{"type":"string","enum":["own_package","github","shared"]},"type":"object","title":"Sources","description":"For each Odoo major Enterprise can run on, where it comes from: the organization's own package, its GitHub token, or a package Odotify shares (usable once the terms are accepted)"},"shared_packages":{"items":{"$ref":"#/components/schemas/SharedEnterprisePackage"},"type":"array","title":"Shared Packages"},"terms":{"$ref":"#/components/schemas/EnterpriseTerms"}},"type":"object","required":["configured","terms"],"title":"EnterpriseAccess","description":"The organization's Odoo Enterprise access. The token and the code are\nnever returned."},"EnterpriseAccessSet":{"properties":{"github_token":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Github Token","description":"A GitHub token of an account Odoo has given access to odoo/enterprise, with read access to its contents. Leave out to keep the saved one, or when you upload Enterprise packages instead"},"subscription_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Subscription Code","description":"Your Odoo Enterprise subscription code, which instances register with. An empty string removes it; leave out to keep the saved one"}},"type":"object","title":"EnterpriseAccessSet"},"EnterprisePackage":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"odoo_major":{"type":"string","title":"Odoo Major"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"},"state":{"type":"string","enum":["awaiting_upload","ready"],"title":"State"},"uploaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Uploaded At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","odoo_major","filename","size_bytes","state","created_at"],"title":"EnterprisePackage","description":"An Odoo Enterprise package uploaded from odoo.com (ADR 0025)."},"EnterprisePackageCreate":{"properties":{"odoo_major":{"type":"string","title":"Odoo Major","description":"The Odoo major the package is for, e.g. 19.0"},"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename","description":"The file's name: the .deb or the source .tar.gz from odoo.com/page/download"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes","description":"The file's size in bytes, as uploaded"}},"type":"object","required":["odoo_major","filename","size_bytes"],"title":"EnterprisePackageCreate"},"EnterprisePackageStarted":{"properties":{"package":{"$ref":"#/components/schemas/EnterprisePackage"},"upload":{"$ref":"#/components/schemas/Upload","description":"Where to send the file. Then call markEnterprisePackageUploaded"}},"type":"object","required":["package","upload"],"title":"EnterprisePackageStarted"},"EnterpriseTerms":{"properties":{"version":{"type":"string","title":"Version","description":"The current version of the terms"},"accepted":{"type":"boolean","title":"Accepted","description":"The organization accepted this version"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"accepted_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted By Email"}},"type":"object","required":["version","accepted"],"title":"EnterpriseTerms","description":"The Enterprise terms an owner or admin accepts before the organization\nuses a shared package: it holds its own valid Odoo Enterprise subscription."},"EnterpriseTermsAccept":{"properties":{"version":{"type":"string","maxLength":32,"title":"Version","description":"The version of the terms shown and accepted, from getEnterpriseAccess"}},"type":"object","required":["version"],"title":"EnterpriseTermsAccept"},"EnterpriseTermsAcceptance":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"terms_version":{"type":"string","title":"Terms Version"},"accepted_by_email":{"type":"string","title":"Accepted By Email"},"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"}},"type":"object","required":["id","terms_version","accepted_by_email","accepted_at"],"title":"EnterpriseTermsAcceptance","description":"One acceptance of the Enterprise terms, kept for the record."},"ErrorBody":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"details":{"title":"Details"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},"type":"object","required":["code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope","description":"Standard error envelope (FR-API-009)."},"EvidencePack":{"properties":{"organization":{"additionalProperties":true,"type":"object","title":"Organization"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"findings":{"items":{"type":"string"},"type":"array","title":"Findings","description":"What an auditor would ask about first"},"access":{"additionalProperties":true,"type":"object","title":"Access"},"backups":{"additionalProperties":true,"type":"object","title":"Backups"},"restore_drills":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Restore Drills"},"infrastructure":{"additionalProperties":true,"type":"object","title":"Infrastructure"},"open_alerts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Open Alerts"},"audit_log":{"$ref":"#/components/schemas/AuditIntegrity"}},"type":"object","required":["organization","generated_at","findings","access","backups","restore_drills","infrastructure","open_alerts","audit_log"],"title":"EvidencePack"},"FilestoreMove":{"properties":{"location":{"type":"string","enum":["local","object"],"title":"Location","description":"object moves the files into object storage; local moves them back"}},"type":"object","required":["location"],"title":"FilestoreMove"},"FirewallBan":{"properties":{"ip":{"type":"string","title":"Ip"},"reason":{"type":"string","title":"Reason","default":""},"hits":{"type":"integer","title":"Hits","default":0},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"},"until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},"type":"object","required":["ip"],"title":"FirewallBan"},"FirewallCountry":{"properties":{"code":{"type":"string","title":"Code"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["code","count"],"title":"FirewallCountry"},"FirewallDay":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"allowed":{"type":"integer","title":"Allowed"},"blocked":{"type":"integer","title":"Blocked"}},"type":"object","required":["date","allowed","blocked"],"title":"FirewallDay"},"FirewallRequestOut":{"properties":{"id":{"type":"integer","title":"Id"},"at":{"type":"string","format":"date-time","title":"At"},"ip":{"type":"string","title":"Ip"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"method":{"type":"string","title":"Method"},"path":{"type":"string","title":"Path"},"status":{"type":"integer","title":"Status"},"duration_ms":{"type":"number","title":"Duration Ms"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"reason":{"anyOf":[{"type":"string","enum":["ip","not_allowed","banned","country","path","bot","database_manager","rate_limit"]},{"type":"null"}],"title":"Reason"},"blocked":{"type":"boolean","title":"Blocked"}},"type":"object","required":["id","at","ip","method","path","status","duration_ms","blocked"],"title":"FirewallRequestOut"},"FirewallRequestPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FirewallRequestOut"},"type":"array","title":"Items"},"next_before_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Before Id","description":"Pass as before_id for the next, older page"}},"type":"object","required":["items"],"title":"FirewallRequestPage"},"FirewallRules":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Off: requests are still logged and counted, none is blocked","default":true},"block_scanners":{"type":"boolean","title":"Block Scanners","description":"Refuse paths only vulnerability scanners ask for: WordPress, .env, .git, phpMyAdmin, PHP files...","default":true},"block_bad_bots":{"type":"boolean","title":"Block Bad Bots","description":"Refuse the user agents of attack tools (sqlmap, nikto...)","default":true},"block_database_manager":{"type":"boolean","title":"Block Database Manager","description":"Refuse Odoo's database manager (/web/database/*): create, drop, back up and restore databases with the master password","default":false},"login_per_minute":{"type":"integer","maximum":600.0,"minimum":0.0,"title":"Login Per Minute","description":"Sign-in attempts per minute from one address; 0 is off","default":20},"requests_per_second":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Requests Per Second","description":"Requests per second from one address; 0 is off","default":0},"blocked_ips":{"items":{"type":"string"},"type":"array","maxItems":2000,"title":"Blocked Ips"},"allowed_ips":{"items":{"type":"string"},"type":"array","maxItems":2000,"title":"Allowed Ips","description":"Never blocked or rate limited"},"allow_only":{"type":"boolean","title":"Allow Only","description":"Only the allowed addresses get through","default":false},"blocked_countries":{"items":{"type":"string"},"type":"array","maxItems":250,"title":"Blocked Countries","description":"ISO 3166 two-letter codes"}},"type":"object","title":"FirewallRules"},"FirewallTraffic":{"properties":{"days":{"items":{"$ref":"#/components/schemas/FirewallDay"},"type":"array","title":"Days"},"total":{"type":"integer","title":"Total"},"allowed":{"type":"integer","title":"Allowed"},"blocked":{"type":"integer","title":"Blocked"},"logged":{"type":"integer","title":"Logged","description":"Requests in the log for the period. Below total on busy instances, where only a sample of allowed requests is kept; every blocked request is kept"},"countries":{"items":{"$ref":"#/components/schemas/FirewallCountry"},"type":"array","title":"Countries"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"}},"type":"object","required":["days","total","allowed","blocked","logged","countries","start","end"],"title":"FirewallTraffic"},"Fleet":{"properties":{"summary":{"$ref":"#/components/schemas/FleetSummary"},"organizations":{"items":{"$ref":"#/components/schemas/FleetOrganization"},"type":"array","title":"Organizations"},"instances":{"items":{"$ref":"#/components/schemas/FleetInstance"},"type":"array","title":"Instances"}},"type":"object","required":["summary","organizations","instances"],"title":"Fleet"},"FleetInstance":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"role":{"$ref":"#/components/schemas/Role"},"via_partner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via Partner","description":"Reached through this partner organization"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"kind":{"type":"string","title":"Kind"},"odoo_major":{"type":"string","title":"Odoo Major"},"run_state":{"$ref":"#/components/schemas/InstanceState"},"health":{"$ref":"#/components/schemas/Health"},"health_reasons":{"items":{"type":"string"},"type":"array","title":"Health Reasons"},"server_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Name","description":"Hidden from members scoped to instances"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"open_alerts":{"type":"integer","title":"Open Alerts"},"last_backup_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Backup At"}},"type":"object","required":["org_id","org_name","role","via_partner","id","name","slug","kind","odoo_major","run_state","health","health_reasons","server_name","url","open_alerts","last_backup_at"],"title":"FleetInstance"},"FleetOrganization":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"role":{"$ref":"#/components/schemas/Role"},"via_partner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via Partner"}},"type":"object","required":["org_id","org_name","role","via_partner"],"title":"FleetOrganization"},"FleetSummary":{"properties":{"instances":{"type":"integer","title":"Instances"},"healthy":{"type":"integer","title":"Healthy"},"degraded":{"type":"integer","title":"Degraded"},"unhealthy":{"type":"integer","title":"Unhealthy"},"unknown":{"type":"integer","title":"Unknown"},"open_alerts":{"type":"integer","title":"Open Alerts"}},"type":"object","required":["instances","healthy","degraded","unhealthy","unknown","open_alerts"],"title":"FleetSummary"},"GcpLink":{"properties":{"credential_id":{"type":"string","format":"uuid","title":"Credential Id"},"platform_service_account":{"type":"string","title":"Platform Service Account","description":"Odotify's service account, which may act as yours"},"service_account_id":{"type":"string","title":"Service Account Id","description":"Generated by Odotify for this link only: create the service account in your project with exactly this id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"Once the link is confirmed"},"role_id":{"type":"string","title":"Role Id","description":"The custom role the setup creates in your project"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","description":"Everything the custom role grants"},"script":{"type":"string","title":"Script","description":"gcloud commands that set it up; replace <your-project-id> first"}},"type":"object","required":["credential_id","platform_service_account","service_account_id","project_id","role_id","permissions","script"],"title":"GcpLink"},"GcpLinkComplete":{"properties":{"project_id":{"type":"string","maxLength":30,"minLength":6,"title":"Project Id","description":"The project id, such as acme-odoo-123"}},"type":"object","required":["project_id"],"title":"GcpLinkComplete"},"GcpLinkStart":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"GcpLinkStart"},"Health":{"type":"string","enum":["unknown","healthy","degraded","unhealthy"],"title":"Health"},"HostFirewall":{"properties":{"available":{"type":"boolean","title":"Available","description":"False when ufw is not installed"},"active":{"type":"boolean","title":"Active","default":false},"default_incoming":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Incoming"},"rules":{"items":{"$ref":"#/components/schemas/HostFirewallRule"},"type":"array","title":"Rules"}},"type":"object","required":["available"],"title":"HostFirewall"},"HostFirewallRule":{"properties":{"to":{"type":"string","title":"To"},"action":{"type":"string","title":"Action"},"from":{"type":"string","title":"From"}},"type":"object","required":["to","action","from"],"title":"HostFirewallRule"},"ImportCreate":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename","description":"The file's name, e.g. mycompany_2026-11-10.zip"},"size_bytes":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size Bytes","description":"Required to upload: the upload must be exactly this size"},"url":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Url","description":"Instead of uploading: an https link the server can download the file from, such as a signed link to your own storage. Kept encrypted; used once"}},"type":"object","required":["filename"],"title":"ImportCreate"},"ImportFacts":{"properties":{"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"odoo_zip or pg_dump"},"odoo_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Odoo Version"},"major_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Major Version"},"pg_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pg Version"},"modules":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Modules"},"enterprise":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enterprise"},"filestore_files":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filestore Files"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"type":"object","title":"ImportFacts"},"ImportStarted":{"properties":{"import":{"$ref":"#/components/schemas/InstanceImport"},"upload":{"anyOf":[{"$ref":"#/components/schemas/Upload"},{"type":"null"}],"description":"For uploads: where to send the file. Then call markImportUploaded"}},"type":"object","required":["import","upload"],"title":"ImportStarted"},"IndexCreate":{"properties":{"table":{"type":"string","maxLength":63,"minLength":1,"title":"Table"},"columns":{"items":{"type":"string"},"type":"array","maxItems":8,"minItems":1,"title":"Columns"},"method":{"type":"string","enum":["btree","gin","gist","hash"],"title":"Method","default":"btree"},"name":{"anyOf":[{"type":"string","maxLength":63},{"type":"null"}],"title":"Name"},"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason"},"approve":{"type":"boolean","title":"Approve","description":"Approve at once (dashboard sessions with approval rights only)","default":false}},"type":"object","required":["table","columns"],"title":"IndexCreate"},"IndexDrop":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"},"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason"},"approve":{"type":"boolean","title":"Approve","default":false}},"type":"object","required":["name"],"title":"IndexDrop"},"IndexHealth":{"properties":{"collected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Collected At"},"health":{"additionalProperties":true,"type":"object","title":"Health","description":"unused, duplicates, invalid, unindexed_foreign_keys (Odoo relational fields with no supporting index), seq_scan_heavy, stats_since"}},"type":"object","required":["collected_at","health"],"title":"IndexHealth"},"IndexStatus":{"properties":{"collected_at":{"type":"string","format":"date-time","title":"Collected At"},"status":{"additionalProperties":true,"type":"object","title":"Status","description":"exists, valid, unique, primary, constraint, bytes, scans, definition, safe_to_drop, unsafe_reason"}},"type":"object","required":["collected_at","status"],"title":"IndexStatus"},"InsightRefresh":{"properties":{"kinds":{"anyOf":[{"items":{"type":"string","enum":["statements","activity","index_health"]},"type":"array"},{"type":"null"}],"title":"Kinds","description":"Reports to refresh; default statements and index_health"},"queryid":{"anyOf":[{"type":"string","maxLength":21},{"type":"null"}],"title":"Queryid","description":"Plan this statement instead"},"index":{"anyOf":[{"type":"string","maxLength":63},{"type":"null"}],"title":"Index","description":"Check this index instead"}},"type":"object","title":"InsightRefresh"},"Instance":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"server_id":{"type":"string","format":"uuid","title":"Server Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"odoo_major":{"type":"string","title":"Odoo Major"},"edition":{"type":"string","title":"Edition","description":"community or enterprise"},"kind":{"type":"string","title":"Kind"},"run_state":{"$ref":"#/components/schemas/InstanceState"},"health":{"$ref":"#/components/schemas/Health"},"health_reasons":{"items":{"type":"string"},"type":"array","title":"Health Reasons"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"For staging: the production instance"},"neutralized":{"type":"boolean","title":"Neutralized"},"release_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Sha","description":"The deployed Git commit, if any"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id","description":"The template it came from"},"modules":{"items":{"type":"string"},"type":"array","title":"Modules","description":"Installed at creation"},"drill_cadence":{"type":"string","title":"Drill Cadence","description":"How often a restore drill runs: off, weekly, monthly","default":"monthly"},"db_cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Db Cluster Id","description":"The external PostgreSQL cluster its database is on; null for the server's"},"filestore":{"type":"string","title":"Filestore","description":"Where its files are: local (the server's disk) or object (object storage)","default":"local"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","server_id","name","slug","odoo_major","edition","kind","run_state","health","health_reasons","parent_id","neutralized","release_sha","created_at"],"title":"Instance"},"InstanceCreate":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"},"server_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id","description":"Required unless the template names a server"},"odoo_major":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Odoo Major","description":"One of the offered majors, e.g. 18.0. Required without a template"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id","description":"Start from an instance template: its version, server, naming, modules, backup schedules and repository apply (FR-TPL-002)"},"import_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Import Id","description":"Make the instance from an import (FR-INS-005); see createImport. Its accounts and passwords come with it"},"neutralize":{"type":"boolean","title":"Neutralize","description":"With import_id: turn off outgoing mail, scheduled actions and payment providers, for a trial copy that must not act like production","default":false},"edition":{"anyOf":[{"type":"string","enum":["auto","community","enterprise"]},{"type":"null"}],"title":"Edition","description":"enterprise needs the organization's Odoo Enterprise access for the version (see setEnterpriseAccess). Left out, a new instance runs community and an import runs auto: the edition its database uses. auto applies to imports only"},"db_cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Db Cluster Id","description":"Keep the database on one of the organization's external PostgreSQL clusters (see createDatabaseCluster) instead of the server's own (FR-INS-013)"}},"type":"object","required":["name"],"title":"InstanceCreate"},"InstanceCreated":{"properties":{"instance":{"$ref":"#/components/schemas/Instance"},"admin_login":{"type":"string","title":"Admin Login","default":"admin"},"admin_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Password","description":"Shown once. Change it after the first login. Null for copies and restores, which keep the accounts and passwords of their source"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"repository":{"anyOf":[{"$ref":"#/components/schemas/RepositoryConnected"},{"type":"null"}],"description":"The addons repository the template connected"}},"type":"object","required":["instance","admin_password","job_id"],"title":"InstanceCreated"},"InstanceDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"server_id":{"type":"string","format":"uuid","title":"Server Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"odoo_major":{"type":"string","title":"Odoo Major"},"edition":{"type":"string","title":"Edition","description":"community or enterprise"},"kind":{"type":"string","title":"Kind"},"run_state":{"$ref":"#/components/schemas/InstanceState"},"health":{"$ref":"#/components/schemas/Health"},"health_reasons":{"items":{"type":"string"},"type":"array","title":"Health Reasons"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"For staging: the production instance"},"neutralized":{"type":"boolean","title":"Neutralized"},"release_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Sha","description":"The deployed Git commit, if any"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id","description":"The template it came from"},"modules":{"items":{"type":"string"},"type":"array","title":"Modules","description":"Installed at creation"},"drill_cadence":{"type":"string","title":"Drill Cadence","description":"How often a restore drill runs: off, weekly, monthly","default":"monthly"},"db_cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Db Cluster Id","description":"The external PostgreSQL cluster its database is on; null for the server's"},"filestore":{"type":"string","title":"Filestore","description":"Where its files are: local (the server's disk) or object (object storage)","default":"local"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"db_name":{"type":"string","title":"Db Name"},"image_ref":{"type":"string","title":"Image Ref"},"domains":{"items":{"$ref":"#/components/schemas/Domain"},"type":"array","title":"Domains"},"backup_schedules":{"items":{"$ref":"#/components/schemas/BackupSchedule"},"type":"array","title":"Backup Schedules"}},"type":"object","required":["id","server_id","name","slug","odoo_major","edition","kind","run_state","health","health_reasons","parent_id","neutralized","release_sha","created_at","db_name","image_ref","domains","backup_schedules"],"title":"InstanceDetail"},"InstanceImport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source":{"type":"string","title":"Source","description":"upload or link"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"state":{"type":"string","title":"State","description":"awaiting_upload, ready, importing, imported or failed"},"instance_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Instance Id","description":"The instance made from it, once there is one"},"facts":{"anyOf":[{"$ref":"#/components/schemas/ImportFacts"},{"type":"null"}],"description":"What the server found in the file: versions and counts only"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","source","filename","size_bytes","state","instance_id","facts","error","created_at","finished_at"],"title":"InstanceImport"},"InstanceState":{"type":"string","enum":["creating","running","stopped","failed","deleting"],"title":"InstanceState"},"InstanceTemplate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"odoo_major":{"type":"string","title":"Odoo Major"},"server_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id"},"name_pattern":{"type":"string","title":"Name Pattern"},"modules":{"items":{"type":"string"},"type":"array","title":"Modules"},"backup_schedules":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Backup Schedules"},"repository":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Repository"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","description","odoo_major","server_id","name_pattern","modules","backup_schedules","repository","is_default","created_at","updated_at"],"title":"InstanceTemplate"},"InstanceTemplateIn":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Description"},"odoo_major":{"type":"string","title":"Odoo Major"},"server_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id","description":"Default server"},"name_pattern":{"type":"string","maxLength":63,"title":"Name Pattern","description":"For example \"{name}-prod\"","default":"{name}"},"modules":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Modules","description":"Technical names installed with base, e.g. sale_management"},"backup_schedules":{"items":{"$ref":"#/components/schemas/TemplateSchedule"},"type":"array","maxItems":9,"title":"Backup Schedules"},"repository":{"anyOf":[{"$ref":"#/components/schemas/TemplateRepository"},{"type":"null"}]}},"type":"object","required":["name","odoo_major"],"title":"InstanceTemplateIn"},"InstanceUpgrade":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"copy_instance_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Instance Id","description":"The staging copy the test runs on"},"from_major":{"type":"string","title":"From Major"},"to_major":{"type":"string","title":"To Major"},"status":{"type":"string","title":"Status","description":"testing, test_failed, ready, promoting, promoted, failed or cancelled"},"modules":{"items":{"$ref":"#/components/schemas/UpgradeModule"},"type":"array","title":"Modules"},"blocking":{"items":{"type":"string"},"type":"array","title":"Blocking","description":"What keeps it from being promoted"},"openupgrade_commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openupgrade Commit"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"test_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Test Job Id"},"promote_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Promote Job Id"},"tested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tested At"},"promoted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Promoted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","instance_id","copy_instance_id","from_major","to_major","status","modules","blocking","openupgrade_commit","error","test_job_id","promote_job_id","tested_at","promoted_at","created_at"],"title":"InstanceUpgrade"},"Invitation":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/Role"},"scope_server_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Server Ids"},"scope_instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Instance Ids"},"invited_by":{"type":"string","format":"uuid","title":"Invited By"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","role","scope_server_ids","scope_instance_ids","invited_by","expires_at","created_at"],"title":"Invitation"},"InvitationAccept":{"properties":{"token":{"type":"string","maxLength":128,"minLength":16,"title":"Token"}},"type":"object","required":["token"],"title":"InvitationAccept"},"InvitationCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"$ref":"#/components/schemas/Role"},"scope_server_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Server Ids"},"scope_instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Instance Ids"}},"type":"object","required":["email","role"],"title":"InvitationCreate"},"InvitationCreated":{"properties":{"invitation":{"$ref":"#/components/schemas/Invitation"},"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"The job that emails the invitation (FR-API-006)"}},"type":"object","required":["invitation","job_id"],"title":"InvitationCreated"},"Job":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"target_type":{"type":"string","title":"Target Type"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"state":{"$ref":"#/components/schemas/JobState"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"actor_type":{"type":"string","title":"Actor Type"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"remediation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remediation"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","type","target_type","target_id","state","actor_id","actor_type","request_id","failure_reason","remediation","created_at","started_at","finished_at"],"title":"Job"},"JobDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"target_type":{"type":"string","title":"Target Type"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"state":{"$ref":"#/components/schemas/JobState"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"actor_type":{"type":"string","title":"Actor Type"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"remediation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remediation"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"steps":{"items":{"$ref":"#/components/schemas/JobStep"},"type":"array","title":"Steps"}},"type":"object","required":["id","type","target_type","target_id","state","actor_id","actor_type","request_id","failure_reason","remediation","created_at","started_at","finished_at","steps"],"title":"JobDetail"},"JobMaybe":{"properties":{"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["job_id"],"title":"JobMaybe"},"JobStarted":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["job_id"],"title":"JobStarted"},"JobState":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"JobState"},"JobStep":{"properties":{"position":{"type":"integer","title":"Position"},"name":{"type":"string","title":"Name"},"state":{"$ref":"#/components/schemas/StepState"},"attempt":{"type":"integer","title":"Attempt"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"elapsed_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Seconds"}},"type":"object","required":["position","name","state","attempt","detail","started_at","finished_at"],"title":"JobStep"},"Locale":{"type":"string","enum":["en","fr","ar","es","de"],"title":"Locale","description":"Languages the dashboard is translated into."},"LoginAsLink":{"properties":{"url":{"type":"string","title":"Url","description":"Open within a minute; it signs in once"},"odoo_login":{"type":"string","title":"Odoo Login"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["url","odoo_login","expires_at"],"title":"LoginAsLink"},"LoginAsRequest":{"properties":{"odoo_user_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Odoo User Id"}},"type":"object","required":["odoo_user_id"],"title":"LoginAsRequest"},"Me":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"aal":{"type":"string","title":"Aal"},"email_verified":{"type":"boolean","title":"Email Verified","description":"False until the user enters the code emailed at signup. Until then creating servers or instances, billing and invitations answer 403 email_not_verified.","default":true},"platform_admin":{"type":"boolean","title":"Platform Admin","default":false},"locale":{"anyOf":[{"$ref":"#/components/schemas/Locale"},{"type":"null"}]},"organizations":{"items":{"$ref":"#/components/schemas/MembershipSummary"},"type":"array","title":"Organizations"}},"type":"object","required":["id","email","display_name","aal","organizations"],"title":"Me"},"MeUpdate":{"properties":{"locale":{"anyOf":[{"$ref":"#/components/schemas/Locale"},{"type":"null"}]}},"type":"object","title":"MeUpdate","description":"Personal preferences. Send null to go back to the browser's language."},"Member":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"role":{"$ref":"#/components/schemas/Role"},"scope_server_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Server Ids"},"scope_instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Instance Ids"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","email","display_name","role","scope_server_ids","scope_instance_ids","created_at"],"title":"Member"},"MemberUpdate":{"properties":{"role":{"$ref":"#/components/schemas/Role"},"scope_server_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Server Ids"},"scope_instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Instance Ids"}},"type":"object","required":["role"],"title":"MemberUpdate"},"MembershipSummary":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"role":{"$ref":"#/components/schemas/Role"},"via_partner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via Partner","description":"Set when access comes from a grant to one of your organizations (its name), not from a membership"},"support_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Support Expires At","description":"Set when an Odotify platform admin reaches this organization through a support session, which ends at this time"}},"type":"object","required":["org_id","org_name","role"],"title":"MembershipSummary"},"OdooUser":{"properties":{"id":{"type":"integer","title":"Id"},"login":{"type":"string","title":"Login"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","login","name"],"title":"OdooUser"},"OdooUsers":{"properties":{"ready":{"type":"boolean","title":"Ready","description":"False until the instance is restarted once after Login as was added to it"},"users":{"items":{"$ref":"#/components/schemas/OdooUser"},"type":"array","title":"Users"}},"type":"object","required":["ready","users"],"title":"OdooUsers"},"Org":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"plan":{"type":"string","title":"Plan"},"region_policy":{"$ref":"#/components/schemas/RegionPolicy"},"mfa_required":{"type":"boolean","title":"Mfa Required"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","slug","plan","region_policy","mfa_required","created_at"],"title":"Org"},"OrgCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"region_policy":{"$ref":"#/components/schemas/RegionPolicy","default":"eu"}},"type":"object","required":["name"],"title":"OrgCreate"},"OrgEmailConfig":{"properties":{"provider":{"$ref":"#/components/schemas/EmailProvider"},"from_address":{"type":"string","maxLength":254,"minLength":3,"pattern":"^[^@\\s\\\"'<>,;]+@[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?$","title":"From Address","description":"The sender address. Odoo sends mail from senders in its domain as they are, and mail from any other sender as this address, under the sender's name."},"from_name":{"type":"string","maxLength":120,"pattern":"^[^\\r\\n]*$","title":"From Name","default":""},"smtp_port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Smtp Port","default":587},"smtp_host":{"anyOf":[{"type":"string","maxLength":253,"pattern":"^[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?$"},{"type":"null"}],"title":"Smtp Host"},"smtp_username":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^[^\\r\\n]*$"},{"type":"null"}],"title":"Smtp Username"},"smtp_security":{"type":"string","pattern":"^(starttls|none)$","title":"Smtp Security","default":"starttls"},"mailgun_region":{"type":"string","pattern":"^(us|eu)$","title":"Mailgun Region","default":"eu"},"ses_region":{"type":"string","pattern":"^[a-z]{2}(-[a-z]+)+-[0-9]$","title":"Ses Region","default":"eu-central-1"},"ses_access_key_id":{"anyOf":[{"type":"string","maxLength":128,"pattern":"^[A-Z0-9]+$"},{"type":"null"}],"title":"Ses Access Key Id"}},"additionalProperties":false,"type":"object","required":["provider","from_address"],"title":"OrgEmailConfig","description":"The non-secret part of the organization's email setting."},"OrgEmailInstance":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"OrgEmailInstance"},"OrgEmailSaved":{"properties":{"config":{"anyOf":[{"$ref":"#/components/schemas/OrgEmailConfig"},{"type":"null"}],"description":"None until a provider is saved"},"has_secret":{"type":"boolean","title":"Has Secret"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"smtp_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Host","description":"The SMTP server Odoo connects to"},"instances":{"items":{"$ref":"#/components/schemas/OrgEmailInstance"},"type":"array","title":"Instances","description":"The production instances that send through it. Staging copies never do."},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id","description":"The job applying it to the instances; None when there are none yet"}},"type":"object","required":["config","has_secret","updated_at","smtp_host","instances","job_id"],"title":"OrgEmailSaved"},"OrgEmailSettings":{"properties":{"config":{"anyOf":[{"$ref":"#/components/schemas/OrgEmailConfig"},{"type":"null"}],"description":"None until a provider is saved"},"has_secret":{"type":"boolean","title":"Has Secret"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"smtp_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Host","description":"The SMTP server Odoo connects to"},"instances":{"items":{"$ref":"#/components/schemas/OrgEmailInstance"},"type":"array","title":"Instances","description":"The production instances that send through it. Staging copies never do."}},"type":"object","required":["config","has_secret","updated_at","smtp_host","instances"],"title":"OrgEmailSettings"},"OrgEmailTest":{"properties":{"to":{"type":"string","format":"email","title":"To"},"server_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id","description":"The server to send from; one running your instances if left out"}},"type":"object","required":["to"],"title":"OrgEmailTest"},"OrgEmailTestSent":{"properties":{"server_id":{"type":"string","format":"uuid","title":"Server Id"},"server_name":{"type":"string","title":"Server Name"}},"type":"object","required":["server_id","server_name"],"title":"OrgEmailTestSent"},"OrgEmailUpdate":{"properties":{"config":{"$ref":"#/components/schemas/OrgEmailConfig"},"secret":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Secret","description":"The SMTP password, Mailgun SMTP password, Postmark server API token or SES secret access key. Leave out to keep the saved one; empty removes it."}},"type":"object","required":["config"],"title":"OrgEmailUpdate"},"OrgUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"mfa_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mfa Required"},"region_policy":{"anyOf":[{"$ref":"#/components/schemas/RegionPolicy"},{"type":"null"}]}},"type":"object","title":"OrgUpdate"},"OrgWithRole":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"plan":{"type":"string","title":"Plan"},"region_policy":{"$ref":"#/components/schemas/RegionPolicy"},"mfa_required":{"type":"boolean","title":"Mfa Required"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"role":{"$ref":"#/components/schemas/Role"}},"type":"object","required":["id","name","slug","plan","region_policy","mfa_required","created_at","role"],"title":"OrgWithRole"},"Page_AuditEvent_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditEvent"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page; null on the last page"}},"type":"object","required":["items"],"title":"Page[AuditEvent]"},"Page_Job_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Job"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page; null on the last page"}},"type":"object","required":["items"],"title":"Page[Job]"},"Partners":{"properties":{"partner_code":{"type":"string","title":"Partner Code","description":"Give this to an organization that will share with you"},"given":{"items":{"$ref":"#/components/schemas/AccessGrant"},"type":"array","title":"Given","description":"Instances this organization lends"},"received":{"items":{"$ref":"#/components/schemas/AccessGrant"},"type":"array","title":"Received","description":"Instances other organizations lend to this one"}},"type":"object","required":["partner_code","given","received"],"title":"Partners"},"PlanChange":{"properties":{"plan":{"type":"string","title":"Plan","description":"starter, pro or agency"},"interval":{"type":"string","enum":["month","year"],"title":"Interval","default":"month"}},"type":"object","required":["plan"],"title":"PlanChange"},"PlanInfo":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"summary":{"type":"string","title":"Summary"},"max_servers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Servers","description":"null means unlimited"},"max_instances":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Instances"},"max_staging":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Staging"},"included_storage_gb":{"type":"integer","title":"Included Storage Gb"},"api_rate_per_minute":{"type":"integer","title":"Api Rate Per Minute"},"price_usd":{"type":"integer","title":"Price Usd","description":"US dollars a month, excluding VAT"},"price_usd_yearly":{"type":"integer","title":"Price Usd Yearly","description":"US dollars for a year paid at once: ten months, two free","default":0},"features":{"items":{"type":"string"},"type":"array","title":"Features","description":"Extras the plan includes: agent_access, daily_backups, firewall, multi_account, templates, white_label"},"available":{"type":"boolean","title":"Available","description":"Whether it can be bought on this installation"},"yearly_available":{"type":"boolean","title":"Yearly Available","description":"Whether it can be paid yearly on this installation","default":false}},"type":"object","required":["code","name","summary","max_servers","max_instances","max_staging","included_storage_gb","api_rate_per_minute","price_usd","features","available"],"title":"PlanInfo"},"PlatformPlan":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"},"summary":{"type":"string","maxLength":300,"title":"Summary","description":"One line customers see","default":""},"price_usd":{"type":"integer","minimum":0.0,"title":"Price Usd","description":"US dollars a month, excluding VAT; 0 only for free"},"max_servers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Servers","description":"null means unlimited"},"max_instances":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Instances","description":"null means unlimited"},"max_staging":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Staging","description":"null means unlimited"},"included_storage_gb":{"type":"integer","minimum":0.0,"title":"Included Storage Gb"},"api_rate_per_minute":{"type":"integer","minimum":1.0,"title":"Api Rate Per Minute"},"features":{"items":{"type":"string"},"type":"array","title":"Features","description":"agent_access, daily_backups, firewall, multi_account, templates, white_label"},"on_sale":{"type":"boolean","title":"On Sale","description":"Offered to customers","default":true},"sort":{"type":"integer","title":"Sort","description":"Display order, smallest first","default":0},"code":{"type":"string","title":"Code"},"stripe_product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Product Id"},"stripe_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Price Id"},"stripe_yearly_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Yearly Price Id","description":"The yearly price: ten months for a year (two months free)"},"synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Synced At"},"sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Error","description":"Why the last sync to Stripe failed"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","price_usd","included_storage_gb","api_rate_per_minute","code","stripe_product_id","stripe_price_id","synced_at","sync_error","updated_at"],"title":"PlatformPlan"},"PlatformPlanCreate":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"},"summary":{"type":"string","maxLength":300,"title":"Summary","description":"One line customers see","default":""},"price_usd":{"type":"integer","minimum":0.0,"title":"Price Usd","description":"US dollars a month, excluding VAT; 0 only for free"},"max_servers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Servers","description":"null means unlimited"},"max_instances":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Instances","description":"null means unlimited"},"max_staging":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Staging","description":"null means unlimited"},"included_storage_gb":{"type":"integer","minimum":0.0,"title":"Included Storage Gb"},"api_rate_per_minute":{"type":"integer","minimum":1.0,"title":"Api Rate Per Minute"},"features":{"items":{"type":"string"},"type":"array","title":"Features","description":"agent_access, daily_backups, firewall, multi_account, templates, white_label"},"on_sale":{"type":"boolean","title":"On Sale","description":"Offered to customers","default":true},"sort":{"type":"integer","title":"Sort","description":"Display order, smallest first","default":0},"code":{"type":"string","maxLength":32,"minLength":2,"title":"Code","description":"Stored on subscriptions, never changes: lowercase letters, digits, - or _"}},"type":"object","required":["name","price_usd","included_storage_gb","api_rate_per_minute","code"],"title":"PlatformPlanCreate"},"PlatformPlanFields":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"},"summary":{"type":"string","maxLength":300,"title":"Summary","description":"One line customers see","default":""},"price_usd":{"type":"integer","minimum":0.0,"title":"Price Usd","description":"US dollars a month, excluding VAT; 0 only for free"},"max_servers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Servers","description":"null means unlimited"},"max_instances":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Instances","description":"null means unlimited"},"max_staging":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Staging","description":"null means unlimited"},"included_storage_gb":{"type":"integer","minimum":0.0,"title":"Included Storage Gb"},"api_rate_per_minute":{"type":"integer","minimum":1.0,"title":"Api Rate Per Minute"},"features":{"items":{"type":"string"},"type":"array","title":"Features","description":"agent_access, daily_backups, firewall, multi_account, templates, white_label"},"on_sale":{"type":"boolean","title":"On Sale","description":"Offered to customers","default":true},"sort":{"type":"integer","title":"Sort","description":"Display order, smallest first","default":0}},"type":"object","required":["name","price_usd","included_storage_gb","api_rate_per_minute"],"title":"PlatformPlanFields"},"PortalBranding":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"product_name":{"type":"string","title":"Product Name"},"primary_color":{"type":"string","title":"Primary Color"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"},"support_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Url"},"has_logo":{"type":"boolean","title":"Has Logo"},"has_logo_dark":{"type":"boolean","title":"Has Logo Dark"},"has_favicon":{"type":"boolean","title":"Has Favicon"},"version":{"type":"integer","title":"Version","description":"Changes when the images change, for caching"}},"type":"object","required":["org_id","product_name","primary_color","support_email","support_url","has_logo","has_logo_dark","has_favicon","version"],"title":"PortalBranding","description":"What a portal page needs before anyone signs in. Nothing else is public.\n\nImages are fetched by the portal from GET /v1/portal/assets/{org_id}/{kind}\nand served from the portal's own hostname, so no platform address shows."},"PostgresApply":{"properties":{"changes":{"additionalProperties":{"type":"string"},"type":"object","title":"Changes","description":"Parameter to value; an empty value removes it"},"confirm_restart":{"type":"boolean","title":"Confirm Restart","description":"Allow a restart, which briefly interrupts every instance","default":false}},"type":"object","required":["changes"],"title":"PostgresApply"},"PostgresProposal":{"properties":{"changes":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":20,"minProperties":1,"title":"Changes"},"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason"}},"type":"object","required":["changes"],"title":"PostgresProposal"},"PostgresSetting":{"properties":{"name":{"type":"string","title":"Name"},"setting":{"type":"string","title":"Setting"},"unit":{"type":"string","title":"Unit","default":""},"boot_val":{"type":"string","title":"Boot Val","default":""},"context":{"type":"string","title":"Context","default":""},"source":{"type":"string","title":"Source","default":""},"pending_restart":{"type":"boolean","title":"Pending Restart","default":false},"short_desc":{"type":"string","title":"Short Desc","default":""},"override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override"}},"type":"object","required":["name","setting"],"title":"PostgresSetting"},"PushBlocker":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"PushBlocker"},"PushInstance":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"edition":{"type":"string","title":"Edition"},"odoo_major":{"type":"string","title":"Odoo Major"},"release_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Sha"}},"type":"object","required":["id","name","slug","edition","odoo_major"],"title":"PushInstance"},"PushItem":{"properties":{"id":{"type":"string","title":"Id","description":"Pass it in items to push this change"},"kind":{"type":"string","enum":["code","addon","module"],"title":"Kind","description":"code: staging's Git commit; addon: an uploaded addon; module: an Odoo app installed on staging only"},"action":{"type":"string","enum":["deploy","add","update","install"],"title":"Action"},"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"production":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Production","description":"What production has now (commit or version)"},"staging":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staging","description":"What staging has (commit or version)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["id","kind","action","name"],"title":"PushItem"},"PushNote":{"properties":{"kind":{"type":"string","enum":["code","addon","module"],"title":"Kind"},"name":{"type":"string","title":"Name"},"message":{"type":"string","title":"Message","description":"Why this difference is not pushed"}},"type":"object","required":["kind","name","message"],"title":"PushNote"},"PushPreview":{"properties":{"production":{"$ref":"#/components/schemas/PushInstance"},"staging":{"$ref":"#/components/schemas/PushInstance"},"items":{"items":{"$ref":"#/components/schemas/PushItem"},"type":"array","title":"Items","description":"The differences a push can move to production"},"notes":{"items":{"$ref":"#/components/schemas/PushNote"},"type":"array","title":"Notes","description":"Differences that stay as they are"},"blockers":{"items":{"$ref":"#/components/schemas/PushBlocker"},"type":"array","title":"Blockers","description":"Fix these before pushing"},"fingerprint":{"type":"string","title":"Fingerprint","description":"Send it back with the push"}},"type":"object","required":["production","staging","items","notes","blockers","fingerprint"],"title":"PushPreview"},"PushRequest":{"properties":{"fingerprint":{"type":"string","title":"Fingerprint","description":"From the preview that was reviewed"},"items":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Items","description":"The ids of the changes"},"confirm_name":{"type":"string","title":"Confirm Name","description":"The production instance's name"}},"type":"object","required":["fingerprint","items","confirm_name"],"title":"PushRequest"},"PushStarted":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"production_id":{"type":"string","format":"uuid","title":"Production Id"},"items":{"items":{"$ref":"#/components/schemas/PushItem"},"type":"array","title":"Items"}},"type":"object","required":["job_id","production_id","items"],"title":"PushStarted"},"QueryPlan":{"properties":{"collected_at":{"type":"string","format":"date-time","title":"Collected At"},"queryid":{"type":"string","title":"Queryid"},"query":{"type":"string","title":"Query"},"plan":{"title":"Plan","description":"The generic plan as EXPLAIN (FORMAT JSON), conditions redacted"}},"type":"object","required":["collected_at","queryid","query","plan"],"title":"QueryPlan"},"QuotaUsage":{"properties":{"resource":{"type":"string","title":"Resource"},"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},"type":"object","required":["resource","used","limit"],"title":"QuotaUsage"},"Redirect":{"properties":{"redirect_to":{"type":"string","title":"Redirect To"}},"type":"object","required":["redirect_to"],"title":"Redirect"},"RedirectUrl":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"RedirectUrl"},"RegionPolicy":{"type":"string","enum":["eu","uk","ca","us","apac","any"],"title":"RegionPolicy","description":"Data residency (FR-AUD-007): constrains servers, backup buckets and KMS keys."},"Repository":{"properties":{"url":{"type":"string","title":"Url"},"branch":{"type":"string","title":"Branch"},"auto_deploy":{"type":"boolean","title":"Auto Deploy"},"deploy_key_public":{"type":"string","title":"Deploy Key Public","description":"Add as a read-only deploy key on the Git host"},"webhook_url":{"type":"string","title":"Webhook Url","default":""},"last_push_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Push At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["url","branch","auto_deploy","deploy_key_public","last_push_at","created_at"],"title":"Repository"},"RepositoryConnected":{"properties":{"deploy_key_public":{"type":"string","title":"Deploy Key Public","description":"Add it to the repository as a read-only key"},"webhook_url":{"type":"string","title":"Webhook Url"},"webhook_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Secret","description":"Shown once"}},"type":"object","required":["deploy_key_public","webhook_url","webhook_secret"],"title":"RepositoryConnected"},"RepositoryIn":{"properties":{"url":{"type":"string","maxLength":512,"title":"Url","description":"SSH address, e.g. git@github.com:acme/addons.git"},"branch":{"type":"string","maxLength":200,"title":"Branch","default":"main"},"auto_deploy":{"type":"boolean","title":"Auto Deploy","description":"Deploy on every push to the branch","default":true}},"type":"object","required":["url"],"title":"RepositoryIn"},"RepositorySaved":{"properties":{"repository":{"$ref":"#/components/schemas/Repository"},"webhook_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Secret","description":"Shown once, when the repository is first connected"}},"type":"object","required":["repository"],"title":"RepositorySaved"},"RestoreRequest":{"properties":{"target":{"type":"string","enum":["same","new"],"title":"Target","description":"same: replace this instance's data (needs confirm_name); new: restore into a new instance"},"confirm_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Name","description":"The instance's name, for same"},"name":{"anyOf":[{"type":"string","maxLength":63},{"type":"null"}],"title":"Name","description":"Name of the new instance"},"server_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id","description":"Server for the new instance"},"neutralize":{"type":"boolean","title":"Neutralize","description":"Disable outgoing mail, crons and payment providers","default":false}},"type":"object","required":["target"],"title":"RestoreRequest"},"RestoreStarted":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"instance":{"anyOf":[{"$ref":"#/components/schemas/Instance"},{"type":"null"}],"description":"The new instance, for target new"},"admin_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Password"}},"type":"object","required":["job_id"],"title":"RestoreStarted"},"RestoreVerification":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"backup_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Backup Id"},"trigger":{"type":"string","title":"Trigger","description":"manual or scheduled"},"status":{"type":"string","title":"Status","description":"queued, running, passed, failed (the backup did not restore) or error (the drill could not run; says nothing about the backup)"},"report":{"anyOf":[{"$ref":"#/components/schemas/DrillReport"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"certificate_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Certificate Url","description":"For passed drills: the certificate"}},"type":"object","required":["id","instance_id","backup_id","trigger","status","report","detail","job_id","started_at","finished_at","created_at"],"title":"RestoreVerification"},"Role":{"type":"string","enum":["owner","admin","operator","developer","viewer","client","billing"],"title":"Role"},"ScheduleSaved":{"properties":{"schedule":{"anyOf":[{"$ref":"#/components/schemas/BackupSchedule"},{"type":"null"}]},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["schedule","job_id"],"title":"ScheduleSaved"},"Server":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"provider":{"type":"string","title":"Provider"},"origin":{"type":"string","title":"Origin"},"provider_server_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Server Type"},"provider_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Location"},"offer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Id"},"host":{"type":"string","title":"Host"},"ssh_port":{"type":"integer","title":"Ssh Port"},"ssh_user":{"type":"string","title":"Ssh User"},"host_key_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Key Fingerprint"},"public_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Ip"},"os_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Name"},"os_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Version"},"arch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arch"},"cpus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cpus"},"memory_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Memory Mb"},"disk_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Gb"},"pg_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pg Version"},"lifecycle_state":{"$ref":"#/components/schemas/ServerState"},"health":{"$ref":"#/components/schemas/Health"},"health_reasons":{"items":{"type":"string"},"type":"array","title":"Health Reasons"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"agent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version"},"agent_connected":{"type":"boolean","title":"Agent Connected","description":"A heartbeat arrived recently","default":false},"last_heartbeat_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Heartbeat At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"instance_count":{"type":"integer","title":"Instance Count","description":"Instances on this server","default":0},"usage":{"anyOf":[{"$ref":"#/components/schemas/ServerUsage"},{"type":"null"}],"description":"The newest one-minute metrics"},"usage_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Usage At"}},"type":"object","required":["id","name","provider","origin","host","ssh_port","ssh_user","host_key_fingerprint","public_ip","os_name","os_version","arch","cpus","memory_mb","disk_gb","pg_version","lifecycle_state","health","health_reasons","failure_reason","agent_version","last_heartbeat_at","created_at"],"title":"Server"},"ServerAttach":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name","description":"Lowercase letters, digits, dashes"},"host":{"type":"string","maxLength":255,"minLength":1,"title":"Host","description":"IP address or hostname"},"ssh_port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Ssh Port","default":22},"ssh_user":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Ssh User","description":"Optional. Always the attach key's user (see getAttachKey); any other value is rejected"}},"type":"object","required":["name","host"],"title":"ServerAttach"},"ServerAttached":{"properties":{"server":{"$ref":"#/components/schemas/Server"},"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"The provisioning job: preflight, baseline, agent"}},"type":"object","required":["server","job_id"],"title":"ServerAttached"},"ServerFirewall":{"properties":{"settings":{"$ref":"#/components/schemas/ServerFirewallSettings"},"bans":{"items":{"$ref":"#/components/schemas/FirewallBan"},"type":"array","title":"Bans"},"host":{"anyOf":[{"$ref":"#/components/schemas/HostFirewall"},{"type":"null"}],"description":"ufw, as the agent last read it"},"geoip":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Geoip","description":"Whether the server has the country database"},"reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reported At"}},"type":"object","required":["settings","bans"],"title":"ServerFirewall"},"ServerFirewallSettings":{"properties":{"blocked_ips":{"items":{"type":"string"},"type":"array","maxItems":2000,"title":"Blocked Ips","description":"Blocked on every instance"},"trusted_ips":{"items":{"type":"string"},"type":"array","maxItems":2000,"title":"Trusted Ips","description":"Never banned automatically"},"auto_ban":{"type":"boolean","title":"Auto Ban","description":"Ban addresses that keep tripping the rules (scanner paths, attack tools, the database manager, rate limits) on every instance of the server","default":true},"ban_threshold":{"type":"integer","maximum":10000.0,"minimum":3.0,"title":"Ban Threshold","default":30},"window_minutes":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Window Minutes","default":10},"ban_minutes":{"type":"integer","maximum":43200.0,"minimum":1.0,"title":"Ban Minutes","default":60}},"type":"object","title":"ServerFirewallSettings"},"ServerMetricPoint":{"properties":{"cpu_avg_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Avg Pct","description":"Average CPU busy, 0-100"},"cpu_max_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Max Pct","description":"Peak 5-second CPU busy, 0-100"},"load1":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Load1"},"mem_used_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mem Used Mb"},"mem_total_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mem Total Mb"},"disk_used_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Used Mb"},"disk_total_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Total Mb"},"net_rx_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Rx Bps","description":"Bytes received per second"},"net_tx_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Tx Bps","description":"Bytes sent per second"},"pg_connections":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pg Connections","description":"Client connections"},"pg_max_connections":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pg Max Connections"},"t":{"type":"string","format":"date-time","title":"T","description":"Start of the bucket"}},"type":"object","required":["t"],"title":"ServerMetricPoint"},"ServerMetrics":{"properties":{"range":{"type":"string","title":"Range"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"bucket_seconds":{"type":"integer","title":"Bucket Seconds","description":"Each point summarises this many seconds"},"points":{"items":{"$ref":"#/components/schemas/ServerMetricPoint"},"type":"array","title":"Points","description":"Buckets with data, oldest first. CPU peak, totals and the connection limit are maxima; the rest are averages"}},"type":"object","required":["range","start","end","bucket_seconds","points"],"title":"ServerMetrics"},"ServerPostgres":{"properties":{"settings":{"items":{"$ref":"#/components/schemas/PostgresSetting"},"type":"array","title":"Settings"},"reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reported At"},"restart_required":{"items":{"type":"string"},"type":"array","title":"Restart Required","description":"Parameters that only change when PostgreSQL restarts"}},"type":"object","required":["settings","reported_at","restart_required"],"title":"ServerPostgres"},"ServerState":{"type":"string","enum":["pending","creating","provisioning","active","failed","deleting"],"title":"ServerState","description":"Lifecycle, kept separate from health (finding C-10)."},"ServerUsage":{"properties":{"cpu_avg_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Avg Pct","description":"Average CPU busy, 0-100"},"cpu_max_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Max Pct","description":"Peak 5-second CPU busy, 0-100"},"load1":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Load1"},"mem_used_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mem Used Mb"},"mem_total_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mem Total Mb"},"disk_used_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Used Mb"},"disk_total_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Total Mb"},"net_rx_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Rx Bps","description":"Bytes received per second"},"net_tx_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Tx Bps","description":"Bytes sent per second"},"pg_connections":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pg Connections","description":"Client connections"},"pg_max_connections":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pg Max Connections"}},"type":"object","title":"ServerUsage","description":"One minute of host metrics. A value the agent could not read is absent."},"SharedEnterprisePackage":{"properties":{"odoo_major":{"type":"string","title":"Odoo Major"},"filename":{"type":"string","title":"Filename"},"uploaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Uploaded At"}},"type":"object","required":["odoo_major","filename"],"title":"SharedEnterprisePackage","description":"A package Odotify's platform admins share with every customer (ADR 0033)."},"StagingCreate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":63},{"type":"null"}],"title":"Name"},"server_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id","description":"Default: production's server"},"destination_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Destination Id","description":"Destination to copy through, when on another server"}},"type":"object","title":"StagingCreate"},"Statement":{"properties":{"queryid":{"type":"string","title":"Queryid","description":"pg_stat_statements' id; ask for its plan with this"},"query":{"type":"string","title":"Query","description":"Normalized text with every literal value redacted"},"calls":{"type":"integer","title":"Calls"},"total_ms":{"type":"number","title":"Total Ms"},"mean_ms":{"type":"number","title":"Mean Ms"},"max_ms":{"type":"number","title":"Max Ms","default":0},"rows":{"type":"integer","title":"Rows"},"shared_blks_hit":{"type":"integer","title":"Shared Blks Hit","default":0},"shared_blks_read":{"type":"integer","title":"Shared Blks Read","default":0},"temp_blks":{"type":"integer","title":"Temp Blks","default":0}},"type":"object","required":["queryid","query","calls","total_ms","mean_ms","rows"],"title":"Statement"},"Statements":{"properties":{"available":{"type":"boolean","title":"Available","description":"False until pg_stat_statements is loaded on the server"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since","description":"When the statistics were last reset"},"collected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Collected At","description":"Empty until a first report arrives"},"items":{"items":{"$ref":"#/components/schemas/Statement"},"type":"array","title":"Items"}},"type":"object","required":["available","items"],"title":"Statements"},"StepState":{"type":"string","enum":["running","succeeded","failed"],"title":"StepState"},"StorageInfo":{"properties":{"used_bytes":{"type":"integer","title":"Used Bytes"},"included_gb":{"type":"integer","title":"Included Gb"},"billable_gb_days_this_period":{"type":"integer","title":"Billable Gb Days This Period"}},"type":"object","required":["used_bytes","included_gb","billable_gb_days_this_period"],"title":"StorageInfo"},"StripeConnect":{"properties":{"publishable_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Publishable Key","description":"pk_live_… or pk_test_…, from the same page"},"secret_key":{"type":"string","maxLength":255,"minLength":10,"title":"Secret Key","description":"A secret key (sk_live_…, sk_test_…) or restricted key (rk_…). Stored encrypted, never shown again."},"webhook_secret":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Webhook Secret","description":"Only for a webhook endpoint made by hand (whsec_…); otherwise Odotify creates the endpoint itself."}},"type":"object","required":["secret_key"],"title":"StripeConnect"},"StripeConnection":{"properties":{"source":{"type":"string","title":"Source","description":"admin: connected in the Admin area; environment: ODOTIFY_STRIPE_* variables; none: Stripe is not set up"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Live","description":"Live mode (false is test mode)"},"key_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Hint","description":"Start and end of the key, never all of it"},"publishable_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publishable Key","description":"pk_… (public, safe to show)"},"webhook_events":{"items":{"type":"string"},"type":"array","title":"Webhook Events","description":"The events the webhook endpoint must send"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_ready":{"type":"boolean","title":"Webhook Ready","description":"Odotify can verify Stripe's events"},"webhook_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Error","description":"Why the webhook was not created"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"}},"type":"object","required":["source","webhook_ready"],"title":"StripeConnection"},"SupportSession":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"staff_email":{"type":"string","title":"Staff Email"},"reason":{"type":"string","title":"Reason"},"role":{"type":"string","title":"Role"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"live":{"type":"boolean","title":"Live","default":false}},"type":"object","required":["id","org_id","staff_email","reason","role","started_at","expires_at","ended_at"],"title":"SupportSession"},"SupportSessionStart":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":10,"title":"Reason","description":"Why support needs access; the customer reads it in their audit log"},"minutes":{"type":"integer","maximum":240.0,"minimum":5.0,"title":"Minutes","default":60}},"type":"object","required":["reason"],"title":"SupportSessionStart"},"TemplateRepository":{"properties":{"url":{"type":"string","maxLength":512,"title":"Url"},"branch":{"type":"string","maxLength":255,"title":"Branch"},"auto_deploy":{"type":"boolean","title":"Auto Deploy","default":true}},"type":"object","required":["url","branch"],"title":"TemplateRepository"},"TemplateSchedule":{"properties":{"cadence":{"type":"string","title":"Cadence","description":"hourly, every_6h, daily, weekly or monthly"},"retention_count":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Retention Count"},"retention_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Retention Days"},"contents":{"type":"string","enum":["full","db"],"title":"Contents","default":"full"},"destination":{"type":"string","enum":["managed","server","custom"],"title":"Destination","default":"managed"},"destination_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Destination Id"}},"type":"object","required":["cadence"],"title":"TemplateSchedule"},"TestEmail":{"properties":{"to":{"type":"string","format":"email","title":"To"}},"type":"object","required":["to"],"title":"TestEmail"},"UpgradeCreate":{"properties":{"target_major":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Major","description":"The next major; one major at a time"}},"type":"object","title":"UpgradeCreate"},"UpgradeModule":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status","description":"covered, not_covered, renamed, missing or custom"},"detail":{"type":"string","title":"Detail","default":""}},"type":"object","required":["name","status"],"title":"UpgradeModule"},"UpgradePromote":{"properties":{"confirm_name":{"type":"string","title":"Confirm Name","description":"The production instance's name"}},"type":"object","required":["confirm_name"],"title":"UpgradePromote"},"UpgradeStarted":{"properties":{"upgrade":{"$ref":"#/components/schemas/InstanceUpgrade"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["upgrade","job_id"],"title":"UpgradeStarted"},"Upload":{"properties":{"url":{"type":"string","title":"Url","description":"PUT the file here within six hours"},"method":{"type":"string","const":"PUT","title":"Method","default":"PUT"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"Send these headers with the upload"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["url","headers","expires_in"],"title":"Upload"},"VerificationStarted":{"properties":{"verification":{"$ref":"#/components/schemas/RestoreVerification"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["verification","job_id"],"title":"VerificationStarted"},"Webhook":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"enabled":{"type":"boolean","title":"Enabled"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","url","description","events","enabled","created_at"],"title":"Webhook"},"WebhookCreate":{"properties":{"url":{"type":"string","maxLength":512,"minLength":8,"title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events","description":"Empty means every event"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"}},"type":"object","required":["url"],"title":"WebhookCreate"},"WebhookCreated":{"properties":{"webhook":{"$ref":"#/components/schemas/Webhook"},"signing_secret":{"type":"string","title":"Signing Secret","description":"Shown this once; verifies Odotify-Signature"}},"type":"object","required":["webhook","signing_secret"],"title":"WebhookCreated"},"WebhookDelivery":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"event_id":{"type":"string","format":"uuid","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"status":{"$ref":"#/components/schemas/DeliveryStatus"},"attempts":{"type":"integer","title":"Attempts"},"next_attempt_at":{"type":"string","format":"date-time","title":"Next Attempt At"},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Status Code"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_id","event_type","status","attempts","next_attempt_at","last_status_code","last_error","delivered_at","created_at"],"title":"WebhookDelivery"},"WebhookUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"}},"type":"object","title":"WebhookUpdate"}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An organization API key (`odk_...`), created under API keys"},"session":{"type":"apiKey","in":"cookie","name":"ory_kratos_session","description":"A signed-in dashboard session"}}},"security":[{"apiKey":[]},{"session":[]}]}