Skip to main content
PUT
/
api
/
v1
/
fleets
/
{assetProviderCountryCode}
/
{assetProviderCode}
/
{vehicleId}
/
additional-documents
/
{documentId}
Update an additional document
curl --request PUT \
  --url https://api.smartmove.eu/m2m/api/v1/fleets/{assetProviderCountryCode}/{assetProviderCode}/{vehicleId}/additional-documents/{documentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Parking permit",
  "filetype": "<string>",
  "notes": "This parking permit is valid for parking lot at Parkway Drive 4"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "Parking permit",
  "created": "2023-11-07T05:31:56Z",
  "notes": "This parking permit is valid for parking lot at Parkway Drive 4",
  "blob": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "filename": "<string>",
    "uploaded": false
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

assetProviderCountryCode
string
required

Asset provider country code

Required string length: 2
assetProviderCode
string
required

Asset provider code

Required string length: 3
vehicleId
string
required

Vehicle unique identifier

documentId
string<uuid>
required

ID of the additional document

Body

application/json

Information to overwrite the existing additional document with

title
string
required

Title of the additional document, describing what the content of the blob is

Example:

"Parking permit"

filetype
string
required
Minimum string length: 1
notes
string

Custom notes for this additional document

Example:

"This parking permit is valid for parking lot at Parkway Drive 4"

Response

The updated additional document

id
string<uuid>
required

Unique id of the document

title
string
required

Title of the additional document, describing what the content of the blob is

Example:

"Parking permit"

created
string<date-time>
required
notes
string

Custom notes for this additional document

Example:

"This parking permit is valid for parking lot at Parkway Drive 4"

blob
object