POST api/people/{id}/addcontactitem

Add a ContactItem to a Person

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Dezrez.Core.DataContracts.External.Api.People.Command.AddContactItem.ContactItemSaveCommandDataContract
NameDescriptionTypeAdditional information
Id

integer

None.

Type

Dezrez.Core.DataContracts.External.Api.System.EnumDataContract

None.

Value

string

None.

Notes

string

None.

ContactOrder

integer

None.

AllowContact

boolean

None.

MarketingContactStatus

Dezrez.Core.DataContracts.External.Api.System.EnumDataContract

None.

NormalisedRegionCode

string

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

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"
}

Response Information

Resource Description

The created ContactItem

Dezrez.Core.DataContracts.External.Api.People.Query.Get.ContactItemDataContract
NameDescriptionTypeAdditional information
Type

Dezrez.Core.DataContracts.External.Api.System.EnumDataContract

None.

Value

string

None.

Notes

string

None.

ContactOrder

integer

None.

AllowContact

boolean

None.

MarketingContactStatus

Dezrez.Core.DataContracts.External.Api.System.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
}