method schedule ApiController