List needs
Returns at: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 at:Need declaration for an organization. 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 declaring organization
orgNamestring · requiredDisplay name of the organization
needDescriptionstring · requiredFree-text description of the need
acceleratorsstring[] · minItems: 1 · requiredPhases of Engagement Toolkit accelerator domain codes — the twelve top concepts of
poe:EngagementAcceleratorScheme(PRAPrayer,SRAScripture/Resource Access,VISVision Casting,MNEMulti-node Engagement,MOBMobilization/Sending,COLCollaborative Engagement,COMMeeting Needs/Compassion,CTXCritical Contextualization,RCIResearch/Cultural Insights,TRNTraining/Equipping,MULMultiplying Efforts,MKTMarketplace Involvement). Since ontology v0.51.0 these are the only accepted values; the formerXXX-YYYfunction codes are rejected with 400. What an organization is equipped to do is classified separately on the organization (gc:hasOrganizationalCapability), never here.Enum values:PRASRAVISMNEMOBCOLCOMCTX
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 at:Need between open / partially_met / met / withdrawn. The person must be a steward of the need'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
needIdstring · uuid · requiredstatusstring · enum · requiredEnum values:openpartially_metmetwithdrawn
Responses
Status updated
needIdstring · uuid · requiredstatusstring · required
