Field Squared API Services

<back to all web services

WorkspaceClone

The following routes are available for this service:
POST/{Workspace}/WorkspaceClone/
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Workspaces

Namespace Global

    Namespace Field2Office.API.Model.Workspaces

        Public Partial Class WorkspaceClone
            Public Overridable Property Workspace As String
            Public Overridable Property DestinationWorkspaceId As String
            Public Overridable Property NewWorkspaceName As String
            Public Overridable Property CloneAssets As Boolean
            Public Overridable Property CloneContacts As Boolean
            Public Overridable Property CloneDocuments As Boolean
            Public Overridable Property CloneHistory As Boolean
            Public Overridable Property CloneImages As Boolean
            Public Overridable Property CloneSchedules As Boolean
            Public Overridable Property CloneTasks As Boolean
            Public Overridable Property CloneUsers As Boolean
            Public Overridable Property GuessUserDomain As Boolean
            Public Overridable Property UserDomain As String
            Public Overridable Property NotificationEmail As String
        End Class
    End Namespace
End Namespace

VB.NET WorkspaceClone 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 /{Workspace}/WorkspaceClone/ HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv
Content-Type: text/csv
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"}