Retrieve all messages for a work order.
Retrieve all messages for a work order. Use the archived filter to include or exclude archived messages.
access_token OAuth 2.0 Access Token
In: query
Work Order ID
Filter to include or exclude archived work orders
curl -X GET "https://api-sandbox.fndev.net/api/rest/v2/workorders/0/messages"{
"actions": [
"add"
],
"correlation_id": "1ae4d5a23ca799b6f0aefa427397d13a68342d64",
"metadata": {
"total": 1,
"page": 1,
"pages": 1,
"per_page": 250,
"columns": "from,to,date,content,message,read,created,actions,problem,base",
"view": "model",
"sort": "",
"order": "asc"
},
"params": [],
"f_work_order": [
"Sample value"
],
"fs_work_order": true,
"f_only_workorder": false,
"fs_only_workorder": true,
"results": [
{
"from": {
"id": 1112,
"name": "AT SE Skywalker Provider 1",
"thumbnail": "/images/missing-profile.png",
"hideWoManager": false,
"msgLink": "/workorders/20546/messages",
"role": "Admin"
},
"to": {
"id": 1068,
"name": "Field Nation Support",
"thumbnail": "https://s3.amazonaws.com/dev.fieldnation/profile_image/1068-5d792b11819b8.png",
"role": "Admin"
},
"role": "Admin",
"msg_id": "2384",
"parent_id": "0",
"work_order_status": "3",
"read": true,
"created": {
"utc": "2020-02-05 21:05:55",
"timezone": "America/Chicago",
"local": {
"date": "2020-02-05",
"time": "15:05:55"
}
},
"message": "yo",
"problem": [],
"actions": [
"add"
],
"replies": [],
"sharedText": "AT SE Skywalker Provider 1 (Assigned provider), Skywalker Systems AT"
}
]
}{
"status": 400,
"message": "Validation failed: field 'title' is required"
}{
"status": 500,
"message": "Operation successful."
}{
"status": 403,
"message": "You do not have permission to access this work order"
}{
"status_code": 404,
"message": "Work order not found"
}{
"status": 500,
"message": "An unexpected error occurred. Please try again later or contact support."
}application/json
application/json
application/json
application/json
application/json
application/json
Last updated on