curl --request POST \
--url https://api.gumnut.ai/api/assets/bulk-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"updates": [
{
"id": "<string>",
"change": {
"description": "<string>",
"latitude": 123,
"longitude": 123,
"original_datetime": "2023-11-07T05:31:56Z",
"rating": 2
}
}
]
}
'import requests
url = "https://api.gumnut.ai/api/assets/bulk-update"
payload = { "updates": [
{
"id": "<string>",
"change": {
"description": "<string>",
"latitude": 123,
"longitude": 123,
"original_datetime": "2023-11-07T05:31:56Z",
"rating": 2
}
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
updates: [
{
id: '<string>',
change: {
description: '<string>',
latitude: 123,
longitude: 123,
original_datetime: '2023-11-07T05:31:56Z',
rating: 2
}
}
]
})
};
fetch('https://api.gumnut.ai/api/assets/bulk-update', 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.gumnut.ai/api/assets/bulk-update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'updates' => [
[
'id' => '<string>',
'change' => [
'description' => '<string>',
'latitude' => 123,
'longitude' => 123,
'original_datetime' => '2023-11-07T05:31:56Z',
'rating' => 2
]
]
]
]),
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.gumnut.ai/api/assets/bulk-update"
payload := strings.NewReader("{\n \"updates\": [\n {\n \"id\": \"<string>\",\n \"change\": {\n \"description\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"original_datetime\": \"2023-11-07T05:31:56Z\",\n \"rating\": 2\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.gumnut.ai/api/assets/bulk-update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"updates\": [\n {\n \"id\": \"<string>\",\n \"change\": {\n \"description\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"original_datetime\": \"2023-11-07T05:31:56Z\",\n \"rating\": 2\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gumnut.ai/api/assets/bulk-update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"updates\": [\n {\n \"id\": \"<string>\",\n \"change\": {\n \"description\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"original_datetime\": \"2023-11-07T05:31:56Z\",\n \"rating\": 2\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Update metadata on multiple assets
Updates metadata on multiple assets in one transactional call. Each item carries the target asset id and the per-asset change — different fields can be changed on different assets in the same request. Atomic: any per-item validation failure or unknown / cross-user id rejects the whole batch and writes nothing.
For a single-asset edit, prefer update_asset — semantically identical but slightly more concise at the call site.
curl --request POST \
--url https://api.gumnut.ai/api/assets/bulk-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"updates": [
{
"id": "<string>",
"change": {
"description": "<string>",
"latitude": 123,
"longitude": 123,
"original_datetime": "2023-11-07T05:31:56Z",
"rating": 2
}
}
]
}
'import requests
url = "https://api.gumnut.ai/api/assets/bulk-update"
payload = { "updates": [
{
"id": "<string>",
"change": {
"description": "<string>",
"latitude": 123,
"longitude": 123,
"original_datetime": "2023-11-07T05:31:56Z",
"rating": 2
}
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
updates: [
{
id: '<string>',
change: {
description: '<string>',
latitude: 123,
longitude: 123,
original_datetime: '2023-11-07T05:31:56Z',
rating: 2
}
}
]
})
};
fetch('https://api.gumnut.ai/api/assets/bulk-update', 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.gumnut.ai/api/assets/bulk-update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'updates' => [
[
'id' => '<string>',
'change' => [
'description' => '<string>',
'latitude' => 123,
'longitude' => 123,
'original_datetime' => '2023-11-07T05:31:56Z',
'rating' => 2
]
]
]
]),
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.gumnut.ai/api/assets/bulk-update"
payload := strings.NewReader("{\n \"updates\": [\n {\n \"id\": \"<string>\",\n \"change\": {\n \"description\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"original_datetime\": \"2023-11-07T05:31:56Z\",\n \"rating\": 2\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.gumnut.ai/api/assets/bulk-update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"updates\": [\n {\n \"id\": \"<string>\",\n \"change\": {\n \"description\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"original_datetime\": \"2023-11-07T05:31:56Z\",\n \"rating\": 2\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gumnut.ai/api/assets/bulk-update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"updates\": [\n {\n \"id\": \"<string>\",\n \"change\": {\n \"description\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"original_datetime\": \"2023-11-07T05:31:56Z\",\n \"rating\": 2\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Gumnut API key (apikey_...) sent as a Bearer token in the Authorization header. Create and manage keys in the Gumnut app, or with the API key endpoints while signed in to it.
Body
Bulk-update request body — heterogeneous per-asset changes in one call.
List of per-asset updates. Each item carries the target asset id and the change to apply to it; different fields can be changed on different assets in the same request. Up to 200 items per request.
1 - 200 elementsShow child attributes
Show child attributes
Response
Successful Response
Empty acknowledgment returned by bulk_update_assets.