| POST,OPTIONS | /v1/safety/toolbox |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Topic | body | string | No | |
| Presenter | body | string | No | |
| Notes | body | string | No | |
| TalkDate | body | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Talk | form | ToolboxTalkToday | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ToolboxTalkID | form | int | No | |
| Topic | form | string | No | |
| Presenter | form | string | No | |
| AckCount | form | int | No | |
| CrewTotal | form | int | No | |
| Roster | form | List<ToolboxRosterMember> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContactID | form | int | No | |
| ContactName | form | string | No | |
| HasAcked | form | bool | No |
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/safety/toolbox HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Topic: String,
Presenter: String,
Notes: String,
TalkDate: 0001-01-01
}
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
}
]
}
}