Updating subscriptions is not supported yet. This endpoint updates url, name, and isActive only. To change subscriptions, delete and recreate the webhook endpoint.
Enum options: ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT
Timestamp in milliseconds. Used to verify request liveness.
Unique identifier for the organization.
The webhook endpoint update intent.
Completed activity containing updateWebhookEndpointResult. Show activity result details
curl --request POST \
--url https://api.0xkey.io/public/v1/submit/update_webhook_endpoint \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Stamp: <string> (see Authorizations)' \
--data '{
"type": "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT",
"timestampMs": "1781250000000",
"organizationId": "<organization-id>",
"parameters": {
"endpointId": "<endpoint-id>",
"url": "https://example.com/webhooks/0xkey",
"name": "Production activity webhook",
"isActive": true
}
}'
{
"activity" : {
"id" : "<activity-id>" ,
"status" : "ACTIVITY_STATUS_COMPLETED" ,
"type" : "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" ,
"organizationId" : "<organization-id>" ,
"result" : {
"updateWebhookEndpointResult" : {
"endpointId" : "<endpoint-id>" ,
"webhookEndpoint" : {
"endpointId" : "<endpoint-id>" ,
"organizationId" : "<organization-id>" ,
"url" : "https://example.com/webhooks/0xkey" ,
"name" : "Production activity webhook" ,
"isActive" : true ,
"subscriptions" : [
{
"eventType" : "ACTIVITY_UPDATES" ,
"filtersJson" : "" ,
"isActive" : true
}
]
}
}
}
}
}