Lift a fraud restriction

.md

Give one trader back what one flag took away, and leave the flag in the queue.

Scopesadmin:write
Permissionmanage_fraud
DELETE/v1/admin/fraud/restrictions/{restriction}

A detector on Restrict takes something away from the traders it names until their flag is decided. Lifting gives one trader back what this one flag took, without deciding the flag: it stays in the queue for whoever reviews it.

The id is a trader's restriction.id on the flag, or a restriction on a payout's fraud tab. A lifted restriction never comes back, not when the flag is seen again and not when it is reopened. Lifting one that is already lifted changes nothing.

Needs a firm. Our own staff name one with the Propper-Workspace header.

Request

curl -X DELETE "https://api.proppertrading.com/v1/admin/fraud/restrictions/frest_ytz98bnpqvxc3s53" \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Propper-Workspace: acme"

Response

204, with no body.

Errors

StatusCodeMeaning
400workspace_requiredAsked by our own staff without naming a firm
401invalid_tokenNot a token, or the secret does not match
401revoked_tokenSigned out here or from another device
401expired_tokenNinety days without use, or a set expiry passed
403admin_access_requiredThis account no longer helps run the environment
403insufficient_scopeThis device does not hold admin:write
403workspace_not_permittedThe Propper-Workspace header names an environment this account cannot act in
403forbiddenWithout manage_fraud
404resource_not_foundNo restriction with that id in this firm