Field Squared API Services

<back to all web services

WorkspaceClone

The following routes are available for this service:
POST/{Workspace}/WorkspaceClone/
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WorkspaceClone:
    workspace: Optional[str] = None
    destination_workspace_id: Optional[str] = None
    new_workspace_name: Optional[str] = None
    clone_assets: bool = False
    clone_contacts: bool = False
    clone_documents: bool = False
    clone_history: bool = False
    clone_images: bool = False
    clone_schedules: bool = False
    clone_tasks: bool = False
    clone_users: bool = False
    guess_user_domain: bool = False
    user_domain: Optional[str] = None
    notification_email: Optional[str] = None

Python 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
}