---
title: "Updates the Public API Token with apiTokenId"
method: PUT
path: "/token/"
tags: ["Token"]
---

# Updates the Public API Token with apiTokenId

`PUT /token/`

## Headers

- `X-Fields` string, mask

## Request body

- PublicApiTokenLoad
  - `apiTokenId` string
  - `name` string
  - `timeLastUsed` string, date-time — Token last used datetime in UTC timezone.

## Response `200`

Public API Token successfully updated.

- PublicApiHideTokenDump
  - `apiTokenId` string
  - `ipAddresses` PublicApiTokenIp
    - `ips` string[], required
    - `name` string
  - `name` string
  - `timeCreated` string, date-time
  - `timeExpiration` string, date-time, required — Token expiration datetime in UTC format.
  - `timeLastUsed` string, date-time — Token last used datetime in UTC timezone.
  - `timeUpdated` string, date-time
  - `token` string, required

## Other responses

- `400` — Bad request.
- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.

---

[API](https://skmtc.net/hivelocity/apis/hivelocity-api.md) · [All operations](https://skmtc.net/hivelocity/apis/hivelocity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hivelocity/hivelocity-api/revisions/ee6b717b5015/schema)
