LatticaAI Documentation
  • Welcome to LatticaAI
  • Conceptual Guide
  • Architecture Overview
    • Management Client
    • Query Client
  • Platform Workflows
    • Account Management
    • Model Management
    • User Access Management
    • Query Submission
    • Credit Management
    • Worker Management
  • How-To Guides
    • Client Installation
      • How-To: Install Management Client
      • How-To: Install Query Client
    • Model Lifecycle
      • How-To: Deploy AI model
      • How-To: Modify AI Model Settings
    • Access Control
      • How-To: Create User Access Token
      • How-To: Modify User Access Token Setting
      • How-To: Remove Token's Assignment
      • How-To: Assign Token to Model
      • How-To: See List of Tokens
    • Resource Management
      • How-To: Start Worker
      • How-To: Stop Worker
      • How-To: Monitor Worker Performance
    • Secure Query Processing
      • How To: Upload Evaluation Key
      • How-To: Encrypt Input Message
      • How To: Execute Query
      • How-To: Decrypt Output Data
      • How-To: Encrypt, Execute, and Decrypt in One Step
    • Account and Finance Operations
      • How-To: View Payment Transaction History
      • How-To: Update Account Information
      • How-To: View Credit Balance and Add Credit to Your Account
      • How-To: Monitor Balance and Usage
  • Demo Tutorials
    • Image Sharpening with LatticaAI Demo Tutorial
    • Sentiment Analysis with LatticaAI Demo Tutorial
    • Health Analysis with LatticaAI Demo Tutorial
    • Digit Recognition with LatticaAI Demo Tutorial
    • Zooming Into Each Step of Demo Run with LatticaAI flow
Powered by GitBook
On this page

Was this helpful?

  1. How-To Guides
  2. Access Control

How-To: Modify User Access Token Setting

PreviousHow-To: Create User Access TokenNextHow-To: Remove Token's Assignment

Last updated 3 months ago

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.


Parameters that may be modified

Field
Description
Is this information accessible to end-users or it is restricted to system providers only
Allowed Values

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:

  1. 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.

  2. 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.

  3. 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.

  4. Delete the Token If the token is no longer needed, select the Delete option from the dropdown menu to remove it.

  5. Save Changes Click Update Token to save your changes. The token’s updated details will appear in the token list.

Use the following code snippet to modify token parameters programmatically:

# Update Token
import LatticaManagement

# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")

# Get a token_id...
token_id = lattica.list_tokens()[0].token_id

# Update the token's attributes
lattica.update_token(token_id, status="CANCELED")

# Alternative 1:
# Cancel token
lattica.cancel_token(token_id)