Pular para o conteúdo principal
POST
/
v1
/
workflows
/
{id}
/
deactivate
Desativar um workflow
curl --request POST \
  --url https://flowker.sandbox.lerian.net/v1/workflows/{id}/deactivate \
  --header 'X-API-Key: <api-key>'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Payment Notification Flow",
  "description": "Receives a webhook trigger and logs the payment event.",
  "status": "active",
  "nodes": [
    {
      "id": "trigger-1",
      "type": "trigger",
      "name": "Webhook Trigger",
      "position": {
        "x": 0,
        "y": 0
      },
      "data": {
        "triggerId": "webhook"
      }
    },
    {
      "id": "log-event",
      "type": "action",
      "name": "Log Payment Event",
      "position": {
        "x": 200,
        "y": 0
      },
      "data": {
        "action": "log"
      }
    }
  ],
  "edges": [
    {
      "id": "e1",
      "source": "trigger-1",
      "target": "log-event"
    }
  ],
  "metadata": {
    "team": "payments",
    "environment": "sandbox"
  },
  "createdAt": "2026-03-17T14:30:00Z",
  "updatedAt": "2026-03-17T14:31:00Z"
}

Autorizações

X-API-Key
string
header
obrigatório

API key for authenticating requests to the Flowker API. Provisioned via the API_KEY environment variable during deployment.

Parâmetros de caminho

id
string<uuid>
obrigatório

Identificador único do workflow.

Resposta

Indica que a solicitação foi bem-sucedida e a resposta contém os dados solicitados.

createdAt
string<date-time>

Marca temporal de quando o workflow foi criado.

Exemplo:

"2026-03-17T14:30:00Z"

description
string

Descrição legível por humanos do workflow.

Exemplo:

"Receives a webhook trigger and logs the payment event."

edges
object[]

Conexões entre nós que definem o fluxo de execução.

id
string<uuid>

Identificador único do workflow.

Exemplo:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

metadata
object

Pares chave-valor personalizados para etiquetar ou categorizar.

Exemplo:
{
"team": "payments",
"environment": "sandbox"
}
name
string

Nome único do workflow.

Exemplo:

"Payment Notification Flow"

nodes
object[]

Os passos que compõem este workflow.

status
enum<string>

Status atual do ciclo de vida: draft (editável), active (executável) ou inactive (arquivado).

Opções disponíveis:
draft,
active,
inactive
Exemplo:

"active"

updatedAt
string<date-time>

Marca temporal da última atualização.

Exemplo:

"2026-03-17T15:00:00Z"