Logs from a pipeline with backward pagination.
Parent pipeline ID.
OK
const response = await fetch('https://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/logs', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{ "items": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "pipelineID": "123e4567-e89b-12d3-a456-426614174000", "logs": "text", "status": "NEW", "createdAt": "2024-09-08T00:32:48.830Z", "updatedAt": "2024-09-08T00:32:48.830Z" } ], "endCursor": "text", "count": 0 }
Create a new log within a pipeline. The log will be created with the given logs blob of text.
logs
Created
const response = await fetch('https://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/logs', { method: 'POST', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ "logs": "text" }), }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2024-09-08T00:32:48.830Z" }