code: public ApiResponse<ApiSuccessResponse> removeAttachmentWithHttpInfo(String mediatype, String id, String documentId, RemoveAttachmentData removeAttachmentData) throws ApiException {
          com.squareup.okhttp.Call call = removeAttachmentValidateBeforeCall(mediatype, id, documentId, removeAttachmentData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Remove the attachment of the open-media interaction
  Remove the attachment of the interaction specified in the documentId path parameter
  @param mediatype media-type of interaction to remove attachment (required)
  @param id id of interaction (required)
  @param documentId id of document to remove (required)
  @param removeAttachmentData  (optional)
  @return ApiResponse&lt;ApiSuccessResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body