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