List needs
Returns gc:Need instances from GraphDB (https://data.global.church/needs/). Optional filters: orgUri, status, limit.
query Parameters
orgUristringFilter by declaring organization URI.
statusstring · enumFilter by need status.
Enum values:openpartially_metmetwithdrawnlimitinteger · 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 needs
needsobject[] · requiredtotalinteger · required
Submit need
Creates a new gc:Need declaration for an organization. Caller must have an active org membership.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
orgUristring · requiredGraphDB URI of the declaring organization
orgNamestring · requiredDisplay name of the organization
declaredByEmailstring · email · requiredEmail of the submitting user
needDescriptionstring · requiredFree-text description of the need
acceleratorsstring[] · minItems: 1 · requiredEngagement accelerator or function notation codes from gc:EngagementAcceleratorScheme (e.g. PRA-INT, MUL-PIO, SRA).
concernsPeopleGroupRop3string[]Optional — ROP3 codes of people groups the need concerns.
concernsCountryCodestring[]Optional — ISO alpha-2 country codes where the need exists.
Responses
Need created
needIdstring · uuid · requiredstatusstring · enum · requiredEnum values:open
Update need status
Transitions a gc:Need between open / partially_met / met / withdrawn. Caller must have an active membership (or approved org_claim) for the need's owning org. No state-machine enforcement — any status is reachable from any status.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
needIdstring · uuid · requiredstatusstring · enum · requiredEnum values:openpartially_metmetwithdrawnactorEmailstring · email · requiredEmail of the user making the status change.
Responses
Status updated
needIdstring · uuid · requiredstatusstring · required
