Unable to delete items from webhook queue

Hi Everyone,

I am trying to delete all items from webhook queue.

This operation will be carried out from specific scenario.
I am trying to perform the deletion using Make module (Make an API Call).
I want to delete all items from the webhook processing queue.

I work according to the following link: Delete items from webhook queue

This is what the module I defined looks like:


** In this case I tried deleting a specific run, but that didn’t work either.

This is the error I get:
Error

The operation failed with an error. [400] Bad Request: Validation failed - parameter ids or all has to be set.

I would love to know what I am defining incorrectly,

  1. what the body of the request should be in order for all the items from the webhook processing queue to be deleted?

  2. What about the headers?

I tried all kinds of combinations:

{"ids":["83307cae76724bd2a69eea40844f71e1"],"exceptIds":[],"all":false}
"ids":["83307cae76724bd2a69eea40844f71e1"],"exceptIds":[],"all":false
{"ids":[],"exceptIds":[],"all":true}
"ids":[],"exceptIds":[],"all":true

Nothing works…

Thanks in advance,
Ran

Hi @Ran,

Looks like it needs a header with,

Content-Type : application/json

Besides that, the request body looks fine and it should work if you the header with key Content-Type.

Hi Runcorn,

Thank you for stepping in and trying to help.

Now i getting different error (I already tried it before but I thought it didn’t need headers because it doesn’t appear in the API explanation)

Error

The operation failed with an error. [400] Bad Request: Cannot read properties of null (reading ‘map’)

And the module config:

I would appreciate additional ideas/solutions…

Hi

It turns out that you get the below error if there no items in the webhook processing queue.

Error

Thanks for your help!

1 Like