/// <summary> /// Creates a new robot. /// </summary> /// <remarks> /// Required permissions: (Robots.Create - Floating Robot) and (Robots.Create /// and Machines.View - Standard Robot). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='robotDto'> /// </param> public static RobotDto Post(this IRobots operations, RobotDto robotDto) { return(operations.PostAsync(robotDto).GetAwaiter().GetResult()); }
/// <summary> /// Creates a new robot. /// </summary> /// <remarks> /// Required permissions: (Robots.Create - Floating Robot) and (Robots.Create /// and Machines.View - Standard Robot). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='robotDto'> /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static RobotDto Post(this IRobots operations, RobotDto robotDto, long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.PostAsync(robotDto, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }