Initialize media upload
Changed onStarts a pending single-file media upload. The API infers the media object type from fileType and fileName.
<br>Rate limit: 20 requests per 60 seconds
Request
- Base URLhttps://api.capacities.io
- AuthHTTP bearer
Request body
Original file name, including extension when available.
File size in bytes.
MIME type, e.g. image/png.
Optional object title. Defaults to file name.
Collection ids to assign. Pass an empty array to use the default collection for this structure.
Response
200 OK
Reserved object id that will be used when the upload completes.
Required part size in bytes, except for the final part.
ISO 8601 datetime when this pending upload session expires.
Changes
- info
the
expiresAtresponse's property pattern was changed from^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$to^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$for the status
- info
- info
endpoint added
- info