Ir al contenido
UnoPagoDocumentación
Referencia de la APISchoolsStudents

Update a student

PUT
/v1/students/{id}

This API is used to update a student

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
Longitud1 <= length
application/json
  1. body
firstName?string
Longitud1 <= length <= 50
customerId?|null
lastName?string
Longitudlength <= 50
nationalId?|null
nationality?|null
gender?string
Valor en"MALE""FEMALE""OTHER"
dateOfBirth?string|null
enrollmentYear?|null
promoYear?|null
gradeId?|null
sectionId?|null
birthPlace?|null
clothingSize?|null
email?|null
phoneNumber?|null
externalId?|null
active?boolean
Por defectotrue
syncActive?boolean

Cuerpo de la respuesta

Successful response

application/json
  1. response
gender*string
Valor en"MALE""FEMALE""OTHER"
clothingSize*|null
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
customerId*string|null
accountId*string
externalId*string|null
reenrollmentSettingsId*string|null
firstName*string
lastName*string
nationalId*string|null
nationality*string|null
dateOfBirth*string|null
enrollmentYear*string|null
promoYear*string|null
sectionId*string|null
birthPlace*string|null
email*string|null
phoneNumber*string|null
active*boolean
createdAt*string
updatedAt*string
Ejemplo de solicitud
curl -X PUT 'https://api.unopago.com/v1/students/string' \  -H 'Content-Type: application/json' \  -d '{}'
Ejemplo de respuesta
{  "gender": "MALE",  "clothingSize": "XS",  "id": "string",  "customerId": "string",  "accountId": "string",  "externalId": "string",  "reenrollmentSettingsId": "string",  "firstName": "string",  "lastName": "string",  "nationalId": "string",  "nationality": "string",  "dateOfBirth": "string",  "enrollmentYear": "string",  "promoYear": "string",  "sectionId": "string",  "birthPlace": "string",  "email": "string",  "phoneNumber": "string",  "active": true,  "createdAt": "string",  "updatedAt": "string"}