Tags

Manage your tags via the API

get
Get Tags list

https://app.1pilot.io/api/v1/tags
Request
Response
Request
Response
200: OK
{
"data": [
{
"id": 1,
"name": "Test",
"created_at": "2018-01-31T10:27:39+00:00",
"updated_at": "2018-01-31T10:27:39+00:00"
},
{
"id": 5,
"name": "My tag",
"created_at": "2018-02-01T13:46:53+00:00",
"updated_at": "2018-02-14T15:10:59+00:00"
}
],
"links": {
"first": "https://app.1pilot.io/api/v1/tags?page=1",
"last": "https://app.1pilot.io/api/v1/tags?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://app.1pilot.io/api/v1/tags",
"per_page": 15,
"to": 2,
"total": 2
}
}

post
Create new Tag

https://app.1pilot.io/api/v1/tags
Request
Response
Request
Form Data Parameters
name
required
string
The name of the tag to create
Response
200: OK
{
"data": {
"id": 7,
"name": "My new Tag",
"created_at": "2018-06-15T09:37:23+00:00",
"updated_at": "2018-06-15T09:37:23+00:00"
}
}

delete
Delete a Tag

https://app.1pilot.io/api/v1/tags/:id
Request
Response
Request
Path Parameters
id
required
integer
ID of the tag you want delete
Response
200: OK
Empty 200 response if the deleting was performed correctly