Update a token

    1. In the navigation menu on the left, select Data (Load Data) > Tokens.

      Load Data

    2. Click the pencil icon next to the token’s name in the Description column.

    3. Update the token description, then click anywhere else to save.

    1. Load Data

    2. Click the Status toggle.

    Use the influx auth active command to activate a token.

    This command requires an authorization ID, which is available in the output of .

    1. influx auth find --json

    Use the to deactivate a token.

    This command requires an authorization ID, which is available in the output of influx auth find.

    To get the current status of a token, use the JSON output of the influx auth list command.

    1. influx auth find --json

    Use the /api/v2/authorizations InfluxDB API endpoint to update the description and status of a token.

    Disable a token

    1. # Update the description and status of the first authorization listed for the user.
    2. curl --request GET \
    3. --header "Authorization: Token ${INFLUX_TOKEN}" \
    4. --header 'Content-type: application/json' \
    5. | xargs -I authid curl --request PATCH \
    6. http://localhost:8086/api/v2/authorizations/authid \
    7. --header "Authorization: Token ${INFLUX_TOKEN}" \
    8. --header 'Content-type: application/json' \
    9. --data '{
    10. "description": "deactivated_auth",