Function to close this pattern
The id of the OverflowMenu element
the API response envelope as a JSON string: { code, isSuccess, message, value? }
{ code, isSuccess, message, value? }
Function to close this pattern