Create a new log within a pipeline. The log will be created with the given logs blob of text.
logs
Parent pipeline ID.
Created
Logs from a pipeline with backward pagination.
OK
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-11-21T09:41:05.155Z" }
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-11-21T09:41:05.155Z", "updatedAt": "2024-11-21T09:41:05.155Z" } ], "endCursor": "text", "count": 0 }