Mission Comments
Create
Changed onYou may create a new single mission comment or multiple mission comments using this action.
When creating a single mission comment, the body contains a json object, when creating multiple mission comments, the body contains an array of objects.
Warning: a maximum of 1000 items can be sent in a single request.
post/public/api/mission-comments
Request
- Base URLhttps://<base_url>
- AuthHTTP bearer
Headers
Acceptstring
e.g. application/json
Request body
Example request
{
"user_id": "5beee5197fc4d50043801bd1",
"mission_id": "5d31b71a1a76e9003afd621e",
"text": "Life is beautiful!",
"attachment_urls": [
"https://example.com/before.jpg",
"https://example.com/repair-report.pdf"
]
}Response
OK
Example response
[
{
"comment_id": "5d31ecba11e695003a9b1dfc",
"user_id": "5beee5197fc4d50043801bd1",
"mission_id": "5d31b71a1a76e9003afd621e",
"comment_date": "2023-07-19T16:15:54.554Z",
"created_date": "2023-07-19T16:15:54.554Z",
"updated_date": "2023-07-19T16:15:54.554Z",
"text": "Life is beautiful!"
},
{
"comment_id": "5d31ecba11e695003a9b1dfd",
"user_id": "5beee5197fc4d50043801bd1",
"mission_id": "5d31b71a1a76e9003afd621e",
"comment_date": "2023-07-19T16:15:54.554Z",
"created_date": "2023-07-19T16:15:54.554Z",
"updated_date": "2023-07-19T16:15:54.554Z",
"photo_url": "https://assets-dev.yoobic.com/image/upload/v1675350130/development/nyjwh5zmbnjxdwtsqfyz.jpg",
"attachment_urls": [
"https://assets-dev.yoobic.com/image/upload/v1675350130/development/nyjwh5zmbnjxdwtsqfyz.jpg"
]
}
]Changes
- info
added the new optional request property
- info
added the media type
application/jsonfor the response with the status
- info
- info
the endpoint scheme security
oauth2was removed from the API
- info