Update a scheduled task
curl --request PATCH \
--url https://api.langdock.com/automations/v1/{automationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"prompt": "<string>",
"timeOfDay": "<string>",
"dayOfWeek": 3,
"dayOfMonth": 16,
"daysOfWeek": [
3
],
"timezone": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedAssistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedIntegrationIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"taggedKnowledgeFolderIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"taggedWorkflowIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"taggedSkillSlugs": [
"<string>"
],
"attachmentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.langdock.com/automations/v1/{automationId}"
payload = {
"name": "<string>",
"prompt": "<string>",
"timeOfDay": "<string>",
"dayOfWeek": 3,
"dayOfMonth": 16,
"daysOfWeek": [3],
"timezone": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedAssistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedIntegrationIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"taggedKnowledgeFolderIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"taggedWorkflowIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"taggedSkillSlugs": ["<string>"],
"attachmentIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
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({
name: '<string>',
prompt: '<string>',
timeOfDay: '<string>',
dayOfWeek: 3,
dayOfMonth: 16,
daysOfWeek: [3],
timezone: '<string>',
modelId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
assistantId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
taggedAssistantId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
taggedIntegrationIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
taggedKnowledgeFolderIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
taggedWorkflowIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
taggedSkillSlugs: ['<string>'],
attachmentIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.langdock.com/automations/v1/{automationId}', 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.langdock.com/automations/v1/{automationId}",
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([
'name' => '<string>',
'prompt' => '<string>',
'timeOfDay' => '<string>',
'dayOfWeek' => 3,
'dayOfMonth' => 16,
'daysOfWeek' => [
3
],
'timezone' => '<string>',
'modelId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'assistantId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'taggedAssistantId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'taggedIntegrationIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taggedKnowledgeFolderIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taggedWorkflowIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taggedSkillSlugs' => [
'<string>'
],
'attachmentIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
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.langdock.com/automations/v1/{automationId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"prompt\": \"<string>\",\n \"timeOfDay\": \"<string>\",\n \"dayOfWeek\": 3,\n \"dayOfMonth\": 16,\n \"daysOfWeek\": [\n 3\n ],\n \"timezone\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedAssistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedIntegrationIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedKnowledgeFolderIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedWorkflowIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedSkillSlugs\": [\n \"<string>\"\n ],\n \"attachmentIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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.langdock.com/automations/v1/{automationId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"prompt\": \"<string>\",\n \"timeOfDay\": \"<string>\",\n \"dayOfWeek\": 3,\n \"dayOfMonth\": 16,\n \"daysOfWeek\": [\n 3\n ],\n \"timezone\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedAssistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedIntegrationIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedKnowledgeFolderIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedWorkflowIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedSkillSlugs\": [\n \"<string>\"\n ],\n \"attachmentIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.langdock.com/automations/v1/{automationId}")
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 \"name\": \"<string>\",\n \"prompt\": \"<string>\",\n \"timeOfDay\": \"<string>\",\n \"dayOfWeek\": 3,\n \"dayOfMonth\": 16,\n \"daysOfWeek\": [\n 3\n ],\n \"timezone\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedAssistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedIntegrationIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedKnowledgeFolderIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedWorkflowIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedSkillSlugs\": [\n \"<string>\"\n ],\n \"attachmentIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_bodyScheduled Tasks API
Scheduled Task aktualisieren
Aktualisiere eine Scheduled Task, die diesem Workspace-API-Key gehört
PATCH
/
automations
/
v1
/
{automationId}
Update a scheduled task
curl --request PATCH \
--url https://api.langdock.com/automations/v1/{automationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"prompt": "<string>",
"timeOfDay": "<string>",
"dayOfWeek": 3,
"dayOfMonth": 16,
"daysOfWeek": [
3
],
"timezone": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedAssistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedIntegrationIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"taggedKnowledgeFolderIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"taggedWorkflowIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"taggedSkillSlugs": [
"<string>"
],
"attachmentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.langdock.com/automations/v1/{automationId}"
payload = {
"name": "<string>",
"prompt": "<string>",
"timeOfDay": "<string>",
"dayOfWeek": 3,
"dayOfMonth": 16,
"daysOfWeek": [3],
"timezone": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedAssistantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taggedIntegrationIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"taggedKnowledgeFolderIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"taggedWorkflowIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"taggedSkillSlugs": ["<string>"],
"attachmentIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
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({
name: '<string>',
prompt: '<string>',
timeOfDay: '<string>',
dayOfWeek: 3,
dayOfMonth: 16,
daysOfWeek: [3],
timezone: '<string>',
modelId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
assistantId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
taggedAssistantId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
taggedIntegrationIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
taggedKnowledgeFolderIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
taggedWorkflowIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
taggedSkillSlugs: ['<string>'],
attachmentIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.langdock.com/automations/v1/{automationId}', 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.langdock.com/automations/v1/{automationId}",
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([
'name' => '<string>',
'prompt' => '<string>',
'timeOfDay' => '<string>',
'dayOfWeek' => 3,
'dayOfMonth' => 16,
'daysOfWeek' => [
3
],
'timezone' => '<string>',
'modelId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'assistantId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'taggedAssistantId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'taggedIntegrationIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taggedKnowledgeFolderIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taggedWorkflowIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taggedSkillSlugs' => [
'<string>'
],
'attachmentIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
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.langdock.com/automations/v1/{automationId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"prompt\": \"<string>\",\n \"timeOfDay\": \"<string>\",\n \"dayOfWeek\": 3,\n \"dayOfMonth\": 16,\n \"daysOfWeek\": [\n 3\n ],\n \"timezone\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedAssistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedIntegrationIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedKnowledgeFolderIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedWorkflowIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedSkillSlugs\": [\n \"<string>\"\n ],\n \"attachmentIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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.langdock.com/automations/v1/{automationId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"prompt\": \"<string>\",\n \"timeOfDay\": \"<string>\",\n \"dayOfWeek\": 3,\n \"dayOfMonth\": 16,\n \"daysOfWeek\": [\n 3\n ],\n \"timezone\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedAssistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedIntegrationIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedKnowledgeFolderIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedWorkflowIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedSkillSlugs\": [\n \"<string>\"\n ],\n \"attachmentIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.langdock.com/automations/v1/{automationId}")
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 \"name\": \"<string>\",\n \"prompt\": \"<string>\",\n \"timeOfDay\": \"<string>\",\n \"dayOfWeek\": 3,\n \"dayOfMonth\": 16,\n \"daysOfWeek\": [\n 3\n ],\n \"timezone\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedAssistantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"taggedIntegrationIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedKnowledgeFolderIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedWorkflowIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"taggedSkillSlugs\": [\n \"<string>\"\n ],\n \"attachmentIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_bodyAktualisiert eine Scheduled Task, die diesem Workspace-API-Key gehört. Sende mindestens ein Feld. Die Antwort enthält kein
Unbekannte Body-Felder werden abgelehnt. Ein ungültiger Body liefert
runCount.
Weggelassene Felder bleiben, wie sie sind. Der Zeitplan wird geprüft, nachdem deine Felder mit der gespeicherten Uhrzeit zusammengeführt wurden. Änderst du nur frequency, kann die gespeicherte timeOfDay weiter gelten. Ein unvollständiger zusammengeführter Zeitplan liefert 400.
attachmentIds ersetzen die Anhangliste. Lässt du attachmentIds weg, bleiben die Anhänge. Ein Tag-Array ersetzt dieses Array. Ein leeres Array leert es. Nicht erreichbare getaggte IDs und Slugs werden verworfen.
Basis-URL
https://api.langdock.com/automations/v1/{automationId}
Dedicated DeploymentsErsetze
api.langdock.com durch <your-deployment-url>/api/public in allen Anfragen.Benötigte Scopes
Dieser Endpoint braucht den ScopeAUTOMATION_API (Scheduled Tasks API) auf einem Workspace-API-Key.
Parameter
| Parameter | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
automationId | Pfad | string | Ja | UUID der Scheduled Task. |
name | Body | string | Nein | 1 bis 200 Zeichen. |
prompt | Body | string | Nein | 1 bis 120000 Zeichen. |
frequency | Body | string | Nein | MANUAL, DAILY, WEEKDAYS, WEEKLY, MONTHLY oder SELECTED_WEEKDAYS. |
timeOfDay | Body | string | null | Nein | HH:mm im 24-Stunden-Format. |
dayOfWeek | Body | integer | null | Nein | 0 (Sonntag) bis 6 (Samstag). |
dayOfMonth | Body | integer | null | Nein | 1 bis 31. |
daysOfWeek | Body | integer[] | Nein | Tage von 0 bis 6. Höchstens 7 Werte. |
timezone | Body | string | null | Nein | IANA-Name, höchstens 64 Zeichen. |
modelMode | Body | string | Nein | UNSET, EXPLICIT oder AUTO. |
modelId | Body | string | null | Nein | Pflicht in dieser Anfrage, wenn modelMode EXPLICIT ist. |
assistantId | Body | string | null | Nein | Primärer Agent. null entfernt ihn. |
taggedAssistantId | Body | string | null | Nein | Zusätzliche Agentenerwähnung. null entfernt sie. |
taggedIntegrationIds | Body | string[] | Nein | Ersetzt die Liste. Höchstens 20. |
taggedKnowledgeFolderIds | Body | string[] | Nein | Ersetzt die Liste. Höchstens 20. |
taggedWorkflowIds | Body | string[] | Nein | Ersetzt die Liste. Höchstens 20. |
taggedSkillSlugs | Body | string[] | Nein | Ersetzt die Liste. Höchstens 20. |
attachmentIds | Body | string[] | Nein | Ersetzt die Anhänge. Höchstens 20. Jede ID muss diesem Key gehören. |
400 mit der Message Invalid request und einem errors-Array. Ein leerer Body liefert 400 mit der Message At least one field must be provided. Ein zusammengeführter Zeitplan, der weiter unvollständig ist, liefert 400 mit der Message automation_time_of_day_required, automation_day_of_week_required, automation_day_of_month_required oder automation_days_of_week_required.
Beispiel
const axios = require("axios");
async function updateScheduledTask(automationId) {
const response = await axios.patch(
`https://api.langdock.com/automations/v1/${automationId}`,
{
prompt: "Summarize overnight pipeline changes and flag deals that slipped."
},
{
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
}
);
console.log(response.data.automation.name);
}
updateScheduledTask("550e8400-e29b-41d4-a716-446655440000");
Antwortformat
Erfolgreiche Antwort (200 OK)
automation entspricht dem Scheduled-Task-Objekt ohne runCount.
{
automation: {
id: string;
createdAt: string;
name: string;
prompt: string;
frequency:
| "MANUAL"
| "DAILY"
| "WEEKDAYS"
| "WEEKLY"
| "MONTHLY"
| "SELECTED_WEEKDAYS";
timeOfDay: string | null;
dayOfWeek: number | null;
dayOfMonth: number | null;
daysOfWeek: number[];
timezone: string | null;
active: boolean;
modelId: string | null;
modelMode: "UNSET" | "EXPLICIT" | "AUTO";
assistantId: string | null;
taggedAssistantId: string | null;
lastRunAt: string | null;
attachments: Array<{
id: string;
name: string;
mimeType: string | null;
type: string | null;
}>;
taggedIntegrationIds: string[];
taggedKnowledgeFolderIds: string[];
taggedWorkflowIds: string[];
taggedSkillSlugs: string[];
};
}
Fehlerbehandlung
| Statuscode | Beschreibung |
|---|---|
| 400 | Ungültiger Body, Message At least one field must be provided. oder ein unvollständiger zusammengeführter Zeitplan |
| 401 | Ungültiger oder fehlender API-Key, oder der Key-User wurde nicht gefunden |
| 403 | AUTOMATION_API fehlt, persönlicher API-Key, Scheduled Tasks deaktiviert, kein Produktzugriff oder AUTOMATION_TAG_ACCESS_DENIED |
| 404 | Message AUTOMATION_NOT_FOUND |
| 405 | Methode nicht erlaubt |
| 429 | Rate Limit überschritten |
| 500 | Interner Serverfehler |
Langdock blockiert Anfragen aus Browser-Origins absichtlich, um deinen API-Key zu schützen und deine Anwendungen sicher zu halten. Mehr dazu findest du im Guide zu API Key Best Practices.
Autorisierungen
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Pfadparameter
Body
application/json
Required string length:
1 - 200Required string length:
1 - 120000Verfügbare Optionen:
MANUAL, DAILY, WEEKDAYS, WEEKLY, MONTHLY, SELECTED_WEEKDAYS 24 hour HH:mm. Omitted keeps the stored value.
0 is Sunday and 6 is Saturday. Omitted keeps the stored value.
Erforderlicher Bereich:
0 <= x <= 6Omitted keeps the stored value.
Erforderlicher Bereich:
1 <= x <= 31Omitted keeps the stored value.
Maximum array length:
7Erforderlicher Bereich:
0 <= x <= 6IANA timezone. Omitted keeps the stored value. Empty is stored as UTC on a scheduled frequency.
Maximum string length:
64Verfügbare Optionen:
UNSET, EXPLICIT, AUTO Required in this request when modelMode is EXPLICIT.
Maximum array length:
20Maximum array length:
20Maximum array length:
20Maximum array length:
20Maximum string length:
100Maximum array length:
20Antwort
Scheduled task updated. The automation object does not include runCount.
War diese Seite hilfreich?