Appearance
tag/saverule
Updates an existing tagging rule.
Method and path
POST /tag/saverule
Authentication
Authentication is required. See Authentication.
Permissions
Accessible to tier 1, 2, and 3 users.
Request headers
| Header | Required | Description |
|---|---|---|
X-Api-Key or X_API_KEY | yes | API key. |
Content-Type | yes | application/json. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
project_id | integer | yes | Project identifier. |
rule_id | integer | yes | Rule identifier. |
tag_id | integer | yes | Tag identifier assigned to the rule. |
tag_field | string | yes | Field matched by the rule. |
tag_rule | string | yes | Match operator or rule type. |
tag_value | string | yes | Match value. |
Example request
bash
curl -X POST "$SIGNAL_API_BASE_URL/tag/saverule" \
-H "X-Api-Key: $SIGNAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"project_id": 123,
"rule_id": 789,
"tag_id": 456,
"tag_field": "title",
"tag_rule": "contains",
"tag_value": "updated keyword"
}'json
{
"project_id": 123,
"rule_id": 789,
"tag_id": 456,
"tag_field": "title",
"tag_rule": "contains",
"tag_value": "updated keyword"
}Example response
json
{
"id": 789,
"tag_field": "title",
"tag_rule": "contains",
"tag_value": "updated keyword"
}Response fields
| Field | Type | Description |
|---|---|---|
id | integer | Rule identifier. |
tag_field | string | Matched field. |
tag_rule | string | Match operator or rule type. |
tag_value | string | Match value. |