Replace delivery days
curl --request PATCH \
--url https://app.reinvented.education/api/clients/users/{user_id}/days/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"selected_days": [
"martes",
"jueves"
]
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/days/"
payload = { "selected_days": ["martes", "jueves"] }
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({selected_days: ['martes', 'jueves']})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/days/', 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
Replace delivery days
Replaces the user’s content-delivery calendar with the given days, at the profile’s current hour. All previous days are deleted first. Days must use the Spanish names (lunes … domingo); this endpoint does not accept English names.
PATCH
/
clients
/
users
/
{user_id}
/
days
/
Replace delivery days
curl --request PATCH \
--url https://app.reinvented.education/api/clients/users/{user_id}/days/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"selected_days": [
"martes",
"jueves"
]
}
'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/days/"
payload = { "selected_days": ["martes", "jueves"] }
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({selected_days: ['martes', 'jueves']})
};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/days/', 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

