Update Contact

put/v1/contacts/update

Updates the email, name, phone number, job title and company name of the existing contact details.

Code snippet

curl --location 'https://api.boldsign.com/v1/contacts/update?id=6797a07d-26d7-41fa-b3a8-c8f72378a7a6c_ErZHN' \
--header 'accept: */*' \
--header 'X-API-KEY: {your API key}' \
--header 'Content-Type: application/json' \
--data-raw '{
            "email": "luthercooper@cubeflakes.com",
            "name": "LutherCooper",
            "phoneNumber": {
                 "countryCode": "+1",
                 "number": "2015550123"
            },
            "jobTitle": "Developer",
            "companyName": "CubeFlakes"
        }'
var apiClient = new ApiClient("https://api.boldsign.com", "{apikey}");
var contactClient = new ContactClient(apiClient);
var id = "6797a07d-26d7-41fa-b3a8-c8f72378a7a6c_ErZHN";
var updateContact = new ContactDetails()
{
    Email = "test1711@gmail.com",
    Name = "Test_Engineer",
    PhoneNumber = new PhoneNumber()
    {
        CountryCode = "+1",
        Number = "2015550123"
    },
    CompanyName = "1711_1802",
    JobTitle = "Test"
};

await contactClient.UpdateContactAsync(id, updateContact).ConfigureAwait(false);
import boldsign

configuration = boldsign.Configuration(api_key="YOUR_API_KEY")

with boldsign.ApiClient(configuration) as api_client:   

    contacts_api = boldsign.ContactsApi(api_client)
    contact_details = boldsign.ContactDetails(
        email="hankwhite@cubeflakes.com",
        name="HankWhite",
        phoneNumber= boldsign.PhoneNumber(
            countryCode="+1",
            number="2015550123"
        ),
        jobTitle= "Developer",
        companyName="Test"
    )

    contacts_api.update_contact(id="YOUR_CONTACT_ID", contact_details=contact_details)
<?php require_once "vendor/autoload.php";

$config = new BoldSign\Configuration();
$config->setApiKey('YOUR_API_KEY');

$contacts_api = new BoldSign\Api\ContactsApi($config);
$update_contact = new \BoldSign\Model\ContactDetails(); 
$update_contact->setName('HankWhite');
$update_contact->setEmail('hankwhite@cubeflakes.com');
$update_contact->setCompanyName('CubeFlakes');
$update_contact->setJobTitle('Developer');
$phone_Number = new \BoldSign\Model\PhoneNumber();
$phone_Number->setCountryCode('+1');
$phone_Number->setNumber('2015550125');
$update_contact->setPhoneNumber($phone_Number);

$contacts_api->updateContact($contactId = 'YOUR_CONTACT_ID', $update_contact);
ApiClient client = Configuration.getDefaultApiClient();  
client.setApiKey("YOUR_API_KEY");

ContactsApi contactsApi = new ContactsApi(client);
ContactDetails updateContact = new ContactDetails();
updateContact.setEmail("hankwhite@cubeflakes.com");
updateContact.setName("HankWhite");
updateContact.setCompanyName("CubeFlakes");
updateContact.setJobTitle("Developer");
PhoneNumber phoneNumber = new PhoneNumber();
phoneNumber.setCountryCode("+1");
phoneNumber.setNumber("2015550125");
updateContact.setPhoneNumber(phoneNumber);

contactsApi.updateContact("YOUR_CONTACT_ID", updateContact);
import { ContactsApi,ContactDetails } from "@boldsign/node-sdk";

const contactsApi = new ContactsApi();
contactsApi.setApiKey("YOUR_API_KEY");

const contactDetails = new ContactDetails();
contactDetails.name = "Luther Cooper";
contactDetails.email = "luthercooper@cubeflakes.com";
contactDetails.jobTitle = "Senior Developer";
contactDetails.companyName = "CubeFlakes";

const updateContactResponse = contactsApi.updateContact("YOUR_CONTACT_ID", contactDetails);

Query parameters

idStringRequiredThe Contact ID of the user. It can be obtained from the list contacts API or from the web app.

Request body

emailstringRequiredThe email address of the user.
namestringRequiredThe name of the user

phoneNumberobject

The Phone Number of user

countryCodestringThis property represents the country code associated with the phone number.
numberstringThis property represents the actual phone number.
jobTitlestringThe jobTitle of the user
companyNamestringThe companyName of the user

Example response

200 No Content