<back to all web services

RestoreRecycleBinItems

The following routes are available for this service:
POST/RestApi/recycle-bin/batch/restore
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RestoreRecycleBinItems
    {
        public ArrayList<UUID> Ids = null;
        
        public ArrayList<UUID> getIds() { return Ids; }
        public RestoreRecycleBinItems setIds(ArrayList<UUID> value) { this.Ids = value; return this; }
    }

    public static class BatchRestoreModalMessageProxy extends ModalMessageProxy
    {
        public ArrayList<UUID> InvalidItems = null;
        
        public ArrayList<UUID> getInvalidItems() { return InvalidItems; }
        public BatchRestoreModalMessageProxy setInvalidItems(ArrayList<UUID> value) { this.InvalidItems = value; return this; }
    }

    public static class ModalMessageProxy
    {
        public Boolean IsRecoverable = null;
        public String HeaderText = null;
        public String BodyText = null;
        public String ActionButtonText = null;
        public Boolean HasCancelButton = null;
        
        public Boolean getIsRecoverable() { return IsRecoverable; }
        public ModalMessageProxy setIsRecoverable(Boolean value) { this.IsRecoverable = value; return this; }
        public String getHeaderText() { return HeaderText; }
        public ModalMessageProxy setHeaderText(String value) { this.HeaderText = value; return this; }
        public String getBodyText() { return BodyText; }
        public ModalMessageProxy setBodyText(String value) { this.BodyText = value; return this; }
        public String getActionButtonText() { return ActionButtonText; }
        public ModalMessageProxy setActionButtonText(String value) { this.ActionButtonText = value; return this; }
        public Boolean isHasCancelButton() { return HasCancelButton; }
        public ModalMessageProxy setHasCancelButton(Boolean value) { this.HasCancelButton = value; return this; }
    }

}

Java RestoreRecycleBinItems DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RestApi/recycle-bin/batch/restore HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Ids":["00000000-0000-0000-0000-000000000000"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'BatchRestoreModalMessageProxy' using the custom 'csv' filter}No parameterless constructor defined for this object.