Create constraint policy

Constraint types: max_usage (absolute cap), valid_from/valid_until (temporal gate), rate_limit (per-window throttle — 0 = emergency freeze, null = unlimited), revoke_on_use (single-use, auto-revoked after success).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params
string
required
length between 0 and 255

Human-readable policy name, unique at tenant level (convention only)

string
int64
≥ 0

Total invocation ceiling. Null = unlimited. Must not be negative — a negative value is rejected with 422 by the domain rules in ConstraintPolicyService, NOT by Bean Validation, so exactly one layer decides the status. Enforced atomically via Redis INCR + compare (FR-21).

date-time

Policy becomes active at this instant. Null = effective immediately.

date-time

Policy expires at this instant. Null = never expires.

int32
≥ 0

Sliding-window rate ceiling per minute. 0 = fully blocked (emergency freeze). Null = no rate limit. Do not conflate (FR-24). Must not be negative — rejected with 422 by the domain rules, not by Bean Validation.

boolean
Defaults to false

When true, the first successful use of any grant referencing this policy soft-deletes that grant (single-use semantics, Refuerzo 1). Optional: omitting it is equivalent to false.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json