Trendsic Platform Service

<back to all web services

ToolboxAckRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/safety/toolbox/{ToolboxTalkID}/ack

export class ToolboxRosterMember
{
    public ContactID: number;
    public ContactName: string;
    public HasAcked: boolean;

    public constructor(init?: Partial<ToolboxRosterMember>) { (Object as any).assign(this, init); }
}

export class ToolboxTalkToday
{
    public ToolboxTalkID: number;
    public Topic: string;
    public Presenter: string;
    public AckCount: number;
    public CrewTotal: number;
    public Roster: ToolboxRosterMember[] = [];

    public constructor(init?: Partial<ToolboxTalkToday>) { (Object as any).assign(this, init); }
}

export class ToolboxTalkTodayResponse
{
    public ResponseStatus: ResponseStatus;
    public Talk: ToolboxTalkToday;

    public constructor(init?: Partial<ToolboxTalkTodayResponse>) { (Object as any).assign(this, init); }
}

export class ToolboxAckRequest
{
    public ToolboxTalkID: number;
    public ContactID?: number;
    public CrewName: string;

    public constructor(init?: Partial<ToolboxAckRequest>) { (Object as any).assign(this, init); }
}

TypeScript ToolboxAckRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/safety/toolbox/{ToolboxTalkID}/ack HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ToolboxTalkID: 0,
	ContactID: 0,
	CrewName: 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
		}
	},
	Talk: 
	{
		ToolboxTalkID: 0,
		Topic: String,
		Presenter: String,
		AckCount: 0,
		CrewTotal: 0,
		Roster: 
		[
			{
				ContactID: 0,
				ContactName: String,
				HasAcked: False
			}
		]
	}
}