Skip to main content
PUT
/
api
/
webhooks
/
configs
/
{id}
Update one config
curl --request PUT \
  --url http://localhost/api/webhooks/configs/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "endpoint": "https://example.com",
  "eventTypes": [
    "TYPE1",
    "TYPE2"
  ],
  "name": "customer_payment",
  "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3"
}
'
{
  "errorCode": "VALIDATION",
  "errorMessage": "[VALIDATION] invalid 'cursor' query param",
  "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9"
}

Documentation Index

Fetch the complete documentation index at: https://docs.formance.com/llms.txt

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

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

Config ID

Example:

"4997257d-dfb6-445b-929c-cbe2ab182818"

Body

application/json
endpoint
string
required
Example:

"https://example.com"

eventTypes
string[]
required
Example:
["TYPE1", "TYPE2"]
name
string
Example:

"customer_payment"

secret
string
Example:

"V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3"

Response

Config successfully updated.