Skip to main content
PATCH
/
webhooks
/
{id}
JavaScript
import Mobilerun from '@mobilerun/sdk';

const client = new Mobilerun({
  apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});

const webhook = await client.webhooks.update('550e8400-e29b-41d4-a716-446655440000');

console.log(webhook.data);
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "url": "<string>",
    "eventTypes": [
      "<string>"
    ],
    "blockedAt": "<string>",
    "blockedReason": "<string>",
    "signingEnabled": true,
    "description": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer token via Authorization header

Path Parameters

id
string<uuid>
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json
eventTypes
string[]
Maximum array length: 100
Required string length: 1 - 256
state
enum<string>
Available options:
ACTIVE,
DISABLED
description
string | null
Maximum string length: 500

Response

Updated webhook subscription

data
object
required