Field Squared API Services

<back to all web services

WorkspaceClone

The following routes are available for this service:
POST/{Workspace}/WorkspaceClone/
namespace Field2Office.API.Model.Workspaces

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type WorkspaceClone() = 
        member val Workspace:String = null with get,set
        member val DestinationWorkspaceId:String = null with get,set
        member val NewWorkspaceName:String = null with get,set
        member val CloneAssets:Boolean = new Boolean() with get,set
        member val CloneContacts:Boolean = new Boolean() with get,set
        member val CloneDocuments:Boolean = new Boolean() with get,set
        member val CloneHistory:Boolean = new Boolean() with get,set
        member val CloneImages:Boolean = new Boolean() with get,set
        member val CloneSchedules:Boolean = new Boolean() with get,set
        member val CloneTasks:Boolean = new Boolean() with get,set
        member val CloneUsers:Boolean = new Boolean() with get,set
        member val GuessUserDomain:Boolean = new Boolean() with get,set
        member val UserDomain:String = null with get,set
        member val NotificationEmail:String = null with get,set

F# WorkspaceClone DTOs

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

HTTP + JSV

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

POST /{Workspace}/WorkspaceClone/ HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Workspace: String,
	DestinationWorkspaceId: String,
	NewWorkspaceName: String,
	CloneAssets: False,
	CloneContacts: False,
	CloneDocuments: False,
	CloneHistory: False,
	CloneImages: False,
	CloneSchedules: False,
	CloneTasks: False,
	CloneUsers: False,
	GuessUserDomain: False,
	UserDomain: String,
	NotificationEmail: String
}