Approve All by the report's Defaults: every default not changed on the version on screen
const url = 'https://deck.example.com/api/v1/report/approve';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"report_id":1,"report_version":1,"timeline":[]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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": [] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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.
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
The timeline entries on screen, which move to History.
Responses
Section titled “Responses”What Approve All did: nothing is released until release_at, and Undo with batch cancels it until then.
What Approve All did: nothing is released until release_at, and Undo with batch cancels it until then.
object
The cards with a decision in this batch.
A card Approve All left alone, and why.
object
Example generated
{ "batch": "example", "cards": [ 1 ], "release_at": "example", "skipped": [ { "card_id": 1, "reason": "example" } ]}default
Section titled “default”An error, with its message.
Every error the REST API returns, with an HTTP status.
object
Example generated
{ "error": "example"}