Newer Version Available

This content describes an older version of this product. View Latest

Connect REST API Examples

Use Connect REST API examples to perform tasks.

While using the Connect REST API, remember these request parameter and request body tips.

  • Request parameters may be included as part of the Connect REST API resource URL, for example, /chatter/users?q=searchtext. A request body is a rich input which may be included as part of the request. When accessing a resource, you can use either a request body or request parameters. You cannot use both.
  • With a request body, use Content-Type: application/json or Content-Type: application/xml.
  • With request parameters, use Content-Type: application/x-www-form-urlencoded.

For more information on request bodies, see Using POST, PATCH, or PUT for Input.

For examples of how to upload a binary file, see Uploading Binary Files.