Skip to content

Approve or refuse a Fleetlayer request (a window needs the passkey page first)

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

POST
/api/v1/fleetlayer/approvals/{id}
curl --request POST \
--url https://deck.example.com/api/v1/fleetlayer/approvals/example \
--header 'Content-Type: application/json' \
--cookie qd_auth=<qd_auth> \
--data '{ "approve": true, "for": "example" }'
id
required
string

POST /fleetlayer/approvals/{id}: approve or refuse.

Media typeapplication/json

POST /fleetlayer/approvals/{id}: approve or refuse.

object
approve
required
boolean
for

How long an approval holds (10m, 1h); the request’s own when absent. For a window, how long it’s open.

string | null

Example generated

{
"approve": true,
"for": "example"
}

What deciding did. A window that needs the passkey first isn’t decided: stepup_url is the sign-in service’s page to confirm it on, which comes back to the deck, and the deck then approves it again.

Media typeapplication/json

What deciding did. A window that needs the passkey first isn’t decided: stepup_url is the sign-in service’s page to confirm it on, which comes back to the deck, and the deck then approves it again.

object
decided
required
boolean
stepup_url
string | null

Example generated

{
"decided": true,
"stepup_url": "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"
}