st.commentOnPost
This action allows you to leave a comment on a post.
Constraints
⏺️
Root Start: allowed, when
postUrl
parameter is provided.⬆️
Parent Actions: st.openPost, st.doForPosts.
⬇️
Child Actions: N/A.
Paramenters
{
"actionType": "st.commentOnPost",
"label": "post1",
"postUrl": "https://www.linkedin.com/posts/post1",
"text": "I completely agree with your point."
}
label
(optional) – custom label for tracking this action in workflow completion.postUrl
– LinkedIn URL of the post to comment.text
– comment text, must be up to 1000 characters.
Result options
- Successful post commenting:
{
"actionType": "st.commentOnPost",
"label": "post1",
"success": true
}
label
– included only if specified in the action parameters.
- Failed post commenting:
{
"actionType": "st.commentOnPost",
"label": "post1",
"success": false,
"error": {
"type": "commentingNotAllowed",
"message": "Commenting is not allowed on this post."
}
}
label
– included only if specified in the action parameters.error.type
– enum with the following possible values:postNotFound
– provided URL is not an existing LinkedIn post.commentingNotAllowed
– commenting is not allowed on this post. This could be due to the post author's privacy settings, LinkedIn restrictions on commenting, or because the post type does not support comments.