Create asset upload url
Create an upload URL that can be used to transfere the asset
scopes:
- admin:accounts
- write:accounts
- write:accounts:/assets
- write:dintero:/management/accounts
Documentation Index
Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
Authorization: Bearer {access_token}where the access_token is JSON Web Tokens (JWT).
Path Parameters
An id that uniquely identifies the account.
9Body
Size in bytes of the asset file to be uploaded.
1 <= x <= 2000000MIME type of the asset to be uploaded
image/png, image/jpeg, application/pdf, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv Who can access the file?
private, public Response
Upload URL
The public URL the asset will be made available from after the upload has completed.
An URL to upload the asset to.
- The content type header value must be the same as the
mime_type - The content length header value must be the same as the size of
the file and the
size_bytes.
Upload example
curl -X PUT
-H 'Content-Type: {mime_type}' \
-H 'Content-Length: {size_bytes}' \
--upload-file <file> \
{upload_url}The number of seconds until the upload url is no longer valid