| PATCH,PUT,OPTIONS | /v1/records/series/{SeriesId} | ||
|---|---|---|---|
| POST,OPTIONS | /v1/records/series |
"use strict";
export class RecordsOkResponse {
/** @param {{ResponseStatus?:ResponseStatus,Ok?:boolean,Id?:number,Key?:string,Matches?:string[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {boolean} */
Ok;
/** @type {number} */
Id;
/** @type {string} */
Key;
/** @type {string[]} */
Matches = [];
}
export class RecordSeriesSaveRequest {
/** @param {{SeriesId?:number,Code?:string,Name?:string,Years?:number,Permanent?:boolean,RetClass?:string,TriggerEvent?:string,Method?:string,ImageAndDestroy?:boolean,Citation?:string,FieldsJson?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
SeriesId;
/** @type {string} */
Code;
/** @type {string} */
Name;
/** @type {number} */
Years;
/** @type {boolean} */
Permanent;
/** @type {string} */
RetClass;
/** @type {string} */
TriggerEvent;
/** @type {string} */
Method;
/** @type {boolean} */
ImageAndDestroy;
/** @type {string} */
Citation;
/** @type {string} */
FieldsJson;
}
JavaScript RecordSeriesSaveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/records/series HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"SeriesId":0,"Code":"String","Name":"String","Years":0,"Permanent":false,"RetClass":"String","TriggerEvent":"String","Method":"String","ImageAndDestroy":false,"Citation":"String","FieldsJson":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Ok":false,"Id":0,"Key":"String","Matches":["String"]}