User Contact Update
Markdown for LLMsReplaces one of the caller's contacts. Send its id as userContactId, and the new content as { "userContact": { "name", "email" }, "externalContext" }.
An update is a full replacement of name and email, and both are mandatory: a userContact without either is rejected with 400 VALIDATION_ERROR and nothing changes. sharedWithAccount keeps the value it was given at creation. The response returns the contact as it is now stored.
Send a bearer token: contacts belong to the signed-in user, and a call without one is rejected at the gateway with 401 AUTHORIZATION_ERROR.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
Id of the contact to update, as returned by common-user-contact-create or common-user-contact-list in id. Only the caller's own contacts can be addressed: another user's contact id answers 404 NOT_FOUND_BY_ID, as an unknown one does. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches none of the caller's contacts returns 404 NOT_FOUND_BY_ID.
uuidRequest Body
application/json
Mandatory, as UserContactRequest, with both name and email.
TypeScript Definitions
Use the request body type in TypeScript.
Request body for common-user-contact-create and common-user-contact-update.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/common/user/contact/4b0cc61e-b776-4d26-8439-f03749675d0a/update" \ -H "Content-Type: application/json" \ -d '{ "userContact": { "name": "Jane Doe", "email": "jane.doe@example.com" }, "externalContext": { "id": "12345" } }'{ "result": { "statusCode": 200, "message": "OK", "data": { "userContact": { "id": "4b0cc61e-b776-4d26-8439-f03749675d0a", "name": "Jane Doe", "email": "jane.doe@example.com", "sharedWithAccount": false } } }, "externalContext": { "id": "12345" }, "origin": "PUT https://api.doctavian.com/v1/common/user/contact/{userContactId}/update", "dateTime": "2026-10-16T11:42:16.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "8b5a7b676b4146525209ccfce785d1e5"}{ "error": { "statusCode": 400, "message": "Bad Request", "innerErrors": [ { "code": "VALIDATION_ERROR", "message": "There were validation errors with the request.", "userMessage": "The field in the request is not valid. Details: Email is required." } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "PUT https://api.doctavian.com/v1/common/user/contact/{userContactId}/update", "dateTime": "2026-10-16T11:43:00.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "be83cf0eab139ea36b7fd3e01dd989ab"}{ "error": { "statusCode": 401, "message": "Unauthorized", "innerErrors": [ { "code": "AUTHORIZATION_ERROR", "message": "Authorization header is missing.", "userMessage": "Authorization header is missing." } ] }, "origin": "PUT https://api.doctavian.com/v1/common/user/contact/{userContactId}/update", "dateTime": "2026-10-16T11:43:02.000Z"}{ "error": { "statusCode": 404, "message": "Not Found", "innerErrors": [ { "code": "NOT_FOUND_BY_ID", "message": "The specified resource was not found.", "userMessage": "The specified user contact was not found with the Id: 4b0cc61e-b776-4d26-8439-f03749675d0a" } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "PUT https://api.doctavian.com/v1/common/user/contact/{userContactId}/update", "dateTime": "2026-10-16T11:43:06.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "2c8e5a1f9d3b47064a7e0c2f8b1d6e95"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "FUNCTION_EXECUTION_ERROR", "message": "Function execution failed.", "userMessage": "Something went wrong while processing your request. Please try again or contact support.", "eventId": "0d4b8f2e-6a1c-4937-b5e3-9c7f1a2d6e08" } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "PUT https://api.doctavian.com/v1/common/user/contact/{userContactId}/update", "dateTime": "2026-10-16T11:43:04.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "3a8129d90679f86a3eab35d4858bb10e"}