Contacts

putContactsId

PUT
/contacts/{id}

Update a Contact, A Contact resource represents an individual who is associated with an Entity.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this contact.

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Update Contact Request

Update Contact Request

entity?string

The identifier of the Entity that this Contact relates to.

first?string

The first name associated with this Contact.

middle?string

The middle name associated with this Contact.

last?string

The last name associated with this Contact.

description?string

A description of this Contact.

email?string

The email address of this Contact.

address1?string

The first line of the address associated with this Contact. This field is stored as a text string and must be between 1 and 500 characters long.

address2?string

The second line of the address associated with this Contact. This field is stored as a text string and must be between 1 and 500 characters long.

city?string

The name of the city in the address associated with this Contact. This field is stored as a text string and must be between 1 and 500 characters long.

state?string

The U.S. state or Canadian province relevant to the address provided here. If the location is within the U.S. and Canada, specify the 2-character postal abbreviation for the state. If the location is outside of the U.S. and Canada, provide the full state name. This field is stored as a text string and must be between 2 and 100 characters long.

  • AK - Alaska (US)

  • AR - Arkansas (US)

  • AL - Alabama (US)

  • AZ - Arizona (US)

  • CA - California (US)

  • CO - Colorado (US)

  • CT - Connecticut (US)

  • DE - Delaware (US)

  • FL - Florida (US)

  • GA - Georgia (US)

  • HI - Hawaii (US)

  • IA - Iowa (US)

  • ID - Idaho (US)

  • IL - Illinois (US)

  • IN - Indiana (US)

  • KY - Kentucky (US)

  • KS - Kansas (US)

  • LA - Louisiana (US)

  • MA - Massachusetts (US)

  • MD - Maryland (US)

  • ME - Maine (US)

  • MI - Michigan (US)

  • MN - Minnesota (US)

  • MO - Missouri (US)

  • MS - Mississippi (US)

  • MT - Montana (US)

  • NC - North Carolina (US)

  • ND - North Dakota (US)

  • NE - Nebraska (US)

  • NH - New Hampshire (US)

  • NJ - New Jersey (US)

  • NM - New Mexico (US)

  • NV - Nevada (US)

  • NY - New York (US)

  • OH - Ohio (US)

  • OK- Oklahoma (US)

  • OR - Oregon (US)

  • PA - Pennsylvania (US)

  • RI - Rhode Island (US)

  • SC- South Carolina (US)

  • SD - South Dakota (US)

  • TN - Tennessee (US)

  • TX - Texas (US)

  • UT - Utah (US)

  • VA - Virginia (US)

  • VT - Vermont (US)

  • WA - Washington (US)

  • WI - Wisconsin (US)

  • WV - West Virginia (US)

  • WY - Wyoming (US)

  • AB - Alberta (CAN)

  • BC - British Columbia (CAN)

  • MB - Manitoba (CAN)

  • ON - Ontario (CAN)

  • NS - Nova Scotia (CAN)

  • NB - New Brunswick (CAN)

  • NL - Newfoundland and Labrador (CAN)

  • NT - Northwest Territories (CAN)

  • NU - Nunavut (CAN)

  • PE - Prince Edward Island (CAN)

  • QC - Quebec (CAN)

  • SK - Saskatchewan (CAN)

  • YT - Yukon (CAN)

zip?string

The ZIP code in the address associated with this Contact. This field is stored as a text string and must be between 1 and 20 characters long.

country?country

The country associated with this Contact. Valid values for this field is the 3-letter ISO code for the country.

Value in

  • "ABW"
  • "AFG"
  • "AGO"
  • "AIA"
  • "ALA"
  • "ALB"
  • "AND"
  • "ARE"
  • "ARG"
  • "ARM"
  • "ASM"
  • "ATA"
  • "ATF"
  • "ATG"
  • "AUS"
  • "AUT"
  • "AZE"
  • "BDI"
  • "BEL"
  • "BEN"
  • "BES"
  • "BFA"
  • "BGD"
  • "BGR"
  • "BHR"
  • "BHS"
  • "BIH"
  • "BLM"
  • "BLR"
  • "BLZ"
  • "BMU"
  • "BOL"
  • "BRA"
  • "BRB"
  • "BRN"
  • "BTN"
  • "BVT"
  • "BWA"
  • "CAF"
  • "CAN"
  • "CCK"
  • "CHE"
  • "CHL"
  • "CHN"
  • "CIV"
  • "CMR"
  • "COD"
  • "COG"
  • "COK"
  • "COL"
  • "COM"
  • "CPV"
  • "CRI"
  • "CUB"
  • "CUW"
  • "CXR"
  • "CYM"
  • "CYP"
  • "CZE"
  • "DEU"
  • "DJI"
  • "DMA"
  • "DNK"
  • "DOM"
  • "DZA"
  • "ECU"
  • "EGY"
  • "ERI"
  • "ESH"
  • "ESP"
  • "EST"
  • "ETH"
  • "FIN"
  • "FJI"
  • "FLK"
  • "FRA"
  • "FRO"
  • "FSM"
  • "GAB"
  • "GBR"
  • "GEO"
  • "GGY"
  • "GHA"
  • "GIB"
  • "GIN"
  • "GLP"
  • "GMB"
  • "GNB"
  • "GNQ"
  • "GRC"
  • "GRD"
  • "GRL"
  • "GTM"
  • "GUF"
  • "GUM"
  • "GUY"
  • "HKG"
  • "HMD"
  • "HND"
  • "HRV"
  • "HTI"
  • "HUN"
  • "IDN"
  • "IMN"
  • "IND"
  • "IOT"
  • "IRL"
  • "IRN"
  • "IRQ"
  • "ISL"
  • "ISR"
  • "ITA"
  • "JAM"
  • "JEY"
  • "JOR"
  • "JPN"
  • "KAZ"
  • "KEN"
  • "KGZ"
  • "KHM"
  • "KIR"
  • "KNA"
  • "KOR"
  • "KWT"
  • "LAO"
  • "LBN"
  • "LBR"
  • "LBY"
  • "LCA"
  • "LIE"
  • "LKA"
  • "LSO"
  • "LTU"
  • "LUX"
  • "LVA"
  • "MAC"
  • "MAF"
  • "MAR"
  • "MCO"
  • "MDA"
  • "MDG"
  • "MDV"
  • "MEX"
  • "MHL"
  • "MKD"
  • "MLI"
  • "MLT"
  • "MMR"
  • "MNE"
  • "MNG"
  • "MNP"
  • "MOZ"
  • "MRT"
  • "MSR"
  • "MTQ"
  • "MUS"
  • "MWI"
  • "MYS"
  • "MYT"
  • "NAM"
  • "NCL"
  • "NER"
  • "NFK"
  • "NGA"
  • "NIC"
  • "NIU"
  • "NLD"
  • "NOR"
  • "NPL"
  • "NRU"
  • "NZL"
  • "OMN"
  • "PAK"
  • "PAN"
  • "PCN"
  • "PER"
  • "PHL"
  • "PLW"
  • "PNG"
  • "POL"
  • "PRI"
  • "PRK"
  • "PRT"
  • "PRY"
  • "PSE"
  • "PYF"
  • "QAT"
  • "REU"
  • "ROU"
  • "RUS"
  • "RWA"
  • "SAU"
  • "SDN"
  • "SEN"
  • "SGP"
  • "SGS"
  • "SHN"
  • "SJM"
  • "SLB"
  • "SLE"
  • "SLV"
  • "SMR"
  • "SOM"
  • "SPM"
  • "SRB"
  • "SSD"
  • "STP"
  • "SUR"
  • "SVK"
  • "SVN"
  • "SWE"
  • "SWZ"
  • "SXM"
  • "SYC"
  • "SYR"
  • "TCA"
  • "TCD"
  • "TGO"
  • "THA"
  • "TJK"
  • "TKL"
  • "TKM"
  • "TLS"
  • "TON"
  • "TTO"
  • "TUN"
  • "TUR"
  • "TUV"
  • "TWN"
  • "TZA"
  • "UGA"
  • "UKR"
  • "UMI"
  • "URY"
  • "USA"
  • "UZB"
  • "VAT"
  • "VCT"
  • "VEN"
  • "VGB"
  • "VIR"
  • "VNM"
  • "VUT"
  • "WLF"
  • "WSM"
  • "XXK"
  • "YEM"
  • "ZAF"
  • "ZMB"
  • "ZWE"
phone?string

The phone number associated with this Contact. This field is stored as a text string and must be between 10 and 15 characters long.

fax?string

The fax number associated with this Contact. This field is stored as a text string and must be between 10 and 15 characters long.

frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X PUT "https://example.com/contacts/t1_con_665f696f0d66c3281d00000" \  -H "Content-Type: application/json" \  -d '{    "entity": "t1_ent_665e13ff8b2e613134b9273",    "first": "first name",    "last": "last name",    "email": "fewafehwuohfewafewafewa@payrjfhuiweafewa.com",    "middle": "middle name",    "description": "description of Contact",    "address1": "first line of the address",    "address2": "second line of the address",    "city": "Anchorage",    "state": "AK",    "zip": "99501",    "country": "USA",    "phone": "1234567890",    "fax": "1234567890",    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_con_665f696f0d66c3281d00000",        "created": "2024-06-04 15:22:23.0592",        "modified": "2024-06-04 15:22:23.0592",        "creator": "t1_log_5d263a0050fcc8fb784a957",        "modifier": "t1_log_5d263a0050fcc8fb784a957",        "entity": "t1_ent_665e13ff8b2e613134b9273",        "first": "John",        "middle": "",        "last": "Doe",        "description": "",        "email": "JohnD@payr.com",        "fax": "",        "phone": "",        "country": "USA",        "zip": "",        "state": "AK",        "city": "",        "address2": "",        "address1": "",        "inactive": 0,        "frozen": 0      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}