Equipment Documents

The following endpoints allow you to manage documents related to your equipments, including uploading, updating, and deleting documents.

Get documents for a specific equipment

get
/v2/fleet/equipments/{id}/documents

Retrieve a list of documents for the specified equipment.

Authorizations
x-access-tokenstringRequired

Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here

Path parameters
idintegerRequired

The unique identifier of the equipment.

Query parameters
offsetinteger · int64Optional

The number of items to skip before starting to collect the result set

Default: 0
limitintegerOptional

The number of items to return

Default: 10
Responses
200

A paginated list of documents for the equipment

application/json
get
/v2/fleet/equipments/{id}/documents

Upload a document for a specific equipment

post
/v2/fleet/equipments/{id}/documents

Upload a document to be associated with the specified equipment.

Authorizations
x-access-tokenstringRequired

Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here

Path parameters
idintegerRequired

The unique identifier of the equipment.

Body
namestringRequired

The name of the document.

filestring · binaryRequired

The document file to be uploaded. The document must be one of the following types PDF, JPEG, PNG, GIF, TIFF, CSV, Excel, or Word documents. File size should not exceed 10MB (10,485,760 bytes).

shareablebooleanOptional

Indicates whether the document can be shared along with the related equipment. If true, the document will be shared automatically when the equipment is shared; if false, the document remains private.

Default: false
isPublicbooleanOptional

Indicates whether the document can be publicly accessible.

Default: false
expirationDatestring · dateOptional

Date when the document becomes invalid, formatted as 'YYYY-MM-DD' in UTC.

Pattern: /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/
Responses
post
/v2/fleet/equipments/{id}/documents

Delete a specific document

delete
/v2/fleet/equipments/{id}/documents/{documentId}

Deletes a specific document associated with the specified equipment.

Authorizations
x-access-tokenstringRequired

Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here

Path parameters
idintegerRequired

The unique identifier of the equipment.

documentIdintegerRequired

The unique identifier of the document.

Responses
delete
/v2/fleet/equipments/{id}/documents/{documentId}

No content

Update document metadata

patch
/v2/fleet/equipments/{id}/documents/{documentId}

Update the metadata (e.g., name, isPublic) of a specific document associated with the specified equipment.

Authorizations
x-access-tokenstringRequired

Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here

Path parameters
idintegerRequired

The unique identifier of the equipment.

documentIdintegerRequired

The unique identifier of the document.

Body
namestringOptional

The name of the document.

expirationDatestring · dateOptional

Date when the document becomes invalid, formatted as 'YYYY-MM-DD' in UTC.

Pattern: /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/
Responses
200

Document metadata successfully updated

application/json
patch
/v2/fleet/equipments/{id}/documents/{documentId}

Download a specific document

get
/v2/fleet/equipments/{id}/documents/{documentId}/download

Allows the user to download a specific document associated with the specified equipment.

Authorizations
x-access-tokenstringRequired

Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here

Path parameters
idintegerRequired

The unique identifier of the equipment.

documentIdintegerRequired

The unique identifier of the document.

Responses
200

Document successfully downloaded

application/octet-stream
Responsestring · binary
get
/v2/fleet/equipments/{id}/documents/{documentId}/download

Last updated

Was this helpful?