Update User Profile API
API Documentation for updating the profile details of the currently logged-in user in CL2C.
⚠️ This content is not available in your language yet.
Update Profile - PUT /v1/cl2c/user
This endpoint updates the profile information for the currently authenticated user. Access to this API requires tenant and API key headers.
Parameters
Name | Type | In | Description | Required |
---|---|---|---|---|
tenant | string | header | Tenant ID for accessing the API | Yes |
X-API-Key | string | header | API Key for authentication | Yes |
Request Body
Content-Type: application/json
Field | Type | Description |
---|---|---|
id | string | User ID |
firstName | string | First name of the user |
lastName | string | Last name of the user |
phoneNumber | string | User's phone number |
pushToken | string | Push token for notifications |
Example Request Body
Responses
Success Response (200)
Returns the updated user profile details.
Content-Type: application/json
Field | Type | Description |
---|---|---|
id | string | Unique ID of the user |
userName | string | User's username |
firstName | string | First name |
lastName | string | Last name |
email | string | User's email |
emailConfirmed | boolean | Email confirmation status |
authenticated | boolean | Authentication status |
authValidUpto | string | Expiry date of auth token |
authLocation | string | Authentication location |
phoneNumber | string | User's phone number |
walletAddress | string | User's wallet address |
Example Success Response
Error Response (400)
If validation fails, returns a detailed error response.
Content-Type: application/json
Field | Type | Description |
---|---|---|
type | string | Error type |
title | string | Short error message |
status | integer | HTTP status code |
detail | string | Detailed error description |
instance | string | Request instance identifier |
errors | object | Validation errors (optional) |
Example Error Response
Default Error Response
For other errors, this response structure provides general information.
Content-Type: application/json
Field | Type | Description |
---|---|---|
messages | array | List of error messages |
source | string | Error source |
exception | string | Exception details |
errorId | string | Unique error identifier |
supportMessage | string | Message for support team |
statusCode | integer | HTTP status code |
Example Default Error Response
Usage Examples
JavaScript Example