cURL
curl --request PUT \ --url https://api.papp.sa/api/v1/webhooks/{webhookUuid} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "Updated Webhook Name", "url": "https://merchant.example.com/webhooks/orders-v2" } '
{ "status": true, "message": "", "appended_data": {}, "data": { "uuid": "550e8400-e29b-41d4-a716-446655440000", "merchant_id": 123, "name": "Order Notification", "url": "https://merchant.example.com/webhooks/orders", "secret": "abc123def456", "created_at": "2024-12-23T10:00:00.000Z", "updated_at": "2024-12-23T15:30:00.000Z" } }
Updates the name and/or URL of a webhook. All provided fields replace existing values.
Webhook UUID.
Provide at least one field when updating a webhook.
255
"Updated Webhook Name"
500
"https://merchant.example.com/webhooks/orders-v2"
Webhook updated successfully.
true
""
{}
Show child attributes