/bugs

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

Create new bug

POST https://pm415.com/api/bugs/new/:orgid

Creates a new bug.

Path Parameters

NameTypeDescription

:orgid

number

The ID of the org

Headers

NameTypeDescription

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Request Body

NameTypeDescription

object

{"title": "Api created", "description": "api created Description", "statusId":"14", "createdBy": "1"}

{
"success": true,
"bugs":{
"title": "Api created",
"description": "api created Description",
"statusId": "14",
"createdBy": "1",
"organizationId": 1,
"mailers": "!nosuchip@gmail.com!",
"updated_at": "2019-04-27T09:38:47.554Z",
"created_at": "2019-04-27T09:38:47.554Z",
"id": 37
}
}

Get bug list

GET https://pm415.com/api/bugs/full/:showarchived/:orgid/:fullselect

Gets the list of bugs

Path Parameters

NameTypeDescription

:fullselect

boolean

True or false

:orgid

number

The ID of the org

:showarchived

boolean

True or false

Headers

NameTypeDescription

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "bugs": [
        {
            "createdAt": "2019-04-27T09:41:44.000Z",
            "assignee": 13,
            "archived": 0,
            "id": 5,
            "title": "kjggkjkb",
            "description": "jhgjhg",
            "statusId": 14,
            "createdBy": 13,
            "reportedBy": null,
            "severity": "P2",
            "reportedByData": {
                "email": "hwyxlisjb@emlpro.com",
                "firstName": "alena",
                "lastName": "prilipko"
            },
            "assigneeData": {
                "email": "hwyxlisjb@emlpro.com",
                "firstName": "alena",
                "lastName": "prilipko"
            },
            "items": [],
            "initiatives": [],
            "comments": []
        }
    ],
    "admin": true
}

Get info on current bug

GET https://pm415.com/api/bugs/:orgid/:bugid

Gets the information on the current bug.

Path Parameters

NameTypeDescription

:bugid

number

The ID of the bug you want to work with

:orgid

number

The ID of the org

Headers

NameTypeDescription

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "bug": {
        "createdAt": "2019-04-27T09:41:44.000Z",
        "assignee": {
            "firstName": "alena",
            "lastName": "prilipko",
            "id": 13,
            "email": "hwyxlisjb@emlpro.com"
        },
        "archived": 0,
        "id": 5,
        "title": "kjggkjkb",
        "description": "jhgjhg",
        "statusId": 14,
        "createdBy": 13,
        "reportedBy": {
            "firstName": "alena",
            "lastName": "prilipko",
            "id": 13,
            "email": "hwyxlisjb@emlpro.com"
        },
        "severity": "P2"
    },
    "admin": true
}

Get list of selected bugs

POST https://pm415.com/api/bugs/:orgid

Gets the list of selected bugs.

Path Parameters

NameTypeDescription

:orgid

number

The ID of the org

Headers

NameTypeDescription

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Request Body

NameTypeDescription

object

{"bugId": ["5"], "fullSelect": true}

{
    "success": true,
    "bugs": [
        {
            "createdAt": "2019-04-27T09:41:44.000Z",
            "assignee": 13,
            "archived": 0,
            "id": 5,
            "title": "kjggkjkb",
            "description": "jhgjhg",
            "statusId": 14,
            "createdBy": 13,
            "reportedBy": null,
            "severity": "P2"
        }
    ]
}

Update current bug

PUT https://pm415.com/api/bugs/edit/:orgid/:bugid

Updates the current bug.

Path Parameters

NameTypeDescription

:bugid

number

The ID of the bug you want to update

:orgid

number

The ID of the org

Headers

NameTypeDescription

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Request Body

NameTypeDescription

object

{"title": "aasdsadasdasdasdasd3", "statusId": "16"}

{
    "success": true,
    "bug": {
        "id": 5,
        "assignee": 13,
        "organizationId": 17,
        "mailers": "!hwyxlisjb@emlpro.com!",
        "title": "aasdsadasdasdasdasd3",
        "description": "jhgjhg",
        "statusId": "16",
        "severity": "P2",
        "createdAt": "2019-04-27T09:41:44.000Z",
        "createdBy": 13,
        "reportedBy": null,
        "updatedAt": "2019-04-27T09:41:44.000Z",
        "archived": 0,
        "updated_at": "2019-04-27T11:38:19.285Z"
    }
}

Delete bug

DELETE https://pm415.com/api/bugs/:ogrid/:bugid

Deletes the bug.

Path Parameters

NameTypeDescription

:bugid

number

The ID of the bug you want to delete

:orgid

number

The ID of the org

Headers

NameTypeDescription

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "bug": 5,
    "message": "bug deleted"
}

Last updated