PUT /accounts/{account_id}/tokens/{token_id}
Update an existing token.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
token_id |
String | Yes | |
account_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
id |
String | No |
Token identifier tag. |
last_used_on |
String | No |
Last time the token was used. |
expires_on |
String | No |
The expiration time on or after which the JWT MUST NOT be accepted for processing. |
issued_on |
String | No |
The time on which the token was created. |
name |
String | No |
Token name. |
condition |
Object | No | |
condition.request_ip |
Object | No |
Client IP restrictions. |
condition.request_ip.not_in[] |
Array | No |
List of IPv4/IPv6 CIDR addresses. |
condition.request_ip.in[] |
Array | No |
List of IPv4/IPv6 CIDR addresses. |
status |
String | No |
Status of the token. Possible values:
|
not_before |
String | No |
The time before which the token MUST NOT be accepted for processing. |
policies[] |
Array | No |
List of access policies assigned to the token. |
policies[].effect |
String | Yes |
Allow or deny operations against the resources. Possible values:
|
policies[].id |
String | Yes |
Policy identifier. |
policies[].resources |
Object | Yes |
A list of resource names that the policy applies to. |
policies[].permission_groups[] |
Array | Yes |
A set of permission groups that are specified to the policy. |
policies[].permission_groups[].id |
String | Yes |
Identifier of the group. |
policies[].permission_groups[].name |
String | No |
Name of the group. |
policies[].permission_groups[].meta |
Object | No |
Attributes associated to the permission group. |
policies[].permission_groups[].meta.key |
String | No | |
policies[].permission_groups[].meta.value |
String | No | |
modified_on |
String | No |
Last time the token was modified. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.