Assign a pensum
curl --request POST \
--url https://app.reinvented.education/api/clients/users/{user_id}/assign-pensum/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"pensum_id": 58
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/assign-pensum/"
payload = { "pensum_id": 58 }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({pensum_id: 58})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/assign-pensum/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Pensum asignado exitosamente.",
"pensum_user_id": 9031,
"assigned_route_name": "Servicio al cliente",
"assigned_module_name": "Módulo 1"
}{
"email": [
"Enter a valid email address."
],
"selected_days": [
"Day funday is not valid."
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Enrollment
Assign a pensum
Enrolls the user in a pensum of the company and assigns the first course of the pensum
the user has not completed. With is_active true (default) the user’s other pensums are
deactivated. Repeating the call is safe: the enrollment is updated, not duplicated.
POST
/
clients
/
users
/
{user_id}
/
assign-pensum
/
Assign a pensum
curl --request POST \
--url https://app.reinvented.education/api/clients/users/{user_id}/assign-pensum/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"pensum_id": 58
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/assign-pensum/"
payload = { "pensum_id": 58 }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({pensum_id: 58})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/assign-pensum/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Pensum asignado exitosamente.",
"pensum_user_id": 9031,
"assigned_route_name": "Servicio al cliente",
"assigned_module_name": "Módulo 1"
}{
"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

