PUT api/PEMEmail

Request Information

URI Parameters

None.

Body Parameters

orgPEMLink
NameDescriptionTypeAdditional information
PEMLinkID

integer

None.

EntityID

integer

None.

PlaceID

integer

None.

PersonID

integer

None.

EmailID

integer

None.

PhoneID

integer

None.

MediaID

integer

None.

IsDefault

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PEMLinkID": 1,
  "EntityID": 1,
  "PlaceID": 1,
  "PersonID": 1,
  "EmailID": 1,
  "PhoneID": 1,
  "MediaID": 1,
  "IsDefault": true
}

application/xml, text/xml

Sample:
<orgPEMLink xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Models">
  <EmailID>1</EmailID>
  <EntityID>1</EntityID>
  <IsDefault>true</IsDefault>
  <MediaID>1</MediaID>
  <PEMLinkID>1</PEMLinkID>
  <PersonID>1</PersonID>
  <PhoneID>1</PhoneID>
  <PlaceID>1</PlaceID>
</orgPEMLink>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'orgPEMLink'.

Response Information

Resource Description

PEMEmail
NameDescriptionTypeAdditional information
isMatchRequest

boolean

None.

EmailID

integer

None.

EmailAddress

string

None.

EmailTypeID

integer

None.

EmailTypeName

string

None.

PEMLinkID

integer

None.

LinkType

integer

None.

LinkID

integer

None.

LinkName

string

None.

IsDefault

boolean

None.

IsActive

boolean

None.

SubLinks

Collection of PEMSubLink

None.

Response Formats

application/json, text/json

Sample:
{
  "isMatchRequest": true,
  "EmailID": 2,
  "EmailAddress": "sample string 3",
  "EmailTypeID": 4,
  "EmailTypeName": "sample string 5",
  "PEMLinkID": 6,
  "LinkType": 7,
  "LinkID": 8,
  "LinkName": "sample string 9",
  "IsDefault": true,
  "IsActive": true,
  "SubLinks": [
    {
      "PEMLinkID": 1,
      "LinkID": 2,
      "LinkType": 3,
      "LinkName": "sample string 4"
    },
    {
      "PEMLinkID": 1,
      "LinkID": 2,
      "LinkType": 3,
      "LinkName": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<PEMEmail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Models">
  <EmailAddress>sample string 3</EmailAddress>
  <EmailID>2</EmailID>
  <EmailTypeID>4</EmailTypeID>
  <EmailTypeName>sample string 5</EmailTypeName>
  <IsActive>true</IsActive>
  <IsDefault>true</IsDefault>
  <LinkID>8</LinkID>
  <LinkName>sample string 9</LinkName>
  <LinkType>7</LinkType>
  <PEMLinkID>6</PEMLinkID>
  <SubLinks>
    <PEMSubLink>
      <LinkID>2</LinkID>
      <LinkName>sample string 4</LinkName>
      <LinkType>3</LinkType>
      <PEMLinkID>1</PEMLinkID>
    </PEMSubLink>
    <PEMSubLink>
      <LinkID>2</LinkID>
      <LinkName>sample string 4</LinkName>
      <LinkType>3</LinkType>
      <PEMLinkID>1</PEMLinkID>
    </PEMSubLink>
  </SubLinks>
  <isMatchRequest>true</isMatchRequest>
</PEMEmail>