POST api/users/{guid}/contacts

Post an array of contacts to a given user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
guid

globally unique identifier

Required

Body Parameters

Collection of PostContactReq
NameDescriptionTypeAdditional information
FirstName

The first name of the contact

string

None.

MiddleName

The middle name(s) of the contact

string

None.

LastName

The last name of the contact

string

None.

Place

No longer used - Will be ignored.

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "firstName": "Bertha",
    "middleName": "Lilly",
    "lastName": "Howe",
    "place": "14 Fake Street Halifax Nova Scotia Canada"
  },
  {
    "firstName": "Eli",
    "middleName": "May Lee",
    "lastName": "Peters",
    "place": "Bedford Canada"
  }
]

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Post an array of contacts to a given user

PostContactResp
NameDescriptionTypeAdditional information
NumAdded

How many contacts were uploaded to the server

integer

None.

NumNew

How many of the contacts were new

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "numAdded": 1,
  "numNew": 2
}

Error responses

No documented error responses