Invoking Uninstall Action in Response to an Alert

App Broker 2020 R1

This section describes the App Broker REST API endpoints to invoke an uninstall action in both a system administrator context and in a user context.

System Administrator Context
User Context

System Administrator Context

This section describes the App Broker REST API endpoint to invoke an uninstall action as a system administrator in response to an alert.

Invoking Uninstall Action in Response to an Alert (System Administrator)

Endpoint Example (Input)

Response Body Example (Output)

URI Example

[PUT] http://localhost/esd/api/alerts/22184

Status code of 200 with empty body.

Request Body Example

{

   "response":"uninstall","questions":

      [

         {"questionId":5,"answers":

            [

               {"answer":"I said so."

               }

            ]

         },

         {"questionId":6,"answers":

            [

               {"answer":"I said so."

               }

            ]

         }

      ]

}

User Context

This section describes the App Broker REST API endpoint to invoke an uninstall action under a user context in response to an alert.

Invoking Uninstall Action in Response to an Alert (User Context)

Endpoint Example (Input)

Response Body Example (Output)

URI Example

[PUT] http://localhost/esd/api/alerts/22184?dn=appportal&un=jsmith

Status code of 200 with empty body.

Request Body Example

{

   "response":"uninstall","questions":

      [

         {"questionId":5,"answers":

            [

               {"answer":"I said so."

               }

            ]

         },

         {"questionId":6,"answers":

            [

               {"answer":"I said so."

               }

            ]

         }

      ]

}