Skip to content

Update an asset

PATCH/assets/{id}

Costs 2 rate-limit points · Rate limits

Update the metadata of an existing asset.

Path parameters

  • idstringRequired

    The asset ID

Headers

  • X-Auth-TokenstringRequired

    API key for authentication

Request body

  • assetobjectRequired
    Show 4 child attributesHide child attributes
    • namestring

      Display name for the asset.

    • external_urlstring

      The URL of the external file. Only applicable to external type assets.

    • watermark_assetboolean

      Whether to apply watermarking to this asset.

    • autogenerate_licence_keyboolean

      Whether 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
    }
  }'
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"
  }
}