Leave a chat
post
/rest/ofscCollaboration/v1/chats/{chatId}/leave
This operation is used to leave an existing chat.
Request
Path Parameters
-
chatId(required): integer
The unique identifier of the chat in Oracle Field Service.
Response
Supported Media Types
- application/json
- application/schema+json
204 Response
This section describes the 204 status response for this operation. This response code indicates that the operation completed successfully.
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 leave an existing chat by submitting a POST request on the REST resource:
cURL command Example
The following shows an example of the cURL command.
curl -X POST "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCollaboration/v1/chats/1/leave" -H "Accept: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...KsowR1TqvdLZjtxQ7jbrXW8tuhHkjnRow" -H "Content-Type: application/json"
Response Header Example
The following shows an example of the response header.
HTTP/1.1 204 No Content Server: nginx Date: Thu, 22 Apr 2019 16:28:18 GMT Content-Type: application/json; charset=utf-8 Connection: close