curl --request PATCH \
--url https://api.coval.dev/v1/tags/{tag_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"tag_name": "staging"
}
'{
"tag": {
"name": "tags/01HX2ABC3DEF4GHI5JKL6MNO7P",
"id": "01HX2ABC3DEF4GHI5JKL6MNO7P",
"tag_name": "staging",
"color": "#f59e0b",
"create_time": "2025-10-14T12:00:00Z",
"created_by": "engineer@example.com"
}
}Tags
Update tag
Update a tag’s name or color. Only provided fields are updated. Tag names are normalized to lowercase before persistence.
PATCH
/
tags
/
{tag_id}
curl --request PATCH \
--url https://api.coval.dev/v1/tags/{tag_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"tag_name": "staging"
}
'{
"tag": {
"name": "tags/01HX2ABC3DEF4GHI5JKL6MNO7P",
"id": "01HX2ABC3DEF4GHI5JKL6MNO7P",
"tag_name": "staging",
"color": "#f59e0b",
"create_time": "2025-10-14T12:00:00Z",
"created_by": "engineer@example.com"
}
}Headers
Body
application/json
Partial update request. Only provided fields are updated.
Was this page helpful?