Test
Test
client.webhooks.test(stringid, WebhookTestParamsparams?, RequestOptionsoptions?): webhookWebhookWebhookTestResponse
post/api/v1/webhooks/{id}/test
Invokes the c1.api.webhooks.v1.WebhooksService.Test method.
Parameters
idstring
The id field.
paramsbodyunknownWebhookTestParams
Returns
WebhookTestResponse
The WebhooksServiceTestResponse message.
Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';
const client = new ConductoroneSDK({
apiKey: 'My API Key',
});
const response = await client.webhooks.test('id');
console.log(response.webhook);200 Example
{
"webhook": {
"id": "id",
"attempts": 0,
"source": {
"approvalStep": {
"ticketId": "ticketId"
},
"policyPostAction": {
"ticketId": "ticketId"
},
"provisionStep": {
"ticketId": "ticketId"
},
"test": {},
"workflowStep": {
"workflowExecutionId": "workflowExecutionId",
"workflowStepId": "workflowStepId"
}
},
"spec": {
"destination": "destination"
},
"state": "WEBHOOK_STATE_UNSPECIFIED",
"webhookId": "webhookId"
}
}