post https://api.padlet.dev/v1/posts//comments
Creates a new comment on a post. Returns a comment object.
API keyYou will need to include your API key found here.
Please include the key in your header.
{"X-API-KEY": <api_key>}
Authorization requiredThis endpoint requires access to the board. You must have commenting permissions on the board to create comments.
{
"data": {
"type": "comment",
"attributes": {
"htmlContent": "<p>Great point, thanks for sharing!</p>",
"attachment": {
"url": "https://cdn.padlet.dev/uploads/image.png"
}
}
}
}
Body parameters
*
required
Properties | Type | Description |
---|---|---|
|
| Type must be set to |
|
| Sanitized HTML content of the comment. |
|
| Attachment object. Currently only supports a single url field.
|
Content requirementsAt least one of
htmlContent
orattachment
must be present. You can include both in a single comment.