RedirectServicesDeleteRedirects Method

Ingeniux CMS Web Services API

Deletes a collection of Redirect entries

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
Syntax

public XHRServiceResponseGeneric<RedirectListing> DeleteRedirects(
	string[] data
)

Parameters

data
Type: SystemString
Array of Redirect entry Ids

Return Value

Type: XHRServiceResponseGenericRedirectListing

Listing of all Redirect entries

Examples

Sample JSON return
JavaScript
{
    "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

Reference