Layer7 API Management

 View Only
  • 1.  API Portal 4.2 - Update Gateway Published API Using PAPI/Portal API

    Posted Nov 12, 2019 07:32 AM
    Hi,

    I have a requirement to update multiple APIs in Portal 4.2. All are Gateway Published APIs. I am planning to use PAPI API (PUT : /2.0/Apis('{uuid}')) to update the APIs. But am not able to invoke this API due to the field "SsgUrl" in the request body.

    When i try to invoke the API without the field "SsgUrl" , it fails with validation error "SsgUrl is required" & also warns that "SsgUrl" is not editable. If i include this field it fails with error "Internal Server Error"


    ------------------------------
    Thanks & Regards!!
    Suhas M V
    ------------------------------


  • 2.  RE: API Portal 4.2 - Update Gateway Published API Using PAPI/Portal API
    Best Answer

    Broadcom Employee
    Posted Nov 12, 2019 10:32 AM
    Is your body something like,
    {
    "Uuid": "945522b8-a773-4651-b577-cf9e4fc5d13c",
    "Name": "gateway_api_1_edited",
    "SsgUrl": "/gateway_1",
    "Version": "2",
    "ApiEulaUuid": "db98ac82-848d-4a1d-8e90-5a39a7e14576",
    "AccessStatus": "PRIVATE",
    "PortalStatus": "DISABLED",
    "AuthenticationType": "NONE"
    }

    And have you tried adding AuthenticationType of none?


  • 3.  RE: API Portal 4.2 - Update Gateway Published API Using PAPI/Portal API

    Posted Nov 12, 2019 11:18 PM
    Hi Charles,

    Thanks You!!

    It worked now with above request body. As you highlighted i didn't have "AuthenticationType" field in my request. Hence I was getting "Internal Server Error"


  • 4.  RE: API Portal 4.2 - Update Gateway Published API Using PAPI/Portal API

    Broadcom Employee
    Posted Nov 13, 2019 11:04 AM
    Great to hear.. Thanks for letting us know.