Create a Comment
Developing
POST
/comments
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aladia.io/v2/comments' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"entity": {
"id": "66ab4c914c9ee57f47bb95f5",
"type": "post"
},
"content": "sample comment"
}'
Response Response Example
201 - Success
{
"id": "66fcf8cefed0da5ec8525176",
"owner": {
"type": "organization",
"id": "66fcf8cefed0da5ec8525176",
"online": null,
"numberOfReviews": 54110643.23176822,
"organizationName": "the name of the organization (if the ower is profile it will be null)",
"firstName": "first name of a profile (if the owner is organization it will be null)",
"lastName": "last name of a profile (if the owner is organization it will be null)",
"picture": "picture or avator of the owner",
"hasActiveStory": "false"
},
"parentId": null,
"post": {
"id": "66fcf8cefed0da5ec8525176",
"type": "question"
},
"content": "Delectus facilis totam atque tempora architecto consequuntur.",
"numberOf": {
"replies": 4,
"reactions": {
"clap": 1,
"love": 1,
"angry": 1,
"funny": 1,
"sad": 1
}
},
"files": [
{
"metadata": {
"size": 55,
"mimetype": "aute in labore non"
},
"url": "https://dramatic-maestro.name",
"fileId": "voluptate"
}
],
"mentions": [
{
"type": "organization",
"id": "66fcf8cefed0da5ec8525176",
"online": null,
"numberOfReviews": 54110643.23176822,
"organizationName": "the name of the organization (if the ower is profile it will be null)",
"firstName": "first name of a profile (if the owner is organization it will be null)",
"lastName": "last name of a profile (if the owner is organization it will be null)",
"picture": "picture or avator of the owner",
"hasActiveStory": "false"
}
],
"loomUrls": [
"dolore dolor magna et",
"dolor ut veniam consectetur ullamco",
"ullamco"
],
"createdAt": "2024-10-02T04:35:41.519Z",
"updatedAt": "2024-10-01T09:30:33.733Z"
}
Request
Header Params
apikey
stringÂ
optional
Example:
{{apikey}}
Body Params application/json
Responses
Modified at 2025-04-08 14:57:40