Forum Discussion

Nikoolayy1's avatar
Dec 03, 2025
Solved

F5 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...
  • Juergen_Mang's avatar
    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
        }
    }