POST api/P_ProductType/UploadDetail?CreatedBy={CreatedBy}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CreatedBy

integer

Required

Body Parameters

Collection of C_P_ProductType
NameDescriptionTypeAdditional information
Id

integer

None.

ProductTypeName

string

None.

ProductGroupId

integer

None.

CreatedBy

integer

None.

CreatedOn

date

None.

BranchCode

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ProductTypeName": "sample string 2",
    "ProductGroupId": 3,
    "CreatedBy": 1,
    "CreatedOn": "2024-04-28T17:26:09.7970655+00:00",
    "BranchCode": 4
  },
  {
    "Id": 1,
    "ProductTypeName": "sample string 2",
    "ProductGroupId": 3,
    "CreatedBy": 1,
    "CreatedOn": "2024-04-28T17:26:09.7970655+00:00",
    "BranchCode": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfC_P_ProductType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
  <C_P_ProductType>
    <BranchCode>4</BranchCode>
    <CreatedBy>1</CreatedBy>
    <CreatedOn>2024-04-28T17:26:09.7970655+00:00</CreatedOn>
    <Id>1</Id>
    <ProductGroupId>3</ProductGroupId>
    <ProductTypeName>sample string 2</ProductTypeName>
  </C_P_ProductType>
  <C_P_ProductType>
    <BranchCode>4</BranchCode>
    <CreatedBy>1</CreatedBy>
    <CreatedOn>2024-04-28T17:26:09.7970655+00:00</CreatedOn>
    <Id>1</Id>
    <ProductGroupId>3</ProductGroupId>
    <ProductTypeName>sample string 2</ProductTypeName>
  </C_P_ProductType>
</ArrayOfC_P_ProductType>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'C_P_ProductType[]'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.