Assistant
Replace the saved task and time of a scheduled reminder.
Replace the saved task and time of a scheduled reminder. The request is scoped to Assistant threads and content accessible to the authenticated caller.
PATCH
/
api
/
v1
/
assistant
/
threads
/
{id}
/
reminders
/
{reminderId}
Replace the saved task and time of a scheduled reminder.
curl --request PATCH \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/reminders/{reminderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"scheduleFor": "2023-11-07T05:31:56Z",
"message": {
"content": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: '<string>',
scheduleFor: '2023-11-07T05:31:56Z',
message: {content: '<string>'}
})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/reminders/{reminderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/reminders/{reminderId}"
payload = {
"reason": "<string>",
"scheduleFor": "2023-11-07T05:31:56Z",
"message": { "content": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"reminderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduledFor": "2023-11-07T05:31:56Z",
"reason": "<string>",
"status": "SCHEDULED",
"message": {
"type": "text",
"content": "<string>"
},
"origin": "AGENT"
}Body
application/json
⌘I
Replace the saved task and time of a scheduled reminder.
curl --request PATCH \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/reminders/{reminderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"scheduleFor": "2023-11-07T05:31:56Z",
"message": {
"content": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: '<string>',
scheduleFor: '2023-11-07T05:31:56Z',
message: {content: '<string>'}
})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/reminders/{reminderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/reminders/{reminderId}"
payload = {
"reason": "<string>",
"scheduleFor": "2023-11-07T05:31:56Z",
"message": { "content": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"reminderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduledFor": "2023-11-07T05:31:56Z",
"reason": "<string>",
"status": "SCHEDULED",
"message": {
"type": "text",
"content": "<string>"
},
"origin": "AGENT"
}
