Assets
Update an asset
Updates an asset. custom_field_values replaces the entire map — merge your changes into the current values first, or unlisted keys are silently cleared. Pass an empty string for location_id or project_id to detach.
PATCH
/
assets
/
{asset_id}
Update an asset
curl --request PATCH \
--url https://app.gomangrove.com/api/v1/assets/{asset_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"asset": {
"custom_field_values": {
"serial": "KILN-001",
"status": "Registered",
"registry_id": "FSE-12345"
}
}
}
'import requests
url = "https://app.gomangrove.com/api/v1/assets/{asset_id}"
payload = { "asset": { "custom_field_values": {
"serial": "KILN-001",
"status": "Registered",
"registry_id": "FSE-12345"
} } }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
asset: {
custom_field_values: {serial: 'KILN-001', status: 'Registered', registry_id: 'FSE-12345'}
}
})
};
fetch('https://app.gomangrove.com/api/v1/assets/{asset_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://app.gomangrove.com/api/v1/assets/{asset_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([
'asset' => [
'custom_field_values' => [
'serial' => 'KILN-001',
'status' => 'Registered',
'registry_id' => 'FSE-12345'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://app.gomangrove.com/api/v1/assets/{asset_id}"
payload := strings.NewReader("{\n \"asset\": {\n \"custom_field_values\": {\n \"serial\": \"KILN-001\",\n \"status\": \"Registered\",\n \"registry_id\": \"FSE-12345\"\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://app.gomangrove.com/api/v1/assets/{asset_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"asset\": {\n \"custom_field_values\": {\n \"serial\": \"KILN-001\",\n \"status\": \"Registered\",\n \"registry_id\": \"FSE-12345\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/assets/{asset_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"asset\": {\n \"custom_field_values\": {\n \"serial\": \"KILN-001\",\n \"status\": \"Registered\",\n \"registry_id\": \"FSE-12345\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "asset_abc123def456",
"friendly_id": "asset_abc123def456",
"name": "Kiln Alpha",
"health_status": null,
"location_id": "loc_xyz789",
"project_id": "prj_abc123",
"lat": 37.3875,
"long": -121.9635,
"custom_field_values": {
"serial": "KILN-001",
"status": "Registered",
"registry_id": "FSE-12345"
},
"created_at": "2026-01-15T10:00:00.000Z",
"updated_at": "2026-01-15T11:30:00.000Z"
}{
"status": "error",
"statusCode": 422,
"errors": [
{
"message": "Location does not belong to the specified project"
}
]
}⌘I
Update an asset
curl --request PATCH \
--url https://app.gomangrove.com/api/v1/assets/{asset_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"asset": {
"custom_field_values": {
"serial": "KILN-001",
"status": "Registered",
"registry_id": "FSE-12345"
}
}
}
'import requests
url = "https://app.gomangrove.com/api/v1/assets/{asset_id}"
payload = { "asset": { "custom_field_values": {
"serial": "KILN-001",
"status": "Registered",
"registry_id": "FSE-12345"
} } }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
asset: {
custom_field_values: {serial: 'KILN-001', status: 'Registered', registry_id: 'FSE-12345'}
}
})
};
fetch('https://app.gomangrove.com/api/v1/assets/{asset_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://app.gomangrove.com/api/v1/assets/{asset_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([
'asset' => [
'custom_field_values' => [
'serial' => 'KILN-001',
'status' => 'Registered',
'registry_id' => 'FSE-12345'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://app.gomangrove.com/api/v1/assets/{asset_id}"
payload := strings.NewReader("{\n \"asset\": {\n \"custom_field_values\": {\n \"serial\": \"KILN-001\",\n \"status\": \"Registered\",\n \"registry_id\": \"FSE-12345\"\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://app.gomangrove.com/api/v1/assets/{asset_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"asset\": {\n \"custom_field_values\": {\n \"serial\": \"KILN-001\",\n \"status\": \"Registered\",\n \"registry_id\": \"FSE-12345\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/assets/{asset_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"asset\": {\n \"custom_field_values\": {\n \"serial\": \"KILN-001\",\n \"status\": \"Registered\",\n \"registry_id\": \"FSE-12345\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "asset_abc123def456",
"friendly_id": "asset_abc123def456",
"name": "Kiln Alpha",
"health_status": null,
"location_id": "loc_xyz789",
"project_id": "prj_abc123",
"lat": 37.3875,
"long": -121.9635,
"custom_field_values": {
"serial": "KILN-001",
"status": "Registered",
"registry_id": "FSE-12345"
},
"created_at": "2026-01-15T10:00:00.000Z",
"updated_at": "2026-01-15T11:30:00.000Z"
}{
"status": "error",
"statusCode": 422,
"errors": [
{
"message": "Location does not belong to the specified project"
}
]
}