Generic Batch Input

Generic batch input.
Root XML Tag
<request>
JSON
1{
2   "method" : "Get",
3   "url" : "/v28.0/chatter/feeds/news/me"
4}
Properties
Name Type Description Available Version
binaryPartName String The name of the binary part in the multipart request.

When there are multiple binary parts uploaded in one batch request, this value is used to map a request to its binary part. To prevent name collisions, use a unique value for each binaryPartName property in a batch request.

This property is optional. If this value exists, a binaryPartNameAlias value must also exist.

28.0
binaryPartNameAlias String The name parameter in the Content-Disposition header of the binary body part. Different resources expect different values. See Uploading Binary Files.

This property is optional. If this value exists, a binaryPartName value must also exist.

28.0
method String One of these HTTP methods:
  • HttpDelete—Returns HTTP 204 on success. Response body or output class is empty.
  • HttpGet—Returns HTTP 200 on success.
  • HttpHead—Returns HTTP 200 on success. Response body or output class is empty.
  • HttpPatch—Returns HTTP 200 on success or HTTP 204 if the response body or output class is empty.
  • HttpPost—Returns HTTP 201 on success or HTTP 204 if the response body or output class is empty. Exceptions are the batch posting resources and methods, which return HTTP 200 on success.
  • HttpPut—Return HTTP 200 on success or HTTP 204 if the response body or output class is empty.
28.0
richInput The input body for the request.

The type depends on the request specified in the url property.

This property is optional.

28.0
url String The Connect REST API resource to request. This value is called a subrequest.

The subrequest URL can start with:

  • /services/data/version, for example, /services/data/v67.0​​​/chatter/users/me.
  • /version, for example, /v67.0/chatter​​​/users/me. The version number must be less than or equal to the version of the request given to the /connect/batch request URL.

Additional information about subrequests:

  • The URL can include any query string parameters that the subrequest supports. The query string must be URL-encoded.
  • You can use parameters to filter response bodies.
  • You cannot apply headers at the subrequest level.
28.0