POST api/sitecontact

This method adds a new site contact

Request Information

URI Parameters

None.

Body Parameters

SiteContactPost
NameDescriptionTypeAdditional information
SiteID The ID of the site integer

Required

Title The Title of the new contact string

String length: inclusive between 0 and 4

Surname The Surname of the new contact string

String length: inclusive between 0 and 40

Christian The Christian name of the new contact string

Required

String length: inclusive between 0 and 40

DDI The DDI of the new contact string

String length: inclusive between 0 and 34

Mobile The Mobile number of the new contact string

Data type: PhoneNumber

String length: inclusive between 0 and 17

Email The Email Address of the new contact string

Required

Matching regular expression pattern: ^([a-zA-Z0-9_\-\.]+)@((\[?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\]?)|(([a-zA-Z0-9\-]+\.)+)([a-zA-Z0-9]{2,63}))$

String length: inclusive between 0 and 255

Extension The Extension of the new contact string

String length: inclusive between 0 and 5

MainContact Indicates whether the new contact is the main contact boolean

None.

PreventSDeskNotify Prohibit incident emails boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteID": 1,
  "Title": "sample string 2",
  "Surname": "sample string 3",
  "Christian": "sample string 4",
  "DDI": "sample string 5",
  "Mobile": "sample string 6",
  "Email": "sample string 7",
  "Extension": "sample string 8",
  "MainContact": true,
  "PreventSDeskNotify": true
}

application/xml, text/xml

Sample:
<SiteContactPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/aBILLity.WebAPI.Models.Company">
  <Christian>sample string 4</Christian>
  <DDI>sample string 5</DDI>
  <Email>sample string 7</Email>
  <Extension>sample string 8</Extension>
  <MainContact>true</MainContact>
  <Mobile>sample string 6</Mobile>
  <PreventSDeskNotify>true</PreventSDeskNotify>
  <Surname>sample string 3</Surname>
  <Title>sample string 2</Title>
  <SiteID>1</SiteID>
</SiteContactPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NewSiteContactResponse
NameDescriptionTypeAdditional information
Id integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1
}

application/xml, text/xml

Sample:
<NewSiteContactResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/aBILLity.WebAPI.Models.Company">
  <Id>1</Id>
</NewSiteContactResponse>