Acceldata
Acceldata
Last updated:

Add Tags to a Policy

Use this endpoint to add a tag to a specific policy by making an HTTP POST request to the provided URL.

Endpoint

Http

POST /catalog-server/api/rules/:id/tag

Path Parameters

Name

Type

Required

Description

id

string

Yes

The ID of the policy to which the tag will be added.

Example Request Body

Json

{

"ruleTag": {

"name": "critical"

}

}

Sample Request

Bash

curl -X POST "https://{{HOST}}/catalog-server/api/rules/14716/tag" \

-H "accessKey: {{ACCESS_KEY}}" \

-H "secretKey: {{SECRET_KEY}}" \

-H "Content-Type: application/json" \

-d '{

"ruleTag": {

"name": "critical"

}

}'