Ga naar inhoud

Deny a `bl login`

POST
/api/v1/cli/requests/{code}/deny
curl --request POST \
--url https://example.com/api/v1/cli/requests/example/deny \
--cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E

The machine that asked gets access_denied on its next poll. Only from a page of this service (Sec-Fetch-Site, or else Origin or Referer), and only for a person logged in through the identity provider: an API key cannot deny.

code
required
string

The user code that bl login shows.

OK.

Media typeapplication/json
object
denied
required
boolean

Example generated

{
"denied": true
}

Not a person logged in through the identity provider, or from another site.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

No request with this code; it may have expired.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}