| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/FFField/{Id} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/FFField |
export class FFField
{
public Id: string;
public FFSectionId: string;
public FieldTypeId: number;
public x: number;
public y: number;
public height: number;
public width: number;
public Text: string;
public constructor(init?: Partial<FFField>) { (Object as any).assign(this, init); }
}
export class FFFieldExtended extends FFField
{
public Name: string;
public IsYesNo: boolean;
public constructor(init?: Partial<FFFieldExtended>) { super(init); (Object as any).assign(this, init); }
}
export class FFFieldResponse
{
public ResponseStatus: ResponseStatus;
public FFField: FFFieldExtended[] = [];
public constructor(init?: Partial<FFFieldResponse>) { (Object as any).assign(this, init); }
}
export class FFFieldRequest
{
public FFField: FFFieldExtended[] = [];
public constructor(init?: Partial<FFFieldRequest>) { (Object as any).assign(this, init); }
}
TypeScript FFFieldRequest DTOs
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/FFField/{Id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
FFField:
[
{
Name: String,
IsYesNo: False,
Id: 00000000000000000000000000000000,
FFSectionId: 00000000000000000000000000000000,
FieldTypeId: 0,
x: 0,
y: 0,
height: 0,
width: 0,
Text: String
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
FFField:
[
{
Name: String,
IsYesNo: False,
Id: 00000000000000000000000000000000,
FFSectionId: 00000000000000000000000000000000,
FieldTypeId: 0,
x: 0,
y: 0,
height: 0,
width: 0,
Text: String
}
]
}