Start a query
Validates the SQL (400 invalid_query, with line and column) and queues it; a worker runs it. 429 too_many_queries (with Retry-After) when the organization's queue, or everyone's, is full; 429 quota_exceeded (with quota, never Retry-After) when an hourly quota is spent. With an Idempotency-Key, retrying the same request within 24 hours answers the first 202 again, with Idempotent-Replayed: true, and queues nothing; the same key with a different request is 409 idempotency_conflict, and while the first is still being admitted, 409 idempotency_in_progress (with Retry-After).
https://audit.ezghcloud.com/v1/organizations/{orgId}/queriesAuthorization
Path parameters
Header parameters
Request bodyJSONrequired
Returns
202
Queued. Location names the query; poll it until it finishes.
400
invalid_request, invalid_cursor, invalid_query (with line and column), or lookup_too_broad.
403
access_denied: the caller's policies don't allow the action; forbidden_origin: a cookie-authenticated write from an origin that isn't allowed.
404
not_found: unknown, malformed, or in an organization the caller isn't in.
409
query_not_finished (with Retry-After), query_failed (with reason), query_cancelled or query_finished.
429
too_many_requests or too_many_queries, with Retry-After; or quota_exceeded (with quota), never with Retry-After.
500
internal_error: a bug; the details are in the logs, under the request ID.