Discussions

Ask a Question
Back to All

How to make webhook example payloads display by default

Hi there,

Can you please help me figure out how to make webhook payloads display by default in our API reference?

For example, this is what the payload looks like by default when you open a page:

You can then click the EXAMPLES dropdown and select Payload Example:

...after which, the webhook payloads display as I would expect. They're context-sensitive and update to reflect the webhook selected on the API reference page:

How can I make the 'first' webhook payload display by default and update when different webhooks are selected? The UI isn't too intuitive or appealing to click EXAMPLES, so it would be good to have one preselected so people know it's an interactive section of the page.

I'm guessing it's something to do with the OpenAPI specs, but they render just fine in Redocly.

Thanks for your help with this!