AI bots
Change a schedule
Change one of your schedules with a bot: its title, instructions, timing, or whether it runs.
Needs the messaging.update permission.
PATCH
/
api
/
company
/
v2026-10
/
bots
/
{bot_id}
/
direct-conversation
/
schedules
/
{id}
Change a schedule
curl --request PATCH \
--url https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schedule": {
"lock_version": 0,
"enabled": false
}
}
'import requests
url = "https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}"
payload = { "schedule": {
"lock_version": 0,
"enabled": False
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({schedule: {lock_version: 0, enabled: false}})
};
fetch('https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'schedule' => [
'lock_version' => 0,
'enabled' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}"
payload := strings.NewReader("{\n \"schedule\": {\n \"lock_version\": 0,\n \"enabled\": false\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"schedule\": {\n \"lock_version\": 0,\n \"enabled\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"schedule\": {\n \"lock_version\": 0,\n \"enabled\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"schedule": {
"id": "019a0b1c-2d3e-7f40-8a51-6b7c8d9e0f20",
"bot_id": "0192f3c4-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
"conversation_id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a61",
"name": "Monday sales recap",
"instructions": "Summarize my team's sales from last week and flag anyone who hasn't ordered.",
"schedule": {
"cron": "0 9 * * 1",
"timezone": "America/Denver"
},
"next_run_at": null,
"last_run_at": null,
"enabled": false,
"created_by": {
"id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a70",
"name": "Casey Brooks"
},
"lock_version": 1,
"created_at": "2026-11-21T15:35:00.000Z",
"updated_at": "2026-11-21T15:50:00.000Z"
},
"status": 200,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:50:00Z"
}
}{
"message": "Invalid credentials."
}{
"message": "Not authorized."
}{
"error": {
"message": "Schedule not found",
"details": {}
},
"status": 404,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:32:08Z"
}
}{
"error": {
"message": "The trigger was changed by another request; read it again",
"details": {
"type": "stale_trigger"
}
},
"status": 409,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:50:00Z"
}
}{
"error": {
"message": "Invalid parameters",
"details": {
"schedule": [
"must change cron and timezone together"
]
}
},
"status": 422,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:50:00Z"
}
}Authorizations
Body
application/json
Response
The changed schedule.
⌘I
Change a schedule
curl --request PATCH \
--url https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schedule": {
"lock_version": 0,
"enabled": false
}
}
'import requests
url = "https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}"
payload = { "schedule": {
"lock_version": 0,
"enabled": False
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({schedule: {lock_version: 0, enabled: false}})
};
fetch('https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'schedule' => [
'lock_version' => 0,
'enabled' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}"
payload := strings.NewReader("{\n \"schedule\": {\n \"lock_version\": 0,\n \"enabled\": false\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"schedule\": {\n \"lock_version\": 0,\n \"enabled\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bots/{bot_id}/direct-conversation/schedules/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"schedule\": {\n \"lock_version\": 0,\n \"enabled\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"schedule": {
"id": "019a0b1c-2d3e-7f40-8a51-6b7c8d9e0f20",
"bot_id": "0192f3c4-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
"conversation_id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a61",
"name": "Monday sales recap",
"instructions": "Summarize my team's sales from last week and flag anyone who hasn't ordered.",
"schedule": {
"cron": "0 9 * * 1",
"timezone": "America/Denver"
},
"next_run_at": null,
"last_run_at": null,
"enabled": false,
"created_by": {
"id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a70",
"name": "Casey Brooks"
},
"lock_version": 1,
"created_at": "2026-11-21T15:35:00.000Z",
"updated_at": "2026-11-21T15:50:00.000Z"
},
"status": 200,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:50:00Z"
}
}{
"message": "Invalid credentials."
}{
"message": "Not authorized."
}{
"error": {
"message": "Schedule not found",
"details": {}
},
"status": 404,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:32:08Z"
}
}{
"error": {
"message": "The trigger was changed by another request; read it again",
"details": {
"type": "stale_trigger"
}
},
"status": 409,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:50:00Z"
}
}{
"error": {
"message": "Invalid parameters",
"details": {
"schedule": [
"must change cron and timezone together"
]
}
},
"status": 422,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-21T15:50:00Z"
}
}