Skip to navigation

Update verb modes for this tenant

API key required. Sets the decision mode for one or more verbs in the caller’s tenant default policy. Send either a bare map ({"refund": "deny"}) or wrapped as {"policy": {"refund": "deny"}} — both are accepted. Keys named tenantId, modes, verbs, or policy are ignored if they leak in from a GET response. Every verb must be a known verb and every mode a known mode, otherwise the whole update is rejected with the offending values listed. Every successful update bumps the policy’s version by one. Custom verbs count as known verbs from the moment they are created with POST /v1/verbs — deprecated verbs (renamed aliases and retired verbs) are rejected, with the offending values listed. The response is the tenant’s full updated policy, not just what you sent.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects a map from strings to enums.
Allowed values:

Response

The tenant's full updated policy.

Errors

400
Bad Request Error
401
Unauthorized Error