Save a policy
Saves a named policy for the key; its overrides must be patterns.
Authentication
AuthorizationBearer
An API key: Authorization: Bearer bl_live_….
OR
AuthorizationBearer
Blende’s apps: a sign-in JWT, sent with Blende-Context-Key.
Headers
Idempotency-Key
A unique key per call; a retry with it answers the first result.
Request
This endpoint expects an object.
name
The caller's own label.
policy
The policy; its overrides must be patterns.
Response headers
Cache-Control
Always no-store.
Allowed values:
Request-Id
The request's id.
RateLimit
The quota left in the current window.
RateLimit-Policy
The rate-limit policy in force.
Response
The saved policy, every field filled in.
id
A built-in’s name or a saved policy’s pol_… id.
name
Your label; a built-in’s is its id.
policy
Every field filled in.
created_at
RFC 3339; null for a built-in.
updated_at
RFC 3339; null for a built-in.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
415
Unsupported Media Type Error
429
Too Many Requests Error
500
Internal Server Error