Documentation
Documentation menu

Project settings

Set project access, comments, and link appearance when uploading files.

Send settings

Send settings as one JSON-encoded multipart text part on POST /v1/upload or PUT /v1/upload. For a new project, include content files. For an owned project, you can send a nonempty settings change or supported image part without content files; the existing content is preserved.

curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
  -H "x-api-key: $TIINY_API_KEY" \
  -F 'domain=example.tiiny.site' \
  --form-string 'settings={"comments":true,"pageTitle":"Quarterly report"}'

Use the exact owned hostname from Fetch profile. Omitted settings preserve existing values. If content files are included, they replace the hosted file set. Settings-only requests still pass applicable plan and quota checks. A missing or unowned project with no content files returns FILES_REQUIRED.

Available settings

Intent settings fields
Access control accessMode: public, password, email_gate, or email_protect; include password or allowedEmails as required.
Visitor comments comments (Boolean)
Link title and description pageTitle (up to 60 characters), metaDescription (up to 145)
Promotional slide-in leadCapture with mode, title, description, ctaText, ctaLink
Remove custom images removeOgImage, removeLogo (Booleans)
Search indexing disableIndexing (Boolean)

The API rejects unsupported fields.

Upload images

Multipart binary field Formats Limit
ogImageFile JPG, JPEG, PNG, GIF, WebP 300 KiB
logoImageFile JPG, JPEG, PNG, GIF, WebP 64 × 64 pixels

See the settings reference for field eligibility, validation errors, and a response example.

Search documentation