Tags
Labels used to categorize, filter, and classify resources. Learn more about tags here.
Get a list of tags. No filtering is currently available.
Authorizations
Responses
200
List of tags.
application/json
Responseall of
400
Bad Request
500
Internal Server Error
get
/api/v1/tagGET /api/v1/tag HTTP/1.1
Host: api.secoda.co
Accept: */*
{
"links": {
"next": "https://api.secoda.co/resource/all/?page=2",
"previous": "None"
},
"meta": {
"page": 1,
"previous_page": "None",
"next_page": 2
},
"count": 315,
"total_pages": 7,
"results": [
{
"id": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
"created_at": "2023-09-05T17:32:56.571134Z",
"updated_at": "2023-09-05T17:32:56.571151Z",
"name": "Sample Tag",
"description": "This is a sample tag.",
"color": "#4299E1",
"integration_id": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
"workspace_id": "f71585fa-251c-4102-8d81-c97c57c8d435"
}
]
}Create a new tag for the workspace.
Authorizations
Body
namestringOptionalExample:
Indicates the name of the tag.
Sample TagdescriptionstringOptionalExample:
Indicates the description of the tag.
This is a sample tag.colorstringOptionalExample:
Defines the different colors of the tags.
#4299E1Responses
201
Created
application/json
400
Bad Request
500
Internal Server Error
post
/api/v1/tagPOST /api/v1/tag HTTP/1.1
Host: api.secoda.co
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"name": "Sample Tag",
"description": "This is a sample tag.",
"color": "#4299E1"
}{
"id": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
"created_at": "2023-09-05T17:32:56.571134Z",
"updated_at": "2023-09-05T17:32:56.571151Z",
"name": "Sample Tag",
"description": "This is a sample tag.",
"color": "#4299E1",
"integration_id": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
"workspace_id": "f71585fa-251c-4102-8d81-c97c57c8d435"
}Get a tag by its ID.
Authorizations
Path parameters
tag_idstringRequiredExample:
The ID of the tag to retrieve.
69e0b863-8bb8-47e1-b566-8b8d57441c70Responses
200
OK
application/json
404
Not Found
500
Internal Server Error
get
/api/v1/tag/{tag_id}GET /api/v1/tag/{tag_id} HTTP/1.1
Host: api.secoda.co
Accept: */*
{
"id": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
"created_at": "2023-09-05T17:32:56.571134Z",
"updated_at": "2023-09-05T17:32:56.571151Z",
"name": "Sample Tag",
"description": "This is a sample tag.",
"color": "#4299E1",
"integration_id": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
"workspace_id": "f71585fa-251c-4102-8d81-c97c57c8d435"
}Delete a tag by its ID.
Authorizations
Path parameters
tag_idstringRequiredExample:
The ID of the tag to delete.
69e0b863-8bb8-47e1-b566-8b8d57441c70Responses
204
No Content
404
Not Found
500
Internal Server Error
delete
/api/v1/tag/{tag_id}DELETE /api/v1/tag/{tag_id} HTTP/1.1
Host: api.secoda.co
Accept: */*
No content
Use this endpoint to update tag name, color, or icon.
Authorizations
Path parameters
tag_idstringRequiredExample:
The ID of the tag to update.
38040671-8f1d-4322-b895-4fd7b73317bfBody
colorstringRequiredExample:
Represents the color of the tags.
#316650Responses
204
No Content
404
Not Found
500
Internal Server Error
patch
/api/v1/tag/{tag_id}PATCH /api/v1/tag/{tag_id} HTTP/1.1
Host: api.secoda.co
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"color": "#316650"
}No content
Last updated
Was this helpful?