Removes a custom tag completely from your UptimeRobot account. This action cannot be undone. The tag will be removed from all monitors that currently use it.
Tag ID (number or string)
Promise that resolves to true when deletion is successful
// Delete a tag
const success = await service.tags.delete(12345);
if (success) {
console.log('Tag deleted successfully');
}
https://uptimerobot.com/api/v3/#delete-/tags/-id- Official API Documentation
Retrieves a list of custom tags from your UptimeRobot account. Tags can be used to categorize and filter monitors for better organization and management. Results are paginated using cursor-based pagination.
Optionalfilter: { cursor?: number }Query string parameters passed to the API
Optionalcursor?: numberPagination cursor for next page
OptionalreturnFullResponse: falseReturns UserTag[] by default, or URFullResponse<UserTag> if returnFullResponse is true.
// Get all user tags
const tags = await service.tags.list();
tags.forEach(tag => {
console.log(`Tag: ${tag.name} (used by ${tag.monitorCount} monitors)`);
});
// Paginate through results
const page1 = await service.tags.list();
const page2 = await service.tags.list({ cursor: 123456789 });
// Get full response for pagination
const response = await service.tags.list({}, true);
const nextUrl = new URL(response.nextLink);
const nextCursorVal = nextUrl.searchParams.get('cursor');
console.log(nextCursorVal);
https://uptimerobot.com/api/v3/#get-/tags Official API Documentation
Retrieves a list of custom tags from your UptimeRobot account. Tags can be used to categorize and filter monitors for better organization and management. Results are paginated using cursor-based pagination.
Query string parameters passed to the API
Optionalcursor?: numberPagination cursor for next page
Returns UserTag[] by default, or URFullResponse<UserTag> if returnFullResponse is true.
// Get all user tags
const tags = await service.tags.list();
tags.forEach(tag => {
console.log(`Tag: ${tag.name} (used by ${tag.monitorCount} monitors)`);
});
// Paginate through results
const page1 = await service.tags.list();
const page2 = await service.tags.list({ cursor: 123456789 });
// Get full response for pagination
const response = await service.tags.list({}, true);
const nextUrl = new URL(response.nextLink);
const nextCursorVal = nextUrl.searchParams.get('cursor');
console.log(nextCursorVal);
https://uptimerobot.com/api/v3/#get-/tags Official API Documentation
Client for the Tags API.
See
https://uptimerobot.com/api/v3 Official API Documentation
Since
1.0.0