PATCH
/
api
/
v1
/
workspace
/
{projectId}
/
tags
/
{tagId}
curl --request PATCH \
  --url https://us.infisical.com/api/v1/workspace/{projectId}/tags/{tagId} \
  --header 'Content-Type: application/json' \
  --data '{
  "slug": "<string>",
  "color": "<string>"
}'
{
  "workspaceTag": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "slug": "<string>",
    "color": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "projectId": "<string>",
    "createdByActorType": "user"
  }
}

Path Parameters

projectId
string
required

The ID of the project to update the tag in.

tagId
string
required

The ID of the tag to get details.

Body

application/json
slug
string
required

The slug of the tag to update.

Required string length: 1 - 64
color
string
required

The color of the tag to update.

Response

200
application/json
Default Response
workspaceTag
object
required

Was this page helpful?