| POST | /{Workspace}/WorkspaceClone/ |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Workspaces;
namespace Field2Office.API.Model.Workspaces
{
public partial class WorkspaceClone
{
public virtual string Workspace { get; set; }
public virtual string DestinationWorkspaceId { get; set; }
public virtual string NewWorkspaceName { get; set; }
public virtual bool CloneAssets { get; set; }
public virtual bool CloneContacts { get; set; }
public virtual bool CloneDocuments { get; set; }
public virtual bool CloneHistory { get; set; }
public virtual bool CloneImages { get; set; }
public virtual bool CloneSchedules { get; set; }
public virtual bool CloneTasks { get; set; }
public virtual bool CloneUsers { get; set; }
public virtual bool GuessUserDomain { get; set; }
public virtual string UserDomain { get; set; }
public virtual string NotificationEmail { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}