API ReferenceUsers
Update current user
Request Body
application/json
Update user
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "http://localhost:8000/api/users/me" \ -H "Content-Type: application/json" \ -d '{ "lastName": "string", "firstName": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"email": "string",
"emailVerified": "2019-08-24",
"firstName": "string",
"lastName": "string",
"language": "string",
"timezone": "string",
"phoneNumber": "string",
"phoneVerified": "2019-08-24",
"lastLogin": "2019-08-24",
"isSuperuser": true,
"isTechnical": true,
"avatarFileId": "string",
"lastAccessAt": "2019-08-24",
"deviceTokens": [
"string"
],
"piiRevealedAt": "2019-08-24",
"updatedAt": "2019-08-24",
"createdAt": "2019-08-24",
"deletedAt": "2019-08-24",
"routerOrganizations": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"routerOrganizationId": "15569885-70ac-4d21-976e-98f95fd74e2c",
"deletedAt": "2019-08-24",
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"roles": [
"string"
],
"createdAt": "string",
"organization": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"slug": "string",
"logoFileId": "string",
"migrated": true
}
}
],
"isTechnicalAccount": false,
"avatarUrl": "string",
"intercomUserHash": "string"
}