Skip to content

Put Update Contact

Base URLs

Demo URL: https://demoapi.openletterconnect.com/api/v1

Production URL: https://api.openletterconnect.com/api/v1

{{base_url}}/contacts/35031

Description

This endpoint is used to update an existing contact in the system. It allows you to modify details such as the contact's name, company, phone number, email, and tags. The API will return a confirmation message indicating that the contact has been updated successfully, along with the updated contact information.

AUTHORIZATION

Bearer Token

  • Token: {{jwt_token}}

Body Raw

{
   "companyName": "TechCorp",
    "firstName": "Michael",
    "lastName": "Smith",
    "phoneNo": "919-555-7890",
    "email": "[email protected]",
    "tags": ["home", "office", "workspace"],
    "propertyAddress1": "123 Elm Street",
    "propertyCity": "Raleigh",
    "propertyState": "ME",
    "propertyZip": "04222",
    "meta_data": {
        "account_id": "123-1234-12342355-12323534635"
    }
}

Example Request

curl --location -g --request PUT '{{base_url}}/contacts/3' \
--data-raw '{
    "companyName": "TechCorp",
    "firstName": "Michael",
    "lastName": "Smith",
    "address1": "123 Elm Street",
    "address2": "Springfield, IL 62704",
    "phoneNo": "919-555-7890",
    "extension": "123",
    "email": "[email protected]",
    "websiteUrl": "https://techcorp.com",
    "city": "Springfield",
    "state": "Illinois",
    "countryCode": "US",
    "zip": "04222",
    "isVerified": true,
    "meta": [],
    "tags": ["home", "office", "house"]
}'

Example Response

{
  "message": "Contact Updated Successfully",
  "data": {
    "id": "3",
    "firstName": "Michael",
    "lastName": "Smith",
    "fullName": "Michael Smith",
    "companyName": "TechCorp",
    "address1": "123 Elm Street",
    "address2": "Springfield, IL 62704",
    "city": "Springfield",
    "state": "Illinois",
    "zip": "04222",
    "phoneNo": "919-555-7890",
    "extension": "042",
    "websiteUrl": "https://techcorp.com",
    "addressStatus": null,
    "lastMailedStatus": null,
    "lastMailedDate": null,
    "orgId": "1",
    "email": "[email protected]",
    "isVerified": null,
    "isLiveMode": false,
    "ContactLabels": [
      {
        "id": "1",
        "title": "office"
      },
      {
        "id": "3",
        "title": "house"
      },
      {
        "id": "4",
        "title": "home"
      }
    ],
    "createdAt": "2023-12-04T13:49:42.201Z"
  }
}