API Docs
/AddAssetData/v1/

Add a asset data to linked to an existing asset.

The use case for this API call is to provide additional assets to an existing asset so they can be downloaded into games. For example, your original asset might have a different style (thus a different model file) for use in another game, and this is the way to provide that asset.

The added assets will become available through the /GetAssetDataManifest/v1/ API call. The additional JSON data fields can be used to filter the response of that API call.

Target https://ogahub.com/API/AddAssetData/v1/
Method POST
Authorization Required

Request Body
Parameter Description Type Required
file A supported asset file type. File
data A JSON object with mandatory and optional fields, see below. JSON

JSON Data
Parameter Description Type Required Default
parentId The ID of the parent asset for which this added asset belongs. Number
name A name for this added asset. String
format A format for this asset. This is used to help filter the data manifest. String auto detect
process Allow the server to process this asset to detect more assets within. Bool (0 or 1) 1 (allow processing)
subFormat An optional sub-format value to further describe the format. String
givenName An original or optional name of this asset. String
width The width or size of this asset. Number
height The height of this asset. Number
bitDepth The bit-depth of this asset. Number

Tips:

  • If uploading a binary file (.bin), use the subFormat field to further define the format.
  • If the asset doesn't have a dimension like width/height/bit-depth, optionally specify the file size in the width field.

Try it

This API call requires authorization. The currently signed-in user will be used for the authorization.

Drag asset file here.


Supported assets:

PNG, GIF, JPG, JPEG
GLTF, GLB, FBX
TXT, JSON, XML

Required
parentId
name
Optional
format
process
subFormat
givenName
width
height
bitDepth

Output