Added toggle api action