POST api/servicetype/CreateServiceType

Request Information

URI Parameters

None.

Body Parameters

ServiceType
NameDescriptionTypeAdditional information
ServiceTypeID

integer

None.

ServiceTypeName

string

Required

String length: inclusive between 0 and 50

ServiceTypeCode

string

Required

String length: inclusive between 0 and 5

UserName

string

Required

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "ServiceTypeID": 1,
  "ServiceTypeName": "sample string 2",
  "ServiceTypeCode": "sample string 3",
  "UserName": "sample string 4"
}

application/xml, text/xml

Sample:
<ServiceType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MDMWebAPI.Models">
  <ServiceTypeCode>sample string 3</ServiceTypeCode>
  <ServiceTypeID>1</ServiceTypeID>
  <ServiceTypeName>sample string 2</ServiceTypeName>
  <UserName>sample string 4</UserName>
</ServiceType>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.