Part3 Developers

Project holder interval aggregate

GET /organization/{orgId}/project/{projectId}/aggregates/holder-intervals

Measure how long a project's documents sit with each holder and party

GET
/organization/{orgId}/project/{projectId}/aggregates/holder-intervals
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
projectId*string

Query Parameters

population?string

Which spells to count: closed (ended, the default), open (still held; court time runs to today) or all.

Default"closed"
Value in"closed" | "open" | "all"
filter.party?string

Whose clock: a comma list; write a comma or a backslash inside a value as , or \. The party dimension in the list. Values: architect, owner, contractorOrConsultant.

Lengthlength <= 500
filter.holderKind?string

Holder kind: a comma list; write a comma or a backslash inside a value as , or \. Person, section or step. Values: person, section, step.

Lengthlength <= 500
filter.format?string

Format: a comma list; write a comma or a backslash inside a value as , or \. format in the list. Values: bulletin, certificate, change, instruction, quote, rfi, submittal.

Lengthlength <= 500
group?string

The first breakdown. One row per value, in the dimension's order.

Value in"holder" | "party" | "holderKind" | "format"
split?string

A second breakdown inside each group (a stacked bar). At most two of group, split and bucketDate.

Value in"holder" | "party" | "holderKind" | "format"
path?string

A flow, for a Sankey (P3-8551): 2 to 4 single-valued dimensions, comma separated, in stage order. The response carries flow (stages, nodes, links) and an empty rows. Not with group, split, bucketDate or order. Measures must add up (count, sum). top caps each stage with no fixed values (default 8). A row with no value at a stage leaves the flow there; includeNull makes that a None node instead.

Match^[A-Za-z]+(,[A-Za-z]+)*$
Lengthlength <= 200
bucketDate?string

A time axis: which date to bucket on (startedAt, endedAt). Every bucket in the window is returned, empty ones included. No bucket runs past today.

Value in"startedAt" | "endedAt"
bucketInterval?string

Bucket size. Most buckets per request: day 365, week 52, month 24, quarter 12.

Default"month"
Value in"day" | "week" | "month" | "quarter"
from?string

First day of the time axis, YYYY-MM-DD, in the response's zone. With bucketDate only. Default: 12 buckets ending with the current one; for dueDate, 12 buckets starting 3 before the current one.

Formatdate
to?string

Last day of the time axis, inclusive. With bucketDate only. Clamped to today for every date but dueDate.

Formatdate
includeNull?boolean

Adds a "No date" bucket or a "None" group for rows without a value (for holder, "Unidentified holder"; for party, "No party"; for startedAt, a spell open before recording began).

Defaultfalse
measure?string

1 to 4 measure tokens, comma separated, as fn[.field][:population]: count, countDistinct.document, sum.courtDays, median.courtDays, or one narrowed to a population such as count:open. A :population narrows that measure only.

Default"count"
Match^[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)?(:[a-zA-Z]+)?(,[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)?(:[a-zA-Z]+)?){0,3}$
Lengthlength <= 200
order?string

The group's order; needs group. Default: fixed where the dimension has a natural order (stage, due window), else value, largest first.

Value in"value" | "label" | "fixed"
top?integer

Keep the N largest groups by the first measure. Without top, a group with no fixed set of values (holder, project) keeps as many as fit the cell limit, at most 50, plus "Other". A top whose grid would pass the cell limit is a 400.

Range1 <= value <= 50
other?boolean

Fold the values cut by top, or by the default cap, into one "Other" value, so the totals still add up.

Defaulttrue
compare?string

Ball-in-court intervals take no compare: Holder history is recorded only from late 2026, too little to compare with an earlier period.

Value in"previous" | "week" | "month" | "quarter" | "year"
since?string

Ball-in-court intervals take no since: Holder history is recorded only from late 2026, too little to compare with an earlier period.

Formatdate
sinceDate?string

Ball-in-court intervals take no sinceDate: Holder history is recorded only from late 2026, too little to compare with an earlier period.

Value in"startedAt" | "endedAt"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.part3.io/v1/organization/string/project/string/aggregates/holder-intervals"
{
  "entity": "documents",
  "scope": {
    "orgId": "string",
    "projectId": "string",
    "projects": 0,
    "tz": "string"
  },
  "request": "string",
  "definition": {
    "rowUnit": "documents",
    "population": {
      "name": "string",
      "label": "string",
      "rule": "string"
    },
    "versions": "latest",
    "drafts": "exclude",
    "filters": [
      {
        "field": "string",
        "label": "string",
        "op": "in",
        "values": [
          "string"
        ]
      }
    ],
    "group": {
      "name": "string",
      "label": "string",
      "multiplicity": "one"
    },
    "split": {
      "name": "string",
      "label": "string",
      "multiplicity": "one"
    },
    "bucket": {
      "date": "string",
      "label": "string",
      "interval": "day",
      "from": "2019-08-24",
      "to": "2019-08-24"
    },
    "path": [
      {
        "name": "string",
        "label": "string"
      }
    ],
    "measures": [
      {
        "token": "string",
        "label": "string",
        "unit": "documents",
        "rule": "string",
        "compares": {
          "kind": "total",
          "steps": [
            "previous"
          ],
          "since": true,
          "sinceDate": "string",
          "why": "string"
        }
      }
    ],
    "text": "string"
  },
  "axes": {
    "group": [
      {
        "key": "string",
        "label": "string"
      }
    ],
    "split": [
      {
        "key": "string",
        "label": "string"
      }
    ],
    "bucket": [
      {
        "key": "string",
        "label": "string",
        "start": "2019-08-24",
        "end": "2019-08-24"
      }
    ]
  },
  "rows": [
    {
      "group": "string",
      "split": "string",
      "bucket": "string",
      "values": {
        "property1": 0,
        "property2": 0
      },
      "n": {
        "property1": 0,
        "property2": 0
      }
    }
  ],
  "flow": {
    "stages": [
      {
        "dimension": "string",
        "label": "string",
        "values": [
          {
            "key": "string",
            "label": "string"
          }
        ]
      }
    ],
    "nodes": [
      {
        "stage": 0,
        "key": "string",
        "values": {
          "property1": 0,
          "property2": 0
        },
        "n": {
          "property1": 0,
          "property2": 0
        }
      }
    ],
    "links": [
      {
        "from": {
          "stage": 0,
          "key": "string"
        },
        "to": {
          "stage": 0,
          "key": "string"
        },
        "values": {
          "property1": 0,
          "property2": 0
        },
        "n": {
          "property1": 0,
          "property2": 0
        }
      }
    ]
  },
  "totals": {
    "values": {
      "property1": 0,
      "property2": 0
    },
    "n": {
      "property1": 0,
      "property2": 0
    },
    "distinct": 0
  },
  "truncated": true,
  "comparison": {
    "asked": {
      "compare": "previous",
      "since": "2019-08-24",
      "sinceDate": "string"
    },
    "figures": [
      {
        "measure": "string",
        "kind": "total",
        "basis": "daysBefore",
        "date": "string",
        "current": {
          "from": "2019-08-24",
          "to": "2019-08-24",
          "value": 0,
          "n": 0
        },
        "earlier": {
          "from": "2019-08-24",
          "to": "2019-08-24",
          "value": 0,
          "n": 0
        },
        "change": 0,
        "changePercent": 0,
        "direction": "up",
        "reads": "better",
        "reason": "noRows",
        "text": "string"
      }
    ]
  },
  "generatedAt": "2019-08-24T14:15:22Z"
}
{
  "error": "Insufficient permissions"
}
{
  "error": "Insufficient permissions"
}
{
  "error": "Insufficient permissions"
}
{
  "error": "Insufficient permissions"
}
{
  "error": "Insufficient permissions"
}