Skip to content

Near-identical help under a linked church or community​

POST
/resource-providers/{providerId}/near-duplicates

CH-04, CM-12 (#2434): when a church also runs a FundlyHub community (resource_providers.part_of_provider_id), help can be listed under either one, and the editor warns of a near-identical listing under the other: the same title or nearly (trigram similarity 0.6), a topic in common or under the same parent, and a city, ZIP's city or state in common, or both online. Before any place is picked, same_place is null and the title and topic decide. Someone off the other provider's team hears only of help anyone can find. A POST, so topics stay out of addresses and logs. Up to 5.

Authorizations​

BearerAuth

In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.

Type
HTTP (bearer)

Parameters​

Path Parameters

providerId*
Type
string
Required
Format
"uuid"

Request Body​

application/json
JSON
{
"title": "string",
"topic_ids": [
"string"
],
"location_ids": [
"string"
],
"service_areas": [
{
}
],
"online": true,
"exclude_id": "string"
}

Responses​

OK

application/json
JSON
{
"items": [
{
"id": "string",
"title": "string",
"status": "string",
"provider": {
"id": "string",
"kind": "string",
"name": "string",
"slug": "string",
"is_church": true
},
"same_place": true,
"can_open": true
}
]
}

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

Built with VitePress