Use this service to perform one of the following operations:
Once the new Asset or Asset Version is created, a new Object ID is returned to identify the new Asset / Asset Version.
When a new Asset is created, the Asset is considered a metadata-only Asset until a corresponding content file is uploaded. The Asset's content file size must be less than or equal to 5GB.
After invoking the Create Asset service, the response shall include a signed URL to upload the content file. The upload should be performed using a PUT request with the file content attached as binary data in the request body.
After creating an asset greater than 100MB, multiple presigned urls will be returned. You must upload file chunks of 100MB to each one.
You must call the /asset/complete endpoint to complete or cancel a multi-part file upload, otherwise the file will not be available to Tenovos.
The user submitting the request to create an Asset must have the Upload Security Role Privilege and be granted access to at least one Security Template to assign to the new Asset.
The Request Body must be a JSON object. To create a new version instead of new asset pass an additional property originalFileId as part of the JSON object.
The Response Body is a JSON object
Unauthorized. Missing Authorization or AccessToken or expired token
returns JSON object with error description.
{- "metadataTemplateId": "ea6eb24d-adef-4080-bd02-f64f567c437f",
- "metadata": [
- {
- "metadataDefinitionId": "dfeb57c1-b149-4b15-920f-3f40ff0b959a",
- "metadataDefinitionValue": "Photo"
}, - {
- "metadataDefinitionId": "dfeb57c1-b149-4b15-920f-3f40ff3423ad1",
- "metadataDefinitionValue": {
- "valueId": "3fa85f64-5717-4562-b3fc-2c963f66aea6"
}
}, - {
- "metadataDefinitionId": "3229e863-022b-4365-afe6-e9aa3807c386",
- "metadataDefinitionValue": "02/10/2021"
}, - {
- "metadataDefinitionId": "3229e863-022b-4365-afe6-e9aa3807c386",
- "metadataDefinitionValue": [
- {
- "valueId": "7d6f4e30-f423-11e9-8071-89c0c4052141"
}
]
}, - {
- "metadataDefinitionId": "3229e863-022b-4365-afe6-e9aa3807c386",
- "metadataDefinitionTableValue": [
- [
- {
- "metadataDefinitionId": "dfeb57c1-b149-4b15-920f-3f40ff0b959a",
- "metadataDefinitionValue": "Photo"
}, - {
- "metadataDefinitionId": "dfeb57c1-b149-4b15-920f-3f40ff3423ad1",
- "metadataDefinitionValue": {
- "valueId": "3fa85f64-5717-4562-b3fc-2c963f66ada6"
}
}, - {
- "metadataDefinitionId": "3229e863-022b-4365-afe6-e9aa3807c386",
- "metadataDefinitionValue": "02/10/2021"
}
]
]
}
], - "securityTemplateIds": [
- "7d6f4e30-f423-11e9-8071-89c0c4052141"
], - "filename": "apples.jpg"
}
{- "filename": "apples.jpg",
- "objectId": "e55bdb0c-022b-475d-9e26-9d74552e1e81",
- "fileId": "ecc0d79a-e5cc-41aa-852d-1d9e0da62739",
- "originalFileId": "ecc0d79a-e5cc-41aa-852d-1d9e0da62739",
}