KNO-10168: Document default Content-Type header for fetch and webhook steps #1180
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds documentation for the new default
Content-Type: application/jsonheader that Knock automatically adds to HTTP fetch steps and webhook channel steps when request bodies are present (implemented in https://github.com/knocklabs/switchboard/pull/4793).What changed:
content/designing-workflows/fetch-function.mdx)content/integrations/webhook/overview.mdx)Why:
Users need to understand that Knock now automatically adds standards-compliant Content-Type headers to requests with bodies, and that they can override this behavior if needed.
Key points documented:
Content-Type: application/jsonis automatically added when a request body is presentContent-TypeheaderHuman review checklist
Tasks
Session info:
Note
Documents automatic
Content-Type: application/jsonfor requests with bodies in fetch and webhook steps, including override support and no default for GET/empty body.content/designing-workflows/fetch-function.mdx:Content-Type: application/jsonwhen a request body is present, ability to override via explicit header, and no default forGET/no-body.content/integrations/webhook/overview.mdx:GET/no-body.Written by Cursor Bugbot for commit 6996ad5. This will update automatically on new commits. Configure here.