Create a new grade or update an existing grade for the current account.
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
gradeId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidname*stringdescription?stringlevel*numberSuccessful response
application/json- response
id*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidname*stringdescription?stringlevel*numbercurl -X POST 'https://api.unopago.com/v1/grades' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "level": 0}'Ejemplo de respuesta
{ "id": "string", "name": "string", "description": "string", "level": 0}
