Fleet files

retrieve a fleet file.

Retrieve a single fleet file with its metadata.

GEThttps://cloud-api.calyptia.com/v1/fleet_files/{fleetFileID}
Authorization
Path parameters
fleetFileID*string (uuid)

UUID of the fleet file.

Response

Fleet File.

Body
contentsstring (byte)
createdAtstring (date-time)
updatedAtstring (date-time)
idstring (uuid)
namestring
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/fleet_files/{fleetFileID}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "contents": "Ynl0ZXM=",
  "createdAt": "2024-11-21T09:57:32.460Z",
  "updatedAt": "2024-11-21T09:57:32.460Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text"
}

Delete fleet file.

Delete a single fleet file by its ID.

DELETEhttps://cloud-api.calyptia.com/v1/fleet_files/{fleetFileID}
Authorization
Path parameters
fleetFileID*string (uuid)

UUID of the fleet file.

Response

Deleted.

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/fleet_files/{fleetFileID}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();

Update fleet file.

Update a fleet file.

PATCHhttps://cloud-api.calyptia.com/v1/fleet_files/{fleetFileID}
Authorization
Path parameters
fleetFileID*string (uuid)

UUID of the fleet file.

Body
namestring
contentsstring (byte)
Response

Updated.

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/fleet_files/{fleetFileID}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();