Tags
Assign Tag to Monitor
Assigns an existing tag to a monitor. The caller needs read access to the monitor and visibility of the tag. The operation is idempotent.
POST /api/monitor-tags
Body
{
"monitorType": "website",
"monitorId": 101,
"tagId": 1
}monitorType(required): Type of the monitor. One of:website|dns|icmp|smtp|ssh|ftp|imap_pop.monitorId(required): Numeric ID of the monitor.tagId(required): Numeric ID of the tag to assign.
This operation is idempotent: calling it again when the tag is already assigned returns the existing assignment without error.
Example (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -X POST "$BASE_URL/api/monitor-tags" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"monitorType":"website","monitorId":101,"tagId":1}'Response
{
"monitorType": "website",
"monitorId": 101,
"tagId": 1,
"createdAt": "2026-06-29T12:00:00.000Z"
}Common errors
400 Bad RequestwhenmonitorTypeis not a supported type401 Unauthorizedwhen you are not logged in403 Forbiddenwhen you do not have read access to the monitor or cannot see the tag404 Not Foundwhen the monitor or tag does not exist