curl --request PATCH \
--url https://api.in.talqing.com/v1/tasks/{task_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"name": "<string>",
"output": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"prompt": "",
"timeout_seconds": 120,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
]
}
}
'import requests
url = "https://api.in.talqing.com/v1/tasks/{task_id}"
payload = { "config": {
"name": "<string>",
"output": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": ["<string>"],
"headers": {},
"tools_namespace": ""
}
}
],
"prompt": "",
"timeout_seconds": 120,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": 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({
config: {
name: '<string>',
output: [{description: '<string>', name: '<string>', type: 'string'}],
llm: {
builtin_tools: [{type: '<string>', config: {}}],
fallback: {
builtin_tools: [{type: '<string>', config: {}}],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
max_steps: 25,
mcps: [
{
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
mcp: {
name: '<string>',
url: '<string>',
allowed_tools: ['<string>'],
headers: {},
tools_namespace: ''
}
}
],
prompt: '',
timeout_seconds: 120,
timezone: '<string>',
tools: [
{
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
}
],
vars: [{name: '<string>', default: '<string>', description: '', required: false}]
}
})
};
fetch('https://api.in.talqing.com/v1/tasks/{task_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.in.talqing.com/v1/tasks/{task_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([
'config' => [
'name' => '<string>',
'output' => [
[
'description' => '<string>',
'name' => '<string>',
'type' => 'string'
]
],
'llm' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'fallback' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'max_steps' => 25,
'mcps' => [
[
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'mcp' => [
'name' => '<string>',
'url' => '<string>',
'allowed_tools' => [
'<string>'
],
'headers' => [
],
'tools_namespace' => ''
]
]
],
'prompt' => '',
'timeout_seconds' => 120,
'timezone' => '<string>',
'tools' => [
[
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
]
],
'vars' => [
[
'name' => '<string>',
'default' => '<string>',
'description' => '',
'required' => 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.in.talqing.com/v1/tasks/{task_id}"
payload := strings.NewReader("{\n \"config\": {\n \"name\": \"<string>\",\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"prompt\": \"\",\n \"timeout_seconds\": 120,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ]\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.in.talqing.com/v1/tasks/{task_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"name\": \"<string>\",\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"prompt\": \"\",\n \"timeout_seconds\": 120,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.in.talqing.com/v1/tasks/{task_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 \"config\": {\n \"name\": \"<string>\",\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"prompt\": \"\",\n \"timeout_seconds\": 120,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"task": {
"config": {
"name": "<string>",
"output": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"prompt": "",
"timeout_seconds": 120,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "2023-11-07T05:31:56Z",
"status": "running",
"duration_ms": 123,
"error": {
"message": "<string>",
"type": "missing_vars"
},
"provider_cost": 123
},
"updated_at": "2023-11-07T05:31:56Z"
},
"warnings": [
"<string>"
]
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}Update Task
Replace a task’s config.
The whole config is sent, so include every field you mean to keep, and it is
validated exactly as create_task is. The edit takes effect on the next run
— a task has no versions, so there is no old wording to go back to and no
record of which definition produced an earlier run.
curl --request PATCH \
--url https://api.in.talqing.com/v1/tasks/{task_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"name": "<string>",
"output": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"prompt": "",
"timeout_seconds": 120,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
]
}
}
'import requests
url = "https://api.in.talqing.com/v1/tasks/{task_id}"
payload = { "config": {
"name": "<string>",
"output": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": ["<string>"],
"headers": {},
"tools_namespace": ""
}
}
],
"prompt": "",
"timeout_seconds": 120,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": 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({
config: {
name: '<string>',
output: [{description: '<string>', name: '<string>', type: 'string'}],
llm: {
builtin_tools: [{type: '<string>', config: {}}],
fallback: {
builtin_tools: [{type: '<string>', config: {}}],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
max_steps: 25,
mcps: [
{
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
mcp: {
name: '<string>',
url: '<string>',
allowed_tools: ['<string>'],
headers: {},
tools_namespace: ''
}
}
],
prompt: '',
timeout_seconds: 120,
timezone: '<string>',
tools: [
{
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
}
],
vars: [{name: '<string>', default: '<string>', description: '', required: false}]
}
})
};
fetch('https://api.in.talqing.com/v1/tasks/{task_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.in.talqing.com/v1/tasks/{task_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([
'config' => [
'name' => '<string>',
'output' => [
[
'description' => '<string>',
'name' => '<string>',
'type' => 'string'
]
],
'llm' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'fallback' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'max_steps' => 25,
'mcps' => [
[
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'mcp' => [
'name' => '<string>',
'url' => '<string>',
'allowed_tools' => [
'<string>'
],
'headers' => [
],
'tools_namespace' => ''
]
]
],
'prompt' => '',
'timeout_seconds' => 120,
'timezone' => '<string>',
'tools' => [
[
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
]
],
'vars' => [
[
'name' => '<string>',
'default' => '<string>',
'description' => '',
'required' => 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.in.talqing.com/v1/tasks/{task_id}"
payload := strings.NewReader("{\n \"config\": {\n \"name\": \"<string>\",\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"prompt\": \"\",\n \"timeout_seconds\": 120,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ]\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.in.talqing.com/v1/tasks/{task_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"name\": \"<string>\",\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"prompt\": \"\",\n \"timeout_seconds\": 120,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.in.talqing.com/v1/tasks/{task_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 \"config\": {\n \"name\": \"<string>\",\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"prompt\": \"\",\n \"timeout_seconds\": 120,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"task": {
"config": {
"name": "<string>",
"output": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"prompt": "",
"timeout_seconds": 120,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "2023-11-07T05:31:56Z",
"status": "running",
"duration_ms": 123,
"error": {
"message": "<string>",
"type": "missing_vars"
},
"provider_cost": 123
},
"updated_at": "2023-11-07T05:31:56Z"
},
"warnings": [
"<string>"
]
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
The whole config, replaced. A task is one small object and a field-level
patch would only invite half-sent output lists.
The task definition. One saved config — no versions, no publish step.
Show child attributes
Show child attributes
Response
Successful Response
What create and update return.
warnings is the half of validation that must not become a 400 — a prompt
that never mentions submit_result, a credential built out of {{args.…}}.
There is no publish screen to show them on, so they come back beside the
saved task; dropping them would lose the one signal that catches a task which
saves cleanly and then fails every run.