Empréstimos
- Empréstimos
- Políticas de crédito
- Esteira
- Produtos
- Ofertas
- Parcelas
Empresas
- Empresas
- Grupos de empresas
- Operadores
- Permissões
- Métodos de pagamento
Clientes
- Clientes
- Funcionários
Fundos
- Fundos
Eventos
- Eventos
- Assinaturas
- Webhooks externos
- Notificações
Cobrança
- Itens da fatura
- Intenções de pagamento
- Faturas
Arquivos
- Links de arquivos
- Arquivos
Configurações
- Temas
- Chaves da API
- Configurações
Entidades
- Entidade de dados
- Documentos
Automações
- Workflows
- GETListar workflows
- GETObter workflow
- GETExecutar workflow-run com verbo GET
- GETListar execuções de um workflow
- GETListar logs de uma execução de um workflow
- GETObter workflow default
- POSTCriar workflow
- POSTAtualizar workflow
- POSTPublicar workflow
- POSTExecutar workflow-run com verbo POST
- PUTExecutar workflow-run com verbo PUT
- DELDeletar workflow
- DELExecutar workflow-run com verbo DELETE
- HEADHead v1 workflows workflow run
- PATCHExecutar workflow-run com verbo PATCH
- GET
Modelos
- Modelos
Workflows
Atualizar workflow
Atualiza um workflow
POST
/
v1
/
workflows
/
{workflow}
curl --request POST \
--url https://api.base39.io/v1/workflows/{workflow} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"status": "draft",
"content": {
"trigger": {
"id": "<string>",
"name": "<string>",
"type": "webhook-base39",
"parameters": {
"enabled": true,
"event": "loan.created"
}
},
"actions": [
{
"id": "<string>",
"name": "<string>",
"type": "conditional",
"parameters": {
"conditions": [
[
"<string>"
]
],
"default": "<string>"
}
}
],
"subflows": {}
}
}'
{
"id": "<any>",
"name": "<string>",
"status": "draft",
"content": {
"trigger": {
"id": "<string>",
"name": "<string>",
"type": "webhook-base39",
"parameters": {
"enabled": true,
"event": "loan.created"
}
},
"actions": [
{
"id": "<string>",
"name": "<string>",
"type": "conditional",
"parameters": {
"conditions": [
[
"<string>"
]
],
"default": "<string>"
}
}
],
"subflows": {}
},
"createdAt": "2023-08-25T22:38:41.134Z",
"updatedAt": "2023-08-25T22:38:41.134Z",
"deleted": false,
"createdBy": {
"clientId": "key_643969122d598f5b62d15fbc",
"externalClientId": "optr_643969122d598f5b62d15fbd"
},
"updatedBy": {
"clientId": "key_643969122d598f5b62d15fbc",
"externalClientId": "optr_643969122d598f5b62d15fbd"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID do workflow
Body
application/json
Este objeto representa um workflow. Ele permite que você crie fluxos de trabalho dinâmicos.
Response
200 - application/json
Retorna o objeto Workflow
se a atualização for bem-sucedida. Retorna um erro se os parâmetros de criação forem inválidos (por exemplo, especificar um documento inválido).
Este objeto representa um workflow. Ele permite que você crie fluxos de trabalho dinâmicos.
curl --request POST \
--url https://api.base39.io/v1/workflows/{workflow} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"status": "draft",
"content": {
"trigger": {
"id": "<string>",
"name": "<string>",
"type": "webhook-base39",
"parameters": {
"enabled": true,
"event": "loan.created"
}
},
"actions": [
{
"id": "<string>",
"name": "<string>",
"type": "conditional",
"parameters": {
"conditions": [
[
"<string>"
]
],
"default": "<string>"
}
}
],
"subflows": {}
}
}'
{
"id": "<any>",
"name": "<string>",
"status": "draft",
"content": {
"trigger": {
"id": "<string>",
"name": "<string>",
"type": "webhook-base39",
"parameters": {
"enabled": true,
"event": "loan.created"
}
},
"actions": [
{
"id": "<string>",
"name": "<string>",
"type": "conditional",
"parameters": {
"conditions": [
[
"<string>"
]
],
"default": "<string>"
}
}
],
"subflows": {}
},
"createdAt": "2023-08-25T22:38:41.134Z",
"updatedAt": "2023-08-25T22:38:41.134Z",
"deleted": false,
"createdBy": {
"clientId": "key_643969122d598f5b62d15fbc",
"externalClientId": "optr_643969122d598f5b62d15fbd"
},
"updatedBy": {
"clientId": "key_643969122d598f5b62d15fbc",
"externalClientId": "optr_643969122d598f5b62d15fbd"
}
}
Assistant
Responses are generated using AI and may contain mistakes.