Create attachment widget
documentedCreate a new Attachment widget and upload a file to a page.
POST /api/v1/page/{page_id}/attachment/create/Pagesno 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://{{$group_name}}.papyrs.com/api/v1/page/{{$page_id}}/attachment/create/?auth_token={{PAPYRS_API_KEY}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-F "file=@{{$attachment_file}}"