Send Requests

Use the following guidelines for sending requests using the REST API for Collaboration.

URL Structure

Access the Collaboration REST resources with the following URL structure:
https://oracleContentInstance-identityName.network.dataCenter.oraclecloud.com/osn/social/api/v1/resource-path
Where:
  • oracleContentInstance - Name you chose for your Oracle Content and Experience Cloud instance when it was provisioned.

  • identityName - Identity name you chose when you signed up with Oracle Public Cloud.

  • network - Name of your network for Collaboration.

  • dataCenter - Data center that Oracle Content and Experience Cloud is set up to use.

  • resource-path - Relative path that defines the resource. For a complete list of resources, see All REST Endpoints.

The following example illustrates how to use this URL structure:

GET https://MyContentHome-MyCompany.collaboration.us1.oraclecloud.com/social/api/v1/conversations

Supported Methods

You can perform basic CRUD operations (create, read, update, and delete) on Collaboration using standard HTTP method requests, as summarized in the following table.

HTTP Method Description
GET Get information about a resource or resources, return an empty list for applinks, or download a conversation.
POST Create, add to, like, or star a resource, or set a field, a property, or properties on a resource.
PUT Update or mark a resource or mark a followup or followups for a resource.
DELETE Remove a resource, un-like or un-star a resource, close a followup or followups for a resource, disconnect a connection, or remove a member, property or properties, user, contact, follower, picture, or field from a resource.

Media Types

The REST API for Collaboration supports the following media type:

  • application/json

Supported Headers

The REST API for Collaboration supports the following headers that can be passed in the header section of the HTTP request or response.

Header Description Example
Accept-Encoding List of acceptable encodings to support compression. Accept-Encoding: gzip
Content-Encoding List of acceptable encodings to support compression. Content-Encoding: deflate
Content-Type Media type of the body of the request. Required for POST and PUT requests. Content-Type: application/json

Compression

Use compression on the Collaboration REST resource request and response for improved performance. To use compression, include one of the following HTTP headers in the request: Accept-Encoding or Content-Encoding.