Update a schedule
Send only the fields to change. A shared (platform) schedule is read-only: 403, whatever the body.
/api/v1/schedules/{schedule}
curl -X PUT 'https://app.clokeep.com/api/v1/schedules/7' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Nightly at 2:00 AM",
"cron_expression": "0 2 * * *",
"timezone": "UTC"
}'<?php
$ch = curl_init('https://app.clokeep.com/api/v1/schedules/7');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_TOKEN',
'Accept: application/json',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Nightly at 2:00 AM',
'cron_expression' => '0 2 * * *',
'timezone' => 'UTC',
]),
]);
$response = curl_exec($ch);
echo $response;
const response = await fetch("https://app.clokeep.com/api/v1/schedules/7", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Nightly at 2:00 AM",
"cron_expression": "0 2 * * *",
"timezone": "UTC",
}),
});
console.log(await response.text());
import requests
response = requests.put(
"https://app.clokeep.com/api/v1/schedules/7",
headers={
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json",
},
json={
"name": "Nightly at 2:00 AM",
"cron_expression": "0 2 * * *",
"timezone": "UTC",
},
)
print(response.text)
{
"data": {
"id": 7,
"name": "Nightly at 2:00 AM",
"platform": false,
"cron_expression": "0 2 * * *",
"timezone": "UTC",
"created_at": "2026-11-01T09:14:22+00:00",
"updated_at": "2026-11-18T16:40:05+00:00"
}
}{
"message": "Unauthenticated."
}{
"message": "Shared catalog items are read-only."
}{
"message": "No query results for model [App\\Models\\Schedule] 7"
}{
"message": "The name field is required.",
"errors": {
"name": [
"The name field is required."
]
}
}{
"message": "Too Many Attempts."
}Path Parameters
-
scheduleintegerrequired
The ID of the schedule.
Example:
7
Body Parameters
-
namestring
A name for the schedule, shown when choosing one for a plan.
Example:
Nightly at 2:00 AM -
cron_expressionstring
A five-field cron expression: minute, hour, day of month, month, day of week.
Example:
0 2 * * * -
timezonestring
The time zone the cron expression is read in, as an IANA name such as
UTCorEurope/Berlin.Example:
UTC
Response
200
-
dataobject
Show properties
-
data.idinteger
-
data.namestring
-
data.platformboolean
True for a shared catalog item that Clokeep provides to every client (read-only); false for one the client created.
-
data.cron_expressionstring
-
data.timezonestring
-
data.created_atstring · date-timenullable
-
data.updated_atstring · date-timenullable
-
401
The request carries no valid token: the Authorization: Bearer header is missing, or its token is unknown, revoked or past its expiry date. Send a current personal access token.
-
messagestring
Always
Unauthenticated.
403
The token may not do this. The message says why: This token lacks the required ability. (a read token), Your role does not permit this action. (its owner is not an Admin or Operator in the client), This account is disabled., This token is not bound to a client you belong to., or Client suspended. A shared (platform) schedule is read-only: Shared catalog items are read-only.
-
messagestring
What went wrong.
404
Not found
-
messagestring
What went wrong.
422
The body or the query is invalid. message names the first problem and errors lists every problem by field.
-
messagestring
The first problem, and how many more there are.
-
errorsobject
Every problem, by field.
429
More than 120 requests a minute for this user. Wait the seconds in Retry-After, then retry.
-
messagestring
What went wrong.