code: func PauseAlert(c *m.ReqContext, dto dtos.PauseAlertCommand) Response {
  	alertID := c.ParamsInt64("alertId")
  
  	query := m.GetAlertByIdQuery{Id: alertID}
  
  	if err := bus.Dispatch(&query); err != nil {
  		return Error(500, "Get Alert failed", err)
  	}
  
  	guardian := guardian.New(query.Result.DashboardId, c.OrgId, c.SignedInUser)
  	if canEdit, err := guardian.CanEdit(); err != nil || !canEdit {
  		if err != nil {
  			return Error(500, "Error while checking permissions for Alert", err)
  		}
  
  		return Error(403, "Access denied to this dashboard and alert", nil)
  	}
  
  	cmd := m.PauseAlertCommand{
  		OrgId:    c.OrgId,
  		AlertIds: []int64{alertID},
  		Paused:   dto.Paused,
  	}
  
  	if err := bus.Dispatch(&cmd); err != nil {
  		return Error(500, "", err)
  	}
  
  	var response m.AlertStateType = m.AlertStateUnknown
  	pausedState := "un-paused"
  	if cmd.Paused {
  		response = m.AlertStatePaused
  		pausedState = "paused"
  	}
  
  	result := map[string]interface{}{
  		"alertId": alertID,
  		"state":   response,
  		"message": "Alert " + pausedState,
  	}
  
  	return JSON(200, result)
  }
docs: //POST /api/alerts/:alertId/pause