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 } }
Juergen_Mang
MVP
Dec 04, 2025Using the F5 REST API is a bit of an adventure; you need an Indiana Jones mentality ;)
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