メインコンテンツへスキップ
APIバージョン 2024.0 タスクを使用すると、Boxでファイル中心のワークフローを実現できます。ユーザーはファイルに関連するタスクを作成し、タスクを完了するために他のユーザーに割り当てることができます。
id
string
11446498このタスクの一意の識別子。
type
string
task値は常にtaskになります。次の値に固定: task
action
string
reviewタスク担当者が実行するように求められるタスクのタイプ。次の値のいずれか1つ: review,complete
completion_rule
string
all_assigneesタスクが完了と見なされる前にそのタスクを完了する必要がある担当者を定義します。
  • all_assignees - タスクが完了と見なされるには、すべての担当者がそのタスクをレビューまたは承認する必要があります。
  • any_assignee - いずれか1人の担当者がタスクをレビューまたは承認すれば、タスクが完了と見なされます。
次の値のいずれか1つ: all_assignees,any_assignee
created_at
string(date-time)
2012-12-12T10:53:43-08:00タスクオブジェクトが作成された日時。
created_by
ユーザー (Mini)object
タスクを作成したユーザー。
due_at
string(date-time)
2012-12-12T10:53:43-08:00タスクの期限。
is_completed
boolean
trueタスクが完了しているかどうか。
item
ファイル (Mini)object
タスクに関連付けられたファイル。
message
string
Legal reviewタスクに含めるメッセージ。
task_assignment_collection
タスク割り当てobject
タスクに関連付けられたタスク割り当てオブジェクトのコレクション。
{
  "id": "11446498",
  "type": "task",
  "action": "review",
  "completion_rule": "all_assignees",
  "created_at": "2012-12-12T10:53:43-08:00",
  "created_by": {
    "id": "11446498",
    "type": "user",
    "login": "[email protected]",
    "name": "Aaron Levie"
  },
  "due_at": "2012-12-12T10:53:43-08:00",
  "is_completed": true,
  "item": {
    "id": "12345",
    "type": "file",
    "etag": "1",
    "file_version": {
      "id": "12345",
      "type": "file_version",
      "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
    },
    "name": "Contract.pdf",
    "sequence_id": "3",
    "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37"
  },
  "message": "Legal review",
  "task_assignment_collection": {
    "entries": [
      {
        "assigned_at": "2012-12-12T10:53:43-08:00",
        "assigned_by": {
          "id": "11446498",
          "type": "user",
          "login": "[email protected]",
          "name": "Aaron Levie"
        },
        "assigned_to": {
          "id": "11446498",
          "type": "user",
          "login": "[email protected]",
          "name": "Aaron Levie"
        },
        "completed_at": "2012-12-12T10:53:43-08:00",
        "id": "11446498",
        "item": {
          "etag": "1",
          "id": "12345",
          "type": "file",
          "file_version": {
            "id": "12345",
            "type": "file_version",
            "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
          },
          "name": "Contract.pdf",
          "sequence_id": "3",
          "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37"
        },
        "message": "Please review",
        "reminded_at": "2012-12-12T10:53:43-08:00",
        "resolution_state": "incomplete",
        "type": "task_assignment"
      }
    ],
    "total_count": 100
  }
}