Set Org Credential Assignment
Offer or mandate one of the organisation's credentials for a resource.
The scope is the organisation itself, so the assignment applies wherever a member of it resolves that resource - as opposed to a bundle-entry assignment, which applies to one entry of one bundle. Purpose is always RUNTIME here: a SYSTEM credential is the resource publisher's own and is set through the publishing surface, not by a consumer organisation.
Authorization: caller must be an admin or owner.
Authorization
OAuth2AuthorizationCodeBearer AuthorizationBearer <token>
In: header
Path Parameters
org_id*Org Id
Format
uuidresource_kind*CredentialResourceKind
Value in
- "provider"
- "mcp_listing"
resource_id*Resource 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/organisations/497f6eca-6276-4993-bfeb-53cbbbba6f08/resources/provider/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" } ]}