How-To: Modify User Access Token Setting
Last updated
Was this helpful?
Last updated
Was this helpful?
After creating a User Access Token, you can update its parameters to reflect new requirements. This includes modifying its name, note, expiration date, status, and model assignment.
Note: Model assignment is only possible for tokens that are not currently assigned to any model. To reassign a token, you must first remove the existing assignment, making the token unassigned, and then assign it to the desired model.
This guide provides instructions for making these changes using the web console and the Python SDK.
name
New name for the token.
End-user can see the info
Any non-empty string
note
Updated note for additional context.
The info is restricted to AI providers
Any string, or none at all
expriationDate
Set a new expiration date within the allowed range.
End-user can see the info
Valid Unix timestamp (BigInt)
status
Update the token's status (active
or cancelled
).
End-user can see the info
ACTIVE
, CANCELED
, SUSPENDED
modelId
Assign the token to a model. This is only possible for unassigned tokens.
Users can view the name associated with a model by providing its model ID
Valid modelId
string or None
Follow these steps to modify token parameters through the web console:
Navigate to the Tokens Page Log in to the web console and go to the Tokens section. Use the filters or sorting options to locate the token you want to modify.
Access the Edit Options
Click the three dots button next to the token you want to modify.
Select the Edit option from the dropdown menu.
Modify the Parameters In the edit window, you can update the following:
Name: Update the descriptive name of the token.
Note: Add or change the note for the token.
Expiration Date: Adjust the token's expiration date within the allowed limits.
Status: Activate or cancel the token.
Model Assignment: If the token is unassigned, you can assign it to a model.
Delete the Token If the token is no longer needed, select the Delete option from the dropdown menu to remove it.
Save Changes Click Update Token to save your changes. The token’s updated details will appear in the token list.