Skip to content

Create a community

POST
/apps/{appId}/communities
curl --request POST \
--url https://api.passion.io/v1/apps/example/communities \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "summary": "example", "membersCanMessageCreator": false, "membersCanMessageEachOther": false }'
appId
required

The id of the App, as Studio shows it.

string
/^[1-9][0-9]*$/
Media typeapplication/json
object
name
required

The name of the community, as members see it, for example “Calm circle”.

string
>= 1 characters
summary

One or two sentences that tell members what the community is for.

string
>= 1 characters
membersCanMessageCreator

Whether members can send the creator a direct message.

boolean
membersCanMessageEachOther

Whether members can send each other direct messages.

boolean

OK

Media typeapplication/json
object
communityId
required
string
name
required
string
summary
required
Any of:
string
membersCanMessageCreator
required
boolean
membersCanMessageEachOther
required
boolean
Examplegenerated
{
"communityId": "example",
"name": "example",
"summary": "example",
"membersCanMessageCreator": true,
"membersCanMessageEachOther": true
}