Authorizations
Bearer token via Authorization header
Path Parameters
Body
application/json
import DroidrunCloud from 'droidrun-cloud';
const client = new DroidrunCloud({
apiKey: 'My API Key',
});
const hook = await client.hooks.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(hook.id);{
"events": [
"<string>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"updated": true,
"url": "<string>"
}Edit a hook subscription (events or state).
Allows updating the events filter and/or the state of a hook.
import DroidrunCloud from 'droidrun-cloud';
const client = new DroidrunCloud({
apiKey: 'My API Key',
});
const hook = await client.hooks.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(hook.id);{
"events": [
"<string>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"updated": true,
"url": "<string>"
}Bearer token via Authorization header
Was this page helpful?