POST api/NTCosCompany/SaveCorporationContact

Request Information

URI Parameters

None.

Body Parameters

CorporationContactDTO
NameDescriptionTypeAdditional information
Id

integer

None.

CorporationCode

string

String length: inclusive between 0 and 200

Title

string

String length: inclusive between 0 and 20

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

Email

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 20

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": "2025-04-03T19:32:06.2624955-07:00",
      "DateUpdated": "2025-04-03T19:32:06.2624955-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": "2025-04-03T19:32:06.2624955-07:00",
      "DateUpdated": "2025-04-03T19:32:06.2624955-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": "2025-04-03T19:32:06.2624955-07:00",
      "DateUpdated": "2025-04-03T19:32:06.2624955-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": "2025-04-03T19:32:06.2624955-07:00",
      "DateUpdated": "2025-04-03T19:32:06.2624955-07:00",
      "UserIDCreated": 8,
      "UserIDUpdated": 9,
      "CompanyCode": "sample string 10",
      "IsExcludeDiscount": true
    }
  ],
  "ValidFlag": true,
  "DateCreated": "2025-04-03T19:32:06.2624955-07:00",
  "DateUpdated": "2025-04-03T19:32:06.2624955-07:00",
  "UserIDCreated": 17,
  "UserIDUpdated": 18,
  "CompanyCode": "sample string 19",
  "IsExcludeDiscount": true
}

application/xml, text/xml

Sample:
<CorporationContactDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
  <CompanyCode>sample string 19</CompanyCode>
  <DateCreated>2025-04-03T19:32:06.2624955-07:00</DateCreated>
  <DateUpdated>2025-04-03T19:32:06.2624955-07:00</DateUpdated>
  <IsExcludeDiscount>true</IsExcludeDiscount>
  <UserIDCreated>17</UserIDCreated>
  <UserIDUpdated>18</UserIDUpdated>
  <ValidFlag>true</ValidFlag>
  <CellNumber>sample string 6</CellNumber>
  <CorporationCode>sample string 2</CorporationCode>
  <CorporationContact_CustomRequirementList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO.NurseTriage">
    <d2p1:CorporationContact_CustomRequirementDTO>
      <CompanyCode>sample string 11</CompanyCode>
      <DateCreated>2025-04-03T19:32:06.2624955-07:00</DateCreated>
      <DateUpdated>2025-04-03T19:32:06.2624955-07:00</DateUpdated>
      <IsExcludeDiscount>true</IsExcludeDiscount>
      <UserIDCreated>9</UserIDCreated>
      <UserIDUpdated>10</UserIDUpdated>
      <ValidFlag>true</ValidFlag>
      <d2p1:ContactId>2</d2p1:ContactId>
      <d2p1:EntityId>sample string 3</d2p1:EntityId>
      <d2p1:EntityTypeId>4</d2p1:EntityTypeId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 5</d2p1:Name>
    </d2p1:CorporationContact_CustomRequirementDTO>
    <d2p1:CorporationContact_CustomRequirementDTO>
      <CompanyCode>sample string 11</CompanyCode>
      <DateCreated>2025-04-03T19:32:06.2624955-07:00</DateCreated>
      <DateUpdated>2025-04-03T19:32:06.2624955-07:00</DateUpdated>
      <IsExcludeDiscount>true</IsExcludeDiscount>
      <UserIDCreated>9</UserIDCreated>
      <UserIDUpdated>10</UserIDUpdated>
      <ValidFlag>true</ValidFlag>
      <d2p1:ContactId>2</d2p1:ContactId>
      <d2p1:EntityId>sample string 3</d2p1:EntityId>
      <d2p1:EntityTypeId>4</d2p1:EntityTypeId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 5</d2p1:Name>
    </d2p1:CorporationContact_CustomRequirementDTO>
  </CorporationContact_CustomRequirementList>
  <CustomRequirementCount>8</CustomRequirementCount>
  <Email>sample string 7</Email>
  <Fax>sample string 12</Fax>
  <FirstName>sample string 4</FirstName>
  <Id>1</Id>
  <LastName>sample string 5</LastName>
  <OnsiteLocationName>sample string 10</OnsiteLocationName>
  <SelectedList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO.NurseTriage">
    <d2p1:ClientContactNotificationDTO>
      <CompanyCode>sample string 10</CompanyCode>
      <DateCreated>2025-04-03T19:32:06.2624955-07:00</DateCreated>
      <DateUpdated>2025-04-03T19:32:06.2624955-07:00</DateUpdated>
      <IsExcludeDiscount>true</IsExcludeDiscount>
      <UserIDCreated>8</UserIDCreated>
      <UserIDUpdated>9</UserIDUpdated>
      <ValidFlag>true</ValidFlag>
      <d2p1:ClientContactId>2</d2p1:ClientContactId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:NotificationTypeId>4</d2p1:NotificationTypeId>
      <d2p1:Type>sample string 3</d2p1:Type>
    </d2p1:ClientContactNotificationDTO>
    <d2p1:ClientContactNotificationDTO>
      <CompanyCode>sample string 10</CompanyCode>
      <DateCreated>2025-04-03T19:32:06.2624955-07:00</DateCreated>
      <DateUpdated>2025-04-03T19:32:06.2624955-07:00</DateUpdated>
      <IsExcludeDiscount>true</IsExcludeDiscount>
      <UserIDCreated>8</UserIDCreated>
      <UserIDUpdated>9</UserIDUpdated>
      <ValidFlag>true</ValidFlag>
      <d2p1:ClientContactId>2</d2p1:ClientContactId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:NotificationTypeId>4</d2p1:NotificationTypeId>
      <d2p1:Type>sample string 3</d2p1:Type>
    </d2p1:ClientContactNotificationDTO>
  </SelectedList>
  <SubServiceName>sample string 9</SubServiceName>
  <Title>sample string 3</Title>
  <WorkPhone>sample string 11</WorkPhone>
  <selectedIds>sample string 13</selectedIds>
</CorporationContactDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AsapResponseOfCorporationContactDTO
NameDescriptionTypeAdditional 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": "2025-04-03T19:32:06.2624955-07:00",
        "DateUpdated": "2025-04-03T19:32:06.2624955-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": "2025-04-03T19:32:06.2624955-07:00",
        "DateUpdated": "2025-04-03T19:32:06.2624955-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": "2025-04-03T19:32:06.2624955-07:00",
        "DateUpdated": "2025-04-03T19:32:06.2624955-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": "2025-04-03T19:32:06.2624955-07:00",
        "DateUpdated": "2025-04-03T19:32:06.2624955-07:00",
        "UserIDCreated": 8,
        "UserIDUpdated": 9,
        "CompanyCode": "sample string 10",
        "IsExcludeDiscount": true
      }
    ],
    "ValidFlag": true,
    "DateCreated": "2025-04-03T19:32:06.2624955-07:00",
    "DateUpdated": "2025-04-03T19:32:06.2624955-07:00",
    "UserIDCreated": 17,
    "UserIDUpdated": 18,
    "CompanyCode": "sample string 19",
    "IsExcludeDiscount": true
  },
  "totalCount": 3
}

application/xml, text/xml

Sample:
<AsapResponseOfCorporationContactDTO3NYuOdgi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common">
  <isSuccess>true</isSuccess>
  <jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
    <d2p1:CompanyCode>sample string 19</d2p1:CompanyCode>
    <d2p1:DateCreated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateCreated>
    <d2p1:DateUpdated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateUpdated>
    <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
    <d2p1:UserIDCreated>17</d2p1:UserIDCreated>
    <d2p1:UserIDUpdated>18</d2p1:UserIDUpdated>
    <d2p1:ValidFlag>true</d2p1:ValidFlag>
    <d2p1:CellNumber>sample string 6</d2p1:CellNumber>
    <d2p1:CorporationCode>sample string 2</d2p1:CorporationCode>
    <d2p1:CorporationContact_CustomRequirementList xmlns:d3p1="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO.NurseTriage">
      <d3p1:CorporationContact_CustomRequirementDTO>
        <d2p1:CompanyCode>sample string 11</d2p1:CompanyCode>
        <d2p1:DateCreated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateCreated>
        <d2p1:DateUpdated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateUpdated>
        <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
        <d2p1:UserIDCreated>9</d2p1:UserIDCreated>
        <d2p1:UserIDUpdated>10</d2p1:UserIDUpdated>
        <d2p1:ValidFlag>true</d2p1:ValidFlag>
        <d3p1:ContactId>2</d3p1:ContactId>
        <d3p1:EntityId>sample string 3</d3p1:EntityId>
        <d3p1:EntityTypeId>4</d3p1:EntityTypeId>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Name>sample string 5</d3p1:Name>
      </d3p1:CorporationContact_CustomRequirementDTO>
      <d3p1:CorporationContact_CustomRequirementDTO>
        <d2p1:CompanyCode>sample string 11</d2p1:CompanyCode>
        <d2p1:DateCreated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateCreated>
        <d2p1:DateUpdated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateUpdated>
        <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
        <d2p1:UserIDCreated>9</d2p1:UserIDCreated>
        <d2p1:UserIDUpdated>10</d2p1:UserIDUpdated>
        <d2p1:ValidFlag>true</d2p1:ValidFlag>
        <d3p1:ContactId>2</d3p1:ContactId>
        <d3p1:EntityId>sample string 3</d3p1:EntityId>
        <d3p1:EntityTypeId>4</d3p1:EntityTypeId>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Name>sample string 5</d3p1:Name>
      </d3p1:CorporationContact_CustomRequirementDTO>
    </d2p1:CorporationContact_CustomRequirementList>
    <d2p1:CustomRequirementCount>8</d2p1:CustomRequirementCount>
    <d2p1:Email>sample string 7</d2p1:Email>
    <d2p1:Fax>sample string 12</d2p1:Fax>
    <d2p1:FirstName>sample string 4</d2p1:FirstName>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:LastName>sample string 5</d2p1:LastName>
    <d2p1:OnsiteLocationName>sample string 10</d2p1:OnsiteLocationName>
    <d2p1:SelectedList xmlns:d3p1="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO.NurseTriage">
      <d3p1:ClientContactNotificationDTO>
        <d2p1:CompanyCode>sample string 10</d2p1:CompanyCode>
        <d2p1:DateCreated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateCreated>
        <d2p1:DateUpdated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateUpdated>
        <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
        <d2p1:UserIDCreated>8</d2p1:UserIDCreated>
        <d2p1:UserIDUpdated>9</d2p1:UserIDUpdated>
        <d2p1:ValidFlag>true</d2p1:ValidFlag>
        <d3p1:ClientContactId>2</d3p1:ClientContactId>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:NotificationTypeId>4</d3p1:NotificationTypeId>
        <d3p1:Type>sample string 3</d3p1:Type>
      </d3p1:ClientContactNotificationDTO>
      <d3p1:ClientContactNotificationDTO>
        <d2p1:CompanyCode>sample string 10</d2p1:CompanyCode>
        <d2p1:DateCreated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateCreated>
        <d2p1:DateUpdated>2025-04-03T19:32:06.2624955-07:00</d2p1:DateUpdated>
        <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
        <d2p1:UserIDCreated>8</d2p1:UserIDCreated>
        <d2p1:UserIDUpdated>9</d2p1:UserIDUpdated>
        <d2p1:ValidFlag>true</d2p1:ValidFlag>
        <d3p1:ClientContactId>2</d3p1:ClientContactId>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:NotificationTypeId>4</d3p1:NotificationTypeId>
        <d3p1:Type>sample string 3</d3p1:Type>
      </d3p1:ClientContactNotificationDTO>
    </d2p1:SelectedList>
    <d2p1:SubServiceName>sample string 9</d2p1:SubServiceName>
    <d2p1:Title>sample string 3</d2p1:Title>
    <d2p1:WorkPhone>sample string 11</d2p1:WorkPhone>
    <d2p1:selectedIds>sample string 13</d2p1:selectedIds>
  </jsonObj>
  <message>sample string 2</message>
  <totalCount>3</totalCount>
</AsapResponseOfCorporationContactDTO3NYuOdgi>