code: function (identifier, data, config, cb) {
              if (data.action === undefined) {
                  return new Error("action param can not be empty.");
              }
  
              var path = api.getPath(baseURL, identifier, customActionPath + data.action);
              api.post(path, data, config, cb);
          }
docs: This request is to execute a custom action on an alert in Opsgenie.
  
  One of id, tinyId or alias parameters should be specified with execute custom action request as identifier.
  Alias option can only be used for open alerts
  example identifier objects:
  {identifier : "123", identifierType : "tiny"}
  {identifier : "123-23-123", identifierType : "id"}
  {identifier : "alertAlias", identifierType : "alias"}
  
  Also, action param is mandatory for this request. This param should specify the name of the custom action.
  Example action param:
  action : "actionName"