Get participants
get
/rest/ofscCollaboration/v1/chats/{chatId}/participants
This operation retrieves the participants of an existing chat. A maximum of 100 participants are retrieved in a single call.
Request
Path Parameters
-
chatId(required): integer
The unique identifier of the chat in Oracle Field Service.
Query Parameters
-
limit: integer
Minimum Value:
0
Maximum Value:100
The number of items to be retrieved.Default Value:10
-
offset: integer
Minimum Value:
0
Maximum Value:10000
The index from which the items are retrieved.Default Value:0
Response
Supported Media Types
- application/json
200 Response
This section describes the 200 status response for this operation.
Root Schema : ParticipantList
Type:
object
The list of participants of the chat.
Show Source
-
items:
array items
An array of items containing the participant 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 participants retrieved.
Nested Schema : items
Type:
array
An array of items containing the participant details.
Show Source
-
Array of:
object Participant
The details of the participant.
Nested Schema : links
Type:
array
The array of pagination items.
Show Source
-
Array of:
object PaginationLink
The pagination links.
Nested Schema : Participant
Type:
object
The details of the participant.
Show Source
-
invitedBy:
string
The login of the user who invited the participant to the chat or conference. This field is present only for the chats started by a user.
-
invitedTime:
string
The time (in UTC time zone) when the participant was invited to a chat or conference. The time is specified in 'YYYY-MM-DD HH:MM:SS' format.
-
leftTime:
string
The time (in UTC time zone) when the participant left the chat. The time is specified in 'YYYY-MM-DD HH:MM:SS' format.
-
login:
string
The login of the participant.
-
name:
string
The name of the participant.
-
online:
boolean
Contains one of the following values: true or false. If true, then the participant is online. If false, then then the participant is not online.
-
present:
boolean
Contains one of the following values: true or false. If true, then the participant is present in the chat. If false, then then the participant is not present in the chat.
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.
Examples
The following example shows how to retrieve the participants of an existing chat by submitting a GET request on the REST resource:
cURL command Example
The following shows an example of the cURL command.
curl -X GET "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCollaboration/v1/chats/1/participants" -H "Accept: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...B2A_Zl7o6M7UpDmBK8EA" -H "Content-Type: application/json"
Response Header Example
The following shows an example of the response header.
HTTP/1.1 200 OK Server: nginx Date: Thu, 22 Apr 2019 16:28:18 GMT Content-Type: application/json; charset=utf-8 Connection: close
Response Body Example
The following shows an example of the response body in JSON format.
{ "totalResults": 2, "limit": 10, "offset": 0, "items": [ { "name": "John Smith", "login": "smith", "present": true, "online": false, "invitedBy": "williams", "invitedTime": "2019-04-22 14:03:41", "leftTime": "" }, { "name": "Robert Williams", "login": "williams", "present": true, "online": true, "invitedBy": "williams", "invitedTime": "2019-04-22 14:03:41", "leftTime": "" } ], "links": [ { "rel": "canonical", "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCollaboration/v1/chats/1/participants/" } ] }