Set Bundle-Entry Credential Assignment
Pin a credential to one entry of one bundle.
The scope is the bundle entry and the resource is the listing that entry points at, so the same listing can carry a different credential in every bundle that includes it. Whether the listing accepts the credential at all, and whether the credential's organisation may assign it here, are the provider's decisions - surfaced as 400 and 403 respectively rather than re-derived at the route.
Authorization
OAuth2AuthorizationCodeBearer In: header
Path Parameters
uuiduuidQuery Parameters
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A model is a property of its consumer (an agent's llm_model, a voice leg's model, a knowledge base's embedding_model), never of a key, so an assignment carries only the credential, its policy and an endpoint override.
Response Body
application/json
application/json
curl -X PUT "https://example.com/v1/bundles/497f6eca-6276-4993-bfeb-53cbbbba6f08/entries/497f6eca-6276-4993-bfeb-53cbbbba6f08/assignment" \ -H "Content-Type: application/json" \ -d '{ "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "policy": "mandated" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "resource_kind": "provider", "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f", "scope_kind": "org", "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f", "policy": "mandated", "purpose": "runtime", "is_default": true, "endpoint": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}