Sign in

Batch subrequests

documented

Submit multiple subrequests in a single batch request.

POST /services/data/{version}/connect/batchConnectno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$INSTANCE_URL}}/services/data/v{{$version}}/connect/batch" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-Api-Key: {{CHATTER_API_KEY}}" \
  -H "X-Chat-Secret: {{CHATTER_SECRET}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "batchRequests": [
      {
        "method": "POST",
        "url": "/services/data/v{{$version}}/connect/feed-elements",
        "richInput": {
          "body": {"text": "{{$text}}"},
          "subjectId": "{{$subject_id}}",
          "feedElementType": "FeedItem"
        }
      },
      {
        "method": "GET",
        "url": "/services/data/v{{$version}}/limits"
      }
    ],
    "haltOnError": false
  }'
Batch subrequests · Salesforce Chatter · OpenIntegrations