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

# Box Doc Gen リソース

Doc Genは、ドキュメントを自動的に生成するために使用されます。

## Box Doc Genジョブ

Box Doc GenジョブのStandard版の表示。

<Accordion title="属性と例">
  | プロパティ | 型 | 必須 | 説明 |
  | - | - | - | - |
  | `id` | `string` | はい | Box Doc Genジョブを表す一意の識別子。 |
  | `type` | `enum<string>` | はい | 値は常に`docgen_job`になります。 使用可能なオプション: `docgen_job`. |
  | `batch` | [Box Doc Genのバッチ (Base)](#box-doc-gen-base) | はい | ジョブが属しているBox Doc Genのバッチ。 |
  | `template_file` | `ファイル参照` | はい | ジョブで使用されたBox Doc Genテンプレート。 |
  | `template_file_version` | `ファイルバージョン (Base)` | はい | テンプレートのファイルバージョン。 |
  | `output_file` | `ファイル参照` | いいえ | ジョブの出力ファイル。このプロパティは、ジョブが完了するまで`null`となります。 `null` を指定できます。 |
  | `output_file_version` | `ファイルバージョン (Base)` | いいえ | 出力ファイルのファイルバージョン。このプロパティは、ジョブが完了するまで`null`となります。 `null` を指定できます。 |
  | `status` | `enum<string>` | はい | ジョブのステータス。 使用可能なオプション: `submitted`, `completed`, `failed`, `completed_with_error`, `pending`. |
  | `output_type` | `string` | はい | 生成されたファイルの種類。 |
  | `failures` | `object` | いいえ | ドキュメント生成中に発生したエラーおよび警告。 `null` を指定できます。 |

  ```json 例 theme={null}
  {
    "id": "12345",
    "type": "docgen_job",
    "batch": {
      "id": "12345",
      "type": "docgen_batch"
    },
    "template_file": {
      "type": "file",
      "id": "42037322"
    },
    "template_file_version": {
      "id": "12345",
      "type": "file_version"
    },
    "output_file": {
      "type": "file",
      "id": "42037322"
    },
    "output_file_version": {
      "id": "12345",
      "type": "file_version"
    },
    "status": "completed",
    "output_type": "docx",
    "failures": {
      "errors": [
        "The tag 'customer_name' was not provided in the input data."
      ],
      "warnings": [
        "The tag 'optional_field' was provided but not used in the template."
      ]
    }
  }
  ```
</Accordion>

## Box Doc Genジョブ

標準のパラメータのセットを含むBox Doc Genジョブのリスト。

<Accordion title="属性と例">
  | プロパティ | 型 | 必須 | 説明 |
  | - | - | - | - |
  | `limit` | `integer` | いいえ | これらのエントリで使用された制限値。許容される最大値を超えていない限り、クエリパラメータの`limit`と等しくなります。最大値はAPIによって異なります。 |
  | `next_marker` | `string` | いいえ | 次の検索結果ページの開始場所のマーカー。 `null` を指定できます。 |
  | `prev_marker` | `string` | いいえ | 前の検索結果ページの開始場所のマーカー。 `null` を指定できます。 |
  | `entries` | array of [Box Doc Genジョブ](#box-doc-gen) | いいえ | ジョブのリスト。 |

  ```json 例 theme={null}
  {
    "limit": 1000,
    "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
    "prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih",
    "entries": [
      {
        "id": "12345",
        "type": "docgen_job",
        "batch": {
          "id": "12345",
          "type": "docgen_batch"
        },
        "template_file": {
          "type": "file",
          "id": "42037322"
        },
        "template_file_version": {
          "id": "12345",
          "type": "file_version"
        },
        "output_file": {
          "type": "file",
          "id": "42037322"
        },
        "output_file_version": {
          "id": "12345",
          "type": "file_version"
        },
        "status": "completed",
        "output_type": "docx",
        "failures": {
          "errors": [
            "The tag 'customer_name' was not provided in the input data."
          ],
          "warnings": [
            "The tag 'optional_field' was provided but not used in the template."
          ]
        }
      }
    ]
  }
  ```
</Accordion>

## Box Doc Genジョブ (Base)

Box Doc GenジョブのBase版の表示。

<Accordion title="属性と例">
  | プロパティ | 型 | 必須 | 説明 |
  | - | - | - | - |
  | `id` | `string` | はい | Box Doc Genジョブを表す一意の識別子。 |
  | `type` | `enum<string>` | はい | 値は常に`docgen_job`になります。 使用可能なオプション: `docgen_job`. |

  ```json 例 theme={null}
  {
    "id": "12345",
    "type": "docgen_job"
  }
  ```
</Accordion>

## Box Doc Genジョブ (Full)

Box Doc GenジョブのFull版の表示。

<Accordion title="属性と例">
  | プロパティ | 型 | 必須 | 説明 |
  | - | - | - | - |
  | `id` | `string` | はい | Box Doc Genジョブを表す一意の識別子。 |
  | `type` | `enum<string>` | はい | 値は常に`docgen_job`になります。 使用可能なオプション: `docgen_job`. |
  | `batch` | [Box Doc Genのバッチ (Base)](#box-doc-gen-base) | はい | ジョブが属しているBox Doc Genのバッチ。 |
  | `template_file` | `ファイル参照` | はい | ジョブで使用されたBox Doc Genテンプレート。 |
  | `template_file_version` | `ファイルバージョン (Base)` | はい | テンプレートのファイルバージョン。 |
  | `output_file` | `ファイル参照` | いいえ | ジョブの出力ファイル。このプロパティは、ジョブが完了するまで`null`となります。 `null` を指定できます。 |
  | `output_file_version` | `ファイルバージョン (Base)` | いいえ | 出力ファイルのファイルバージョン。このプロパティは、ジョブが完了するまで`null`となります。 `null` を指定できます。 |
  | `status` | `enum<string>` | はい | ジョブのステータス。 使用可能なオプション: `submitted`, `completed`, `failed`, `completed_with_error`, `pending`. |
  | `output_type` | `string` | はい | 生成されたファイルの種類。 |
  | `failures` | `object` | いいえ | ドキュメント生成中に発生したエラーおよび警告。 `null` を指定できます。 |
  | `created_at` | `string` | いいえ | ジョブの作成時刻。 読み取り専用。 |
  | `created_by` | `ユーザー (Base)` | はい | ジョブを作成したユーザー。 |
  | `enterprise` | `企業の参照` | はい | 企業のID。 |
  | `source` | `string` | はい | リクエストのソース。 読み取り専用。 |

  ```json 例 theme={null}
  {
    "id": "12345",
    "type": "docgen_job",
    "batch": {
      "id": "12345",
      "type": "docgen_batch"
    },
    "template_file": {
      "type": "file",
      "id": "42037322"
    },
    "template_file_version": {
      "id": "12345",
      "type": "file_version"
    },
    "output_file": {
      "type": "file",
      "id": "42037322"
    },
    "output_file_version": {
      "id": "12345",
      "type": "file_version"
    },
    "status": "completed",
    "output_type": "docx",
    "failures": {
      "errors": [
        "The tag 'customer_name' was not provided in the input data."
      ],
      "warnings": [
        "The tag 'optional_field' was provided but not used in the template."
      ]
    },
    "created_at": "2022-05-11T10:56:11-07:00",
    "created_by": {
      "id": "11446498",
      "type": "user"
    },
    "enterprise": {
      "id": "1910967",
      "type": "enterprise"
    },
    "source": "api"
  }
  ```
</Accordion>

## Box Doc Genジョブ (Full)

すべてのパラメータを含むBox Doc Genジョブのリスト。

<Accordion title="属性と例">
  | プロパティ | 型 | 必須 | 説明 |
  | - | - | - | - |
  | `limit` | `integer` | いいえ | これらのエントリで使用された制限値。許容される最大値を超えていない限り、クエリパラメータの`limit`と等しくなります。最大値はAPIによって異なります。 |
  | `next_marker` | `string` | いいえ | 次の検索結果ページの開始場所のマーカー。 `null` を指定できます。 |
  | `prev_marker` | `string` | いいえ | 前の検索結果ページの開始場所のマーカー。 `null` を指定できます。 |
  | `entries` | array of [Box Doc Genジョブ (Full)](#box-doc-gen-full) | いいえ | ジョブのリスト。 |

  ```json 例 theme={null}
  {
    "limit": 1000,
    "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
    "prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih",
    "entries": [
      {
        "id": "12345",
        "type": "docgen_job",
        "batch": {
          "id": "12345",
          "type": "docgen_batch"
        },
        "template_file": {
          "type": "file",
          "id": "42037322"
        },
        "template_file_version": {
          "id": "12345",
          "type": "file_version"
        },
        "output_file": {
          "type": "file",
          "id": "42037322"
        },
        "output_file_version": {
          "id": "12345",
          "type": "file_version"
        },
        "status": "completed",
        "output_type": "docx",
        "failures": {
          "errors": [
            "The tag 'customer_name' was not provided in the input data."
          ],
          "warnings": [
            "The tag 'optional_field' was provided but not used in the template."
          ]
        },
        "created_at": "2022-05-11T10:56:11-07:00",
        "created_by": {
          "id": "11446498",
          "type": "user"
        },
        "enterprise": {
          "id": "1910967",
          "type": "enterprise"
        },
        "source": "api"
      }
    ]
  }
  ```
</Accordion>

## Box Doc Genのバッチ (Base)

Box Doc GenバッチオブジェクトのBase版の表示。Box Doc Genのバッチには、1つ以上のBox Doc Genジョブが含まれています。

<Accordion title="属性と例">
  | プロパティ | 型 | 必須 | 説明 |
  | - | - | - | - |
  | `id` | `string` | はい | Box Doc Genのバッチを表す一意の識別子。 |
  | `type` | `enum<string>` | はい | 値は常に`docgen_batch`になります。 使用可能なオプション: `docgen_batch`. |

  ```json 例 theme={null}
  {
    "id": "12345",
    "type": "docgen_batch"
  }
  ```
</Accordion>
