curl -X PUT -H 'Content-Type: application/json' \
-H 'X-Curto-Api-Key: <your_key>' \
-d '{ "label": "A Label", "color": "red" }' \
https://api.curto.io/v1/tags/<tag_id>
{
"data": {
"id": "<tag_id>",
"label": "A Label",
"color": "red"
},
"status": "OK"
}
Tags
Atualizar uma Tag
Esse endpoint atualiza uma Tag
curl -X PUT -H 'Content-Type: application/json' \
-H 'X-Curto-Api-Key: <your_key>' \
-d '{ "label": "A Label", "color": "red" }' \
https://api.curto.io/v1/tags/<tag_id>
{
"data": {
"id": "<tag_id>",
"label": "A Label",
"color": "red"
},
"status": "OK"
}
Variáveis de Caminho
number
O identificador da Tag que será alterado.
Corpo da requisição
string
É o nome da Tag.
string
É a cor da Tag.
Resposta
string
Indica se a requisição foi bem sucedida. OK para quando for bem sucedida, e ERROR para quando não for.
object
curl -X PUT -H 'Content-Type: application/json' \
-H 'X-Curto-Api-Key: <your_key>' \
-d '{ "label": "A Label", "color": "red" }' \
https://api.curto.io/v1/tags/<tag_id>
{
"data": {
"id": "<tag_id>",
"label": "A Label",
"color": "red"
},
"status": "OK"
}