POST api/ManagerDomain/Insert?typeAction={typeAction}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| typeAction | integer |
Required |
Body Parameters
DomainInsertBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | integer |
Required |
|
| Domain | string |
Required String length: inclusive between 0 and 50 |
|
| CompanyName | string |
String length: inclusive between 0 and 250 |
|
| CompanyTaxCode | string |
String length: inclusive between 0 and 15 |
|
| CompanyAddress | string |
String length: inclusive between 0 and 250 |
|
| CompanyPhone | string |
None. |
|
| VocativeId | integer |
None. |
|
| FullName | string |
Required String length: inclusive between 0 and 150 |
|
| string |
Required String length: inclusive between 0 and 100 |
||
| Phone | string |
Required |
|
| IDNo | string |
String length: inclusive between 0 and 15 |
|
| Address | string |
String length: inclusive between 0 and 100 |
|
| Description | string |
String length: inclusive between 0 and 500 |
|
| DateStart | date |
None. |
|
| DateExpired | date |
None. |
|
| IsUseIPFilter | boolean |
None. |
Request Formats
application/json, text/json
{
"typeId": 1,
"domain": "sample string 2",
"companyName": "sample string 3",
"companyTaxCode": "sample string 4",
"companyAddress": "sample string 5",
"companyPhone": "sample string 6",
"vocativeId": 7,
"fullName": "sample string 8",
"email": "sample string 9",
"phone": "sample string 10",
"idNo": "sample string 11",
"address": "sample string 12",
"description": "sample string 13",
"dateStart": "2025-12-06T12:29:08.4184543+07:00",
"dateExpired": "2025-12-06T12:29:08.4184543+07:00",
"isUseIPFilter": true
}
application/xml, text/xml
<DomainInsertBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.ManagerDomain"> <Address>sample string 12</Address> <CompanyAddress>sample string 5</CompanyAddress> <CompanyName>sample string 3</CompanyName> <CompanyPhone>sample string 6</CompanyPhone> <CompanyTaxCode>sample string 4</CompanyTaxCode> <DateExpired>2025-12-06T12:29:08.4184543+07:00</DateExpired> <DateStart>2025-12-06T12:29:08.4184543+07:00</DateStart> <Description>sample string 13</Description> <Domain>sample string 2</Domain> <Email>sample string 9</Email> <FullName>sample string 8</FullName> <IDNo>sample string 11</IDNo> <IsUseIPFilter>true</IsUseIPFilter> <Phone>sample string 10</Phone> <TypeId>1</TypeId> <VocativeId>7</VocativeId> </DomainInsertBinddingModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
DomainInsertBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | integer |
Required |
|
| Domain | string |
Required String length: inclusive between 0 and 50 |
|
| CompanyName | string |
String length: inclusive between 0 and 250 |
|
| CompanyTaxCode | string |
String length: inclusive between 0 and 15 |
|
| CompanyAddress | string |
String length: inclusive between 0 and 250 |
|
| CompanyPhone | string |
None. |
|
| VocativeId | integer |
None. |
|
| FullName | string |
Required String length: inclusive between 0 and 150 |
|
| string |
Required String length: inclusive between 0 and 100 |
||
| Phone | string |
Required |
|
| IDNo | string |
String length: inclusive between 0 and 15 |
|
| Address | string |
String length: inclusive between 0 and 100 |
|
| Description | string |
String length: inclusive between 0 and 500 |
|
| DateStart | date |
None. |
|
| DateExpired | date |
None. |
|
| IsUseIPFilter | boolean |
None. |
Response Formats
application/json, text/json
{
"typeId": 1,
"domain": "sample string 2",
"companyName": "sample string 3",
"companyTaxCode": "sample string 4",
"companyAddress": "sample string 5",
"companyPhone": "sample string 6",
"vocativeId": 7,
"fullName": "sample string 8",
"email": "sample string 9",
"phone": "sample string 10",
"idNo": "sample string 11",
"address": "sample string 12",
"description": "sample string 13",
"dateStart": "2025-12-06T12:29:08.4340754+07:00",
"dateExpired": "2025-12-06T12:29:08.4340754+07:00",
"isUseIPFilter": true
}
application/xml, text/xml
<DomainInsertBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.ManagerDomain"> <Address>sample string 12</Address> <CompanyAddress>sample string 5</CompanyAddress> <CompanyName>sample string 3</CompanyName> <CompanyPhone>sample string 6</CompanyPhone> <CompanyTaxCode>sample string 4</CompanyTaxCode> <DateExpired>2025-12-06T12:29:08.4340754+07:00</DateExpired> <DateStart>2025-12-06T12:29:08.4340754+07:00</DateStart> <Description>sample string 13</Description> <Domain>sample string 2</Domain> <Email>sample string 9</Email> <FullName>sample string 8</FullName> <IDNo>sample string 11</IDNo> <IsUseIPFilter>true</IsUseIPFilter> <Phone>sample string 10</Phone> <TypeId>1</TypeId> <VocativeId>7</VocativeId> </DomainInsertBinddingModel>