ReferenceAgents
Rename a key, change its allowed origins or limits, or enable/disable it (team admins and owners; audited)
PATCH
/v1/teams/{team}/agents/{agentId}/publishable-keys/{keyId}Path Parameters
team*string
Team slug or ID
agentId*string
Format
uuidkeyId*string
Format
uuidHeader Parameters
If-Match*string
The resource's revision, as returned in ETag (for example "3"). Missing returns 428; stale returns 412.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/teams/string/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/publishable-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "If-Match: string" \ -H "Content-Type: application/json" \ -d '{}'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2", "name": "string", "keyPreview": "pk_7Kq2Xw9pLm3a_…", "allowedOrigins": [ "https://*.example.edu" ], "rateLimits": { "perIpPerMinute": 0, "perSessionPerMinute": 0 }, "enabled": true, "revision": 0, "lastUsedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}