Update Contact
put/v1/contacts/updateUpdates 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 requests import json url = "https://api.boldsign.com/v1/contacts/update?id=6797a07d-26d7-41fa-b3a8-c8f72378a7a6c_ErZHN" payload = { "email": "luthercooper@cubeflakes.com", "name": "LutherCooper", "phoneNumber": { "countryCode": "+1", "number": "2015550123" }, "jobTitle": "Developer", "companyName": "CubeFlakes" } headers = { "accept": "*/*", "X-API-KEY": "{your API key}", "Content-Type": "application/json", } requests.put(url, headers=headers, data=json.dumps(payload))
const axios = require('axios'); axios.put( 'https://api.boldsign.com/v1/contacts/update', { "email": "luthercooper@cubeflakes.com", "name": "LutherCooper", "phoneNumber": { "countryCode": "+1", "number": "2015550123" }, "jobTitle": "Developer", "companyName": "CubeFlakes" }, { params: { id:'6797a07d-26d7-41fa-b3a8-c8f72378a7a6c_Zah73', }, headers: { accept: '*/*', 'X-API-KEY': '{your API key}', }, }, );
<?php require_once "vendor/autoload.php"; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; $client = new Client(); $headers = [ 'accept' => '*/*', 'X-API-KEY' => '{your API key}', 'Content-Type' => 'application/json' ]; $body = '{ "email": "luthercooper@cubeflakes.com", "name": "LutherCooper", "phoneNumber": { "countryCode": "+1", "number": "2015550123" }, "jobTitle": "Testing Engineer", "companyName": "CubeFlakes" }'; $request = new Request('PUT', 'https://api.boldsign.com/v1/contacts/update?id=6797a07d-26d7-41fa-b3a8-c8f72378a7a6c_ErZHN', $headers, $body); $res = $client->sendAsync($request)->wait(); echo $res->getBody();
Query parameters
idStringRequired | Contact Id of the user. |
Request body
emailstringRequired | The email address of the user. | ||||
namestringRequired | The name of the user | ||||
phoneNumberobject | The Phone Number of user
| ||||
jobTitlestring | The jobTitle of the user | ||||
companyNamestring | The companyName of the user |
Example response
200 No Content