Sign in

Create file feed item

documented

Post a new file-related feed item.

POST /services/data/{version}/chatter/feeds/files/me/feed-itemsFeedsno 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}}.salesforce.com/services/data/v{{version}}/chatter/feeds/files/me/feed-items" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"body": {"messageSegments": [{"type": "Text", "text": "{{$text}}"}]}, "subjectId": "{{$subjectId}}", "capabilities": {"files": {"items": [{"id": "{{$file_id}}"}] } }, "feedElementType": "FeedItem" }'
Create file feed item · Salesforce Chatter · OpenIntegrations