open/close period in REST API