Bulk assign keys to a guardrail
Guardrails
Bulk assign keys to a guardrail
Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. Management key required.
POST
Bulk assign keys to a guardrail
Authorizations
API key as bearer token in Authorization header
Path Parameters
The unique identifier of the guardrail
Example:
"550e8400-e29b-41d4-a716-446655440000"
Body
application/json
Array of API key hashes to assign to the guardrail
Minimum array length:
1Minimum string length:
1Example:
[
"c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93"
]
Response
Assignment result
Number of keys successfully assigned
Example:
3