Open a new channel in a community
POST
/apps/{appId}/communities/{communityId}/channels
const url = 'https://api.passion.io/v1/apps/example/communities/example/channels';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","description":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.passion.io/v1/apps/example/communities/example/channels \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example" }'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 channel, for example “Introductions”.
string
description
What the channel is for. Members see it under the name.
string
Examplegenerated
{ "name": "example", "description": "example"}Responses
Section titled “Responses”OK