---
title: Update Contact
slug: update-contact
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "BvifPNaCe9xRrcFHnU_IO",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "https://api.nue.io/contacts/{contactId}",
    "servers": [
      {
        "url": "https://api.nue.io/contacts/{contactId}",
        "description": "**Production Environment** - Live production server for all customer-facing operations. Use this for production integrations with real customer data and transactions."
      },
      {
        "url": "https://api.sandbox.nue.io/contacts/{contactId}",
        "description": "**Sandbox Environment** - Safe testing environment with sample data for development and integration testing. No rate limits apply. Data is reset weekly. Perfect for prototyping and QA testing."
      }
    ],
    "name": "Update Contact",
    "description": "This HTTP PATCH request is used to update the details of a specific contact identified by the contactId in the endpoint URL.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "contactId",
          "type": "string",
          "description": "ID of the contact to update"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "birthday",
              "kind": "optional",
              "type": "string<date>",
              "description": "<p>Birth date of the contact person in ISO format (YYYY-MM-DD)</p>",
              "format": "date"
            },
            {
              "name": "billingCity",
              "kind": "optional",
              "type": "string",
              "description": "City component of the contact's billing address"
            },
            {
              "name": "billingCountry",
              "kind": "optional",
              "type": "string",
              "description": "Country component of the contact's billing address"
            },
            {
              "name": "billingPostalCode",
              "kind": "optional",
              "type": "string",
              "description": "Postal code component of the contact's billing address"
            },
            {
              "name": "billingState",
              "kind": "optional",
              "type": "string",
              "description": "State or province component of the contact's billing address"
            },
            {
              "name": "billingStreet",
              "kind": "optional",
              "type": "string",
              "description": "Street address component of the contact's billing address"
            },
            {
              "name": "email",
              "kind": "optional",
              "type": "string<email>",
              "description": "<p>Email address of the contact person, used for communications</p>",
              "format": "email"
            },
            {
              "name": "firstName",
              "kind": "optional",
              "type": "string",
              "description": "<p>First name of the contact person, limited to 40 characters</p>"
            },
            {
              "name": "lastName",
              "kind": "optional",
              "type": "string",
              "description": "<p>Last name of the contact person, limited to 80 characters</p>"
            },
            {
              "name": "middleName",
              "kind": "optional",
              "type": "string",
              "description": "<p>Middle name of the contact person, limited to 40 characters</p>"
            },
            {
              "name": "mobilePhone",
              "kind": "optional",
              "type": "string",
              "description": "Mobile or cell phone number of the contact person"
            },
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "description": "<p>Full name of the contact person, required field</p>"
            },
            {
              "name": "phone",
              "kind": "optional",
              "type": "string",
              "description": "<p>Primary phone number of the contact person, such as office or home number</p>"
            },
            {
              "name": "shippingCity",
              "kind": "optional",
              "type": "string",
              "description": "City component of the contact's shipping address"
            },
            {
              "name": "shippingCountry",
              "kind": "optional",
              "type": "string",
              "description": "Country component of the contact's shipping address"
            },
            {
              "name": "shippingPostalCode",
              "kind": "optional",
              "type": "string",
              "description": "Postal code component of the contact's shipping address"
            },
            {
              "name": "shippingState",
              "kind": "optional",
              "type": "string",
              "description": "State or province component of the contact's shipping address"
            },
            {
              "name": "shippingStreet",
              "kind": "optional",
              "type": "string",
              "description": "Street address component of the contact's shipping address"
            },
            {
              "name": "suffix",
              "kind": "optional",
              "type": "string",
              "description": "<p>Name suffix of the contact person (e.g., Jr., Sr., III), limited to 40 characters</p>"
            },
            {
              "name": "title",
              "kind": "optional",
              "type": "string",
              "description": "<p>Professional or organizational title of the contact person (e.g., CEO, Director)</p>"
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "ApiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Contact updated successfully",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "Indicates the overall status of the request"
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "",
                "schema": [
                  {
                    "name": "billingCity",
                    "kind": "optional",
                    "type": "string",
                    "description": "City component of the contact's billing address"
                  },
                  {
                    "name": "billingCountry",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country component of the contact's billing address"
                  },
                  {
                    "name": "billingPostalCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Postal code component of the contact's billing address"
                  },
                  {
                    "name": "billingState",
                    "kind": "optional",
                    "type": "string",
                    "description": "State or province component of the contact's billing address"
                  },
                  {
                    "name": "billingStreet",
                    "kind": "optional",
                    "type": "string",
                    "description": "Street address component of the contact's billing address"
                  },
                  {
                    "name": "birthday",
                    "kind": "optional",
                    "type": "string<date>",
                    "description": "<p>Birth date of the contact person in ISO format (YYYY-MM-DD)</p>",
                    "format": "date"
                  },
                  {
                    "name": "createdById",
                    "kind": "optional",
                    "type": "string",
                    "description": "ID of the user who created the record"
                  },
                  {
                    "name": "createdDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "Creation timestamp",
                    "format": "date-time"
                  },
                  {
                    "name": "customerId",
                    "kind": "optional",
                    "type": "string",
                    "description": "ID of the customer associated with the contact"
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string<email>",
                    "description": "<p>Email address of the contact person, used for communications</p>",
                    "format": "email"
                  },
                  {
                    "name": "firstName",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>First name of the contact person, limited to 40 characters</p>"
                  },
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unique identifier for the contact"
                  },
                  {
                    "name": "lastModifiedById",
                    "kind": "optional",
                    "type": "string",
                    "description": "ID of the user who last modified the record"
                  },
                  {
                    "name": "lastModifiedDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "Last modification timestamp",
                    "format": "date-time"
                  },
                  {
                    "name": "lastName",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Last name of the contact person, limited to 80 characters</p>"
                  },
                  {
                    "name": "middleName",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Middle name of the contact person, limited to 40 characters</p>"
                  },
                  {
                    "name": "mobilePhone",
                    "kind": "optional",
                    "type": "string",
                    "description": "Mobile or cell phone number of the contact person"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Full name of the contact person, required field</p>"
                  },
                  {
                    "name": "phone",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Primary phone number of the contact person, such as office or home number</p>"
                  },
                  {
                    "name": "shippingCity",
                    "kind": "optional",
                    "type": "string",
                    "description": "City component of the contact's shipping address"
                  },
                  {
                    "name": "shippingCountry",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country component of the contact's shipping address"
                  },
                  {
                    "name": "shippingPostalCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Postal code component of the contact's shipping address"
                  },
                  {
                    "name": "shippingState",
                    "kind": "optional",
                    "type": "string",
                    "description": "State or province component of the contact's shipping address"
                  },
                  {
                    "name": "shippingStreet",
                    "kind": "optional",
                    "type": "string",
                    "description": "Street address component of the contact's shipping address"
                  },
                  {
                    "name": "taxExempt",
                    "kind": "optional",
                    "type": "string",
                    "description": "Tax exemption status"
                  },
                  {
                    "name": "timezone",
                    "kind": "optional",
                    "type": "string",
                    "description": "Customer's timezone"
                  },
                  {
                    "name": "type",
                    "kind": "optional",
                    "type": "string",
                    "description": "Customer type"
                  },
                  {
                    "name": "website",
                    "kind": "optional",
                    "type": "string<url>",
                    "description": "Customer's website URL",
                    "format": "url"
                  }
                ]
              },
              {
                "name": "warnings",
                "kind": "optional",
                "type": "array",
                "description": "Any warnings generated during processing",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "code",
                    "kind": "optional",
                    "type": "string",
                    "description": "Warning code"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "Warning message"
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "<p>Bad Request - The request was malformed or contained invalid parameters</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized - Authentication information is missing or invalid</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "<p>Not Found - The requested contact was not found</p>",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "K3GkXpHnAC4tIaLf0O-f2",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url https://api.nue.io/contacts/{contactId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "Yx_JXiQNqbMgn4mg92TlO",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/contacts/{contactId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "rBRp59UDyARLwg1x7nSXe",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/contacts/{contactId}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "cXnQs08QvG77g-I-PZSyc",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/contacts/{contactId}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "K3GkXpHnAC4tIaLf0O-f2"
    },
    "results": {
      "languages": [
        {
          "id": "4mkniYzhGdDXPtYv5Vu9D",
          "language": "200",
          "code": "// Contact updated successfully\n{\n  \"status\": \"\",\n  \"data\": {\n    \"billingCity\": \"\",\n    \"billingCountry\": \"\",\n    \"billingPostalCode\": \"\",\n    \"billingState\": \"\",\n    \"billingStreet\": \"\",\n    \"birthday\": \"\",\n    \"createdById\": \"\",\n    \"createdDate\": \"\",\n    \"customerId\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"id\": \"\",\n    \"lastModifiedById\": \"\",\n    \"lastModifiedDate\": \"\",\n    \"lastName\": \"\",\n    \"middleName\": \"\",\n    \"mobilePhone\": \"\",\n    \"name\": \"\",\n    \"phone\": \"\",\n    \"shippingCity\": \"\",\n    \"shippingCountry\": \"\",\n    \"shippingPostalCode\": \"\",\n    \"shippingState\": \"\",\n    \"shippingStreet\": \"\",\n    \"taxExempt\": \"\",\n    \"timezone\": \"\",\n    \"type\": \"\",\n    \"website\": \"\"\n  },\n  \"warnings\": [\n    {\n      \"code\": \"\",\n      \"message\": \"\"\n    }\n  ]\n}"
        },
        {
          "id": "-kKiWyjRgJTmLuwlMmCcv",
          "language": "400",
          "code": "// Bad Request - The request was malformed or contained invalid parameters\n"
        },
        {
          "id": "0E2pZBy7cF4lPRInKdcg7",
          "language": "401",
          "code": "// Unauthorized - Authentication information is missing or invalid\n"
        },
        {
          "id": "V6ZBEpx0Q0_aIjqzwAJ_I",
          "language": "404",
          "code": "// Not Found - The requested contact was not found\n"
        }
      ],
      "selectedLanguageId": "4mkniYzhGdDXPtYv5Vu9D"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}