POST api/people/{id}/addcontactitem

Add a ContactItem to a Person

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ContactItemSaveCommandDataContract
NameDescriptionTypeAdditional information
Id

integer

None.

Type

EnumDataContract

None.

Value

string

None.

Notes

string

None.

ContactOrder

integer

None.

AllowContact

boolean

None.

MarketingContactStatus

EnumDataContract

None.

NormalisedRegionCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Type": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "Value": "sample string 2",
  "Notes": "sample string 3",
  "ContactOrder": 4,
  "AllowContact": true,
  "MarketingContactStatus": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "NormalisedRegionCode": "sample string 5"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The created ContactItem

ContactItemDataContract
NameDescriptionTypeAdditional information
Type

EnumDataContract

None.

Value

string

None.

Notes

string

None.

ContactOrder

integer

None.

AllowContact

boolean

None.

MarketingContactStatus

EnumDataContract

None.

Name

string

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Type": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "Value": "sample string 1",
  "Notes": "sample string 2",
  "ContactOrder": 3,
  "AllowContact": true,
  "MarketingContactStatus": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "Name": "sample string 5",
  "Id": 6
}