Workflow

POSThttps://api.laminar.run/workflow
Body
name*string
description*string
workspaceId*integer (int64)
Response

OK

Body
idinteger (int64)
name*string
description*string
createdAtstring (date-time)
Request
const response = await fetch('https://api.laminar.run/workflow', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "description": "text",
      "name": "text"
    }),
});
const data = await response.json();
Response
{
  "name": "text",
  "description": "text",
  "createdAt": "2024-10-21T21:14:05.629Z"
}

PUThttps://api.laminar.run/workflow
Body
workflowId*integer (int64)
namestring
descriptionstring
Response

OK

Body
idinteger (int64)
name*string
description*string
createdAtstring (date-time)
Request
const response = await fetch('https://api.laminar.run/workflow', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "name": "text",
  "description": "text",
  "createdAt": "2024-10-21T21:14:05.629Z"
}

GEThttps://api.laminar.run/workflow/{id}
Path parameters
id*integer (int64)
Response

OK

Body
idinteger (int64)
name*string
description*string
createdAtstring (date-time)
Request
const response = await fetch('https://api.laminar.run/workflow/{id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "name": "text",
  "description": "text",
  "createdAt": "2024-10-21T21:14:05.629Z"
}

DELETEhttps://api.laminar.run/workflow/{id}
Path parameters
id*integer (int64)
Response

OK

Request
const response = await fetch('https://api.laminar.run/workflow/{id}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();