webhook-only-post-method-allowed
Overview
This rule belongs to the apimatic-codegen-validation ruleset and states that:
Webhooks must use only the POST HTTP method. Other HTTP methods like PUT aren't supported for webhook operations.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Webhook uses unsupported HTTP method. |
| Code | APIMATICCODEGEN_V532 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Webhooks |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | apimatic code generation codegen sdks portal docs validation apimatic webhook http method post method method validation |
Suggested Fixes
- Change the webhook HTTP method to POST.
- Webhooks are server-initiated notifications and conventionally use POST method only.
- If you need different HTTP methods, consider using callbacks instead of webhooks.
- Remove any non-POST operations from the webhook definition.