Skip to main content
POST
/
rulepacks
/
{id}
/
apply
Apply Rulepack to Connections
curl --request POST \
  --url https://use.hoop.dev/api/rulepacks/{id}/apply \
  --header 'Content-Type: application/json' \
  --data '
{
  "connection_names": [
    "pgdemo",
    "mysql-prod"
  ]
}
'
{
  "message": "the error description"
}

Path Parameters

id
string
required

Rulepack ID

Body

application/json

Connections to apply the rulepack to

connection_names
string[]
required

Names of connections this rulepack should be applied to. Replace-all semantics: after the call, the rulepack is attached to exactly these connections. Connections previously tagged with this rulepack that are not in the list lose the tag; non-rulepack attributes on every affected connection are preserved. Pass an empty array to remove the rulepack from all connections.

Example:
["pgdemo", "mysql-prod"]

Response

No Content