---
title: "Update User Token by Resource Identifier"
method: PUT
path: "/programs/{programCode}/accounts/{accountIdentifier}/externalIdentifiers/{externalResource}"
tags: ["TokenManagement"]
---

# Update User Token by Resource Identifier

`PUT /programs/{programCode}/accounts/{accountIdentifier}/externalIdentifiers/{externalResource}`

Updates the P2P user token name and status for the specified resource identifier.

## Path parameters

- `programCode` string, required
- `externalResource` string, required
- `accountIdentifier` string, required

## Headers

- `X-GD-RequestId` string, required

## Request body

- UpdateTokenIdentifierRequest — Represents a request to update a token identifier for an account. Contains account and token details, status, and external resource context. Inherits standard request metadata from Gd.Bos.DataTransfer.Request.RequestBase.
  - `accountIdentifier` string, uuid, nullable — The unique identifier for the account associated with the token update.
  - `tokenName` string, nullable — The new or updated token name to be assigned.
  - `status` string, nullable — The status of the token update operation (e.g., "Active", "Inactive", "Pending").
  - `externalResource` string, nullable — An external resource identifier or context related to the token update.

## Response `200`

OK

- UpdateTokenIdentifierResponse — Represents the response returned after updating a token identifier. Contains the updated token name and the status of the update operation. Inherits standard response metadata from Gd.Bos.DataTransfer.Response.ResponseBase.
  - `tokenName` string, nullable — The updated token name after the operation.
  - `status` string, nullable — The status of the update operation.
  - `responseDetails` ResponseDetail[], nullable — Required: A list of response details providing status codes, descriptions, and additional information about the result of the operation.
    - `code` integer — The primary status or error code for the response (e.g., 200 for success, 400 for validation error).
    - `subCode` integer, nullable — An optional subcode providing more granular detail about the response or error.
    - `description` string, nullable — A human-readable description of the response, error, or status.
    - `url` string, nullable — A URL linking to documentation or a web page with more information about the response code.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/greendot/apis/baas-apis.md) · [All operations](https://skmtc.net/greendot/apis/baas-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/greendot/baas-apis/versions/666553766b78/schema)
