Change a community
PATCH
/apps/{appId}/communities/{communityId}
const url = 'https://api.passion.io/v1/apps/example/communities/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","summary":"example","membersCanMessageCreator":true,"membersCanMessageEachOther":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.passion.io/v1/apps/example/communities/example \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "summary": "example", "membersCanMessageCreator": true, "membersCanMessageEachOther": true }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
The id of the App, as Studio shows it.
string
communityId
required
The id of a community, as the App overview lists it.
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
The name of the community. Give the current name to keep it.
string
summary
One or two sentences that tell members what the community is for.
string
membersCanMessageCreator
Whether members can send the creator a direct message.
boolean
membersCanMessageEachOther
Whether members can send each other direct messages.
boolean
Examplegenerated
{ "name": "example", "summary": "example", "membersCanMessageCreator": true, "membersCanMessageEachOther": true}Responses
Section titled “Responses”OK
Media typeapplication/json
object
Examplegenerated
{ "communityId": "example", "name": "example", "summary": "example", "membersCanMessageCreator": true, "membersCanMessageEachOther": true}