RedirectServicesDeleteRedirects Method
|
Deletes a collection of Redirect entries
Namespace:
IngeniuxCMService
Assembly:
IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax public XHRServiceResponseGeneric<RedirectListing> DeleteRedirects(
string[] data
)
Public Function DeleteRedirects (
data As String()
) As XHRServiceResponseGeneric(Of RedirectListing)
public:
virtual XHRServiceResponseGeneric<RedirectListing^>^ DeleteRedirects(
array<String^>^ data
) sealed
abstract DeleteRedirects :
data : string[] -> XHRServiceResponseGeneric<RedirectListing>
override DeleteRedirects :
data : string[] -> XHRServiceResponseGeneric<RedirectListing>
Parameters
- data
- Type: SystemString
Array of Redirect entry Ids
Return Value
Type:
XHRServiceResponseGenericRedirectListingListing of all Redirect entries
Examples
Sample JSON return
{
"code": 0,
"error": null,
"message": {
"Redirects": [{
"ID": "redirects\/1",
"Name": "redirects\/1",
"From": "\/support\/contactus",
"SelectedTgtIDs": "PublishingTargets\/1",
"Notes": "Requested by Jane Doe. Delete after June 1, 2014",
"SelectedTgtNames": "Live",
"To": "http:\/\/www.ingeniux.com\/contactus"
}, {
"ID": "redirects\/2",
"Name": "redirects\/2",
"From": "\/support\/contactus",
"Notes": "",
"SelectedTgtIDs": "PublishingTargets\/33",
"SelectedTgtNames": "Staging",
"To": "http:\/\/test.ingeniux.com\/contactus"
}]
}
}
Remarks Non-existing Redirect entries will be ignored
See Also