uploads
Add an upload
Changed onAdd an upload to bokio in the form of an image or pdf. One file can be uploaded per request. The request must be multi-part MIME.
Sample request for uploading a file using multipart MIME
POST http://api.bokio.se/companies/{companyId}/uploads
Content-Type: multipart/form-data; boundary=----FormBoundary7MA4YWxkTrZu0gW
Authorization: Bearer <token>
------FormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="File"; filename="receipt.png"
Content-Type: image/png
< ./receipt.png
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="journalEntryId"
835ba700-b306-4bd9-8447-59207b6b0002
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="description"
Description for the upload
------FormBoundary7MA4YWxkTrZu0gW--
Scope: uploads:write
post/companies/{companyId}/uploads
Request
- Base URLhttps://api.bokio.se/v1
- URLhttps://api.bokio.se/v1/companies/{companyId}/uploads
- AuthHTTP bearer
Headers
Content-Typestring required
Content type of the request
Request body multipart/form-data
Example request
{
"description": "Receipt for invoice 1234",
"journalEntryId": "835ba700-b306-4bd9-8447-59207b6b0002"
}Response
Successfully added
Example response
{
"id": "a419cf69-db6f-4de9-992c-b1a60942a443",
"description": "example.png",
"contentType": "img/png",
"journalEntryId": "835ba700-b306-4bd9-8447-59207b6b0002"
}Changes
- info
endpoint added
- info