palbaseDocs

Palbase ai · API

POST/ai/env/host-requests/{request_id}/dismiss

Dismiss an ask

The owner's Dismiss: the ask is never told again (it is still counted). One allowed is not undone here: its host is the secret's (PUT /ai/env/{key} with hosts, or DELETE /ai/env/allowances/{allowance_id}, takes it away) — 409 already_allowed. A person's alone: an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required; an environment's token, token_out_of_scope).

Called by your server, with the project's secret key.

Path

request_idstring · requiredThe ask (shr_…).
curl
curl -X POST "https://<your-ref>.palbase.studio/ai/env/host-requests/<request_id>/dismiss" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The ask

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

404No such response, job or provider in this project

409The response's state refuses it

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation DismissEnvHostRequest of ai's contract.