Update designation

Update an existing designation. This is a full update: optional fields that are omitted are cleared (category, campus, posting rules, and keywords), an omitted code is regenerated from the name, and omitted active/taxDeductible become false. First retrieve the current designation from /api/designations/{id}, apply your changes, then send back the full object. While multi-campus is on, a designation outside the campuses where you hold Contributions Settings answers 403; one available to every campus follows the permission alone. A designation that gifts, recurring gifts, giving pages, text-giving keywords, pledge campaigns, or batch and campus defaults already use cannot move to another organization (400 designation_org_locked_desc; while multi-org is on, organizationLocked on the designation says so in advance). Posting rules must name accounts and funds of the designation's organization (400 designation_posting_other_org_desc), and while the books are split between organizations each keyword's merchant account must belong to it too (400 text_giving_keyword_merchant_org_desc). A keyword new to the designation that another designation of the same organization already holds answers 400 naming the keywords in use. An archived organization's designation answers 400 organization_archived_record_desc.

Required permission: Contributions Settings

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required
≥ 1

The id of the designation

Body Params

The current version of the designation

field
object | null
required

The form field backing the designation. Its label and description hold the designation's name and description; the label is required. Set type to label for a plain designation, or to an input type (e.g. text, dropdown) to show the field to donors as a memo input when they give.

string | null

The designation's abbreviation. Must be unique, at most 20 characters. Auto-generated from the name when omitted.

boolean

Whether contributions to the designation are tax deductible.

boolean

Whether the designation is active.

campus
object | null

The alphabetically first of campuses; on writes without campuses it stands in for them as a one-campus set with the same checks (a location that is not an active campus is refused); omit both to clear, except that a campus-limited caller keeps the campuses outside their access, and cannot clear a record whose campuses all sit inside it. Ignored while multi-campus is off.

campuses
array of objects | null

The campuses the designation belongs to, ordered by name; empty when it is available to every campus. On writes,
send the ids to set the campus set (an empty list means every campus); omit the property to keep using
campus alone. A campus-limited caller can only add or remove campuses within their access and
cannot change whether the record is available to every campus.
Ignored while multi-campus is off.

campuses
organization
object | null

The one organization this record belongs to (its books): set on every record, the default organization
until a second one exists; null only for a record saved while this release was being installed, before every record was assigned its organization. On a
save, send it with campuses empty to scope the record to the whole organization; when campuses are
sent the organization is taken from them. Required while multi-org is on; All is not offered for financial
records. A designation that is already in use stays in its organization (see organizationLocked).

category
object | null

The designation's category. Provide the id; omit to clear. Values come from /api/property_values/fund_category/values.

posting
array of objects | null

The accounting posting rules that allocate gifts to accounts and funds. Replaces the existing rules; pass an empty list to stop posting to accounting. Every account and fund must belong to the designation's organization (else 400 designation_posting_other_org_desc).

posting
keywords
array of objects | null

The designation's text-giving keywords. Replaces the existing keywords: keywords are matched by id, omitted keywords are removed, and keywords without an id are added. While the books are split between organizations (multi-org is on, or an archived organization still owns money), a keyword's merchant account must belong to the designation's organization (else 400 text_giving_keyword_merchant_org_desc).

keywords
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses
200

OK

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json