---
title: "UpdateHostAuthenticationTokenMetadata"
method: POST
path: "/gitpod.v1.RunnerConfigurationService/UpdateHostAuthenticationTokenMetadata"
tags: ["gitpod.v1.RunnerConfigurationService"]
---

# UpdateHostAuthenticationTokenMetadata

`POST /gitpod.v1.RunnerConfigurationService/UpdateHostAuthenticationTokenMetadata`

Updates metadata for an existing host authentication token.

 Use this method to:
 - Persist provider-derived identity metadata
 - Attach external user mappings used by webhook handling

 ### Examples

 - Update external user ID:

   Persists the provider user ID associated with the token.

   ```yaml
   runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   externalUserId: "12345678"
   ```

## Request body

- GitpodV1UpdateHostAuthenticationTokenMetadataRequest
  - `externalUserId` string, nullable
  - `id` string, uuid
  - `runnerId` string, uuid

## Response `200`

Success

- GitpodV1UpdateHostAuthenticationTokenMetadataResponse

## Other responses

- `default` — Error

---

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