Replace a contribution with the supplied values. This is a full update: omitted fields are cleared, with two exceptions. Soft credits are replaced only when a non-empty list is sent, so they cannot be removed through this endpoint, and files only links additional documents to the contribution, never unlinks existing ones. Gateway-processed contributions allow only a limited set of edits (e.g. notes and confirmation number), and the amount and designations of a refund or of a contribution posted to accounting cannot be changed. First retrieve the current contribution from /api/contributions/{id}, apply your changes, then send back the full object. Editing a contribution in another user's batch requires the Full Write Contributions or Unrestricted Batches permission. Changing the amount of a payment recorded against a form entry moves the entry's amount paid by the same difference. While multi-campus is on, a caller with a campus limit or campus overrides needs Limited Write Contributions where the contribution is placed both before and after the change: at one of the campuses of its designations, or, when it is placed organization-wide, in its organization (403 otherwise), so a new designation cannot move it outside their campuses. A designation the update adds must pass on its own, so a line they hold does not carry one they do not, while a line already on the contribution stays editable. A limit to a whole organization includes its inactive campuses. The contributor may be changed to anyone you can credit, as described on person and business (404 otherwise), except that a caller who holds neither Limited Read nor Limited Write Contributions at any of the current contributor's campuses may not change who a contribution carrying bank numbers, a check image or an address is from (400). When such a caller keeps the contributor, the bank numbers and address the contribution's page withholds from them are kept when sent back blank.
Required permission: Limited Write Contributions
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
200OK
401Authentication is required, or the Ocs-Api-Key header is missing or invalid.
