Skip to content

Document presigned PUT upload response on /attachments.create#31

Merged
tommoor merged 2 commits into
mainfrom
claude/affectionate-ride-cwccas
Jun 25, 2026
Merged

Document presigned PUT upload response on /attachments.create#31
tommoor merged 2 commits into
mainfrom
claude/affectionate-ride-cwccas

Conversation

@tommoor

@tommoor tommoor commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

Updates /attachments.create to reflect the new response shape introduced in outline/outline#12748, which adds support for presigned PUT uploads to S3-compatible providers (e.g. Cloudflare R2) that don't implement presigned POST.

The response now includes a mode field that switches the rest of the payload:

  • mode: "post" (default) — existing uploadUrl and form fields are returned.
  • mode: "put" — new url and headers fields are returned instead; the client performs a single PUT with those headers.

Only spec3.yml is updated; spec3.json is regenerated by the pre-commit hook on merge.

Test plan

  • YAML parses cleanly (python3 -c "import yaml; yaml.safe_load(open('spec3.yml'))")
  • Review the rendered diff at https://editor.swagger.io/ once merged

Generated by Claude Code

claude added 2 commits June 25, 2026 11:04
Reflects the new `mode` field and the alternate `url` / `headers`
response shape returned when AWS_S3_UPLOAD_METHOD is set to "put"
(outline/outline#12748).
@tommoor tommoor merged commit 7317417 into main Jun 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants