Skip to main content
PATCH
/
v1
/
sessions
/
{id}
Atualizar o status de uma sessão
curl --request PATCH \
  --url https://api.malga.io/v1/sessions/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Client-Id: <api-key>' \
  --data '
{
  "isActive": true,
  "captchaEnabled": true
}
'
{
  "id": "c1db83fa-723c-4e1f-9722-bc19d1be6791",
  "status": "created",
  "isActive": false,
  "captchaEnabled": false
}

Documentation Index

Fetch the complete documentation index at: https://docs.malga.io/llms.txt

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

Authorizations

X-Client-Id
string
header
required
X-Api-Key
string
header
required

Path Parameters

id
string<uuid>
required

Identificação da sessão a ser alterada

Body

application/json
status
enum<string>
required

Novo status raiz da sessão.

Available options:
created,
paid,
canceled,
voided
isActive
boolean

Define se a sessão está ativa.

captchaEnabled
boolean

Habilita ou desabilita verificação por CAPTCHA no Link de Pagamento.

Response

201 - application/json

Created

id
string

Identificação da sessão

status
enum<string>

Status da sessão após a atualização

Available options:
created,
paid,
canceled,
voided
isActive
boolean

Determina se a sessão está ativa

captchaEnabled
boolean

Indica se a sessão usa verificação por CAPTCHA no Link de Pagamento.