| PUT,OPTIONS | /v1/safety/talks/{SafetyTalkLibraryID} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SafetyTalkLibraryID | path | int | No | |
| Title | body | string | No | |
| Kind | body | string | No | |
| Category | body | string | No | |
| Body | body | string | No | |
| MediaUrl | body | string | No | |
| DurationMinutes | body | int? | No | |
| Active | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Talks | form | List<SafetyTalkLib> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SafetyTalkLibraryID | form | int | No | |
| SafetyTalkLibraryUID | form | string | No | |
| Title | form | string | No | |
| Kind | form | string | No | |
| Category | form | string | No | |
| Body | form | string | No | |
| MediaUrl | form | string | No | |
| DurationMinutes | form | int? | No | |
| Active | form | bool | No | |
| AssignmentCount | form | int | 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.
PUT /v1/safety/talks/{SafetyTalkLibraryID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SafetyTalkLibraryID: 0,
Title: String,
Kind: String,
Category: String,
Body: String,
MediaUrl: String,
DurationMinutes: 0,
Active: False
}
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
}
},
Talks:
[
{
SafetyTalkLibraryID: 0,
SafetyTalkLibraryUID: String,
Title: String,
Kind: String,
Category: String,
Body: String,
MediaUrl: String,
DurationMinutes: 0,
Active: False,
AssignmentCount: 0
}
]
}