Turf API Documentation
  1. Posts
Turf API Documentation
  • Users
    • Create Community Member
      POST
    • Update Community Member's Profile
      PUT
    • Get Community Members
      GET
    • Block Community Member
      PUT
    • Get Community Member's Details
      GET
    • Get Member's Created Posts
      GET
    • Get Member's Saved Posts
      GET
    • Get Member's Comments
      GET
  • Channels
    • Get Community Channels
      GET
  • Posts
    • Create Discussion Post
      POST
    • Update Discussion Post
      PUT
    • Create Article Post
      POST
    • Update Article Post
      PUT
    • Create Comment On Post
      POST
    • Update Comment On Post
      PUT
    • Delete Existing Comment
      DELETE
    • Top Community Posts
      GET
    • Get Channel's Posts
      GET
    • Get Discussion Post Details
      GET
    • Get Article Post Details
      GET
    • Create comment on comment
      POST
  • Courses
    • Top Community Courses
      GET
  • Segments
    • Get Community Segments
      GET
    • Add Member To Segment
      POST
    • Remove Member From Segment
      DELETE
  • Gamification
    • Get Community Badges
    • Award Badge To Member
    • Remove Badge From Member
  1. Posts

Create Discussion Post

POST
https://2e0a7m2i9j.execute-api.eu-central-1.amazonaws.com/prod/community/v1/post/general
The Create Discussion Post API creates a new discussion post in your community. Discussions posts consist of a title and post contents. The post contents can consist of different text, image, and video elements.

Request

Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://2e0a7m2i9j.execute-api.eu-central-1.amazonaws.com/prod/community/v1/post/general' \
--header 'x-api-key: api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "createdBy": "olivier-van-den-hoogen",
    "channelId": "Discussions",
    "postTitle": "reprove after overcharge till descent if demobilise whoa",
    "postDescription": "<h2>Community Guidelines</h2><p>Welcome to our amazing community! Here are some <strong>important guidelines</strong> to follow:</p><ul><li>Be respectful to all members</li><li>No spam or self-promotion without permission</li><li>Use appropriate language and content</li></ul><p>For questions, please <a href=\"mailto:support@example.com\" target=\"_blank\">contact our support team</a>.</p><blockquote><p><em>\"Building a better community together!\"</em></p></blockquote><p>Thanks for being part of our community!</p>"
}'
Response Response Example
201 - Example 1
{
    "message": "string",
    "data": {
        "post_id": "string"
    }
}
Modified at 2025-09-03 14:05:29
Previous
Get Community Channels
Next
Update Discussion Post
Built with