Use this endpoint 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.
Average Response Time: 1077ms (varies based on metadata)
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"
}
{- "status": "success",
- "message": "Asset created successfully",
- "data": {
- "objectId": "2dee909b-6b2b-4da8-96c3-af90fc1662ec",
- "filename": "hooli-logo.jpg",
- "fileId": "0fcb5eb4-5e0e-4ffa-8780-9206a0f833f1",
- "originalFileId": "0fcb5eb4-5e0e-4ffa-8780-9206a0f833f1",
- "uploadId": "gR5XHJZpuDv8UizdpSGuwONje0GbMHnCWXS5zTTVkyVINURV6iraWLhpM7Sy7oy65utAgPcm2FfM4fRp4oVga4ggEzD811aS1tke_F0iIIXX1kV7m6UouytsNE0oL8fzo2Zr2JCqwRyhFTXp98zjdQ",
- "urls": [
- {
- "partNumber": 1,
- "url": "string"
}
]
}
}