| POST | /v1/forms/{FormUID}/duplicate |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FormUID | path | Guid | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Form | form | FormDetail | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DraftJson | form | string | No | |
| DraftRev | form | int | No | |
| SourceTemplateUID | form | Guid? | No | |
| Warnings | form | List<string> | No | |
| AlwaysHidden | form | List<string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FormUID | form | Guid | No | |
| Name | form | string | No | |
| Slug | form | string | No | |
| Noun | form | string | No | |
| NumberPrefix | form | string | No | |
| Description | form | string | No | |
| Tone | form | string | No | |
| Status | form | string | No | |
| PublishedVersionNo | form | int? | No | |
| PublishedAt | form | DateTime? | No | |
| PublishedBy | form | string | No | |
| DraftDirty | form | bool | No | |
| DraftUpdatedAt | form | DateTime? | No | |
| DraftUpdatedBy | form | string | No | |
| PackLabel | form | string | No | |
| SettingsJson | form | string | No | |
| Stats | form | FormStats | No | |
| Offered | form | List<string> | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Total | form | int | No | |
| NeedDecision | form | int | No | |
| Waiting | form | int | No | |
| Overdue | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/forms/{FormUID}/duplicate HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"FormUID":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Form":{"DraftJson":"String","DraftRev":0,"SourceTemplateUID":"00000000000000000000000000000000","Warnings":["String"],"AlwaysHidden":["String"],"FormUID":"00000000000000000000000000000000","Name":"String","Slug":"String","Noun":"String","NumberPrefix":"String","Description":"String","Tone":"String","Status":"String","PublishedVersionNo":0,"PublishedAt":"0001-01-01T00:00:00.0000000","PublishedBy":"String","DraftDirty":false,"DraftUpdatedAt":"0001-01-01T00:00:00.0000000","DraftUpdatedBy":"String","PackLabel":"String","SettingsJson":"String","Stats":{"Total":0,"NeedDecision":0,"Waiting":0,"Overdue":0},"Offered":["String"],"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}