| POST | /v1/forms/{FormUID}/versions/{VersionNo}/rollback |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FormUID | path | Guid | No | |
| VersionNo | path | int | No | |
| DraftRev | body | int | 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/forms/{FormUID}/versions/{VersionNo}/rollback HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
FormUID: 00000000000000000000000000000000,
VersionNo: 0,
DraftRev: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
PublishedBy: String,
DraftDirty: False,
DraftUpdatedAt: 0001-01-01,
DraftUpdatedBy: String,
PackLabel: String,
SettingsJson: String,
Stats:
{
Total: 0,
NeedDecision: 0,
Waiting: 0,
Overdue: 0
},
Offered:
[
String
],
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
},
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}