POST api/hosts
Request Information
URI Parameters
None.
Body Parameters
Host| Name | Description | Type | Additional information |
|---|---|---|---|
| HostId | integer |
None. |
|
| FullName | string |
None. |
|
| string |
None. |
||
| Department | string |
None. |
|
| UserId | integer |
None. |
|
| Mobile | string |
None. |
|
| IsActive | boolean |
None. |
|
| CreatedAt | date |
None. |
|
| WhatsAppEnabled | boolean |
None. |
|
| WhatsAppNumber | string |
None. |
|
| NotificationPreferences | Collection of NotificationPreference |
None. |
|
| EmailNotifications | boolean |
None. |
|
| Notes | string |
None. |
|
| UpdatedAt | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"HostId": 1,
"FullName": "sample string 2",
"Email": "sample string 3",
"Department": "sample string 4",
"UserId": 5,
"Mobile": "sample string 6",
"IsActive": true,
"CreatedAt": "2025-12-22T19:54:25.7594516+05:30",
"WhatsAppEnabled": true,
"WhatsAppNumber": "sample string 10",
"NotificationPreferences": [
{
"PreferenceId": 1,
"UserId": 2,
"NotificationType": "sample string 3",
"EmailEnabled": true,
"WhatsAppEnabled": true,
"SmsEnabled": true,
"InAppEnabled": true,
"CreatedAt": "2025-12-22T19:54:25.7604515+05:30",
"UpdatedAt": "2025-12-22T19:54:25.7604515+05:30"
},
{
"PreferenceId": 1,
"UserId": 2,
"NotificationType": "sample string 3",
"EmailEnabled": true,
"WhatsAppEnabled": true,
"SmsEnabled": true,
"InAppEnabled": true,
"CreatedAt": "2025-12-22T19:54:25.7604515+05:30",
"UpdatedAt": "2025-12-22T19:54:25.7604515+05:30"
}
],
"EmailNotifications": true,
"Notes": "sample string 12",
"UpdatedAt": "2025-12-22T19:54:25.7614512+05:30"
}
application/xml, text/xml
Sample:
<Host xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NSGVisitor.Entities">
<CreatedAt>2025-12-22T19:54:25.7594516+05:30</CreatedAt>
<Department>sample string 4</Department>
<Email>sample string 3</Email>
<EmailNotifications>true</EmailNotifications>
<FullName>sample string 2</FullName>
<HostId>1</HostId>
<IsActive>true</IsActive>
<Mobile>sample string 6</Mobile>
<Notes>sample string 12</Notes>
<NotificationPreferences>
<NotificationPreference>
<CreatedAt>2025-12-22T19:54:25.7604515+05:30</CreatedAt>
<EmailEnabled>true</EmailEnabled>
<InAppEnabled>true</InAppEnabled>
<NotificationType>sample string 3</NotificationType>
<PreferenceId>1</PreferenceId>
<SmsEnabled>true</SmsEnabled>
<UpdatedAt>2025-12-22T19:54:25.7604515+05:30</UpdatedAt>
<UserId>2</UserId>
<WhatsAppEnabled>true</WhatsAppEnabled>
</NotificationPreference>
<NotificationPreference>
<CreatedAt>2025-12-22T19:54:25.7604515+05:30</CreatedAt>
<EmailEnabled>true</EmailEnabled>
<InAppEnabled>true</InAppEnabled>
<NotificationType>sample string 3</NotificationType>
<PreferenceId>1</PreferenceId>
<SmsEnabled>true</SmsEnabled>
<UpdatedAt>2025-12-22T19:54:25.7604515+05:30</UpdatedAt>
<UserId>2</UserId>
<WhatsAppEnabled>true</WhatsAppEnabled>
</NotificationPreference>
</NotificationPreferences>
<UpdatedAt>2025-12-22T19:54:25.7614512+05:30</UpdatedAt>
<UserId>5</UserId>
<WhatsAppEnabled>true</WhatsAppEnabled>
<WhatsAppNumber>sample string 10</WhatsAppNumber>
</Host>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.