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 hook = await client.hooks.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(hook.id);{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"updated": true,
"url": "<string>",
"events": [
"<string>"
]
}Edit a hook subscription (events or state).
Allows updating the events filter and/or the state of a hook.
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 hook = await client.hooks.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(hook.id);{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"updated": true,
"url": "<string>",
"events": [
"<string>"
]
}Bearer token via Authorization header
Was this page helpful?