Update a website tag
Changes a tag's name, description or colour. Only the fields you send are changed. Every website carrying the tag shows the change.
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.
tagId*stringThe tag's id.
application/json- body
Only the fields you send are changed. Send description: null to clear it.
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 PATCH 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/website-tags/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}