Deny a `bl login`
const url = 'https://example.com/api/v1/cli/requests/example/deny';const options = { method: 'POST', headers: {cookie: 'bl_authority_session=<bl_authority_session>'}};
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://example.com/api/v1/cli/requests/example/deny \ --cookie bl_authority_session=<bl_authority_session>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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The user code that bl login shows.
Responses
Section titled “Responses”OK.
object
Example generated
{ "denied": true}Not a person logged in through the identity provider, or from another site.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}No request with this code; it may have expired.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}