/comments

These methods allow you to create, edit, delete and get info on comments.

Create a comment

POST https://pm415.com/api/comments/new/:ownertable/:orgid/:owmerid

Creates the new comment.

Path Parameters

Name
Type
Description

:ownertable

string

"Bugs" or "Initiatives" or "Items"

:ownerid

number

The ID of the bug or initiative or item

:orgid

number

The ID of the org

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "comment": {
        "comment": "comment2-2",
        "organization_id": 17,
        "created_by": 13,
        "ownerId": 49,
        "ownerTable": "items",
        "mailers": "",
        "updated_at": "2019-04-26T08:34:57.752Z",
        "created_at": "2019-04-26T08:34:57.752Z",
        "id": 54
    }
}

Get list of comments

GET https://pm415.com/api/comments/get/:ownertable/:orgid/:ownerid

Gets the list of comments.

Path Parameters

Name
Type
Description

:ownerid

number

The ID of the bug or initiative or item

:orgid

number

The ID of the org

:ownertable

string

"Bugs" or "Initiatives" or "Items"

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Update current comment

PUT https://pm415.com/api/comments/edit/:commentid

Updates the current comment.

Path Parameters

Name
Type
Description

:commentid

number

The ID of the comment you want to update

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Delete a comment

DELETE https://pm415.com/api/comments/delete/:orgid/:commentid

Delets the chosen comment.

Path Parameters

Name
Type
Description

:commentid

number

The ID of the comment you want to delete

:orgid

number

The ID of the org

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Last updated

Was this helpful?