Update a local personal contact owned by the authenticated user. Contacts imported by the Microsoft Exchange server-to-server sync cannot be updated and return 404 with error-contact-not-found.
Changelog
| Version | Description |
|---|---|
| 9.1.0 | Added |
The authToken of the authenticated user.
The userId of the authenticated user.
{
"contactId": "690c2b2d4e7e8bcf6985b3d8",
"givenName": "John",
"surname": "Renamed"
}Enter the contact ID to update.
Enter the contact's given name.
Enter the contact's surname. Omit the field to clear it.
Enter the contact's company name.
OK
{
"contact": {
"_id": "690c2b2d4e7e8bcf6985b3d8",
"source": "local",
"displayName": "John Renamed",
"givenName": "John",
"surname": "Renamed",
"emails": [],
"phones": [],
"_updatedAt": "2025-11-05T08:10:00.000Z"
},
"success": true
}A personal contact returned by the Contacts API. Sync-only fields (uid, externalId, folderId, lastSyncAt) are never included.
local for contacts created in Rocket.Chat. outlook for contacts imported by Microsoft Exchange server-to-server sync.
Present on local contacts. Exchange imports may omit it.
E.164 form when raw includes a resolvable country code.
Set on Outlook-synced contacts. Either ews or graph.
Bad Request
{
"success": false,
"error": "must have required property 'contactId' [error-invalid-params]"
}Unauthorized
{
"success": false,
"error": "You must be logged in to do this."
}Forbidden
{
"success": false,
"error": "User does not have the permissions required for this action",
"errorType": "error-forbidden"
}Not Found
{
"success": false,
"error": "error-contact-not-found"
}