Forum Discussion
Nikoolayy1
MVP
Dec 03, 2025F5 AWAF/ASM Fails to update OpenAPI file through REST-API
Hello Everyone,
I followed Update an existing API security policy with a newer swagger file but this only works when creating a new policy not upgrading an existing one when you change the open...
- Dec 03, 2025
I use this paylod for the POST request to /mgmt/tm/asm/tasks/import-open-api
$swagger_file is the previous uploaded swagger file
$waf_policy is /mgmt/tm/asm/policies/<policy hash>
{ apiType: "swagger", filename: $swagger_file, policyReference: { link: $waf_policy } }
SamCo
Cirrus
Dec 03, 2025I am just making a quick guess but how is the request ? have you try to use HTTP PATCH instead of POST ?
- Nikoolayy1Dec 03, 2025
MVP
PUT and PATCH are not implemented for this endpoint. Already tested this.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects