private void SubmitExperiment(WorkspaceSetting setting, Experiment exp, string rawJson, string newName, bool createNewCopy, bool run)
{
ValidateWorkspaceSetting(setting);
Util.AuthorizationToken = setting.AuthorizationToken;
string body = CreateSubmitExperimentRequest(exp, rawJson, run, newName, createNewCopy);
string queryUrl = StudioApi + string.Format("workspaces/{0}/experiments/{1}", setting.WorkspaceId, createNewCopy ? string.Empty : exp.ExperimentId);
HttpResult hr = Util.HttpPost(queryUrl, body).Result;
if (!hr.IsSuccess)
throw new AmlRestApiException(hr);
}
public void RemoveExperimentById(WorkspaceSetting setting, string ExperimentId)