> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# conversionPreset

> Gets one of the tenant's conversion presets by its global id. Fails with a top-level `NotFoundError` when the tenant has no preset with that id, or the preset is deleted.



**query** `conversionPreset(id: ID!): ConversionPreset!`

## Arguments

**`id`**: `ID!` (required)

Global id of the preset (`ConversionPreset.id`).

## Returns

`ConversionPreset!`

**`createdAt`**: `DateTime!`

When the preset was created. Creating a deleted preset again resets it.

---

**`displayName`**: `String!`

The preset's name: 2–50 printable ASCII characters, with no leading or trailing space.

---

**`id`**: `ID!`

Global id of the preset: base64 of `ConversionPreset:<raw id>`. `node`, `conversionPreset`, `updateConversionPreset`, `deleteConversionPreset` and the `preset` of `convertImage` take it. The raw id is `presetId`.

---

**`parameters`**: `ConversionParameters!`

The parameters the preset converts with.

---

**`presetId`**: `String!`

Raw id of the preset, as it was created (e.g. `thumb`). `assignConversionPreset` takes it, and a media file URL takes it with `version`: `?preset={presetId}&v={version}`.

---

**`updatedAt`**: `DateTime!`

When the preset was created or last updated.

---

**`version`**: `Int!`

Starts at 1 and goes up by one whenever the parameters change or a deleted preset is created again. A display name change keeps it.

## Examples

```graphql Query
query ConversionPreset($id: ID!) {
  conversionPreset(id: $id) {
    createdAt
    displayName
    id
    parameters {
      aspectRatio
      background
      mode
      outputFormat
      paddingPercent
      quality
    }
    presetId
    updatedAt
  }
}
```

```json Variables
{
  "id": "id"
}
```

```json Response
{
  "data": {
    "conversionPreset": {
      "createdAt": "value",
      "displayName": "string",
      "id": "id",
      "parameters": {
        "aspectRatio": "string",
        "background": "string",
        "mode": "FIT",
        "outputFormat": "JPG",
        "paddingPercent": 1,
        "quality": 1
      },
      "presetId": "string",
      "updatedAt": "value"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.