| POST,OPTIONS | /v1/safety/toolbox |
|---|
"use strict";
export class ToolboxRosterMember {
/** @param {{ContactID?:number,ContactName?:string,HasAcked?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ContactID;
/** @type {string} */
ContactName;
/** @type {boolean} */
HasAcked;
}
export class ToolboxTalkToday {
/** @param {{ToolboxTalkID?:number,Topic?:string,Presenter?:string,AckCount?:number,CrewTotal?:number,Roster?:ToolboxRosterMember[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ToolboxTalkID;
/** @type {string} */
Topic;
/** @type {string} */
Presenter;
/** @type {number} */
AckCount;
/** @type {number} */
CrewTotal;
/** @type {ToolboxRosterMember[]} */
Roster = [];
}
export class ToolboxTalkTodayResponse {
/** @param {{ResponseStatus?:ResponseStatus,Talk?:ToolboxTalkToday}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {ToolboxTalkToday} */
Talk;
}
export class ToolboxTalkCreateRequest {
/** @param {{Topic?:string,Presenter?:string,Notes?:string,TalkDate?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Topic;
/** @type {string} */
Presenter;
/** @type {string} */
Notes;
/** @type {?string} */
TalkDate;
}
JavaScript ToolboxTalkCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/safety/toolbox HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Topic":"String","Presenter":"String","Notes":"String","TalkDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Talk":{"ToolboxTalkID":0,"Topic":"String","Presenter":"String","AckCount":0,"CrewTotal":0,"Roster":[{"ContactID":0,"ContactName":"String","HasAcked":false}]}}