Adds a new upgrade agreement to the proposal.

POST {{baseUrl}}/proposals/:proposal-id/upgrades

This endpoint adds a new upgrade agreement to the proposal and returns the new state.

Request Body

{"id"=>"<integer>", "lessor"=>{"id"=>"<integer>", "name"=>"<string>", "siemensLessor"=>"<boolean>"}, "contractNumber"=>"<string>", "quoteTotalValue"=>"<double>", "rentalDate"=>"<dateTime>"}

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: Created

{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;lessor&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;siemensLessor&quot;:&quot;\u003cboolean\u003e&quot;},&quot;contractNumber&quot;:&quot;\u003cstring\u003e&quot;,&quot;quoteTotalValue&quot;:&quot;\u003cdouble\u003e&quot;,&quot;rentalDate&quot;:&quot;\u003cdateTime\u003e&quot;}