Update a user
curl --request PATCH \
--url https://app.reinvented.education/api/clients/users/{user_id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"last_name": "Pérez Gómez",
"profile": {
"hour": "07:00",
"document_type": "PASS",
"document_number": "AB123456"
},
"extra_fields": [
{
"name": "cargo",
"value": "Analista"
}
]
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/"
payload = {
"last_name": "Pérez Gómez",
"profile": {
"hour": "07:00",
"document_type": "PASS",
"document_number": "AB123456"
},
"extra_fields": [
{
"name": "cargo",
"value": "Analista"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
last_name: 'Pérez Gómez',
profile: {hour: '07:00', document_type: 'PASS', document_number: 'AB123456'},
extra_fields: [{name: 'cargo', value: 'Analista'}]
})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 48213,
"username": "ana.perez@example.com",
"is_client": true,
"is_verified": true,
"first_name": "Ana",
"last_name": "Pérez",
"email": "ana.perez@example.com",
"phone_number": "+573001112233",
"user_company": "acme",
"profile": {
"document_type": "CEDULA",
"document_number": "1000000001",
"hour": "08:30:00",
"points": 120
},
"active_module": [],
"user_extra_field": [
{
"extra_field_company": "area",
"extra_field_choice": "ventas",
"value": null,
"json_data": null
}
],
"last_activity": "2026-11-24T09:12:40-05:00",
"created": "2026-10-01T14:00:00-05:00",
"last_login": null,
"offline_mode": false,
"membership_start_date": "2026-10-01",
"membership_expiration": "2027-10-01"
}{
"email": [
"Enter a valid email address."
],
"selected_days": [
"Day funday is not valid."
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Users
Update a user
Updates name, email, flags, profile fields and extra fields. All fields are optional;
empty strings and nulls are ignored. Returns the full updated user. PUT to the same
path is also accepted and behaves identically.
PATCH
/
clients
/
users
/
{user_id}
/
Update a user
curl --request PATCH \
--url https://app.reinvented.education/api/clients/users/{user_id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"last_name": "Pérez Gómez",
"profile": {
"hour": "07:00",
"document_type": "PASS",
"document_number": "AB123456"
},
"extra_fields": [
{
"name": "cargo",
"value": "Analista"
}
]
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/"
payload = {
"last_name": "Pérez Gómez",
"profile": {
"hour": "07:00",
"document_type": "PASS",
"document_number": "AB123456"
},
"extra_fields": [
{
"name": "cargo",
"value": "Analista"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
last_name: 'Pérez Gómez',
profile: {hour: '07:00', document_type: 'PASS', document_number: 'AB123456'},
extra_fields: [{name: 'cargo', value: 'Analista'}]
})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 48213,
"username": "ana.perez@example.com",
"is_client": true,
"is_verified": true,
"first_name": "Ana",
"last_name": "Pérez",
"email": "ana.perez@example.com",
"phone_number": "+573001112233",
"user_company": "acme",
"profile": {
"document_type": "CEDULA",
"document_number": "1000000001",
"hour": "08:30:00",
"points": 120
},
"active_module": [],
"user_extra_field": [
{
"extra_field_company": "area",
"extra_field_choice": "ventas",
"value": null,
"json_data": null
}
],
"last_activity": "2026-11-24T09:12:40-05:00",
"created": "2026-10-01T14:00:00-05:00",
"last_login": null,
"offline_mode": false,
"membership_start_date": "2026-10-01",
"membership_expiration": "2027-10-01"
}{
"email": [
"Enter a valid email address."
],
"selected_days": [
"Day funday is not valid."
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Authorizations
Path Parameters
Body
application/json
Response
The updated user.

