Skip to main content
POST
Upload maintenance document
The Upload Maintenance Document endpoint attaches one file to a maintenance record, for example the repair invoice. The file is stored with the files users attach in Alvys and lists on the record’s Documents tab. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.
This endpoint requires the maintenance:update scope. See Authentication.
  • Content type: multipart/form-data. Each request must contain exactly one file.
  • Max file size: 25 MB
  • Allowed MIME types: application/pdf, image/jpeg, image/png, image/gif
Maintenance files carry no document type, so this form has no DocumentType field.

Request parameters

The following parameters are required in the URL path:

Request body

multipart/form-data

Example cURL request

Replace {id} with the maintenance record ID and YOUR_ACCESS_TOKEN with your actual Bearer token.

Response fields


Example response

200 OK

Status codes


Rate limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information, see the Rate Limits section. This page is interactive, allowing you to try a request by specifying the API version and the maintenance record id in the URL path. As you fill out the parameters, the cURL command on the right side of the page will be automatically updated.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Path Parameters

id
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

multipart/form-data
File
file
required
FileName
string | null

Response

OK

id
string
required

The file's id on the maintenance record.

FileName
string
required

File name with extension, as the record's Documents tab shows it.

AttachmentSize
integer<int64>
required

File size in bytes.

UploadedAt
string<date-time>
required
ParentId
string
required

The maintenance record the file is attached to.