Skip to main content

Import assets

PUT 

/folders/:folder_id/packages

Imports or replaces multiple assets submitted as a package. The package must be a zip archive containing the assets to import.

The package should contain the assets themselves at the root level of the archive with their descriptions in JSON format, and their payloads (e.g. textures, meshes, etc.) and contain all the assets' dependencies if they do not already exist.

Supported assets are :

  • scene
  • mesh
  • material
  • animation
  • animation_set
  • animation_graph
  • skeleton
  • texture_1d
  • texture
  • texture_3d
  • collision_geometry
  • cubemap
  • volume_material
  • event_map
  • action_map
  • sound
  • point_cloud

The packaged assets' files should be named according to the following pattern:

- desc.[asset_type].{uuid}
- payload.[mesh|texture|animation|skeleton|texture_1d|texture_3d|collision_geometry|sound].{uuid}
- payload.[texture_1d|texture|texture_3d].mips[0-16].{uuid}
- payload.point_cloud.[position|color].{uuid}
- payload.texture_3d.histogram.{uuid}

The package may also contain an overwrite.json file that describes which assets to overwrite. The overwrite.json file is only used if the overwrite query parameter is set to only-specified.

Request

Responses

Asset package successfully imported.