Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL:

/editor/taskid/[task id]/comment/[comment id]

Available Methods:

GET / POST / PUT / DELETE

Specialities:

Only possible with a task in edit mode and filtered by GET Parameter segmentId.

...

Name

Type

Info

id

int


segmentId

int


userName

string

GET only, set by server

comment

string


isEditable

boolean

GET only, set by server

modified

date

GET only, set by server

created

date

GET only, set by server


Create new comment request example

Code Block
languagejava
titleAdd new comment via API
# This will add comment for segment with id 113802 for task with id 176
POST: translate5.local/editor/taskid/176/comment?data={"segmentId":"113802","comment":"This is test comment via api"}

Edit existing comment

Code Block
languagejava
titleEdit existing comment
PUT: translate5.local/editor/taskid/165/comment/2512?data={"id":"2512","comment":"This is will change the comment value."}

Delete existing comment

Code Block
languagejava
titleDelete existing comment
DELETE: translate5.local/editor/taskid/165/comment/2512?data={"id":"2512"}

Load all segments of a comment

Code Block
languagejava
titleLoad all segments of a comment
GET: translate5.local/editor/taskid/165/comment?segmentId=113695