add create API for activities