TrueSight API Documentation
OverviewAccountActionsAdministration
Alarms v1Alarms v2BatchingDashboards
DatasetsEventsExtended Metrics
GroupsHostgroupsMetersMetricsProduct
PluginsRelaysSourcesSource-TagsSynchronize Data
Tenants
Terms

POST/v1/relays/:relay/toggle

Set a relay to be disabled or enabled

URL parameters

relay

Name of relay to toggle

Request body properties

disabled

true or false

removed

true or false

Example request

curl https://api.truesight.bmc.com/v1/relays/myrelay/toggle \
-X POST \
-u <email>:<api-token> \
-H "Content-Type: application/json" \
-d '
{
   "disabled": true,
   "removed": true
}'