/initiatives

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

Get initiatives list

GET https://pm415.com/api/initiatives/all/:showarchived/:orgid

Gets the initiatives list.

Path Parameters

Name
Type
Description

:orgid

number

The ID of the org

:showarchived

boolean

True or false

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "initiatives": [
        {
            "email": "hwyxlisjb@emlpro.com",
            "firstName": "alena",
            "lastName": "prilipko",
            "createdAt": "2019-04-27T07:05:58.000Z",
            "id": 25,
            "title": "Api created",
            "archived": 0,
            "description": "api created Description",
            "horizon": "2011-11-11T00:00:00.000Z",
            "createdBy": 13,
            "statusId": 9,
            "order_index": 0,
            "organizationId": 17,
            "popularity": 0
        }
    ],
    "admin": true
}

Get current initiative

GET https://pm415.com/api/initiatives/:orgid/:initiativeid

Gets the current initiative information.

Path Parameters

Name
Type
Description

:initiativeid

number

The ID of the initiative

:orgid

number

The ID of the org

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Get info on selected initiatives

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

Gets the information on the selected initiatives.

Path Parameters

Name
Type
Description

:orgid

number

The ID of the org

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Request Body

Name
Type
Description

object

{"initiativeId": ["25"], "fullSelect": true}

Create new initiative

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

Creates the new initiative.

Path Parameters

Name
Type
Description

:orgid

number

The ID of the org

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Request Body

Name
Type
Description

object

{"title": "Api created", "description": "api created Description", "statusId":"9", "horizon":"111111"}

Update current initiative

PUT https://pm415.com/api/initiatives/edit/:orgid/:initiativeid

Updates the current initiative.

Path Parameters

Name
Type
Description

:initiativeid

number

The ID of the initiative you want to update

:orgid

number

The ID of the org

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Request Body

Name
Type
Description

object

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

Delete initiative

DELETE https://pm415.com/api/initiatives/:orgid/:initiativeid

Deletes the initiative.

Path Parameters

Name
Type
Description

:initiativeid

number

The ID of the initiative you want to delete

:orgid

number

The ID of the org

Headers

Name
Type
Description

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Last updated

Was this helpful?