Skip to main content

kobana dunning operation-approvals

Commands of kobana dunning operation-approvals. Every global option (Global options) applies here.

CommandHTTPDescription
operation-approvals listGET /v1/operation-approvalsList my approvals
operation-approvals getGET /v1/operation-approvals/{id}Get an approval

operation-approvals list​

List my approvals

kobana dunning operation-approvals list [OPTIONS]

GET /v1/operation-approvals

Lists the approvals by link of the token person, in the token organization and the call workspace, most recent first. Read only: nothing here approves, cancels or reopens an approval. No role permission nor resource scope of its own — the data is the person's own; read level is enough.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number (starts at 1).
per_pageintegernoItems per page (max 100).
statusstringnoOnly this status. expired includes a lapsed pending one; pending only one still valid. Values: pending, approved, executed, failed, declined, expired.
created_afterstringnoRequested at or after this instant (ISO 8601, inclusive).
created_beforestringnoRequested before this instant (ISO 8601, exclusive).

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200The person's approvals.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

operation-approvals get​

Get an approval

kobana dunning operation-approvals get [ID] [OPTIONS]

GET /v1/operation-approvals/{id}

Status and outcome of an approval by link, by the approval.id the destructive tool returned in approval_required. Call it after the person says they decided on the screen — not in a loop. Another person's or organization's approval, or an unknown id: the same 404. result comes with secrets masked.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200The approval.
404Resource not found or outside your organization.
413Request body larger than 2 MB.