POST api/GatePass/PostGatePass

Request Information

URI Parameters

None.

Body Parameters

Collection of S_GatePass
NameDescriptionTypeAdditional information
Id

integer

None.

GPNo

string

String length: inclusive between 0 and 15

InvoiceNo

string

String length: inclusive between 0 and 20

TransporterId

string

String length: inclusive between 0 and 15

SecurityCheckFlag

string

None.

BranchCode

integer

None.

CreatedBy

integer

None.

CreatedOn

date

None.

ModifiedBy

integer

None.

ModifiedOn

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "GPNo": "sample string 2",
    "InvoiceNo": "sample string 3",
    "TransporterId": "sample string 4",
    "SecurityCheckFlag": "sample string 5",
    "BranchCode": 6,
    "CreatedBy": 7,
    "CreatedOn": "2024-04-18T01:41:12.5661786+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2024-04-18T01:41:12.5661786+00:00"
  },
  {
    "Id": 1,
    "GPNo": "sample string 2",
    "InvoiceNo": "sample string 3",
    "TransporterId": "sample string 4",
    "SecurityCheckFlag": "sample string 5",
    "BranchCode": 6,
    "CreatedBy": 7,
    "CreatedOn": "2024-04-18T01:41:12.5661786+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2024-04-18T01:41:12.5661786+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfS_GatePass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
  <S_GatePass>
    <BranchCode>6</BranchCode>
    <CreatedBy>7</CreatedBy>
    <CreatedOn>2024-04-18T01:41:12.5661786+00:00</CreatedOn>
    <GPNo>sample string 2</GPNo>
    <Id>1</Id>
    <InvoiceNo>sample string 3</InvoiceNo>
    <ModifiedBy>1</ModifiedBy>
    <ModifiedOn>2024-04-18T01:41:12.5661786+00:00</ModifiedOn>
    <SecurityCheckFlag>sample string 5</SecurityCheckFlag>
    <TransporterId>sample string 4</TransporterId>
  </S_GatePass>
  <S_GatePass>
    <BranchCode>6</BranchCode>
    <CreatedBy>7</CreatedBy>
    <CreatedOn>2024-04-18T01:41:12.5661786+00:00</CreatedOn>
    <GPNo>sample string 2</GPNo>
    <Id>1</Id>
    <InvoiceNo>sample string 3</InvoiceNo>
    <ModifiedBy>1</ModifiedBy>
    <ModifiedOn>2024-04-18T01:41:12.5661786+00:00</ModifiedOn>
    <SecurityCheckFlag>sample string 5</SecurityCheckFlag>
    <TransporterId>sample string 4</TransporterId>
  </S_GatePass>
</ArrayOfS_GatePass>

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 'S_GatePass[]'.

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.