# UserUploadSettings model

How a user's uploads are handled: their share codes, visibility, compression, watermark, deletion and share links.

## Fields

| Field | Type | Present | Notes |
|---|---|---|---|
| `id` | `integer` |  |  |
| `shareCodeMode` | `enum` |  | One of `Alphanumeric`, `Letters`, `Lowercase`, `Numbers`, `Hexadecimal`, `Unambiguous`, `Emojis`, `Memorable`. |
| `shareCodeLength` | `integer` |  |  |
| `compressionQuality` | `integer` |  |  |
| `visibility` | `enum` |  | One of `Unlisted`, `Public`, `Private`. |
| `watermarkMode` | `enum` |  | The watermark the cdn draws on the user's pictures where others see them (the `treatment` of an image): `None` none, `Minimal` hematite's mark, `Medium` their own (`watermark`). `Full` was never offered and draws hematite's mark. One of `None`, `Minimal`, `Medium`, `Full`. |
| `watermark` | `object \| null` |  | The custom watermark, drawn while `watermarkMode` is `Medium` and kept while it isn't. Null until one is saved. |
| `watermark.text` | `string` |  | One line of at most 32 characters: letters (Latin scripts, Vietnamese), digits and common signs. Kept composed (NFC) and without spaces at its ends. 1 to 64 characters. |
| `watermark.position` | `enum` |  | Where it sits: a place of a 3 × 3 grid over the picture. One of `top-left`, `top`, `top-right`, `left`, `center`, `right`, `bottom-left`, `bottom`, `bottom-right`. |
| `watermark.size` | `enum` |  | How large, against the picture fitted into a 16:9 frame: its height, or its width × 9/16 when it's wider. One of `small`, `medium`, `large`. |
| `watermark.opacity` | `integer` |  | How opaque, in percent. 20 to 100. |
| `watermark.tone` | `enum` |  | Light text with a dark shadow, or dark text with a light one. One of `light`, `dark`. |
| `randomizeFilenames` | `boolean` |  |  |
| `autoDeleteAfter` | `integer \| null` |  |  |
| `shareUrlType` | `enum` |  | One of `Domain`, `PermanentCDN`. |
| `domainSubdomain` | `string` |  |  |
| `domainPath` | `string` |  |  |
| `embedStyleId` | `integer \| null` |  | The style the account's link previews follow (`GET /users/:userId/embed-styles`): a built-in, or the account's own. Null is hematite's default, the `hematite` built-in. |
| `updatedAt` | `date-time` |  |  |
| `embedStyle` | [`EmbedStyle`](https://hematite.gg/docs/developers/models/embed-style) |  | That style, whole: the built-in `hematite` while none is chosen. |

## Returned by

The endpoints whose `data` holds a UserUploadSettings as it is, and where.

- [`GET /users/:userId/upload-settings`](https://hematite.gg/docs/developers/reference/users#get-users-userid-upload-settings), in `data`
- [`PATCH /users/:userId/upload-settings`](https://hematite.gg/docs/developers/reference/users#patch-users-userid-upload-settings), in `data`

## Example

```json
{
  "id": 1,
  "shareCodeMode": "Alphanumeric",
  "shareCodeLength": 8,
  "compressionQuality": 85,
  "visibility": "Unlisted",
  "watermarkMode": "None",
  "watermark": {
    "text": "string",
    "position": "top-left",
    "size": "small",
    "opacity": 0,
    "tone": "light"
  },
  "randomizeFilenames": false,
  "autoDeleteAfter": null,
  "shareUrlType": "Domain",
  "domainSubdomain": "string",
  "domainPath": "string",
  "embedStyleId": 1,
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "embedStyle": {
    "id": 1,
    "key": "hematite",
    "name": "Ranked",
    "about": "string",
    "basedOn": "hematite",
    "version": 0,
    "author": "Uploader",
    "picture": "Large",
    "cropToCard": false,
    "colour": "Hematite",
    "colourHex": "string",
    "showTime": false,
    "motion": false,
    "title": "Clutch on Ascent",
    "description": "1v4 on the last round",
    "site": "Hematite",
    "siteText": "string"
  }
}
```
