| 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 .csv suffix or ?format=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"}