Field Squared API Services

<back to all web services

CloneObject

The following routes are available for this service:
GET/{Workspace}/CloneObject/{ObjectType}/{ObjectId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CloneObject
    {
        public String Workspace = null;
        public String ObjectType = null;
        public String ObjectId = null;
        
        public String getWorkspace() { return Workspace; }
        public CloneObject setWorkspace(String value) { this.Workspace = value; return this; }
        public String getObjectType() { return ObjectType; }
        public CloneObject setObjectType(String value) { this.ObjectType = value; return this; }
        public String getObjectId() { return ObjectId; }
        public CloneObject setObjectId(String value) { this.ObjectId = value; return this; }
    }

}

Java CloneObject DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /{Workspace}/CloneObject/{ObjectType}/{ObjectId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json