Mission Comments
Partial Update
Changed onUpdate 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 URLhttps://<base_url>
- AuthHTTP bearer
Path parameters
idstring required
The id of the comment
Headers
Acceptstring
e.g. application/json
Request body
Example request
{
"attachment_urls": [
"https://example.com/replacement.pdf",
"https://example.com/replacement.jpg"
]
}Response
OK
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/jsonfor the response with the status
- warning
- info
the endpoint scheme security
oauth2was removed from the API
- info