Get messages
get
/rest/ofscCollaboration/v1/chats/{chatId}/messages
Get all the messages under a chat id
Request
Supported Media Types
- application/json
Path Parameters
-
chatId(required): integer
The unique identifier of the chat in Oracle Field Service.
Response
Supported Media Types
- application/json
200 Response
This section describes the 200 status response for this operation.
Root Schema : GetMessageResponse
Type:
object
The list of messages of the chat.
Show Source
-
direction:
string
Allowed Values:
[ "asc", "desc" ]
order of response retrieved. default: desc -
items:
array items
An array of items containing the message details.
-
limit:
integer(int32)
The limit value specified in the request.
-
links:
array links
The array of pagination items.
-
offset:
integer(int32)
The offset value specified in the request.
-
totalResults:
integer(int32)
The total number of messages retrieved.
Nested Schema : items
Type:
array
An array of items containing the message details.
Show Source
-
Array of:
object Message
Chat message details
Nested Schema : links
Type:
array
The array of pagination items.
Show Source
-
Array of:
object PaginationLink
The pagination links.
Nested Schema : Message
Type:
object
Chat message details
Show Source
-
attachment:
object Attachment
-
author:
string
The user login of the user who created this message
-
messageId:
integer(int32)
The identifier of the message in the collaboration server (long).
-
sequenceNumber:
integer(int32)
The sequence number of the message in the chat or broadcast (long).
-
text:
string
The text content of the message (string).
-
time:
string
The time the message was sent in UTC time standard (string). The time format is YYYY-MM-DD HH:MM:SS.
-
type:
string
Allowed Values:
[ "message", "notification" ]
Type of message whether its user generated(message) or system generated(notification).
Nested Schema : Attachment
Type:
Show Source
object
-
content:
object ImageContent
-
id:
string
attachment entity ID. activity, resource or inventory ID. no ID field required for image type
-
type(required):
string
Allowed Values:
[ "activity", "resource", "inventory", "image" ]
type of attachment
Nested Schema : ImageContent
Type:
Show Source
object
-
filename(required):
string
image file name
-
imageData(required):
string
base64 value of the image content
-
mediaType(required):
string
media type
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object
-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.