Skip to main content
PATCH
/
api
/
public
/
v1
/
webhooks
/
{id}
Update a webhook subscription
curl --request PATCH \
  --url https://api.vmarea.com/api/v1/api/public/v1/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "url": "<string>",
  "events": [
    "vm.created"
  ],
  "isActive": true,
  "description": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "url": "<string>",
    "events": [
      "<string>"
    ],
    "isActive": true,
    "description": "<string>",
    "failCount": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.vmarea.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Long-lived API token created at https://vmarea.com/dashboard/settings/api-keys. Tokens are scope-restricted; this spec lists the scope each endpoint requires.

Path Parameters

id
string
required

Body

application/json
url
string<uri>
events
enum<string>[]
Minimum array length: 1
Available options:
vm.created,
vm.started,
vm.stopped,
vm.restarted,
vm.suspended,
vm.terminated,
vm.renewed,
billing.payment_received,
billing.low_balance,
ticket.reply
isActive
boolean
description
string
Maximum string length: 200

Response

Default Response

success
enum<boolean>
required
Available options:
true
data
object
required