/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

Headers

{
    "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

Headers

{
    "success": true,
    "initiative": {
        "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,
        "author": {
            "firstName": "alena",
            "lastName": "prilipko",
            "id": 13,
            "email": "hwyxlisjb@emlpro.com"
        }
    },
    "admin": true
}

Get info on selected initiatives

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

Gets the information on the selected initiatives.

Path Parameters

Headers

Request Body

{
    "success": true,
    "initiatives": [
        {
            "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,
            "orderIndex": 0,
            "organizationId": 17
        }
    ]
}

Create new initiative

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

Creates the new initiative.

Path Parameters

Headers

Request Body

{
    "success": true,
    "initiative": {
        "title": "Api created",
        "description": "api created Description",
        "statusId": "9",
        "horizon": "111111",
        "organization_id": 17,
        "created_by": 13,
        "updated_at": "2019-04-27T07:44:48.165Z",
        "created_at": "2019-04-27T07:44:48.165Z",
        "id": 26
    }
}

Update current initiative

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

Updates the current initiative.

Path Parameters

Headers

Request Body

{
    "success": true,
    "initiative": {
        "id": 26,
        "title": "aasdsadasdasdasdasd3",
        "description": "api created Description",
        "horizon": "2011-11-11T00:00:00.000Z",
        "statusId": "10",
        "createdBy": 13,
        "createdAt": "2019-04-27T07:44:48.000Z",
        "updatedAt": "2019-04-27T07:57:43.000Z",
        "organizationId": 17,
        "mailers": null,
        "archived": 0,
        "orderIndex": 0,
        "updated_at": "2019-04-27T07:58:37.620Z"
    }
}

Delete initiative

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

Deletes the initiative.

Path Parameters

Headers

{
    "success": true,
    "initiative": 26,
    "message": "initiative deleted"
}

Last updated