Create a website tag
Adds a tag to the workspace. Names are unique within the workspace, and a name already in use answers 409 website_tag_name_taken. Apply it to websites with the website's tags endpoint.
Requires the admin role on the workspace.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
application/json- body
The tag to create. The colour defaults to slate.
name*stringTag name, unique within the workspace.
\S1 <= length <= 100description?|What the tag is for, or null.
color?TagColorColour the tag is shown in.
"slate""blue""cyan""teal""green""lime""yellow""orange""red""pink""purple"A label for websites, shared by every website in the workspace.
application/json- response
id*stringUnique identifier of the tag.
name*stringTag name.
color*TagColorColour the tag is shown in.
"slate""blue""cyan""teal""green""lime""yellow""orange""red""pink""purple"description*|What the tag is for, or null.
workspaceId*stringThe workspace the tag belongs to.
websiteCount*|How many of the websites you can access carry the tag.
0 <= valuecreatedAt*stringWhen the tag was created.
date-timeupdatedAt*stringWhen the tag was last changed.
date-timecurl -X POST 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/website-tags' \ -H 'Content-Type: application/json' \ -d '{ "name": "production"}'{ "id": "string", "name": "production", "color": "slate", "description": "Sites customers reach today.", "workspaceId": "string", "websiteCount": 3, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}List website tags GET
Lists the tags websites in this workspace can carry, such as production or EU, with how many of the websites you can access carry each one.
Update a website tag PATCH
Changes a tag's name, description or colour. Only the fields you send are changed. Every website carrying the tag shows the change.