Uploads a file.
Endpoint URL
https://dashboard-api.revnue.com/api/v2/file-upload
Authentication and rate limits
Item | Details |
---|---|
Authentication method | OAuth 2.0 Bearer token |
Rate limit | Rate Limit |
Requests Example
curl --request POST \
--url 'https://develop-api.revnue.com/api/v2/file-upload' \
--header 'Authorization: Bearer $BEARER_TOKEN' \
--form 'company="1"' \
--form 'filename=@"/path/to/file"'
Form-Data
- company (integer) --
[REQUIRED]
The ID of the specific company your API is calling. For accounts with only one company, the default value is1
.
To lookup a specific company ID, see the List Company API. - filename (string) --
[REQUIRED]
The filename including path.
Allowed file extensions:.jpeg
,.jpg
,.png
,.pdf
,.doc
,.docx
,.xls
,.xlsx
Up to5MB
for images and10MB
for other file types.
Response Syntax
{
"details": "file uploaded"
}