POST API/JobTrak/UpdateUprnAsset

Update a UPRN asset quantity by UPRN and ContentType. If one does not exist, it will be created.

Request Information

URI Parameters

None.

Body Parameters

Asset Body

UprnAsset
NameDescriptionTypeAdditional information
Uprn

UPRN

string

Required

ContentType

Asset Content Type

string

Required

Quantity

Number of assets associated with UPRN

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "Uprn": "sample string 1",
  "ContentType": "sample string 2",
  "Quantity": 3
}

application/xml, text/xml

Sample:
<UprnAsset xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Uprn>sample string 1</Uprn>
  <ContentType>sample string 2</ContentType>
  <Quantity>3</Quantity>
</UprnAsset>

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

Response Information

Resource Description

Response from server

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.