curl --request PUT \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/tags/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'Update an existing tag
curl --request PUT \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/tags/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'{
"description": "Updated description for technology content"
}
{
"id": "tag123",
"name": "Technology",
"slug": "technology",
"description": "Updated description for technology content",
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-22T10:00:00Z"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Tag not found"
}
}
{
"error": {
"code": "TAG_NAME_EXISTS",
"message": "A tag with this name already exists"
}
}
curl -X PUT "https://api.metabind.ai/v1/organizations/org123/projects/proj456/tags/tag123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated description"
}'