---
title: "Assets"
description: "Interface with the autoZnetwork inventory assets."
canonical_url: "https://autoznetwork.com/docs/api/inventory/assets"
---

> Index of every page on this site: [llms.txt](https://autoznetwork.com/llms.txt)

# Vehicle Assets (Private Access)

Vehicle Assets are additional files that can be associated with the vehicle. The following extensions are supported.

<table>
<thead>
  <tr>
    <th>
      File Type
    </th>
    
    <th>
      Supported Extensions
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Video
    </td>
    
    <td>
      .mp4
    </td>
  </tr>
</tbody>
</table>

## List Assets for a Vehicle

GET Request: `https://api.autoznetwork.com/v1/inventory/{INVENTORY_ID}/assets`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"
AUTOZNETWORK_INVENTORY_ID="your vehicle id"

curl https://api.autoznetwork.com/v1/inventory/$AUTOZNETWORK_INVENTORY_ID/assets \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
  -H 'Accept: application/json'
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';
$organizationId = '1234';
$inventoryId = 'your vehicle id';

$autoZnetwork = new AutozNetwork($apiToken);

$assets = $autoznetwork
              ->withOrganization($organizationId)
              ->inventory($inventoryId)
              ->assets()
              ->get();

print($assets)
```

</code-group>

## Add Assets to a Vehicle

POST Request: `https://api.autoznetwork.com/v1/inventory/{INVENTORY_ID}/assets`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"
AUTOZNETWORK_INVENTORY_ID="your vehicle id"

curl -X POST https://api.autoznetwork.com/v1/inventory/$AUTOZNETWORK_INVENTORY_ID/assets \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    'url':
      'http://yourdomain.com/video.mp4'
  }
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';
$organizationId = '1234';
$inventoryId = 'your vehicle id';

$autoZnetwork = new AutozNetwork($apiToken);

$assets = $autoznetwork
              ->withOrganization($organizationId)
              ->inventory($inventoryId)
              ->assets()
              ->create('http://yourdomain.com/video.mp4');

print($assets)
```

</code-group>

## Delete an Asset from a Vehicle

DELETE Request: `https://api.autoznetwork.com/v1/inventory/{INVENTORY_ID}/assets/{ASSET_ID}`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"
AUTOZNETWORK_INVENTORY_ID="your vehicle id"
AUTOZNETNETWORK_ASSET_ID="your vehicle asset id"

curl -X DELETE https://api.autoznetwork.com/v1/inventory/$AUTOZNETWORK_INVENTORY_ID/assets/$AUTOZNETNETWORK_ASSET_ID \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
  -H 'Accept: application/json'
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';
$organizationId = '1234';
$inventoryId = 'your vehicle id';
$assetId = 'your vehicle asset id';

$autoZnetwork = new AutozNetwork($apiToken);

$asset = $autoznetwork
              ->withOrganization($organizationId)
              ->inventory($inventoryId)
              ->assets($assetId)
              ->delete();

print($asset)
```

</code-group>

## Sitemap

See the full [sitemap](https://autoznetwork.com/sitemap.md) for all pages.
