Prepare a form-element attachment upload
Prepare a 2-step upload for a form-element image (header_image or
wallpaper_image). Returns a one-time upload_id and an upload_url.
Send the file to upload_url with an HTTP PUT: the raw file bytes as the
request body and the Content-Type header set to the value you declared in
content_type (it must match). Use the upload_url exactly as returned.
Then reference the upload_id as header.images[].upload_id or
wallpaper.image.upload_id in a theme update — the theme update registers the
attachment and derives the palette. No PAT scope required.
Authorizations
Personal Access Token prefixed with fh_. Sent as Authorization: Bearer fh_xxx.
The scope required by each endpoint is listed in that endpoint's description.
Body
What this attachment is for. header_image is shown as the form's header image; wallpaper_image is a card-layout form background.
header_image, wallpaper_image Original file name (with extension).
"cover.png"
MIME type. Must be one of image/jpeg, image/png, image/webp, image/gif. Pinned into the upload URL — the PUT must send this exact Content-Type.
"image/png"
File size in bytes. Must be ≤ 5 MB.
123456
Response
Upload credentials issued
Prepare-step response for the 2-step form-element attachment upload. Send the file to upload_url with an HTTP PUT: the raw file bytes as the request body and the Content-Type header set to the value you declared in content_type (it must match). Use upload_url exactly as returned. Then reference the upload_id as header.images[].upload_id or wallpaper.image.upload_id in a theme update — the theme update registers the attachment.