documentation for adding events via the API