Adds a new loan to the proposal.

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

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

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

{&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;}