Upload a new version
Initiate a signed-URL upload for a new version of an existing file. PUT the bytes directly to the returned uploadUrl (do not POST through the Adnova API), sending the returned contentDisposition as the Content-Disposition header and a Content-Length equal to the exact size you declared here. Then call Complete a version upload with the uploadId. Same 1 GB per-file cap and plan storage quota as a new upload (413).
Authentication
authentication Create an API key from the Adnova dashboard (Account integrations). Pass the key value in the api-key request header on every call.
In: header
Path Parameters
File id.
1 <= lengthHeader Parameters
Workspace the request operates in. Get it from List workspaces.
1 <= lengthOrganization context (required on every endpoint).
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.adnova.ai/creative-hub/v1/files/01J8ZF9K8M7N6P5R4S3T2V1W0X/versions" \ -H "x-workspace-id: 01J8ZQ9X2K3M4N5P6R7S8T9V0W" \ -H "x-org-id: 01J8ZQ7B3C4D5F6G7H8K9M0N1P" \ -H "Content-Type: application/json" \ -d '{ "file": { "name": "spring-hero-v2.mp4", "mime": "video/mp4", "size": 1846720 } }'{
"uploadId": "01H8YB...",
"uploadUrl": "https://s3.amazonaws.com/adnova-media/...?X-Amz-Signature=...",
"contentDisposition": "attachment; filename=spring-hero-v2.mp4"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}