Toggle Best Answer
Developing
PUT
/posts/{id}/best-answer
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.aladia.io/v2/posts/6669c767a86af5a5f3992bd6/best-answer' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"answerId": "string"
}'
Response Response Example
200 - Example 1
{
"id": "670775694daebf393b266ea1",
"type": "post",
"title": "string",
"parent": {},
"content": "string",
"status": "answered",
"visibility": "public",
"numberOf": {
"shares": 0,
"reposts": 0,
"comments": 0,
"reactions": {
"clap": 0,
"love": 0,
"angry": 0,
"funny": 0,
"sad": 0
},
"reactionsCount": 0
},
"rating": 0,
"owner": {
"id": "string",
"type": "string",
"numberOfReviews": 0,
"online": true,
"picture": "string",
"name": "string",
"story": {
"status": "string",
"nextStoryId": "string"
},
"activeUserRole": "string"
},
"createdBy": {
"id": "string",
"type": "string",
"numberOfReviews": 0,
"online": true,
"picture": "string",
"name": "string",
"story": {
"status": "string",
"nextStoryId": "string"
},
"activeUserRole": "string"
},
"entity": {
"courseId": "string",
"title": "string",
"thumbnail": "string",
"lectureId": "string",
"chapterIndex": "string",
"lectureIndex": "string"
},
"location": {
"country": "string",
"city": "string",
"name": "string",
"latitude": 0,
"longitude": 0,
"displayMap": true
},
"files": [
{
"metadata": {
"size": 0,
"mimetype": "string"
},
"url": "string",
"fileId": "string"
}
],
"mentions": [
{
"id": "string",
"type": "string"
}
],
"createdAt": "string",
"updatedAt": "string",
"partecipants": [
{
"id": "string",
"type": "string",
"numberOfReviews": 0,
"online": true,
"picture": "string",
"name": "string",
"story": {
"status": "string",
"nextStoryId": "string"
},
"activeUserRole": "string"
}
],
"answerId": "string",
"placeholder": {
"organizationName": "string",
"profession": "string"
}
}
Request
Path Params
id
stringÂ
required
Example:
6669c767a86af5a5f3992bd6
Header Params
apikey
stringÂ
optional
Example:
{{apikey}}
Body Params application/json
Responses
Modified at 2025-04-09 13:16:23