Update profile
curl --request PATCH \
--url https://app.reinvented.education/api/clients/users/{user_id}/profile/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"friendly_name": "Ani",
"hour": "18:00"
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/profile/"
payload = {
"friendly_name": "Ani",
"hour": "18:00"
}
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({friendly_name: 'Ani', hour: '18:00'})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/profile/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"result": "success"
}{
"email": [
"Enter a valid email address."
],
"selected_days": [
"Day funday is not valid."
]
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Users
Update profile
Partially updates friendly name, delivery hour and first/last name. Changing hour
also moves the hour of every calendar day. Name changes are recorded in the company’s change log.
PATCH
/
clients
/
users
/
{user_id}
/
profile
/
Update profile
curl --request PATCH \
--url https://app.reinvented.education/api/clients/users/{user_id}/profile/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"friendly_name": "Ani",
"hour": "18:00"
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/profile/"
payload = {
"friendly_name": "Ani",
"hour": "18:00"
}
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({friendly_name: 'Ani', hour: '18:00'})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/profile/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"result": "success"
}{
"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

