POST api/NTCosCompany/SaveCorporationContact
Request Information
URI Parameters
None.
Body Parameters
CorporationContactDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CorporationCode | string |
String length: inclusive between 0 and 200 |
|
| Title | string |
String length: inclusive between 0 and 200 |
|
| FirstName | string |
String length: inclusive between 0 and 50 |
|
| LastName | string |
String length: inclusive between 0 and 50 |
|
| CellNumber | string |
String length: inclusive between 0 and 25 |
|
| string |
String length: inclusive between 0 and 150 |
||
| CorporationContact_CustomRequirementList | Collection of CorporationContact_CustomRequirementDTO |
None. |
|
| CustomRequirementCount | integer |
None. |
|
| SubServiceName | string |
String length: inclusive between 0 and 50 |
|
| OnsiteLocationName | string |
String length: inclusive between 0 and 100 |
|
| WorkPhone | string |
String length: inclusive between 0 and 20 |
|
| Fax | string |
String length: inclusive between 0 and 20 |
|
| selectedIds | string |
String length: inclusive between 0 and 20 |
|
| SelectedList | Collection of ClientContactNotificationDTO |
None. |
|
| ValidFlag | boolean |
None. |
|
| DateCreated | date |
None. |
|
| DateUpdated | date |
None. |
|
| UserIDCreated | integer |
None. |
|
| UserIDUpdated | integer |
None. |
|
| CompanyCode | string |
String length: inclusive between 0 and 10 |
|
| IsExcludeDiscount | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CorporationCode": "sample string 2",
"Title": "sample string 3",
"FirstName": "sample string 4",
"LastName": "sample string 5",
"CellNumber": "sample string 6",
"Email": "sample string 7",
"CorporationContact_CustomRequirementList": [
{
"Id": 1,
"ContactId": 2,
"EntityId": "sample string 3",
"EntityTypeId": 4,
"Name": "sample string 5",
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6816583-07:00",
"DateUpdated": "2026-08-04T14:30:32.6816583-07:00",
"UserIDCreated": 9,
"UserIDUpdated": 10,
"CompanyCode": "sample string 11",
"IsExcludeDiscount": true
},
{
"Id": 1,
"ContactId": 2,
"EntityId": "sample string 3",
"EntityTypeId": 4,
"Name": "sample string 5",
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6816583-07:00",
"DateUpdated": "2026-08-04T14:30:32.6816583-07:00",
"UserIDCreated": 9,
"UserIDUpdated": 10,
"CompanyCode": "sample string 11",
"IsExcludeDiscount": true
}
],
"CustomRequirementCount": 8,
"SubServiceName": "sample string 9",
"OnsiteLocationName": "sample string 10",
"WorkPhone": "sample string 11",
"Fax": "sample string 12",
"selectedIds": "sample string 13",
"SelectedList": [
{
"Id": 1,
"ClientContactId": 2,
"Type": "sample string 3",
"NotificationTypeId": 4,
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6816583-07:00",
"DateUpdated": "2026-08-04T14:30:32.6816583-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
},
{
"Id": 1,
"ClientContactId": 2,
"Type": "sample string 3",
"NotificationTypeId": 4,
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6816583-07:00",
"DateUpdated": "2026-08-04T14:30:32.6816583-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
}
],
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6816583-07:00",
"DateUpdated": "2026-08-04T14:30:32.6816583-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AsapResponseOfCorporationContactDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| jsonObj | CorporationContactDTO |
None. |
|
| totalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSuccess": true,
"message": "sample string 2",
"jsonObj": {
"Id": 1,
"CorporationCode": "sample string 2",
"Title": "sample string 3",
"FirstName": "sample string 4",
"LastName": "sample string 5",
"CellNumber": "sample string 6",
"Email": "sample string 7",
"CorporationContact_CustomRequirementList": [
{
"Id": 1,
"ContactId": 2,
"EntityId": "sample string 3",
"EntityTypeId": 4,
"Name": "sample string 5",
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6897124-07:00",
"DateUpdated": "2026-08-04T14:30:32.6897124-07:00",
"UserIDCreated": 9,
"UserIDUpdated": 10,
"CompanyCode": "sample string 11",
"IsExcludeDiscount": true
},
{
"Id": 1,
"ContactId": 2,
"EntityId": "sample string 3",
"EntityTypeId": 4,
"Name": "sample string 5",
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6897124-07:00",
"DateUpdated": "2026-08-04T14:30:32.6897124-07:00",
"UserIDCreated": 9,
"UserIDUpdated": 10,
"CompanyCode": "sample string 11",
"IsExcludeDiscount": true
}
],
"CustomRequirementCount": 8,
"SubServiceName": "sample string 9",
"OnsiteLocationName": "sample string 10",
"WorkPhone": "sample string 11",
"Fax": "sample string 12",
"selectedIds": "sample string 13",
"SelectedList": [
{
"Id": 1,
"ClientContactId": 2,
"Type": "sample string 3",
"NotificationTypeId": 4,
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6897124-07:00",
"DateUpdated": "2026-08-04T14:30:32.6897124-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
},
{
"Id": 1,
"ClientContactId": 2,
"Type": "sample string 3",
"NotificationTypeId": 4,
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6897124-07:00",
"DateUpdated": "2026-08-04T14:30:32.6897124-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
}
],
"ValidFlag": true,
"DateCreated": "2026-08-04T14:30:32.6897124-07:00",
"DateUpdated": "2026-08-04T14:30:32.6897124-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
},
"totalCount": 3
}