/// <summary> /// Operation: Delete Extension /// Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId} /// </summary> public async Task <string> Delete(DeleteExtensionParameters queryParams = null) { if (this.extensionId == null) { throw new System.ArgumentNullException("extensionId"); } return(await rc.Delete <string>(this.Path(), queryParams)); }
/// <summary> /// Deletes extension(s) by ID(s). When an extension is being deleted the default API behaviour is as follows: ⋅⋅* /// user's direct numbers are preserved by becoming additional company numbers; ⋅⋅* user's digital lines (both device & /// associated phone number) are deleted. You can change this behaviour using the filters: ..* create unassigned /// extensions for each digital line of the deleted extension by setting the query parameter `savePhoneLines` to `true` /// in request path; ..* remove direct numbers of the deleted extension by setting the query parameter /// `savePhoneNumbers` to `false` in request path /// HTTP Method: delete /// Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId} /// Rate Limit Group: Medium /// App Permission: EditAccounts /// User Permission: AddRemoveUsers /// </summary> public async Task <string> Delete(DeleteExtensionParameters queryParams = null, RestRequestConfig restRequestConfig = null) { if (extensionId == null) { throw new ArgumentException("Parameter cannot be null", nameof(extensionId)); } return(await rc.Delete <string>(Path(), queryParams, restRequestConfig)); }
/// <summary> /// Deletes extension(s) by ID(s). When an extension is being deleted the default API behaviour is as follows: ⋅⋅* /// user's direct numbers are preserved by becoming additional company numbers; ⋅⋅* user's digital lines (both device & /// associated phone number) are deleted. You can change this behaviour using the filters: ..* create unassigned /// extensions for each digital line of the deleted extension by setting the query parameter `savePhoneLines` to `true` /// in request path; ..* remove direct numbers of the deleted extension by setting the query parameter /// `savePhoneNumbers` to `false` in request path /// HTTP Method: delete /// Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId} /// Rate Limit Group: Medium /// App Permission: EditAccounts /// User Permission: AddRemoveUsers /// </summary> public async Task <string> Delete(DeleteExtensionParameters queryParams = null, RestRequestConfig restRequestConfig = null) { return(await rc.Delete <string>(Path(), queryParams, restRequestConfig)); }