@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api PlanetScale API
@base https://api.planetscale.com/v1
@version v1
@auth OAuth2
@common_fields {organization: any}
@endpoints 163
@hint download_for_search
@toc organizations(161), regions(1), user(1)

@group organizations
@endpoint GET /organizations
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/audit-log
@optional {starting_after: any, ending_before: any, limit: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/cluster-size-skus
@optional {engine: any, rates: any, region: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases
@optional {q: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}
@required {database: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}
@required {database: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}
@required {database: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/backup-policies
@required {database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/backup-policies
@required {database: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/backup-policies/{id}
@required {id: any, database: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/backup-policies/{id}
@required {id: any, database: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/backup-policies/{id}
@required {id: any, database: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches
@required {database: any}
@optional {q: any, production: any, safe_migrations: any, order: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches
@required {database: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}
@required {database: any, branch: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}
@required {database: any, branch: any}
@optional {delete_descendants: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/backups
@required {database: any, branch: any}
@optional {all: any, state: any, policy: any, from: any, to: any, running_at: any, production: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/backups
@required {database: any, branch: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}
@required {id: any, database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}
@required {id: any, database: any, branch: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}
@required {id: any, database: any, branch: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/bouncer-resizes
@required {database: any, branch: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/bouncers
@required {database: any, branch: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/bouncers
@required {database: any, branch: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}
@required {database: any, branch: any, bouncer: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}
@required {database: any, branch: any, bouncer: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}/resizes
@required {database: any, branch: any, bouncer: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}/resizes
@required {database: any, branch: any, bouncer: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}/resizes
@required {database: any, branch: any, bouncer: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/changes
@required {database: any, branch: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/changes
@required {database: any, branch: any}
@optional {body: map}
@returns(200)
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/changes/{id}
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/cluster
@required {database: any, branch: any}
@optional {body: map}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/demote
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/extensions
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces
@required {database: any, branch: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces
@required {database: any, branch: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}
@required {database: any, branch: any, keyspace: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}
@required {database: any, branch: any, keyspace: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}
@required {database: any, branch: any, keyspace: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/rollout-status
@required {database: any, branch: any, keyspace: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/vschema
@required {database: any, branch: any, keyspace: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/vschema
@required {database: any, branch: any, keyspace: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/parameters
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/passwords
@required {database: any, branch: any}
@optional {read_only_region_id: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/passwords
@required {database: any, branch: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}
@required {database: any, branch: any, id: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}
@required {database: any, branch: any, id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}/renew
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/promote
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns
@required {database: any, branch: any}
@optional {starting_after: any, ending_before: any, limit: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns
@required {database: any, branch: any}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}
@required {database: any, branch: any, id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}/download
@required {database: any, branch: any, id: any}
@errors {302, 401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/resizes
@required {database: any, branch: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/roles
@required {database: any, branch: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/roles
@required {database: any, branch: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/roles/default
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/roles/reset-default
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}
@required {database: any, branch: any, id: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}
@required {database: any, branch: any, id: any}
@optional {successor: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}/reassign
@required {database: any, branch: any, id: any}
@optional {body: map}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}/renew
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}/reset
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/safe-migrations
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/safe-migrations
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/schema
@required {database: any, branch: any}
@optional {keyspace: any, namespace: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/schema/lint
@required {database: any, branch: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets
@required {database: any, branch: any}
@optional {page: any, per_page: any, period: any, created_at: any, fingerprint: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets
@required {database: any, branch: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{budget_id}/rules
@required {database: any, branch: any, budget_id: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{budget_id}/rules/{id}
@required {database: any, branch: any, budget_id: any, id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{id}
@required {database: any, branch: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{id}
@required {database: any, branch: any, id: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{id}
@required {database: any, branch: any, id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/cidrs
@required {database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 422, 500}

@endpoint POST /organizations/{organization}/databases/{database}/cidrs
@required {database: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/databases/{database}/cidrs/{id}
@required {database: any, id: any}
@returns(200)
@errors {401, 403, 404, 422, 500}

@endpoint PUT /organizations/{organization}/databases/{database}/cidrs/{id}
@required {database: any, id: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 422, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/cidrs/{id}
@required {database: any, id: any}
@returns(204)
@errors {401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/databases/{database}/deploy-queue
@required {database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/deploy-requests
@required {database: any}
@optional {state: any, branch: any, into_branch: any, deployed_at: any, running_at: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests
@required {database: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/deploy-requests/{number}
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/deploy-requests/{number}
@required {database: any, number: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/apply-deploy
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PUT /organizations/{organization}/databases/{database}/deploy-requests/{number}/auto-apply
@required {database: any, number: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PUT /organizations/{organization}/databases/{database}/deploy-requests/{number}/auto-delete-branch
@required {database: any, number: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/cancel
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/complete-deploy
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/deploy
@required {database: any, number: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/deploy-requests/{number}/deployment
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/deploy-requests/{number}/operations
@required {number: any, database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/revert
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/deploy-requests/{number}/reviews
@required {database: any, number: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/reviews
@required {database: any, number: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/skip-revert
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/deploy-requests/{number}/throttler
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/deploy-requests/{number}/throttler
@required {database: any, number: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/maintenance-schedules
@required {database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/maintenance-schedules/{id}
@required {id: any, database: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/maintenance-schedules/{id}/windows
@required {id: any, database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/read-only-regions
@required {database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/regions
@required {database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/schema-recommendations
@required {database: any}
@optional {state: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/schema-recommendations/{number}
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/schema-recommendations/{number}/dismiss
@required {database: any, number: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/throttler
@required {database: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/throttler
@required {database: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/webhooks
@required {database: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/webhooks
@required {database: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/webhooks/{id}
@required {database: any, id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/webhooks/{id}
@required {database: any, id: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/webhooks/{id}
@required {database: any, id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/webhooks/{id}/test
@required {database: any, id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/workflows
@required {database: any}
@optional {between: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/workflows
@required {database: any}
@optional {body: map}
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/workflows/{number}
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/workflows/{number}
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/complete
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/cutover
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/retry
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/reverse-cutover
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/reverse-traffic
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/switch-primaries
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/switch-replicas
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/databases/{database}/workflows/{number}/verify-data
@required {database: any, number: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/invoices
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/invoices/{id}
@required {id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/invoices/{id}/line-items
@required {id: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/members
@optional {q: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/members/{id}
@required {id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PATCH /organizations/{organization}/members/{id}
@required {id: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/members/{id}
@required {id: any}
@optional {delete_passwords: any, delete_service_tokens: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/oauth-applications
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/oauth-applications/{application_id}
@required {application_id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/oauth-applications/{application_id}/tokens
@required {application_id: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/oauth-applications/{application_id}/tokens/{token_id}
@required {application_id: any, token_id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/oauth-applications/{application_id}/tokens/{token_id}
@required {application_id: any, token_id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/oauth-applications/{id}/token
@required {id: any}
@optional {body: map}
@returns(200)
@errors {403, 404, 422, 500}

@endpoint GET /organizations/{organization}/regions
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/service-tokens
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/service-tokens
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/service-tokens/{id}
@required {id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/service-tokens/{id}
@required {id: any}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/teams
@optional {q: any, page: any, per_page: any}
@returns(200)
@errors {400, 401, 403, 404, 422, 500}

@endpoint POST /organizations/{organization}/teams
@optional {body: map}
@returns(200)
@errors {400, 401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/teams/{team}
@required {team: any}
@returns(200)
@errors {400, 401, 403, 404, 422, 500}

@endpoint PATCH /organizations/{organization}/teams/{team}
@required {team: any}
@optional {body: map}
@returns(200)
@errors {400, 401, 403, 404, 422, 500}

@endpoint DELETE /organizations/{organization}/teams/{team}
@required {team: any}
@returns(204)
@errors {400, 401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/teams/{team}/members
@required {team: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {400, 401, 403, 404, 422, 500}

@endpoint POST /organizations/{organization}/teams/{team}/members
@required {team: any}
@optional {body: map}
@returns(200)
@errors {400, 401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/teams/{team}/members/{id}
@required {team: any, id: any}
@returns(200)
@errors {400, 401, 403, 404, 422, 500}

@endpoint DELETE /organizations/{organization}/teams/{team}/members/{id}
@required {team: any, id: any}
@optional {delete_passwords: any}
@returns(204)
@errors {400, 401, 403, 404, 422, 500}

@endgroup

@group regions
@endpoint GET /regions
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endgroup

@group user
@endpoint GET /user
@returns(200)
@errors {401, 403, 404, 500}

@endgroup

@end
