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 AuthorizationBearer <token>
In: header
Path Parameters
bundle_id*Bundle Id
Format
uuidentry_id*Entry Id
Format
uuidQuery Parameters
verify_locally?Verify Locally
Default
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
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", "model_name": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}