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
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: Created
{"loanPurpose":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e"},"value":"\u003cnumber\u003e","id":"\u003cinteger\u003e"}