rest api call to create activity