Withdraw the request (only the requester, or the person who created the API key that requested it). Dashboard session only
const url = 'https://api.replifier.com/v1/approvals/apr_01hx0000000000000000000000:cancel';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
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://api.replifier.com/v1/approvals/apr_01hx0000000000000000000000:cancel \ --header 'Content-Type: application/json' \ --data '{}'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
apr_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{}Responses
Section titled “Responses”Request after the action
object
Brand of the action; null if it applies to the whole organization.
executed: approved and the action took place; failed: approved but the action failed (see failureCode); expired: 72 h passed without a decision.
What the approver sees (no secrets).
object
Person (usr_…) or API key (key_…) that requested it.
Error code of the action when it ended up failed.
People who can decide it (excluding the requester). 0: the dashboard suggests inviting someone. Null if it is no longer pending and in listings (computed when it is requested and when it is fetched).
Example
{ "action": "security_policy_change", "status": "pending", "requestedSource": "panel"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}