use the ApiClient in AutoDeployment