User Account

Update an Aura Historia access token

Changed on

Updates metadata for one access token owned by the authenticated user. Omitted properties remain unchanged; expires: null clears expiry. name and scopes reject null; use scopes: [] to clear scopes. The response contains secret-free metadata only and never returns plaintext or masked token values. Accepts Cognito access JWTs or Aura Historia opaque bearer access tokens. Aura Historia access tokens require the delegated access-tokens:write capability.

patch/api/v1/me/access-tokens

Request

  • Base URL: https://api.stage.aura-historia.com
  • URL: https://api.stage.aura-historia.com/api/v1/me/access-tokens
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

accessTokenIdstring required

Unique identifier of the access token to update.

namestring

Omit to leave unchanged. Null is invalid.

scopesAccessTokenScopeData[]

Omit to leave unchanged. Send [] to empty the set; null is invalid.

expiresstring date-time nullable

Omit to leave unchanged. Send null to clear the expiration timestamp.

Example request

{
  "accessTokenId": "at_4ck23tcv0meqqrbyjaka24ra6g",
  "name": "Renamed partner sync token",
  "scopes": [
    "product-listings:write"
  ],
  "expires": "2026-07-31T00:00:00Z"
}

Response

Access token updated successfully

userIdstring required

User who owns the access token.

accessTokenIdstring required

Unique identifier of the access token.

namestring required

User-defined display name of the access token.

scopesAccessTokenScopeData[] required

Granted access-token scopes. An empty scope set is returned as an empty array.

originstring required

Origin recorded by the access-token model.

expiresstring date-time

Optional RFC3339 expiration timestamp; omitted when the token does not expire and returned for expired and current tokens.

Example response

{
  "userId": "usr_5pvhvpxyhve6ts31n9x8c2y513",
  "accessTokenId": "at_4ck23tcv0meqqrbyjaka24ra6g",
  "name": "Partner product sync",
  "scopes": [
    "product-listings:write"
  ],
  "origin": "User",
  "expires": "2026-06-30T00:00:00Z"
}

Changes

    • warning

      added the new admin-overview:read enum value to the / response property for the response status

    • warning

      added the new auctions:write enum value to the / response property for the response status

    • warning

      added the new listing-sources:read enum value to the / response property for the response status

    • warning

      added the new notifications:read enum value to the / response property for the response status

    • warning

      added the new notifications:write enum value to the / response property for the response status

    • warning

      added the new parties:read enum value to the / response property for the response status

    • warning

      added the new parties:write enum value to the / response property for the response status

    • warning

      added the new partnership-applications:read enum value to the / response property for the response status

    • warning

      added the new partnership-applications:write enum value to the / response property for the response status

    • warning

      added the new partnerships:read enum value to the / response property for the response status

    • warning

      added the new partnerships:write enum value to the / response property for the response status

    • warning

      added the new search-filters:read enum value to the / response property for the response status

    • info

      added the new admin-overview:read enum value to the request property /

    • info

      added the new auctions:write enum value to the request property /

    • info

      added the new listing-sources:read enum value to the request property /

    • info

      added the new notifications:read enum value to the request property /

    • info

      added the new notifications:write enum value to the request property /

    • info

      added the new parties:read enum value to the request property /

    • info

      added the new parties:write enum value to the request property /

    • info

      added the new partnership-applications:read enum value to the request property /

    • info

      added the new partnership-applications:write enum value to the request property /

    • info

      added the new partnerships:read enum value to the request property /

    • info

      added the new partnerships:write enum value to the request property /

    • info

      added the new search-filters:read enum value to the request property /

    • warning

      added the new auctions:read enum value to the / response property for the response status

    • info

      added the new auctions:read enum value to the request property /