POST api/ServiceRequest/PostServiceRequestSCKV2

Request Information

URI Parameters

None.

Body Parameters

ServiceRequestSCKV2
NameDescriptionTypeAdditional information
ServiceRequestId

integer

None.

RequestCode

string

None.

BrandId

integer

None.

ProductTypeId

integer

None.

Name

string

None.

PhoneNo

string

None.

UnderWarranty

string

None.

Email

string

None.

Address

string

None.

Pincode

string

None.

AddedOn

string

None.

IsActive

boolean

None.

RequestFromPage

string

None.

AddedBy

string

None.

IPAddress

string

None.

ClsBrand

clsBrand

None.

ClsProductType

clsProductType

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceRequestId": 1,
  "RequestCode": "sample string 2",
  "BrandId": 1,
  "ProductTypeId": 1,
  "Name": "sample string 3",
  "PhoneNo": "sample string 4",
  "UnderWarranty": "sample string 5",
  "Email": "sample string 6",
  "Address": "sample string 7",
  "Pincode": "sample string 8",
  "AddedOn": "sample string 9",
  "IsActive": true,
  "RequestFromPage": "sample string 11",
  "AddedBy": "sample string 12",
  "IPAddress": "sample string 13",
  "ClsBrand": {
    "BrandId": 1,
    "BrandName": "sample string 2",
    "IsActive": true
  },
  "ClsProductType": {
    "ProductTypeId": 1,
    "ProductTypeName": "sample string 2",
    "IsActive": true
  }
}

text/html

Sample:
{"ServiceRequestId":1,"RequestCode":"sample string 2","BrandId":1,"ProductTypeId":1,"Name":"sample string 3","PhoneNo":"sample string 4","UnderWarranty":"sample string 5","Email":"sample string 6","Address":"sample string 7","Pincode":"sample string 8","AddedOn":"sample string 9","IsActive":true,"RequestFromPage":"sample string 11","AddedBy":"sample string 12","IPAddress":"sample string 13","ClsBrand":{"BrandId":1,"BrandName":"sample string 2","IsActive":true},"ClsProductType":{"ProductTypeId":1,"ProductTypeName":"sample string 2","IsActive":true}}

application/xml, text/xml

Sample:
<ServiceRequestSCKV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceCenterKolkataWebAPI.Models">
  <AddedBy>sample string 12</AddedBy>
  <AddedOn>sample string 9</AddedOn>
  <Address>sample string 7</Address>
  <BrandId>1</BrandId>
  <ClsBrand>
    <BrandId>1</BrandId>
    <BrandName>sample string 2</BrandName>
    <IsActive>true</IsActive>
  </ClsBrand>
  <ClsProductType>
    <IsActive>true</IsActive>
    <ProductTypeId>1</ProductTypeId>
    <ProductTypeName>sample string 2</ProductTypeName>
  </ClsProductType>
  <Email>sample string 6</Email>
  <IPAddress>sample string 13</IPAddress>
  <IsActive>true</IsActive>
  <Name>sample string 3</Name>
  <PhoneNo>sample string 4</PhoneNo>
  <Pincode>sample string 8</Pincode>
  <ProductTypeId>1</ProductTypeId>
  <RequestCode>sample string 2</RequestCode>
  <RequestFromPage>sample string 11</RequestFromPage>
  <ServiceRequestId>1</ServiceRequestId>
  <UnderWarranty>sample string 5</UnderWarranty>
</ServiceRequestSCKV2>

multipart/form-data

Sample:
<ServiceRequestSCKV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceCenterKolkataWebAPI.Models"><AddedBy>sample string 12</AddedBy><AddedOn>sample string 9</AddedOn><Address>sample string 7</Address><BrandId>1</BrandId><ClsBrand><BrandId>1</BrandId><BrandName>sample string 2</BrandName><IsActive>true</IsActive></ClsBrand><ClsProductType><IsActive>true</IsActive><ProductTypeId>1</ProductTypeId><ProductTypeName>sample string 2</ProductTypeName></ClsProductType><Email>sample string 6</Email><IPAddress>sample string 13</IPAddress><IsActive>true</IsActive><Name>sample string 3</Name><PhoneNo>sample string 4</PhoneNo><Pincode>sample string 8</Pincode><ProductTypeId>1</ProductTypeId><RequestCode>sample string 2</RequestCode><RequestFromPage>sample string 11</RequestFromPage><ServiceRequestId>1</ServiceRequestId><UnderWarranty>sample string 5</UnderWarranty></ServiceRequestSCKV2>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.