GET api/site/{id}/SiteContact
Error Messages
- 404/NotFound: Site with id = X not found - Specified ID is not assigned to a site
- 401/Unauthorized: CompanySiteContactPermission - User does not have the required permissions to view this site's contacts
- 404/NotFound: No contacts found for site Id = X - No contacts are found on the specified site ID. Use the POST-api-sitecontact method to add a contact
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | The unique identifer for the Site Contact being queried. | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of SiteContactView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | The ID for the contact being queried | integer |
None. |
| SiteID | The ID of the returned site | integer |
None. |
| LastUpdated | The date/time that the site contact was last updated | date |
None. |
| Title | The Title of the returned contact | string |
String length: inclusive between 0 and 4 |
| Surname | The Surname of the returned contact | string |
String length: inclusive between 0 and 40 |
| Christian | The Christian name of the returned contact | string |
Required String length: inclusive between 0 and 40 |
| DDI | The DDI of the returned contact | string |
String length: inclusive between 0 and 34 |
| Mobile | The Mobile number of the returned contact | string |
Data type: PhoneNumber String length: inclusive between 0 and 17 |
| The Email Address of the returned 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 returned contact | string |
String length: inclusive between 0 and 5 |
| MainContact | Indicates whether the returned contact is the main contact | boolean |
None. |
| PreventSDeskNotify | Prohibit incident emails | boolean |
None. |