Skip to main content
PUT
/
v1
/
webhooks
/
{key}
Update webhook
curl --request PUT \
  --url https://api.example.com/v1/webhooks/{key}
{
  "data": {
    "key": "uLbBzVvN7ARX",
    "name": "Updated Webhook",
    "url": "https://yourcompany.com/webhooks/partnero",
    "is_active": true,
    "signature": "Sjn3sNnmh14yk6zb",
    "events": [
      "partner.created",
      "partner.updated",
      "customer.created"
    ]
  },
  "status": 1
}

Endpoint

PUT https://api.partnero.com/v1/webhooks/{key}

Path Parameters

ParameterTypeRequiredDescription
keystringYesWebhook’s unique key

Request Body

ParameterTypeRequiredDescription
namestringNoUpdated name for the webhook
urlstringNoUpdated destination URL
eventsarrayNoUpdated list of event subscriptions
is_activebooleanNoEnable or disable the webhook

Request

cURL
curl --location --request PUT 'https://api.partnero.com/v1/webhooks/uLbBzVvN7ARX' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Updated Webhook",
    "events": [
      "partner.created",
      "partner.updated",
      "customer.created"
    ]
  }'

Response

{
  "data": {
    "key": "uLbBzVvN7ARX",
    "name": "Updated Webhook",
    "url": "https://yourcompany.com/webhooks/partnero",
    "is_active": true,
    "signature": "Sjn3sNnmh14yk6zb",
    "events": [
      "partner.created",
      "partner.updated",
      "customer.created"
    ]
  },
  "status": 1
}