/// <summary> /// Edits a folder. /// </summary> /// <remarks> /// Required permissions: (Units.Edit - Edits any folder) and (SubFolders.Edit /// - Edits folder only if user has SubFoldersEdit permission on it). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='folderDto'> /// The entity to put /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <FolderDto> PutByIdAsync(this IFolders operations, long id, FolderDto folderDto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(id, folderDto, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Edits a folder. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Folders or Folders.Write. /// /// Required permissions: (Units.Edit - Edits any folder) and (SubFolders.Edit /// - Edits folder only if user has SubFolders.Edit permission on it). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </param> /// <param name='body'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <FolderDto> PutByIdAsync(this IFolders operations, long key, FolderDto body = default(FolderDto), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(key, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }