Upload
Upload from a URL with a single HTTP request:
Changed onUpload from a URL with a single HTTP request:
post/v2/accounts/{accountId}/uploads/url
Request
- Base URLhttps://api.bytescale.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountIdstring required
Example:A623uY2
Request body
Example request
{
"url": "https://assets.bytescale.com/example.jpg"
}Response
Success.
Example response
{
"accountId": "A623uY2",
"etag": "33a64df551425fcc55e4d42a148795d9f25f89d4",
"filePath": "/uploads/file.txt",
"fileUrl": "https://upcdn.io/A623uY2/raw/uploads/file.txt"
}Changes
- warning
changed the pattern of the request property
from^[a-z0-9]+/[a-z0-9+\-._]+(?:;[^=]+=[^;]+)*$to^[a-zA-Z0-9]+/[a-zA-Z0-9+\-._]+(?:;[^=]+=[^;]+)*$ - info
added the new optional request property
- info
the
request property's maxLength was increased from1024to8192 - info
added the required property
to the response with the status
- warning