| GET,POST,OPTIONS | /v1/worker/messages |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CrewID | body | int | No | |
| Body | body | string | No | |
| IsAlert | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Crews | form | List<WorkerCrew> | No | |
| Messages | form | List<WorkerCrewMessage> | No | |
| Sent | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CrewID | form | int | No | |
| CrewName | form | string | No | |
| IsManager | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CrewMessageID | form | int | No | |
| CrewID | form | int | No | |
| CrewName | form | string | No | |
| SenderContactID | form | int | No | |
| SenderName | form | string | No | |
| Body | form | string | No | |
| IsAlert | form | bool | No | |
| CreatedAtLabel | form | string | No | |
| Mine | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/worker/messages HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"CrewID":0,"Body":"String","IsAlert":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Crews":[{"CrewID":0,"CrewName":"String","IsManager":false}],"Messages":[{"CrewMessageID":0,"CrewID":0,"CrewName":"String","SenderContactID":0,"SenderName":"String","Body":"String","IsAlert":false,"CreatedAtLabel":"String","Mine":false}],"Sent":false}