/// <summary> /// Toggles the status of the robots (enabled/disabled) /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Robots or Robots.Write. /// /// Required permissions: Robots.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// <para /> disabled - If true the robots will be enabled, if false the /// robots will be disabled. /// <para /> robotIds - The collection of ids of the affected robots. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ToggleEnabledStatusAsync(this IRobots operations, RobotsToggleEnabledStatusParameters body = default(RobotsToggleEnabledStatusParameters), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ToggleEnabledStatusWithHttpMessagesAsync(body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }