Add postAction for REST API