Tags
/tags/{tagId}
Tags
/tags/{tagId}
Patch a tag.
PATCH
/
api
/
v1
/
tags
/
{tagId}
curl --location --request PATCH 'https://api.rapidagent.ai/api/v1/tags/{tagId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
"name": "My patched tag",
"color": "#FFFFFF"
}'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My patched tag",
"color": "#FFFFFFF",
...
}
}
Params
A valid tag
id.
Body
The name of the tag.
The color of the tag
Response
Indicates whether the call was successful.
A tag
object.
curl --location --request PATCH 'https://api.rapidagent.ai/api/v1/tags/{tagId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
"name": "My patched tag",
"color": "#FFFFFF"
}'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My patched tag",
"color": "#FFFFFFF",
...
}
}
curl --location --request PATCH 'https://api.rapidagent.ai/api/v1/tags/{tagId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
"name": "My patched tag",
"color": "#FFFFFF"
}'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My patched tag",
"color": "#FFFFFFF",
...
}
}