Pular para o conteúdo principal
PATCH
/
v1
/
external-support
/
{projectId}
Update Integration
curl --request PATCH \
  --url https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "webhookUrl": "https://my-system.com/webhook/jelou-v2",
  "authType": "bearer",
  "authorization": "<string>"
}
'
{
  "id": "INTEGRATION_ID",
  "brainId": "BRAIN_ID",
  "webhookUrl": "https://my-system.com/webhook/jelou",
  "authType": "bearer",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt

Use this file to discover all available pages before exploring further.

Apenas os campos enviados na requisição serão atualizados.

Descrição

Modifica a configuração de uma integração existente com o painel de atendimento externo. Permite atualizar a URL do webhook.

Endpoint

PATCH https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}

Parâmetros de rota

projectId
string
obrigatório
Identificador único do projeto Jelou cuja integração se deseja atualizar.

Parâmetros do corpo

webhookUrl
string
Nova URL do endpoint no seu sistema que receberá os eventos do Jelou. Deve ser uma URL pública acessível via HTTPS.Exemplo: https://meu-sistema.com/webhook/jelou-v2

Autenticação

Todas as requisições devem incluir o cabeçalho x-api-key com a API key do projeto Jelou.
x-api-key: API_KEY

Exemplo de requisição

O exemplo a seguir atualiza o webhook para o projeto PROJECT_ID:
cURL
curl --request PATCH \
  --url https://gateway.jelou.ai/jelouapi/v1/external-support/PROJECT_ID \
  --header 'x-api-key: API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "webhookUrl": "https://meu-sistema.com/webhook/jelou-v2"
  }'

Respostas

CódigoStatusDescrição
200OKIntegração atualizada com sucesso.
400Bad RequestFormato dos dados inválido ou valores não permitidos.
401UnauthorizedCredenciais de autenticação inválidas ou ausentes.
404Not FoundNão existe uma integração para o projectId indicado.
500Internal Server ErrorErro interno do servidor.

Exemplo de resposta

{
  "message": [
    "Integration updated successfully"
  ],
  "statusMessage": "success",
  "status": 1,
  "data": {
    "brainId": "PROJECT_ID",
    "webhookUrl": "https://meu-sistema.com/webhook/jelou-v2",
    "createdAt": "2026-01-15T10:30:00.000Z",
    "updatedAt": "2026-01-22T09:15:00.000Z"
  }
}

Autorizações

Authorization
string
header
obrigatório

Basic authentication using Base64 encoded clientId:clientSecret

Parâmetros de caminho

projectId
string
obrigatório

Unique identifier of the Jelou project

Corpo

application/json
webhookUrl
string<uri>

New webhook URL

Exemplo:

"https://my-system.com/webhook/jelou-v2"

authType
enum<string>

New authentication type

Opções disponíveis:
bearer,
api_key,
basic,
no_auth
authorization
string

New credentials

Resposta

Integration updated successfully

id
string
Exemplo:

"INTEGRATION_ID"

brainId
string
Exemplo:

"BRAIN_ID"

webhookUrl
string
Exemplo:

"https://my-system.com/webhook/jelou"

authType
string
Exemplo:

"bearer"

createdAt
string<date-time>
updatedAt
string<date-time>