POST api/contacts

Creates a new contact with the given information

Request Information

URI Parameters

None.

Body Parameters

Contact data of new contact

ContactFullNewDTO
NameDescriptionTypeAdditional information
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:
{
  "Title": "sample string 1",
  "Notes": "sample string 2",
  "Organization": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Phone": "sample string 6",
  "Email": "sample string 7"
}

Response Information

Resource Description

Summary of new 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:31:03.6143358+00:00",
  "Modified": "2019-08-19T15:31:03.6143358+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"
}