PUT api/contacts/{contact}

Updates a given contact with the given information. NOTE! Existing information is replaced entirely with the new information set.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contact

Contact ID

integer

Required

Body Parameters

Updated contact data

ContactFullUpdateDTO
NameDescriptionTypeAdditional information
ID

Contact ID

integer

Required

Title

Contact title (within organization)

string

None.

Notes

Contact notes

string

None.

Organization

Contact company or other organization

string

None.

FirstName

Contact first name

string

Required

String length: inclusive between 0 and 100

LastName

Contact last name

string

String length: inclusive between 0 and 100

Phone

Contact phone number in E164 format

string

Required

String length: inclusive between 0 and 16

Valid phonenumber

Email

Contact email adress

string

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Title": "sample string 2",
  "Notes": "sample string 3",
  "Organization": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "Phone": "sample string 7",
  "Email": "sample string 8"
}

Response Information

Resource Description

Summary of updated contact

ContactFullDTO
NameDescriptionTypeAdditional information
OwnerID

ID of account owning the contact

string

None.

Created

Timestamp when contact was added

date

None.

Modified

Timestamp when contact was last modified

date

None.

ID

Contact ID

integer

Required

Title

Contact title (within organization)

string

None.

Notes

Contact notes

string

None.

Organization

Contact company or other organization

string

None.

FirstName

Contact first name

string

Required

String length: inclusive between 0 and 100

LastName

Contact last name

string

String length: inclusive between 0 and 100

Phone

Contact phone number in E164 format

string

Required

String length: inclusive between 0 and 16

Valid phonenumber

Email

Contact email adress

string

String length: inclusive between 0 and 50

Response Formats

application/json, text/json

Sample:
{
  "OwnerID": "sample string 1",
  "Created": "2019-08-19T15:33:55.8374538+00:00",
  "Modified": "2019-08-19T15:33:55.8374538+00:00",
  "ID": 2,
  "Title": "sample string 3",
  "Notes": "sample string 4",
  "Organization": "sample string 5",
  "FirstName": "sample string 6",
  "LastName": "sample string 7",
  "Phone": "sample string 8",
  "Email": "sample string 9"
}