Updates a deposit based on deposit guid.
Responses
-
Successfully updated a deposit.
-
Invalid request. See response body for details.
-
Unauthorized request. See response body for details.
-
Permission denied. See response body for details.
-
Deposit not found.
-
Optimistic concurrency check failed. The If-Match header is missing or it does not contain the version currently in the database.
-
Unknown error. See response body for details.
PATCH
/deposits/{depositId}
curl \
--request PATCH 'http://api.example.com/deposits/{depositId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"id":"string (UUID)","date":"string (date)","amount":"number (float)","received":"boolean","interest":"boolean","held":"boolean","heldBy":"string","direct":"boolean","reference":"string"}'
Request example
{
"id": "string (UUID)",
"date": "string (date)",
"amount": "number (float)",
"received": "boolean",
"interest": "boolean",
"held": "boolean",
"heldBy": "string",
"direct": "boolean",
"reference": "string"
}
Response examples (200)
{}
Response examples (404)
{
"code": 42,
"message": "string",
"details": [
"string"
]
}