Create tag
Create a new tag.
Create a new tag.
ApiKeyAuthAuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
manage_tagsapplication/json- body
Fields for creating a tag.
namespace*TagNamespaceWhich kind of entity a tag can be applied to. A tag belongs to exactly one namespace.
"agent""resource"name*stringLabel text, unique within the namespace.
1 <= length <= 50color*TagColorColor a tag is displayed with.
"red""orange""amber""yellow""lime""green""emerald""teal""cyan""sky""blue""violet"The request has succeeded and a new resource has been created as a result.
application/json- response
A named, colored label attached to agents or resources, used to write policy
rules that match a class of entities instead of naming each one. A tag's
name must be unique within its namespace, and its namespace is fixed once
created.
id*stringuuidnamespace*TagNamespaceWhich kind of entity a tag can be applied to. A tag belongs to exactly one namespace.
"agent""resource"name*stringLabel text, unique within the namespace.
1 <= length <= 50color*TagColorColor a tag is displayed with.
"red""orange""amber""yellow""lime""green""emerald""teal""cyan""sky""blue""violet"system*booleanBuilt-in tags are maintained by the product and cannot be changed. SecureAuth applies them to catalog tools, and you can assign them to any tool.
description?stringWhat a built-in tag means. Only set on built-in tags.
created_at*stringdate-timeupdated_at*stringdate-timecurl -X POST "https://example.com/tags" \ -H "Content-Type: application/json" \ -d '{ "namespace": "agent", "name": "string", "color": "red" }'{ "id": null, "namespace": "agent", "name": "string", "color": "red", "system": true, "description": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}