Create or update a tag
POST
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
application/json- body
id?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidname*stringLongitud
1 <= length <= 100emoji?stringLongitud
length <= 10color?stringPatrón
^#[0-9A-F]{6}$description?stringLongitud
length <= 500sortOrder?integerRango
0 <= value <= 9007199254740991entityTypes?array<>Elementos
1 <= itemsPor defecto
[ "CUSTOMER"]isActive?booleanSuccessful response
application/json- response
entityTypes*array<>id*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidaccountId*stringname*stringemoji*string|nullcolor*string|nulldescription*string|nullisActive*booleansortOrder*integerRango
-9007199254740991 <= value <= 9007199254740991createdAt*stringupdatedAt*stringdeletedAt*string|nullcurl -X POST 'https://api.unopago.com/v1/tags' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Ejemplo de respuesta
{ "entityTypes": [ "CUSTOMER" ], "id": "string", "accountId": "string", "name": "string", "emoji": "string", "color": "string", "description": "string", "isActive": true, "sortOrder": -9007199254740991, "createdAt": "string", "updatedAt": "string", "deletedAt": "string"}
