Box Developerドキュメント
 
    最新バージョン

    タスクを取得

    get
    https://api.box.com/2.0
    /tasks/:task_id

    このエンドポイントはバージョン2024.0です。引き続き使用するために 変更は必要ありません。詳細については、 **Box APIのバージョン管理**を参照してください。

    特定のタスクに関する情報を取得します。

    リクエスト

    bearer [ACCESS_TOKEN]
    application/json

    パスパラメータ

    stringパス内必須
    12345

    タスクのID。

    レスポンス

    application/jsonTask

    タスクオブジェクトを返します。

    タスクが見つからなかった場合、またはタスクが割り当てられているファイルにユーザーがアクセスできない場合はエラーを返します。

    予期しないクライアントエラー。

    get
    タスクを取得
    このドキュメント内で一部のAPIを試せるようになりました。
    ログイン

    リクエストの例

    cURL
    curl -i -X GET "https://api.box.com/2.0/tasks/12345" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    レスポンスの例

    {
      "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": "ceo@example.com",
        "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": "ceo@example.com",
              "name": "Aaron Levie"
            },
            "assigned_to": {
              "id": "11446498",
              "type": "user",
              "login": "ceo@example.com",
              "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
      }
    }