Config history

Agent configuration history

Configuration history from an agent. Every time an agent config is updated, a new history entry with the change is created.

GEThttps://cloud-api.calyptia.com/v1/agents/{agentID}/config_history
Authorization
Path parameters
agentID*string (uuid)
Query parameters
Response

OK

Body
id*string (uuid)
rawConfig*string
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/agents/{agentID}/config_history', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "rawConfig": "text",
    "createdAt": "2024-09-08T00:53:29.916Z"
  }
]