@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 276
@hint download_for_search
@toc organizations(273), postgres-versions(1), 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}/billing/payment-method
@returns(200)
@errors {401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/billing/payment-method
@returns(204)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/billing/payment-method-setups
@returns(201)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/billing/payment-method-setups/{id}
@required {id: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint GET /organizations/{organization}/cluster-size-skus
@optional {engine: any, rates: any, region: any, database: any, external: 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}/admin
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/admin/changes
@required {database: any, branch: any}
@optional {page: any, per_page: any, period: any, completed_at: any}
@errors {308, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/admin/changes/{id}
@required {database: any, branch: any, id: any}
@errors {308, 401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/admin/changes/{id}
@required {database: any, branch: any, id: any}
@errors {308, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/admin/parameters
@required {database: any, branch: any}
@returns(200)
@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 GET /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

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

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

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

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/changes
@required {database: any, branch: any, configuration_profile: any}
@optional {page: any, per_page: any, period: any, completed_at: any}
@errors {308, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/changes/{id}
@required {database: any, branch: any, configuration_profile: any, id: any}
@errors {308, 401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/changes/{id}
@required {database: any, branch: any, configuration_profile: any, id: any}
@errors {308, 401, 403, 404, 500}

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

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

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/maintenance
@required {database: any, branch: any, configuration_profile: any}
@returns(204)
@errors {401, 403, 404, 500}

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

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

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

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

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards
@required {database: any, branch: any, configuration_profile: any, shard_ids: any}
@returns(204)
@errors {401, 403, 404, 422, 500}

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

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

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

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards/{id}
@required {database: any, branch: any, configuration_profile: any, id: any}
@returns(204)
@errors {401, 403, 404, 422, 500}

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/default-configuration-profile
@required {database: any, branch: any}
@errors {302, 401, 403, 404, 500}

@endpoint PUT /organizations/{organization}/databases/{database}/branches/{branch}/default-configuration-profile
@required {database: any, branch: any}
@optional {body: map}
@returns(200)
@errors {401, 403, 404, 422, 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}/insights
@required {database: any, branch: any}
@optional {q: any, from: any, to: any, period: any, sort: any, dir: any, tablet_type: any, type: any, fields: any, page: any, per_page: any}
@returns(200)
@errors {400, 401, 403, 404, 500}

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/insights/errors
@required {database: any, branch: any}
@optional {q: any, from: any, to: any, period: any, sort: any, dir: any, tablet_type: any, page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/insights/tags
@required {database: any, branch: any}
@optional {q: any, from: any, to: any, period: any, fingerprint: any, keyspace: any, tablet_type: any, values_limit: any, literal_values_only: any, page: any, per_page: any}
@returns(200)
@errors {400, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/insights/tags/summaries
@required {database: any, branch: any}
@optional {tags: any, q: any, from: any, to: any, period: any, sort: any, dir: any, tablet_type: any, type: any, fields: any, page: any, per_page: any}
@returns(200)
@errors {400, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/insights/tags/{tag}
@required {database: any, branch: any, tag: any}
@optional {from: any, to: any, period: any, fingerprint: any, keyspace: any, tablet_type: any, values_limit: any, literal_values_only: any}
@returns(200)
@errors {400, 401, 403, 404, 500}

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/insights/{fingerprint}/summary
@required {database: any, branch: any, fingerprint: any, keyspace: any}
@optional {from: any, to: any, period: any}
@returns(200)
@errors {400, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/insights/{fingerprint}/traffic/budgets
@required {database: any, branch: any, fingerprint: any}
@optional {page: any, per_page: any, keyspace: 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}
@optional {body: map}
@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}/resizes
@required {database: any, branch: any, keyspace: any}
@optional {page: any, per_page: any, completed_at: any}
@returns(200)
@errors {401, 403, 404, 500}

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/resizes/{id}
@required {database: any, branch: any, keyspace: any, id: any}
@returns(200)
@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 POST /organizations/{organization}/databases/{database}/branches/{branch}/logs/signatures
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/metrics
@required {database: any, branch: any}
@optional {metrics: any, period: any, from: any, to: any, steps: any, tablet_type: any, keyspace: any, shard: any, shard_config_profile: any, router: any, role: any, container: any, pod: any, pods: any, query_ids: any, fingerprint: any, budget_id: any, rule_id: any, q: any}
@returns(200)
@errors {400, 401, 403, 404, 500, 503}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/metrics/instant
@required {database: any, branch: any}
@optional {metrics: any, role: any, shard: any, shard_config_profile: any, container: any, pod: any}
@returns(200)
@errors {400, 401, 403, 404, 500, 503}

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/metrics/query
@required {database: any, branch: any}
@optional {metrics: any, query_ids: any, fingerprint: any, keyspace: any, period: any, from: any, to: any, steps: any, tablet_type: any, budget_id: any, rule_id: any, q: any}
@returns(200)
@errors {400, 401, 403, 404, 500}

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/metrics/tablets
@required {database: any, branch: any}
@optional {metrics: any, period: any, from: any, to: any, steps: any, keyspace: any, shard: any, pod: any, workflow: any}
@returns(200)
@errors {400, 401, 403, 404, 500, 503}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/metrics/tablets-instant
@required {database: any, branch: any}
@optional {metrics: any, keyspace: any, shard: any}
@returns(200)
@errors {400, 401, 403, 404, 500, 503}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/metrics/tag
@required {database: any, branch: any}
@optional {metrics: any, tag_sets: any, period: any, from: any, to: any, steps: any, tablet_type: any, budget_id: any, rule_id: any, q: any}
@returns(200)
@errors {400, 401, 403, 404, 500}

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

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

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/neki-changes/{id}
@required {database: any, branch: any, id: any}
@returns(204)
@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, status: any, q: 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 GET /organizations/{organization}/databases/{database}/branches/{branch}/read-only-replica-changes
@required {database: any, branch: any}
@optional {page: any, per_page: any, period: any, completed_at: any}
@returns(200)
@errors {401, 403, 404, 500}

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

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

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

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

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/read-only-replicas/{read_only_replica}
@required {database: any, branch: any, read_only_replica: any}
@returns(204)
@errors {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}/resizes
@required {database: any, branch: any}
@optional {page: any, per_page: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint PUT /organizations/{organization}/databases/{database}/branches/{branch}/resizes
@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}/resizes/{resize}
@required {database: any, branch: any, resize: any}
@returns(200)
@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, status: any, q: 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}
@optional {replica: any, read_only_replica: any, bouncer: any, router: any, shard: 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 GET /organizations/{organization}/databases/{database}/branches/{branch}/router-size-skus
@required {database: any, branch: any}
@returns(200)
@errors {401, 403, 404, 500}

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

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

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

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/changes
@required {database: any, branch: any, router: any}
@optional {page: any, per_page: any, period: any, completed_at: any}
@errors {308, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/changes/{id}
@required {database: any, branch: any, router: any, id: any}
@errors {308, 401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/changes/{id}
@required {database: any, branch: any, router: any, id: any}
@errors {308, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/parameters
@required {database: any, branch: any, router: 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 PUT /organizations/{organization}/databases/{database}/branches/{branch}/safe-migrations
@required {database: any, branch: any}
@optional {body: map}
@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}/shards
@required {database: any, branch: any}
@optional {page: any, per_page: any, exclude_configuration_profile: any, q: any}
@returns(200)
@errors {401, 403, 404, 500}

@endpoint POST /organizations/{organization}/databases/{database}/branches/{branch}/shards
@required {database: any, branch: any}
@errors {308, 401, 403, 404, 500}

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

@endpoint PATCH /organizations/{organization}/databases/{database}/branches/{branch}/shards/{id}
@required {database: any, branch: any, id: any}
@errors {308, 401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/shards/{id}
@required {database: any, branch: any, id: any}
@errors {308, 401, 403, 404, 500}

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

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

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/sidecars/{sidecar}/changes
@required {database: any, branch: any, sidecar: any}
@optional {page: any, per_page: any, period: any, completed_at: any}
@errors {308, 401, 403, 404, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/sidecars/{sidecar}/changes/{id}
@required {database: any, branch: any, sidecar: any, id: any}
@errors {308, 401, 403, 404, 500}

@endpoint DELETE /organizations/{organization}/databases/{database}/branches/{branch}/sidecars/{sidecar}/changes/{id}
@required {database: any, branch: any, sidecar: any, id: any}
@errors {308, 401, 403, 404, 500}

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

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/switchovers
@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}/switchovers
@required {database: any, branch: any}
@optional {body: map}
@returns(201)
@errors {400, 401, 403, 404, 422, 500}

@endpoint GET /organizations/{organization}/databases/{database}/branches/{branch}/switchovers/{id}
@required {database: any, branch: any, id: 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 PATCH /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 POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/force-cutover
@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}/storage-check
@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}/sso
@returns(200)
@errors {401, 403, 404, 500}

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

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

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

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

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

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

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

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

@endpoint DELETE /organizations/{organization}/sso/domains/{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 postgres-versions
@endpoint GET /postgres-versions
@required {engine: any}
@returns(200)
@errors {401, 403, 404, 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
