Updates the asset of the proposal.

PUT {{baseUrl}}/proposals/:proposal-id/assets/:asset-id

This endpoint updates an asset of the given proposal and returns the updated asset.All changes (including omissions) provided will overide existing values.

Request Body

{"assetIacCode"=>"<string>", "condition"=>"<string>", "description"=>"<string>", "quantity"=>"<integer>", "valuePerAsset"=>"<number>", "id"=>"<integer>", "serviceAgreement"=>{"pricePerUnitValues"=>[{"id"=>"<integer>", "pricePerUnit"=>{"id"=>"<integer>", "name"=>"<string>"}, "value"=>"<double>", "valueIncluded"=>"<double>"}, {"id"=>"<integer>", "pricePerUnit"=>{"id"=>"<integer>", "name"=>"<string>"}, "value"=>"<double>", "valueIncluded"=>"<double>"}], "serviceType"=>"<string>"}, "equipmentSupplier"=>{"registrationNumber"=>"<string>", "sourceCountryCode"=>"<string>", "companyType"=>"<string>"}, "location"=>"<string>", "ageInMonth"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
If-Matchstring(Required) The If-Match HTTP request header makes the request conditional. For PUT and other modifying methods, it will only modify the resource in case the ETag indicated by the If-Match header is identical to the resource's current ETag.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;assetIacCode&quot;:&quot;\u003cstring\u003e&quot;,&quot;condition&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cinteger\u003e&quot;,&quot;valuePerAsset&quot;:&quot;\u003cnumber\u003e&quot;,&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;serviceAgreement&quot;:{&quot;pricePerUnitValues&quot;:[{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;pricePerUnit&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;},&quot;value&quot;:&quot;\u003cdouble\u003e&quot;,&quot;valueIncluded&quot;:&quot;\u003cdouble\u003e&quot;},{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;pricePerUnit&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;},&quot;value&quot;:&quot;\u003cdouble\u003e&quot;,&quot;valueIncluded&quot;:&quot;\u003cdouble\u003e&quot;}],&quot;serviceType&quot;:&quot;\u003cstring\u003e&quot;},&quot;equipmentSupplier&quot;:{&quot;registrationNumber&quot;:&quot;\u003cstring\u003e&quot;,&quot;sourceCountryCode&quot;:&quot;\u003cstring\u003e&quot;,&quot;companyType&quot;:&quot;\u003cstring\u003e&quot;},&quot;location&quot;:&quot;\u003cstring\u003e&quot;,&quot;ageInMonth&quot;:&quot;\u003cinteger\u003e&quot;}