Upload attachment
documentedUpload a file to attach to an entry (provides a token for later use).
POST /api/v2/attachments/uploadEntriesno implementation yet0 runsNo 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://api.capsulecrm.com/api/v2/attachments/upload" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: {{$mimeType}}" \
-H "Content-Length: {{CONTENT_LENGTH}}" \
-H "X-Attachment-Filename: {{$attachmentFilename}}" \
--data-binary @{{$attachmentPath}}