Mission Comments

Update a subset of properties of a mission comment

Sending attachment_urls or photo_url replaces the whole attachment set (it never appends); null or [] removes all attachments.

patch/public/api/mission-comments/{id}

Request

  • Base URL
    https://<base_url>
  • Auth
    HTTP bearer

Path parameters

idstring required

The id of the comment

Headers

Acceptstring

e.g. application/json

Request body

attachment_urlsstring[]

Example request

{
  "attachment_urls": [
    "https://example.com/replacement.pdf",
    "https://example.com/replacement.jpg"
  ]
}

Response

OK

comment_idstring
photo_urlstring
attachment_urlsstring[]
user_idstring
mission_idstring
comment_datestring
created_datestring
updated_datestring

Example response

{
  "comment_id": "5d31ecba11e695003a9b1dfc",
  "photo_url": "https://example.com/replacement.pdf",
  "attachment_urls": [
    "https://example.com/replacement.pdf",
    "https://example.com/replacement.jpg"
  ],
  "user_id": "5beee5197fc4d50043801bd1",
  "mission_id": "5d31b71a1a76e9003afd621e",
  "comment_date": "2016-07-15T14:18:41.750Z",
  "created_date": "2016-07-15T14:18:41.750Z",
  "updated_date": "2016-07-15T14:18:41.750Z"
}

Changes

    • warning

      removed the request property

    • 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