Approve or refuse a Fleetlayer request (a window needs the passkey page first)
POST
/api/v1/fleetlayer/approvals/{id}
const url = 'https://deck.example.com/api/v1/fleetlayer/approvals/example';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"approve":true,"for":"example"}'};
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/fleetlayer/approvals/example \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "approve": true, "for": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”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"}Responses
Section titled “Responses”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"}default
Section titled “default”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"}