POST api/productType/save

Request Information

URI Parameters

None.

Body Parameters

ProductTypeDTO
NameDescriptionTypeAdditional information
Id

integer

None.

IndustryId

integer

None.

IndustryName

string

None.

Code

string

None.

Name

string

None.

Status

boolean

None.

ProductName

string

None.

Type

string

None.

IndustryDTOs

Collection of IndustryDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IndustryId": 2,
  "IndustryName": "sample string 3",
  "Code": "sample string 4",
  "Name": "sample string 5",
  "Status": true,
  "ProductName": "sample string 7",
  "Type": "sample string 8",
  "IndustryDTOs": [
    {
      "Id": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "Description": "sample string 4",
      "Status": true,
      "ModifiedBy": 1,
      "ModifiedDate": "2025-12-10T04:50:04.8956318+00:00",
      "CreatedBy": 1,
      "CreatedDate": "2025-12-10T04:50:04.8956318+00:00"
    },
    {
      "Id": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "Description": "sample string 4",
      "Status": true,
      "ModifiedBy": 1,
      "ModifiedDate": "2025-12-10T04:50:04.8956318+00:00",
      "CreatedBy": 1,
      "CreatedDate": "2025-12-10T04:50:04.8956318+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<ProductTypeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.ProductSetup">
  <Code>sample string 4</Code>
  <Id>1</Id>
  <IndustryDTOs xmlns:d2p1="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.Master">
    <d2p1:IndustryDTO>
      <d2p1:Code>sample string 2</d2p1:Code>
      <d2p1:CreatedBy>1</d2p1:CreatedBy>
      <d2p1:CreatedDate>2025-12-10T04:50:04.8956318+00:00</d2p1:CreatedDate>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:ModifiedDate>2025-12-10T04:50:04.8956318+00:00</d2p1:ModifiedDate>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:Status>true</d2p1:Status>
    </d2p1:IndustryDTO>
    <d2p1:IndustryDTO>
      <d2p1:Code>sample string 2</d2p1:Code>
      <d2p1:CreatedBy>1</d2p1:CreatedBy>
      <d2p1:CreatedDate>2025-12-10T04:50:04.8956318+00:00</d2p1:CreatedDate>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:ModifiedDate>2025-12-10T04:50:04.8956318+00:00</d2p1:ModifiedDate>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:Status>true</d2p1:Status>
    </d2p1:IndustryDTO>
  </IndustryDTOs>
  <IndustryId>2</IndustryId>
  <IndustryName>sample string 3</IndustryName>
  <Name>sample string 5</Name>
  <ProductName>sample string 7</ProductName>
  <Status>true</Status>
  <Type>sample string 8</Type>
</ProductTypeDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>