Unit Details
GET /portfolio/unit/{id}
Returns a unit profile with public images, hierarchy, research sections, and section counters.
Parameters
| Parameter | Type | Description |
|---|---|---|
id (path) |
string | Stored group ID, or 0 for the root group. |
apikey |
string | Portfolio API key, if configured; alternatively use X-API-Key. |
limit |
integer | Maximum list rows. Do not paginate this object response. |
offset |
integer | List rows to skip with limit. Defaults to 0; negative values become 0. |
Authentication, pagination, and error envelopes are described in Portfolio API Basics. Parameters such as json, filter, columns[], full, and aggregate are not supported unless listed here.
Example Request
1 | |
Example Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
The example uses illustrative values; the object is abbreviated. Optional stored or rendered fields may be omitted. For detail objects, response count usually counts top-level fields; see the basics.
Returned Fields
| Field | Description |
|---|---|
_id and other stored fields |
The underlying group document is retained except for head; _id remains Extended JSON. |
unit |
Resolved organizational unit-type object with bilingual name/name_de and head-role labels head/head_de. |
images |
Filtered public image metadata; see below. |
heads |
Visible head persons with id, stored display name, profile-image HTML img, position, and position_de. Absent when no head IDs are stored. |
parent_details, children |
Compact parent and visible child objects with id, bilingual names, level, and hide. Parent may be null. |
topics |
Active topic detail objects {id,name,name_de,color} when topic IDs were stored. |
research |
Research sections with bilingual headings/info and resolved activities. Activity html uses rendered.print here. |
numbers |
Section counters described below; includes distinct collaborator organizations, with no project-public filter for that collaborator count. |
spectrum |
Optional aggregated research spectrum when portfolio-spectrum is enabled. |
nav_topics, nav_units |
Topic navigation and flattened unit hierarchy. |
Response Behavior
0 resolves to the level-0 root group; normal IDs are matched against group id. This handler does not explicitly reject hidden or missing groups; a missing group can cause incomplete output or an unhandled error rather than a structured 404.
Public images entries contain id, filename, absolute url, nullable thumbnail_url, mime, size, width, height, bilingual caption/caption_de, taken_at, credits, public, uploaded_at, and order. Only records with public, file, and id are included. Images are sorted by order ascending, then upload timestamp descending.
nav_topics supplies the Portfolio topic list. nav_units is a flattened navigation hierarchy with id, parent, name, name_de, order, level, active, open, openable, and hide per row. Navigation is built from Portfolio's cached/fetched topic and unit data.
Counter definitions follow unit numbers, except that this profile omits memberships and cooperation, and adds collaborators.
When quality workflows are enabled, portfolio-workflow-visibility applies: all imposes no extra restriction; only-approved requires workflow.status=verified; approved-or-empty accepts verified records or records with no workflow/status. This is a configured restriction, not a request parameter.