Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 904 Bytes

PATCH_comment.md

File metadata and controls

35 lines (28 loc) · 904 Bytes

Edit red-flag's comment

API endpoint that represents editing the comment of red-flag record

  • URL Endpoint: /api/v1/red-flags/{id}/comment

  • Method: PATCH

  • URL Params:

    Name Type Required Description
    id integer The red-flag's id
  • Header Options:

    • Authorization: Bearer access_token
  • Request Body:

    Name Type Required Description
    comment string Proposed comment
  • Success Response

    • Code: 200 OK
    • Content:
      {
        "status": 200,
        "data": [
          {
            "id": 3,
            "message": "Updated red-flag record's comment"
          }
        ]
      }