Upload Assets

As a brand, the look and feel of your digital passports matter. Say you want to upload a media that will be integrated into your digital passports. Because a digital passport has a long life, you must attach long-lived content. Arianee offers a hosting solution for static assets that will last forever.

Use case

Before creating your digital passports, your brand wants to upload the media that will be displayed for your hoodie, two pictures, and an AR asset.

Let's start ๐Ÿš€

โ›”

Limitations

  • Each asset size is limited to 10mb.
  • AR assets are only available on iOS devices.
  • For connection latency, if the upload exceeds 60 seconds, it expires and returns an error.

URL

Required rights: admin, certCreate or assetsUpload

To upload and store a picture in your environment, use assets/pub.

POST - https://{{nmpUrl}}/assets/pub

๐Ÿ“Œ

The API is authenticated with the user rights required โ†’ assetsUpload

Body

FieldTypeRequiredDescription
imageStringโœ…Media file.

Supported formats:

- Pictures: .png, .jpeg, .jpg, .svg, .gif
Optimal resolution: 2000x2000
- Video: .mp4
- 3D asset: .glb, .gltf
- AR asset: .usdz
fileIdStringโœ…Generated picture identification number.
resizeBooleanโŒAuto resizing of the picture.

- true: Auto resize of the asset enabled.
- false: Auto resize of the asset disabled.

Return Payload

Your picture has been uploaded.

{
  "url": "https://documentation.arianee.com/pub/arianeelogo_black",
  "message": "Your file arianee_logo_BLACK.jpeg has been updated"
}