Project tags

projecttags endpoint enables you to get projecttag information and manage projecttags in Silverbucket's database. Endpoint's URL is:

https://<your_environment_url>/customer-api/1.0/projecttags/

GET


When calling /projecttags/ endpoint without parameters you will get all the projecttags from database. Example response:
{
    "count": 1,
    "csvUrl": "/customer-api/1.0/projecttags/?csv=true",
    "itemsPerPage": 500,
    "excelUrl": "/customer-api/1.0/projecttags/?excel=true",
    "next": null,
    "current": 1,
    "lastPage": 1,
    "data": [
        {
          "id": 1,
          "name": "Construction",
          "extra:code": "Y231",
        },
    ],
    "previous": null
}

POST


You can add projecttag's with POST method to the same URL than get. POST body contains new projecttag's data in JSON format. Successful call will give response code 201 and return the newly created projecttag's JSON. Minimum JSON for adding a projecttag is:
{
    "id": 1,
    "name": "<string>",
}

How did we do with this article?