Communities::Spaces::Post::Comment
Create Comment
Changed onCreate a comment on a post. Comments created via the API are auto-approved. The contact_id is optional and defaults to the connected user's own contact. Use parent_comment_id for threaded replies.
post/communities/spaces/posts/{post_id}/comments
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
post_idstring required
Request body
Example request
{
"communities_spaces_posts_comment": {
"communities_spaces_posts_comment": {
"body": "<p>Great post, thanks for sharing!</p>"
}
}
}Response
Created
Example response
{
"id": 202,
"public_id": "MnOpQr",
"contact_id": 55,
"body": "Great post, thanks for sharing!",
"url": "https://example.myclickfunnels.com/communities/posts/AbCdEf/comments/MnOpQr",
"contact": {
"id": 55,
"public_id": "GhIjKl",
"email_address": "jane@example.com",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": null
},
"group": {
"id": 1,
"public_id": "BcDeFg",
"name": "General"
},
"post": {
"id": 101,
"public_id": "AbCdEf",
"title": "Welcome to the community!",
"url": "https://example.myclickfunnels.com/communities/posts/AbCdEf"
},
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}Changes
- info
for the
pathrequest parameterpost_id, the type was generalized fromintegertostring - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info