# ASSET\_TO\_URI

**The function ASSET\_TO\_URI takes an asset and produces a URI in the form of a string.**

This function takes as input an [Asset](../../variable-data-types/the-asset-data-type). It returns a [String](../../variable-data-types/the-text-variable-data-type) representing the asset's URI.

#### Declaration

```javascript
ASSET_TO_URI(asset) -> asset_uri
```

&#x20;

#### Parameters

**asset** (required, type: _Asset_) The Asset to create a URI for.

#### Return Values

**asset\_uri** (type: _string_) The asset's URI.

#### Examples

An Asset's URI is essentially a concatenation of the various identifiers in the Asset that allow it to be located.

```javascript
ASSET_TO_URI({  
 "organizationId": "15a00ea3-6980-48ea-8e8c-651ddff1f0bf",  
 "assetKey": "f1919287-7659-459e-a975-4d057762cc17",  
 "id": "46dc543e-e960-4d38-8dd0-ec51dfdd19d1",  
 "version": 0,  
 "visibility": "GLOBAL"  
}) -> "asset://global:15a00ea3-6980-48ea-8e8c-651ddff1f0bf:f1919287-7659-459e-a975-4d057762cc17:46dc543e-e960-4d38-8dd0-ec51dfdd19d1:0"
```

&#x20;

#### Discussion

The function [URI\_TO\_ASSET](uri_to_asset) is the opposite operation of ASSET\_TO\_URI. However, it is not a perfect symmetry. An asset can contain more information than just its location information. Once serialized to a URI, that information cannot be accessed from the resulting URI.
