API / Milestones

Milestones endpoint enables you to get role information and manage milestones in Silverbucket's database. Endpoint's URL is:


When calling /milestones/ endpoint without parameters you will get all the projectroles from database. Example response:
    "count": 1,
    "csvUrl": "/customer-api/1.0/milestones/?csv=true",
    "itemsPerPage": 500,
    "excelUrl": "/customer-api/1.0/milestones/?excel=true",
    "next": null,
    "current": 1,
    "lastPage": 1,
    "data": [
            "id": 3,
            "created": "2021-01-19T14:57:04.842776+02:00",
            "modified": "2021-01-19T14:57:04.909869+02:00",
            "name": "Keskivaihe",
            "date": "2019-06-27",
            "description": null,
            "project": 2322,
            "program": null
    "previous": null


You can add milestones with POST method to the same URL than get. POST body contains new milestone's data in JSON format. Successful call will give response code 201 and return the newly created milestone's JSON. Minimum JSON for adding a milestone is:
    "name": "<string>",
    "date": <iso_date>,
    "project": "<project_id>",
<---- or --->
    "program": "<program_id>",

How did we do with this article?