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

# タスク割り当て リソース

タスク割り当てでは、完了するためにどのタスクをどのユーザーに割り当てるかを定義します。

## タスク割り当て

タスク割り当てでは、完了するためにどのタスクをどのユーザーに割り当てるかを定義します。

<Accordion title="属性と例">
  | プロパティ              | 型                                                  | 必須  | 説明                                                                                                               |
  | ------------------ | -------------------------------------------------- | --- | ---------------------------------------------------------------------------------------------------------------- |
  | `id`               | `string`                                           | いいえ | このタスク割り当ての一意の識別子。                                                                                                |
  | `type`             | `enum<string>`                                     | いいえ | 値は常に`task_assignment`になります。 使用可能なオプション: `task_assignment`.                                                       |
  | `item`             | [ファイル (Mini)](/ja/reference/files-resources#-mini) | いいえ | タスクが割り当てられているファイル。                                                                                               |
  | `assigned_to`      | [ユーザー (Mini)](/ja/reference/users-resources#-mini) | いいえ | タスクが割り当てられているユーザー。                                                                                               |
  | `message`          | `string`                                           | いいえ | タスク割り当てに含められるメッセージ。これは、ウェブおよびモバイルUIで、タスクが割り当てられたユーザーに表示されます。                                                     |
  | `completed_at`     | `string`                                           | いいえ | このタスク割り当てが完了した日。タスクがまだ完了していない場合は`null`になります。                                                                     |
  | `assigned_at`      | `string`                                           | いいえ | このタスクがユーザーに割り当てられた日。                                                                                             |
  | `reminded_at`      | `string`                                           | いいえ | タスクが割り当てられたユーザーに、このタスク割り当てがリマインドされた日。                                                                            |
  | `resolution_state` | `enum<string>`                                     | いいえ | 割り当ての現在の状態。使用可能な状態は、タスクオブジェクトの`action`値によって異なります。 使用可能なオプション: `completed`, `incomplete`, `approved`, `rejected`. |
  | `assigned_by`      | [ユーザー (Mini)](/ja/reference/users-resources#-mini) | いいえ | このタスクを割り当てたユーザー。                                                                                                 |

  ```json 例 theme={null}
  {
    "id": "11446498",
    "type": "task_assignment",
    "item": {
      "id": "12345",
      "etag": "1",
      "type": "file",
      "sequence_id": "3",
      "name": "Contract.pdf",
      "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
      "file_version": {
        "id": "12345",
        "type": "file_version",
        "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
      }
    },
    "assigned_to": {
      "id": "11446498",
      "type": "user",
      "name": "Aaron Levie",
      "login": "ceo@example.com"
    },
    "message": "Please review",
    "completed_at": "2012-12-12T10:53:43-08:00",
    "assigned_at": "2012-12-12T10:53:43-08:00",
    "reminded_at": "2012-12-12T10:53:43-08:00",
    "resolution_state": "incomplete",
    "assigned_by": {
      "id": "11446498",
      "type": "user",
      "name": "Aaron Levie",
      "login": "ceo@example.com"
    }
  }
  ```
</Accordion>

## タスク割り当て

タスク割り当てのリスト。

<Accordion title="属性と例">
  | プロパティ         | 型                     | 必須  | 説明                |
  | ------------- | --------------------- | --- | ----------------- |
  | `total_count` | `integer`             | いいえ | このコレクション内の項目の合計数。 |
  | `entries`     | array of [タスク割り当て](#) | いいえ | タスク割り当てのリスト。      |

  ```json 例 theme={null}
  {
    "total_count": 100,
    "entries": [
      {
        "id": "11446498",
        "type": "task_assignment",
        "item": {
          "id": "12345",
          "etag": "1",
          "type": "file",
          "sequence_id": "3",
          "name": "Contract.pdf",
          "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
          "file_version": {
            "id": "12345",
            "type": "file_version",
            "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
          }
        },
        "assigned_to": {
          "id": "11446498",
          "type": "user",
          "name": "Aaron Levie",
          "login": "ceo@example.com"
        },
        "message": "Please review",
        "completed_at": "2012-12-12T10:53:43-08:00",
        "assigned_at": "2012-12-12T10:53:43-08:00",
        "reminded_at": "2012-12-12T10:53:43-08:00",
        "resolution_state": "incomplete",
        "assigned_by": {
          "id": "11446498",
          "type": "user",
          "name": "Aaron Levie",
          "login": "ceo@example.com"
        }
      }
    ]
  }
  ```
</Accordion>
