latestOpenAPI 3.1.02026-08-085123123.9 KB

bf0b51ee8e8a

Members

Replace a member

Modify the representation of a member so that it becomes completely as specified. Unspecified attributes will be reset to their default empty values.

put/members/{key}

Path parameters

keystring required

Can be either the member's email address or their numerical ID

Request body

emailstring email required

The member's NEW email address

genderstring

m, f or o

firstnamestring
lastnamestring
companystring
languagestring

en_ca or fr_ca

birthdatestring

Format Y-m-d

postalCodestring
countrystring
notestring
customFieldsobject

Example request

{
  "email": "testing@example.org",
  "gender": "f",
  "firstname": "Jane",
  "lastname": "Doe",
  "company": "Jane Doe Company inc",
  "language": "en_ca",
  "birthdate": "1980-12-04",
  "postalCode": "h1h1h1",
  "country": "CA",
  "note": "This is a test.",
  "customFields": {
    "1": "this is a test!",
    "2": 200,
    "3": 1.5,
    "4": "2000-01-01"
  }
}

Response

Attributes of the replaced member

idinteger
firstnamestring
lastnamestring
companystring
emailstring email
genderstring

m, f or o

languagestring

en_ca or fr_ca

joinedOnstring nullable
updatedOnstring nullable
consentTypestring
postalCodestring
countrystring

ISO 3166-1 alpha-2 country code

notestring
birthdatestring nullable
mailingsReceivedinteger
mailingsOpenedinteger
mailingsClickedinteger
customFieldsobject

Example response

{
  "id": 3664823,
  "firstname": "John",
  "lastname": "Doe",
  "company": "John Doe Company inc",
  "email": "john.doe@example.org",
  "gender": "m",
  "language": "fr_ca",
  "joinedOn": "2014-12-09 13:42:48.020",
  "updatedOn": "2014-12-10 12:41:42.020",
  "consentType": "implied",
  "country": "CA",
  "customFields": {
    "1": "This is a test !",
    "2": 1000,
    "3": 1.5,
    "4": "2000-01-01"
  }
}