PUT api/Industry/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

IndustryViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

PhoneNo

string

Required

Description

string

None.

Address

string

None.

WardId

integer

None.

LocalLevelId

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "PhoneNo": "sample string 3",
  "Description": "sample string 4",
  "Address": "sample string 5",
  "WardId": 1,
  "LocalLevelId": 6,
  "Latitude": 1.0,
  "Longitude": 1.0
}

text/xml

Sample:
<IndustryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models">
  <Address>sample string 5</Address>
  <Description>sample string 4</Description>
  <Id>1</Id>
  <Latitude>1</Latitude>
  <LocalLevelId>6</LocalLevelId>
  <Longitude>1</Longitude>
  <Name>sample string 2</Name>
  <PhoneNo>sample string 3</PhoneNo>
  <WardId>1</WardId>
</IndustryViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IndustryViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

PhoneNo

string

Required

Description

string

None.

Address

string

None.

WardId

integer

None.

LocalLevelId

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "PhoneNo": "sample string 3",
  "Description": "sample string 4",
  "Address": "sample string 5",
  "WardId": 1,
  "LocalLevelId": 6,
  "Latitude": 1.0,
  "Longitude": 1.0
}

text/xml

Sample:
<IndustryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models">
  <Address>sample string 5</Address>
  <Description>sample string 4</Description>
  <Id>1</Id>
  <Latitude>1</Latitude>
  <LocalLevelId>6</LocalLevelId>
  <Longitude>1</Longitude>
  <Name>sample string 2</Name>
  <PhoneNo>sample string 3</PhoneNo>
  <WardId>1</WardId>
</IndustryViewModel>