Skip to content

Commit

Permalink
docs: update API comment procedures
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Sep 8, 2024
1 parent f6c22dd commit 5a16a9e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions content/en/v1/api/comment_procedures.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ createComment

- Purpose: **Create a new comment**
- Parameters:
- **task\_id** (integer, required)
- **user\_id** (integer, required)
- **task_id** (integer, required)
- **user_id** (integer, required)
- **content** Markdown content (string, required)
- Result on success: **comment\_id**
- **reference** (string, optional)
- **visibility**: Possible values are `app-user` (default), `app-manager`, and `app-admin` (string, optional)
- Result on success: **comment_id**
- Result on failure: **false**

Request example:
Expand Down Expand Up @@ -47,7 +49,7 @@ getComment

- Purpose: **Get comment information**
- Parameters:
- **comment\_id** (integer, required)
- **comment_id** (integer, required)
- Result on success: **comment properties**
- Result on failure: **null**

Expand Down Expand Up @@ -87,7 +89,7 @@ getAllComments

- Purpose: **Get all available comments**
- Parameters:
- **task\_id** (integer, required)
- **task_id** (integer, required)
- Result on success: **List of comments**
- Result on failure: **false**

Expand Down Expand Up @@ -163,7 +165,7 @@ removeComment

- Purpose: **Remove a comment**
- Parameters:
- **comment\_id** (integer, required)
- **comment_id** (integer, required)
- Result on success: **true**
- Result on failure: **false**

Expand Down

0 comments on commit 5a16a9e

Please sign in to comment.