| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Smartsheets/AggregateLife/{Type}/{StartDate}/{EndDate} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/Smartsheets/AggregateLife/{Type}/{StartDate}/{EndDate}/{AgentID} |
export class SmartsheetsAggregate
{
public AgentID: number;
public AgentName: string;
public Apps: number;
public LifePrem: number;
public TransferPrem: number;
public FlowPrem: number;
public PolicyNumber: string;
public AppDate?: string;
public FirstName: string;
public LastName: string;
public CPT: number;
public constructor(init?: Partial<SmartsheetsAggregate>) { (Object as any).assign(this, init); }
}
export class SmartsheetsAggregateAllResponse
{
public ResponseStatus: ResponseStatus;
public SmartsheetAggregates: SmartsheetsAggregate[] = [];
public constructor(init?: Partial<SmartsheetsAggregateAllResponse>) { (Object as any).assign(this, init); }
}
export class SmartsheetsAggregateLifeRequest
{
public Type: string;
public StartDate: string;
public EndDate: string;
public AgentID: number;
public constructor(init?: Partial<SmartsheetsAggregateLifeRequest>) { (Object as any).assign(this, init); }
}
TypeScript SmartsheetsAggregateLifeRequest 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.
GET /v1/Smartsheets/AggregateLife/{Type}/{StartDate}/{EndDate} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
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
}
},
SmartsheetAggregates:
[
{
AgentID: 0,
AgentName: String,
Apps: 0,
LifePrem: 0,
TransferPrem: 0,
FlowPrem: 0,
PolicyNumber: String,
AppDate: 0001-01-01,
FirstName: String,
LastName: String,
CPT: 0
}
]
}