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
Key | Datatype | Required | Description |
---|---|---|---|
If-Match | string | (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-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"assetIacCode":"\u003cstring\u003e","condition":"\u003cstring\u003e","description":"\u003cstring\u003e","quantity":"\u003cinteger\u003e","valuePerAsset":"\u003cnumber\u003e","id":"\u003cinteger\u003e","serviceAgreement":{"pricePerUnitValues":[{"id":"\u003cinteger\u003e","pricePerUnit":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e"},"value":"\u003cdouble\u003e","valueIncluded":"\u003cdouble\u003e"},{"id":"\u003cinteger\u003e","pricePerUnit":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e"},"value":"\u003cdouble\u003e","valueIncluded":"\u003cdouble\u003e"}],"serviceType":"\u003cstring\u003e"},"equipmentSupplier":{"registrationNumber":"\u003cstring\u003e","sourceCountryCode":"\u003cstring\u003e","companyType":"\u003cstring\u003e"},"location":"\u003cstring\u003e","ageInMonth":"\u003cinteger\u003e"}