POST api/Permit/EditPermit

Request Information

URI Parameters

None.

Body Parameters

PermitDTO
NameDescriptionTypeAdditional information
id

integer

None.

orderId

string

None.

permitKind

string

None.

permitNote

string

None.

date

date

None.

agentsId

integer

None.

cost

string

None.

createdDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "orderId": "sample string 2",
  "permitKind": "sample string 3",
  "permitNote": "sample string 4",
  "date": "2026-09-04T02:48:49.328563-07:00",
  "agentsId": 5,
  "cost": "sample string 6",
  "createdDate": "sample string 7"
}

application/xml, text/xml

Sample:
<PermitDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <agentsId>5</agentsId>
  <cost>sample string 6</cost>
  <createdDate>sample string 7</createdDate>
  <date>2026-09-04T02:48:49.328563-07:00</date>
  <id>1</id>
  <orderId>sample string 2</orderId>
  <permitKind>sample string 3</permitKind>
  <permitNote>sample string 4</permitNote>
</PermitDTO>

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 'PermitDTO'.

Response Information

Resource Description

IdentityResultDTO
NameDescriptionTypeAdditional information
success

boolean

None.

errorMessage

string

None.

error

Collection of string

None.

result

string

None.

resultObject

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "errorMessage": "sample string 2",
  "error": [
    "sample string 1",
    "sample string 2"
  ],
  "result": "sample string 3",
  "resultObject": [
    {},
    {}
  ]
}

application/xml, text/xml

Sample:
<IdentityResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <error xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </error>
  <errorMessage>sample string 2</errorMessage>
  <result>sample string 3</result>
  <resultObject xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </resultObject>
  <success>true</success>
</IdentityResultDTO>