Skip to main content
PATCH
Update pledge

Authorizations

Authorization
string
header
required

Organization API key created in Grain Settings → API. The key determines the organization and is limited to its assigned resource scopes. Write scopes imply the corresponding read scope.

Headers

X-Organization-Id
string

Required with OAuth access tokens. Optional with organization API keys; if supplied, it must match the key's organization.

Path Parameters

id
string
required

Resource ID

Body

application/json
donorId
string
required
Example:

"cm456def789ghi"

fundId
string
required
Example:

"cm789ghi012jkl"

totalAmount
number
required
Example:

12000

startDate
string<date>
required
Example:

"2026-01-01"

campaignId
string
endDate
string<date>
Example:

"2026-12-31"

notes
string

Response

Updated pledge

id
string
donorId
string
fundId
string
campaignId
string | null
totalAmount
number
startDate
string<date-time>
endDate
string<date-time> | null
status
enum<string>
Available options:
ACTIVE,
CANCELLED
Last modified on August 23, 2026