post
https://api.padlet.dev/v1/posts//comments
Create a comment on a post
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* | string | Type must be set to comment. |
attributes.htmlContent | string | Sanitized HTML content of the comment. |
attributes.attachment | object | Attachment object. Currently only supports a single url field.
|