Skip to content

Approve All by the report's Defaults: every default not changed on the version on screen

The OpenAPI spec (JSON)Licence, versions and sign-in

POST
/api/v1/report/approve
curl --request POST \
--url https://deck.example.com/api/v1/report/approve \
--header 'Content-Type: application/json' \
--cookie qd_auth=<qd_auth> \
--data '{ "report_id": 1, "report_version": 1, "timeline": [] }'

Approve All for the Inbox report: the deck works out the cards itself, those named by each <Default> the person didn’t change on this version of the report, so every frontend approves the same way. report_version is the version on screen: a newer one is refused, to be read first.

Media typeapplication/json

Approve All for the Inbox report: the deck works out the cards itself, those named by each <Default> the person didn’t change on this version of the report, so every frontend approves the same way. report_version is the version on screen: a newer one is refused, to be read first.

object
report_id
required
integer format: int64
report_version
required
integer format: int64
timeline

The timeline entries on screen, which move to History.

Array<integer>
default: <= 1000 items

What Approve All did: nothing is released until release_at, and Undo with batch cancels it until then.

Media typeapplication/json

What Approve All did: nothing is released until release_at, and Undo with batch cancels it until then.

object
batch
required
string
cards
required

The cards with a decision in this batch.

Array<integer>
release_at
required
string
skipped
required
Array<object>

A card Approve All left alone, and why.

object
card_id
required
integer format: int64
reason
required
string

Example generated

{
"batch": "example",
"cards": [
1
],
"release_at": "example",
"skipped": [
{
"card_id": 1,
"reason": "example"
}
]
}

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}