diff options
-rw-r--r-- | todo.sr.ht/api.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/todo.sr.ht/api.md b/todo.sr.ht/api.md index 60f83ef..2aff6ce 100644 --- a/todo.sr.ht/api.md +++ b/todo.sr.ht/api.md @@ -415,6 +415,30 @@ implies the authenticated user. **OAuth scope**: `tickets:read` +### PUT /api/user/:username/trackers/:tracker-name/tickets/:ticket-id/comments/:comment-id + +Edits a comment. Note that the *comment* ID is required, not the event ID. + +**Request body** + +```json +{ + "text": "new comment text (markdown)" +} +``` + +List of [event resources](#event-resource) associated with this ticket. + +**OAuth scope**: `tickets:write` + +### PUT /api/trackers/:tracker-name/tickets/:ticket-id/comments/:comment-id + +Equivalent to +[/api/user/:username/trackers/:tracker-name/tickets/:ticket-id/comments/:comment-id](#get-apiuserusernametrackerstrackernameticketsticketidcommentscommentid), +implies the authenticated user. + +**OAuth scope**: `tickets:write` + ## Webhooks ### /api/user/... |