Crea rol
POST/v1/roles
Permisos con el formato *, agent.*, agent.<recurso>.* o agent.<recurso>.<acción>. En un token de persona, ninguno puede ir más allá del rol de quien crea.
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 503
created
VALIDATION_ERROR
INVALID_TOKEN / INVALID_AUDIENCE / INVALID_ISSUER / TOKEN_EXPIRED / TOKEN_REVOKED / MTLS_REQUIRED
PERMISSION_ESCALATION — details.permissions lista lo que excede tu rol
IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (o CONFLICT de la ruta)
AS_UNAVAILABLE — la verificación del token no está disponible (Authorization Server fuera de línea o configuración ausente). Intenta de nuevo (Retry-After).