Tasks
Update many
Update many tasks
PATCH
/
tasks
Update many
curl --request PATCH \
--url http://localhost:44442/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"68b1f0c2a4d3e5f6a7b8c9d0"
],
"values": {
"props": [
{
"type": "file.input",
"value": {
"path": "",
"original_path": "<string>",
"sequence": {
"start_frame": 0,
"end_frame": 0,
"digits": 0,
"pattern": "",
"display": ""
}
},
"props": {
"enabled": false,
"required": false,
"optional": true,
"hidden": true,
"readonly": false,
"options": [],
"file_filter": [],
"provides": {
"payload": false,
"live": false,
"file": true
},
"host_id": "<string>",
"sequence": false,
"port": 0,
"placeholder": "<string>"
},
"id": "<string>",
"key": "<string>",
"name": "",
"category": 123,
"v": 123
}
]
}
}
'import requests
url = "http://localhost:44442/api/v1/tasks"
payload = {
"ids": ["68b1f0c2a4d3e5f6a7b8c9d0"],
"values": { "props": [
{
"type": "file.input",
"value": {
"path": "",
"original_path": "<string>",
"sequence": {
"start_frame": 0,
"end_frame": 0,
"digits": 0,
"pattern": "",
"display": ""
}
},
"props": {
"enabled": False,
"required": False,
"optional": True,
"hidden": True,
"readonly": False,
"options": [],
"file_filter": [],
"provides": {
"payload": False,
"live": False,
"file": True
},
"host_id": "<string>",
"sequence": False,
"port": 0,
"placeholder": "<string>"
},
"id": "<string>",
"key": "<string>",
"name": "",
"category": 123,
"v": 123
}
] }
}
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({
ids: ['68b1f0c2a4d3e5f6a7b8c9d0'],
values: {
props: [
{
type: 'file.input',
value: {
path: '',
original_path: '<string>',
sequence: {start_frame: 0, end_frame: 0, digits: 0, pattern: '', display: ''}
},
props: {
enabled: false,
required: false,
optional: true,
hidden: true,
readonly: false,
options: [],
file_filter: [],
provides: {payload: false, live: false, file: true},
host_id: '<string>',
sequence: false,
port: 0,
placeholder: '<string>'
},
id: '<string>',
key: '<string>',
name: '',
category: 123,
v: 123
}
]
}
})
};
fetch('http://localhost:44442/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "44442",
CURLOPT_URL => "http://localhost:44442/api/v1/tasks",
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([
'ids' => [
'68b1f0c2a4d3e5f6a7b8c9d0'
],
'values' => [
'props' => [
[
'type' => 'file.input',
'value' => [
'path' => '',
'original_path' => '<string>',
'sequence' => [
'start_frame' => 0,
'end_frame' => 0,
'digits' => 0,
'pattern' => '',
'display' => ''
]
],
'props' => [
'enabled' => false,
'required' => false,
'optional' => true,
'hidden' => true,
'readonly' => false,
'options' => [
],
'file_filter' => [
],
'provides' => [
'payload' => false,
'live' => false,
'file' => true
],
'host_id' => '<string>',
'sequence' => false,
'port' => 0,
'placeholder' => '<string>'
],
'id' => '<string>',
'key' => '<string>',
'name' => '',
'category' => 123,
'v' => 123
]
]
]
]),
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 := "http://localhost:44442/api/v1/tasks"
payload := strings.NewReader("{\n \"ids\": [\n \"68b1f0c2a4d3e5f6a7b8c9d0\"\n ],\n \"values\": {\n \"props\": [\n {\n \"type\": \"file.input\",\n \"value\": {\n \"path\": \"\",\n \"original_path\": \"<string>\",\n \"sequence\": {\n \"start_frame\": 0,\n \"end_frame\": 0,\n \"digits\": 0,\n \"pattern\": \"\",\n \"display\": \"\"\n }\n },\n \"props\": {\n \"enabled\": false,\n \"required\": false,\n \"optional\": true,\n \"hidden\": true,\n \"readonly\": false,\n \"options\": [],\n \"file_filter\": [],\n \"provides\": {\n \"payload\": false,\n \"live\": false,\n \"file\": true\n },\n \"host_id\": \"<string>\",\n \"sequence\": false,\n \"port\": 0,\n \"placeholder\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"\",\n \"category\": 123,\n \"v\": 123\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("http://localhost:44442/api/v1/tasks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"68b1f0c2a4d3e5f6a7b8c9d0\"\n ],\n \"values\": {\n \"props\": [\n {\n \"type\": \"file.input\",\n \"value\": {\n \"path\": \"\",\n \"original_path\": \"<string>\",\n \"sequence\": {\n \"start_frame\": 0,\n \"end_frame\": 0,\n \"digits\": 0,\n \"pattern\": \"\",\n \"display\": \"\"\n }\n },\n \"props\": {\n \"enabled\": false,\n \"required\": false,\n \"optional\": true,\n \"hidden\": true,\n \"readonly\": false,\n \"options\": [],\n \"file_filter\": [],\n \"provides\": {\n \"payload\": false,\n \"live\": false,\n \"file\": true\n },\n \"host_id\": \"<string>\",\n \"sequence\": false,\n \"port\": 0,\n \"placeholder\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"\",\n \"category\": 123,\n \"v\": 123\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:44442/api/v1/tasks")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"68b1f0c2a4d3e5f6a7b8c9d0\"\n ],\n \"values\": {\n \"props\": [\n {\n \"type\": \"file.input\",\n \"value\": {\n \"path\": \"\",\n \"original_path\": \"<string>\",\n \"sequence\": {\n \"start_frame\": 0,\n \"end_frame\": 0,\n \"digits\": 0,\n \"pattern\": \"\",\n \"display\": \"\"\n }\n },\n \"props\": {\n \"enabled\": false,\n \"required\": false,\n \"optional\": true,\n \"hidden\": true,\n \"readonly\": false,\n \"options\": [],\n \"file_filter\": [],\n \"provides\": {\n \"payload\": false,\n \"live\": false,\n \"file\": true\n },\n \"host_id\": \"<string>\",\n \"sequence\": false,\n \"port\": 0,\n \"placeholder\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"\",\n \"category\": 123,\n \"v\": 123\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>"
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}Authorizations
An API key from Settings, API Keys. A caller on this machine needs none.
Body
application/json
Response
Tasks updated
Was this page helpful?
⌘I
Update many
curl --request PATCH \
--url http://localhost:44442/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"68b1f0c2a4d3e5f6a7b8c9d0"
],
"values": {
"props": [
{
"type": "file.input",
"value": {
"path": "",
"original_path": "<string>",
"sequence": {
"start_frame": 0,
"end_frame": 0,
"digits": 0,
"pattern": "",
"display": ""
}
},
"props": {
"enabled": false,
"required": false,
"optional": true,
"hidden": true,
"readonly": false,
"options": [],
"file_filter": [],
"provides": {
"payload": false,
"live": false,
"file": true
},
"host_id": "<string>",
"sequence": false,
"port": 0,
"placeholder": "<string>"
},
"id": "<string>",
"key": "<string>",
"name": "",
"category": 123,
"v": 123
}
]
}
}
'import requests
url = "http://localhost:44442/api/v1/tasks"
payload = {
"ids": ["68b1f0c2a4d3e5f6a7b8c9d0"],
"values": { "props": [
{
"type": "file.input",
"value": {
"path": "",
"original_path": "<string>",
"sequence": {
"start_frame": 0,
"end_frame": 0,
"digits": 0,
"pattern": "",
"display": ""
}
},
"props": {
"enabled": False,
"required": False,
"optional": True,
"hidden": True,
"readonly": False,
"options": [],
"file_filter": [],
"provides": {
"payload": False,
"live": False,
"file": True
},
"host_id": "<string>",
"sequence": False,
"port": 0,
"placeholder": "<string>"
},
"id": "<string>",
"key": "<string>",
"name": "",
"category": 123,
"v": 123
}
] }
}
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({
ids: ['68b1f0c2a4d3e5f6a7b8c9d0'],
values: {
props: [
{
type: 'file.input',
value: {
path: '',
original_path: '<string>',
sequence: {start_frame: 0, end_frame: 0, digits: 0, pattern: '', display: ''}
},
props: {
enabled: false,
required: false,
optional: true,
hidden: true,
readonly: false,
options: [],
file_filter: [],
provides: {payload: false, live: false, file: true},
host_id: '<string>',
sequence: false,
port: 0,
placeholder: '<string>'
},
id: '<string>',
key: '<string>',
name: '',
category: 123,
v: 123
}
]
}
})
};
fetch('http://localhost:44442/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "44442",
CURLOPT_URL => "http://localhost:44442/api/v1/tasks",
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([
'ids' => [
'68b1f0c2a4d3e5f6a7b8c9d0'
],
'values' => [
'props' => [
[
'type' => 'file.input',
'value' => [
'path' => '',
'original_path' => '<string>',
'sequence' => [
'start_frame' => 0,
'end_frame' => 0,
'digits' => 0,
'pattern' => '',
'display' => ''
]
],
'props' => [
'enabled' => false,
'required' => false,
'optional' => true,
'hidden' => true,
'readonly' => false,
'options' => [
],
'file_filter' => [
],
'provides' => [
'payload' => false,
'live' => false,
'file' => true
],
'host_id' => '<string>',
'sequence' => false,
'port' => 0,
'placeholder' => '<string>'
],
'id' => '<string>',
'key' => '<string>',
'name' => '',
'category' => 123,
'v' => 123
]
]
]
]),
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 := "http://localhost:44442/api/v1/tasks"
payload := strings.NewReader("{\n \"ids\": [\n \"68b1f0c2a4d3e5f6a7b8c9d0\"\n ],\n \"values\": {\n \"props\": [\n {\n \"type\": \"file.input\",\n \"value\": {\n \"path\": \"\",\n \"original_path\": \"<string>\",\n \"sequence\": {\n \"start_frame\": 0,\n \"end_frame\": 0,\n \"digits\": 0,\n \"pattern\": \"\",\n \"display\": \"\"\n }\n },\n \"props\": {\n \"enabled\": false,\n \"required\": false,\n \"optional\": true,\n \"hidden\": true,\n \"readonly\": false,\n \"options\": [],\n \"file_filter\": [],\n \"provides\": {\n \"payload\": false,\n \"live\": false,\n \"file\": true\n },\n \"host_id\": \"<string>\",\n \"sequence\": false,\n \"port\": 0,\n \"placeholder\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"\",\n \"category\": 123,\n \"v\": 123\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("http://localhost:44442/api/v1/tasks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"68b1f0c2a4d3e5f6a7b8c9d0\"\n ],\n \"values\": {\n \"props\": [\n {\n \"type\": \"file.input\",\n \"value\": {\n \"path\": \"\",\n \"original_path\": \"<string>\",\n \"sequence\": {\n \"start_frame\": 0,\n \"end_frame\": 0,\n \"digits\": 0,\n \"pattern\": \"\",\n \"display\": \"\"\n }\n },\n \"props\": {\n \"enabled\": false,\n \"required\": false,\n \"optional\": true,\n \"hidden\": true,\n \"readonly\": false,\n \"options\": [],\n \"file_filter\": [],\n \"provides\": {\n \"payload\": false,\n \"live\": false,\n \"file\": true\n },\n \"host_id\": \"<string>\",\n \"sequence\": false,\n \"port\": 0,\n \"placeholder\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"\",\n \"category\": 123,\n \"v\": 123\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:44442/api/v1/tasks")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"68b1f0c2a4d3e5f6a7b8c9d0\"\n ],\n \"values\": {\n \"props\": [\n {\n \"type\": \"file.input\",\n \"value\": {\n \"path\": \"\",\n \"original_path\": \"<string>\",\n \"sequence\": {\n \"start_frame\": 0,\n \"end_frame\": 0,\n \"digits\": 0,\n \"pattern\": \"\",\n \"display\": \"\"\n }\n },\n \"props\": {\n \"enabled\": false,\n \"required\": false,\n \"optional\": true,\n \"hidden\": true,\n \"readonly\": false,\n \"options\": [],\n \"file_filter\": [],\n \"provides\": {\n \"payload\": false,\n \"live\": false,\n \"file\": true\n },\n \"host_id\": \"<string>\",\n \"sequence\": false,\n \"port\": 0,\n \"placeholder\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"\",\n \"category\": 123,\n \"v\": 123\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>"
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}{
"error": "<string>",
"tag": "<string>",
"title": "<string>",
"detail": "<string>",
"issues": [
{
"path": [
"<string>"
],
"message": "<string>"
}
]
}