POST api/contacts?multiple={multiple}

Adds a number of contacts with the collection of contacts given

Request Information

URI Parameters

NameDescriptionTypeAdditional information
multiple

Any value is valid eg. 1, true, yes, etc.

string

Required

Body Parameters

A collection of contact to add

Collection of 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"
  },
  {
    "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

Collection of contacts

Collection of 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:35:27.7282589+00:00",
    "Modified": "2019-08-19T15:35:27.7282589+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"
  },
  {
    "OwnerID": "sample string 1",
    "Created": "2019-08-19T15:35:27.7282589+00:00",
    "Modified": "2019-08-19T15:35:27.7282589+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"
  }
]