cURL
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" }
Update a webhooks config by ID.
The access token received from the authorization server in the OAuth 2.0 flow.
Config ID
"4997257d-dfb6-445b-929c-cbe2ab182818"
"https://example.com"
["TYPE1", "TYPE2"]
"customer_payment"
"V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3"
Config successfully updated.