Updates the loan of the proposal.

PUT {{baseUrl}}/proposals/:proposal-id/loans/:loan-id

This endpoint updates a loan of the given proposal and returns the new state.All changes (including omissions) provided will overide existing values.

Request Body

{"loanPurpose"=>{"id"=>"<integer>", "name"=>"<string>"}, "value"=>"<number>", "id"=>"<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;loanPurpose&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;},&quot;value&quot;:&quot;\u003cnumber\u003e&quot;,&quot;id&quot;:&quot;\u003cinteger\u003e&quot;}