Update a contact

put

/api/REST/1.0/data/contact/{id}

Updates the contact specified by the id parameter. All properties should be included in PUT requests, as some properties will be considered blank if not included.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the contact to be updated.
Root Schema : Contact
Type: object
Title: Contact
Show Source
Nested Schema : fieldValues
Type: array
Array containing type and id values for all of the contactFields associated with a given contact.
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Contact
Type: object
Title: Contact
Show Source
Nested Schema : fieldValues
Type: array
Array containing type and id values for all of the contactFields associated with a given contact.
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Update the email address and phone number of the contact with #Id 22482:


PUT /api/REST/1.0/data/contact/22482
Content-Type: application/json 
			

Request body:


{
    "emailAddress":"fortinbras@norway.com",
    "id":"22482",
    "businessPhone":"555-555-5555"
}
			

Response:


{
    "type":"Contact",
    "currentStatus":"Awaiting action",
    "id":"22482",
    "initialId":"22482",
    "createdAt":"1434039531",
    "depth":"complete",
    "name":"fortinbras100@norway.com",
    "updatedAt":"1434051580",
    "businessPhone":"555-555-5555",
    "emailAddress":"fortinbras100@norway.com",
    "emailFormatPreference":"unspecified",
    "fieldValues":[
        {
            "type":"FieldValue",
            "id":"100005"
        },
        {
            "type":"FieldValue",
            "id":"100017"
        },
        {
            "type":"FieldValue",
            "id":"100023"
        },
        {
            "type":"FieldValue",
            "id":"100024"
        },
        {
            "type":"FieldValue",
            "id":"100032",
            "value":"CPLTO000000022482"
        },
        {
            "type":"FieldValue",
            "id":"100033"
        },
        {
            "type":"FieldValue",
            "id":"100034"
        },
        {
            "type":"FieldValue",
            "id":"100035"
        },
        {
            "type":"FieldValue",
            "id":"100036"
        },
        {
            "type":"FieldValue",
            "id":"100041"
        },
        {
            "type":"FieldValue",
            "id":"100043"
        },
        {
            "type":"FieldValue",
            "id":"100044"
        },
        {
            "type":"FieldValue",
            "id":"100045"
        },
        {
            "type":"FieldValue",
            "id":"100046"
        },
        {
            "type":"FieldValue",
            "id":"100047"
        },
        {
            "type":"FieldValue",
            "id":"100048"
        },
        {
            "type":"FieldValue",
            "id":"100049"
        },
        {
            "type":"FieldValue",
            "id":"100051"
        },
        {
            "type":"FieldValue",
            "id":"100065"
        },
        {
            "type":"FieldValue",
            "id":"100066"
        },
        {
            "type":"FieldValue",
            "id":"100068"
        },
        {
            "type":"FieldValue",
            "id":"100069"
        },
        {
            "type":"FieldValue",
            "id":"100072"
        },
        {
            "type":"FieldValue",
            "id":"100081"
        },
        {
            "type":"FieldValue",
            "id":"100171",
            "value":"norway.com"
        },
        {
            "type":"FieldValue",
            "id":"100172"
        },
        {
            "type":"FieldValue",
            "id":"100174"
        },
        {
            "type":"FieldValue",
            "id":"100175"
        },
        {
            "type":"FieldValue",
            "id":"100176"
        },
        {
            "type":"FieldValue",
            "id":"100177"
        },
        {
            "type":"FieldValue",
            "id":"100178"
        },
        {
            "type":"FieldValue",
            "id":"100179"
        },
        {
            "type":"FieldValue",
            "id":"100180"
        },
        {
            "type":"FieldValue",
            "id":"100184"
        },
        {
            "type":"FieldValue",
            "id":"100187"
        },
        {
            "type":"FieldValue",
            "id":"100188"
        },
        {
            "type":"FieldValue",
            "id":"100189",
            "value":"fortinbrasL88FJF"
        },
        {
            "type":"FieldValue",
            "id":"100190"
        },
        {
            "type":"FieldValue",
            "id":"100191"
        },
        {
            "type":"FieldValue",
            "id":"100192"
        },
        {
            "type":"FieldValue",
            "id":"100193"
        },
        {
            "type":"FieldValue",
            "id":"100194"
        },
        {
            "type":"FieldValue",
            "id":"100195"
        },
        {
            "type":"FieldValue",
            "id":"100197"
        }
    ],
    "isBounceback":"false",
    "isSubscribed":"true",
    "subscriptionDate":"1434050717"
}
			

Note:

For contact assets, the FieldValue id corresponds to the value received when making a GET request to the assets/contact/field/{id} endpoint.
Back to Top