/policyengine/v1/tags/: PUT
Adds one or more new tags to the list of existing definitions.
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection admin | Collection user | Admin | Service user |
---|---|---|---|---|---|
✓1 | ✓2 | ✓ | X | Χ | Χ |
1READ/WRITE access to 'Open', 'Restricted',
and 'Characteristics' types of tags. 2READ Only access to 'Open' and 'Restricted' types of tags, READ/WRITE access to 'Characteristics' tags. |
Synopsis of the request URL
$ curl -H "Authorization: Bearer <token>" -k
https://<spectrum_discover_host>:443/policyengine/v1/tags/<tag_name> -d '{"value":
["dept1", "dept2", "dept3", "dept4"]}' -X PUT -H "Content-Type: application/json"
Supported request types and response formats
Supported request types:
- PUT
Supported response formats:
- JSON
Note: Tag
payload
update requests are applied to the existing tag. Update tag
requests overwrite the existing attributes of a tag. However, you cannot change the tag
type.