Change a trader override

.md

Change the level, thresholds, reason or end of an override.

Scopesadmin:write
Permissionmanage_fraud
PUT/v1/admin/fraud/overrides/{override}

Change what an override does. The trader and the detector stay as they are. The four fields are the override as it should be, so one left out is cleared. An ended override applies again once it gets a new end or none.

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

Request

FieldDescription
leveloff, monitor, flag, restrict or block, or null to keep the firm's level. Off exempts the trader, and an override can switch on for one trader a detector the firm has off
paramsOnly the thresholds that differ, by key, and only those the detector's fields mark overridable. Ranges as for the detectors
reasonUp to 1000 characters
expires_atAn instant after now, or null for no end. The website sends the end of the chosen day in the admin's own time zone

A level or at least one threshold, or there is nothing to override.

curl -X PUT "https://api.proppertrading.com/v1/admin/fraud/overrides/fovr_n936unrak5zz8u2k" \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Propper-Workspace: acme" \
  -H "Content-Type: application/json" \
  -d '{"level": null, "params": {"max_countries": 10}, "reason": "Travels for work, asked by email on 3 October.", "expires_at": null}'

Response

The override as it is now.

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 override with that id in this firm
422validation_failedNothing to override, a threshold this detector does not let one trader change, or one out of range, a reason over 1000 characters, an end in the past