Upload an asset picture
Uploads an assetโs image, replacing the old one.
1. Upload URL. Leave url out, then PUT the raw bytes to presigned_url within 10 minutes, with the real Content-Type (it becomes mime_type) and x-ms-blob-type: BlockBlob (some storage needs it). Nothing else confirms the upload.
2. From a URL. Send url; the server downloads it during the request. Limits: public http or https, 5 redirects, 15 seconds, 50 MB, and an image/, video/, audio/ or application/octet-stream content type (or none). A failed download returns 500. Nothing else checks type or size.
Processing. Within 1 to 2 minutes, status goes from pending to analyzing, then analyzed (adds mime_type, size, width, height and a JPEG thumbnail up to 350 px wide) or error. Poll GET /assets/{id}?include=image.thumbnail every 10 to 15 seconds. Bytes not received within 24 hours stay pending for good.
Use visibility: public for media you publish. private URLs are signed and expire after 12 hours; read the asset again for a new one.
Roles: owner, admin and user.
Authorizations
Body
Send url for the server to fetch the file, or leave it out to get an upload URL.
