code: func (c *Client) AddIntervalAction(from contract.IntervalAction) (id string, err error) {
  	action := models.NewIntervalAction(from)
  	if action.ID != "" {
  		_, err = uuid.Parse(action.ID)
  		if err != nil {
  			return "", db.ErrInvalidObjectId
  		}
  	} else {
  		action.ID = uuid.New().String()
  	}
  
  	if action.Created == 0 {
  		ts := db.MakeTimestamp()
  		action.Created = ts
  		action.Modified = ts
  	}
  
  	data, err := json.Marshal(action)
  	if err != nil {
  		return "", err
  	}
  
  	conn := c.Pool.Get()
  	defer conn.Close()
  
  	_ = conn.Send("MULTI")
  	addObject(data, action, action.ID, conn)
  	_, err = conn.Do("EXEC")
  
  	return action.ID, err
  }
docs: // Add schedule interval action