Skip to main content
PUT
/
v1
/
server
/
webhooks
/
{id}
Update Webhook
curl --request PUT \
  --url https://sdk-api.playcamp.io/v1/server/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "isActive": true,
  "retryCount": 5,
  "timeoutMs": 15500
}
'
{
  "data": {
    "id": 123,
    "eventType": "coupon.redeemed",
    "url": "<string>",
    "isActive": true,
    "retryCount": 123,
    "timeoutMs": 123,
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Server API Key (format: {keyId}:{secret})

Path Parameters

id
integer
required

Body

application/json
url
string<uri>
isActive
boolean
retryCount
integer
Required range: 0 <= x <= 10
timeoutMs
integer
Required range: 1000 <= x <= 30000

Response

Success

data
object
required

Webhook configuration (secret is only returned on creation)