Skip to main content

Invoking Uninstall Action in Response to an Alert

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

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

Endpoint Example (Input)

URI Example:

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

Request Body Example

{
"response":"uninstall","questions":
[
{"questionId":5,"answers":
[
{"answer":"I said so."
}
]
},
{"questionId":6,"answers":
[
{"answer":"I said so."
}
]
}
]
}

Response Body Example (Output)

Status code of 200 with empty body.

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.

Endpoint Example (Input)

URI Example:

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

Request Body Example

{
"response":"uninstall","questions":
[
{"questionId":5,"answers":
[
{"answer":"I said so."
}
]
},
{"questionId":6,"answers":
[
{"answer":"I said so."
}
]
}
]
}

Response Body Example (Output)

Status code of 200 with empty body.