> For the complete documentation index, see [llms.txt](https://docs.connect.century.tech/draft/llms.txt)

# Update User External ID

> PUT /users/{userId}/external-id
> 
> Update or clear a user's external ID



## Servers
- Production: https://connect.century.tech/api/v1 (Production)


## Authentication methods
- Api key


## Parameters

### Path parameters

- **userId** (string(uuid))
  User UUID.



### Body: application/json (object)

- **externalId** (string)
  The external ID to set. Use null or empty string to clear the external ID.



## Responses
### 200
User external ID updated successfully.

#### Body: application/json (object)
- **user** (object)


### 400
Invalid request.

### 401
Invalid authentication credentials

### 403
Not authorised to access this resource

### 404
User not found.


[Powered by Bump.sh](https://bump.sh)
