List commitments
Returns at:Commitment instances from GraphDB (https://data.global.church/commitments/). Optional filters: orgUri, status, concernsNeedId, limit.
query Parameters
orgUristringFilter by committing organization URI.
statusstring · enumFilter by commitment status.
Enum values:declaredfundedin_progressfulfilledpartially_fulfilledabandonedexpiredconcernsNeedIdstring · uuidFilter by the UUID of the need this commitment is linked to.
limitinteger · min: 1 · max: 200Max rows to return (default 50, max 200).
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
List of commitments
commitmentsobject[] · requiredtotalinteger · required
Submit commitment
Creates a new at:Commitment for an organization, optionally linked to a prior at:Need. The person must be a steward of the organization in the Home, which is checked at request time. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and refuses the request with 401 without a valid one. The acting person is the token's subject: userId is set from it and any userId sent in the body is ignored.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Request Body
orgUristring · requiredGraphDB URI of the committing organization
orgNamestring · requiredDisplay name of the organization
commitmentDescriptionstring · requiredacceleratorScopestring[] · minItems: 1 · requiredPhases of Engagement Toolkit accelerator domain codes (the twelve top concepts of
poe:EngagementAcceleratorScheme:PRA…MKT); the only accepted values since ontology v0.51.0.Enum values:PRASRAVISMNEMOBCOLCOMCTX
concernsNeedIdstring · uuidOptional — UUID of a at:Need this commitment is responding to.
concernsPeopleGroupRop3string[]concernsCountryCodestring[]targetCompletionDatestring · dateOptional ISO YYYY-MM-DD target completion date.
Responses
Commitment created
commitmentIdstring · uuid · requiredstatusstring · enum · requiredEnum values:declared
Update commitment status
Transitions a at:Commitment between declared / funded / in_progress / fulfilled / partially_fulfilled / abandoned / expired. The person must be a steward of the commitment's owning organization in the Home, which is checked at request time. No state-machine enforcement — any status is reachable from any status. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and refuses the request with 401 without a valid one. The acting person is the token's subject: userId is set from it and any userId sent in the body is ignored.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Request Body
commitmentIdstring · uuid · requiredstatusstring · enum · requiredEnum values:declaredfundedin_progressfulfilledpartially_fulfilledabandonedexpired
Responses
Status updated
commitmentIdstring · uuid · requiredstatusstring · required
