Update Token Allowlists
Update a token's domain, IP, and/or region allowlists. These are general-purpose access controls, not specific to any one caller - an empty list means no restriction of that kind.
Authorization
OAuth2AuthorizationCodeBearer AuthorizationBearer <token>
In: header
Path Parameters
deployment_id*Deployment Id
Format
uuidtoken_id*Token Id
Format
uuidQuery Parameters
verify_locally?Verify Locally
Default
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Independently optional, matching AgentPatchIn's evaluation-settings
group: each of the three columns is a non-nullable JSONB with an
empty-list default, so an omitted field here means "don't touch it"
and an explicit [] means "clear it" - no forced-pair validator
needed.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "created_at": "2019-08-24T14:15:22Z", "last_used_at": "2019-08-24T14:15:22Z", "revoked": false, "expires_at": "2019-08-24T14:15:22Z", "allowed_domains": [ "string" ], "allowed_ips": [ "string" ], "allowed_regions": [ "string" ]}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}