updated api.md from kapacitor code base
updated api.md from kapacitor code base

influxdb/docs.influxdata.com,influxdata/docs.influxdata.com,influxdata/docs.influxdata.com,influxdata/docs.influxdata.com,influxdb/docs.influxdata.com,influxdata/docs.influxdata.com,influxdb/docs.influxdata.com,influxdata/docs.influxdata.com