Agent Control
Add AI models to the restricted list
Add AI models, by key, to the restricted list. Keys are included in the response from the List AI model configs endpoint.
Authorization
ApiKey read, writeAuthorization<token>
In: header
Scope: read, write
Path Parameters
projectKey*string
Request Body
application/json
List of AI model keys to add to the restricted list.
keys*array<string>
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v2/projects/default/ai-configs/model-configs/restricted" \ -H "Content-Type: application/json" \ -d '{ "keys": [ "keys", "keys" ] }'{ "successes": [ "successes", "successes" ], "errors": [ { "code": 0, "message": "message", "key": "key" }, { "code": 0, "message": "message", "key": "key" } ]}