Mission Comments

You 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 URL
    https://<base_url>
  • Auth
    HTTP bearer

Headers

Acceptstring

e.g. application/json

Request body

user_idstring
mission_idstring
textstring
attachment_urlsstring[]

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

comment_idstring required
user_idstring required
mission_idstring required
comment_datestring required
created_datestring required
updated_datestring required
textstring
photo_urlstring
attachment_urlsstring[]

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/json for the response with the status

    • info

      the endpoint scheme security oauth2 was removed from the API