POST api/ServiceTypes/Insert

Request Information

URI Parameters

None.

Body Parameters

ServiceTypeDtoIn
NameDescriptionTypeAdditional information
ServiceTypeId

integer

None.

ServiceTypeName

string

Max length: 40

Active

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "serviceTypeId": 1,
  "serviceTypeName": "sample string 2",
  "active": 3
}

text/html

Sample:
{"serviceTypeId":1,"serviceTypeName":"sample string 2","active":3}

application/xml, text/xml

Sample:
<ServiceTypeDtoIn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryTrackingSystem.Common.Dtos.Dto.ServiceTypes">
  <Active>3</Active>
  <ServiceTypeId>1</ServiceTypeId>
  <ServiceTypeName>sample string 2</ServiceTypeName>
</ServiceTypeDtoIn>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.