# 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.

```bash
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](../../reference/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](../../sites/access-control/) | `accessMode`: `public`, `password`, `email_gate`, or `email_protect`; include `password` or `allowedEmails` as required. |
| [Visitor comments](../../sites/comments/) | `comments` (Boolean) |
| [Link title and description](../../sites/metadata/) | `pageTitle` (up to 60 characters), `metaDescription` (up to 145) |
| [Promotional slide-in](../../sites/promotional-slide-in/) | `leadCapture` with `mode`, `title`, `description`, `ctaText`, `ctaLink` |
| [Remove custom images](../../sites/preview-images/) | `removeOgImage`, `removeLogo` (Booleans) |
| [Search indexing](../../sites/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](../../sites/settings/) for field eligibility, validation errors, and a response example.
