Skip to main content
PUT
/
v1
/
webhooks
/
{webhookUuid}
Update a webhook
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"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

webhookUuid
string<uuid>
required

Webhook UUID.

Body

application/json

Provide at least one field when updating a webhook.

name
string
Maximum string length: 255
Example:

"Updated Webhook Name"

url
string<uri>
Maximum string length: 500
Example:

"https://merchant.example.com/webhooks/orders-v2"

Response

Webhook updated successfully.

status
boolean
required
Example:

true

message
string | null
required
Example:

""

appended_data
object
required
Example:
{}
data
object
required