Publish a post in a community channel, as the creator
POST
/apps/{appId}/channels/{channelId}/posts
const url = 'https://api.passion.io/v1/apps/example/channels/example/posts';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"text":"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/channels/example/posts \ --header 'Content-Type: application/json' \ --data '{ "text": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
The id of the App, as Studio shows it.
string
channelId
required
The id of a channel, as the App overview lists it under its community.
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
text
required
The post. Plain text or Markdown.
string
Examplegenerated
{ "text": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
postId
required
string
channelId
required
string
text
required
string
createdAt
required
string
Examplegenerated
{ "postId": "example", "channelId": "example", "text": "example", "createdAt": "example"}