Files

Fleet.

Retrieve the list of fleet files.

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

Unique ID for the Fleet.

Query parameters
Response

OK

Body
contentsstring (byte)
createdAtstring (date-time)
updatedAtstring (date-time)
idstring (uuid)
namestring
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/fleets/{fleetID}/files', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
[
  {
    "contents": "Ynl0ZXM=",
    "createdAt": "2024-09-08T00:29:49.941Z",
    "updatedAt": "2024-09-08T00:29:49.941Z",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text"
  }
]

Create Fleet File.

Create a new Fleet File.

POSThttps://cloud-api.calyptia.com/v1/fleets/{fleetID}/files
Authorization
Path parameters
fleetID*string (uuid)

Unique ID for the Fleet.

Body
name*string
contents*string (byte)
Response

Updated.

Body
id*string (uuid)
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/fleets/{fleetID}/files', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "name": "text",
      "contents": "Ynl0ZXM="
    }),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2024-09-08T00:29:49.941Z"
}