curl --location --request POST 'https://api.superagent.sh/api/v1/tags' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
"name": "My tag",
"color": "#FFFFFFF",
"userId": "123"
}'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My tag",
"color": "#FFFFFF"
}
}
Create new tag.
curl --location --request POST 'https://api.superagent.sh/api/v1/tags' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
"name": "My tag",
"color": "#FFFFFFF",
"userId": "123"
}'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My tag",
"color": "#FFFFFF"
}
}
tag
object.curl --location --request POST 'https://api.superagent.sh/api/v1/tags' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
"name": "My tag",
"color": "#FFFFFFF",
"userId": "123"
}'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My tag",
"color": "#FFFFFF"
}
}