Update an asset
PATCH
/assets/{id}Costs 2 rate-limit points · Rate limits
Update the metadata of an existing asset.
Path parameters
idstringRequiredThe asset ID
Headers
X-Auth-TokenstringRequiredAPI key for authentication
Request body
assetobjectRequiredShow 4 child attributesHide child attributes
namestringDisplay name for the asset.
external_urlstringThe URL of the external file. Only applicable to
externaltype assets.watermark_assetbooleanWhether to apply watermarking to this asset.
autogenerate_licence_keybooleanWhether to auto-generate a licence key on purchase.
Returns
The asset object.
Errors
404
Resource not found
422
Validation failed
PATCH/assets/{id}
curl -X PATCH "https://app.filemonk.io/api/v1/external/assets/{id}" \
-H "X-Auth-Token: $FILEMONK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"asset": {
"name": "string",
"external_url": "https://example.com",
"watermark_asset": true,
"autogenerate_licence_key": true
}
}'const res = await fetch("https://app.filemonk.io/api/v1/external/assets/{id}", {
method: "PATCH",
headers: {
"X-Auth-Token": process.env.FILEMONK_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"asset": {
"name": "string",
"external_url": "https://example.com",
"watermark_asset": true,
"autogenerate_licence_key": true
}
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://app.filemonk.io/api/v1/external/assets/{id}",
headers={"X-Auth-Token": os.environ["FILEMONK_API_KEY"]},
json={
"asset": {
"name": "string",
"external_url": "https://example.com",
"watermark_asset": True,
"autogenerate_licence_key": True
}
},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.filemonk.io/api/v1/external/assets/{id}")
req = Net::HTTP::Patch.new(uri, "X-Auth-Token" => ENV["FILEMONK_API_KEY"], "Content-Type" => "application/json")
req.body = {
asset: {
name: "string",
external_url: "https://example.com",
watermark_asset: true,
autogenerate_licence_key: true
}
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Response
{
"asset": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "external",
"name": "Photoshop Brushes Pack",
"filename": "brushes-pack-v2.zip",
"external_url": "https://cdn.example.com/files/brushes-pack-v2.zip",
"content_type": "application/zip",
"byte_size": 0,
"watermark_asset": false,
"autogenerate_licence_key": false,
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z"
}
}{
"error": "API key is required"
}{
"error": "Resource not found"
}No body
No body