Dette dokumentet beskriver REN Grøft API (modultype CABLESIMULATOR), som brukes til å opprette og
vedlikeholde grøftekonfigurasjoner i REN Grøft Design fra eksterne systemer.
Se REN Prosjekt API for det grunnleggende APIet, og Generelt for tilgang og autentisering.
| APIet er under aktiv utvikling og dokumentasjonen kan endres. Se API Browser for oppdatert informasjon. |
| Dette dokumentet er avgrenset til dagens POC: opprette/slette delstrekning og legge til/slette kabel. APIet dekker også rør, jordledere, sensorer, kulverter, rørgrupper, kanalsystemer, grøftedeler, toppdekke, omgivelse og innstillinger - se den genererte referansen nederst på siden, eller API Browser, for disse. |
Oppbygging
En delstrekning (trenchSegment, segmentId) er toppnivå-ressursen: ett grøftestrekk med
navn og lengde. Den har alltid minst én grøftedel (section, sectionId) og ett nivå
(layer, layerId) som kabler plasseres i - begge opprettes automatisk sammen med delstrekningen.
En kabel (cable, cableId) identifiseres med typeId fra katalogen. sectionId/layerId
kan utelates ved opprettelse - serveren bruker da første grøftedel og underste nivå.
Base path
Alle kall krever headerne api-version: 1.0 og Authorization: Bearer <token>.
Aktivering av grøftemodul
CABLESIMULATOR-modulen aktiveres via REN Prosjekt API
(addModule). Kun liste (List trench segments in a project) og opprette (Create a new trench segment) sjekker dette, og svarer
409 Conflict hvis modulen ikke er aktivert.
Eksempler: delstrekning og kabel
1. Opprett delstrekning
POST /segments/by-projectid/12345 HTTP/1.1
api-version: 1.0
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "FV-HG-001",
"length": 324
}
Svaret inneholder id (brukes som segmentId) og den automatisk opprettede grøftedelen/nivået
- ta vare på disse IDene:
{
"id": 98765,
"name": "FV-HG-001",
"length": 324.0,
"sections": [
{
"id": "a3f2c1d0-8e4b-4f12-b7c3-d5e6f789abcd",
"layers": [
{ "id": "b4e7d9f2-1c3a-4d56-8e7f-90a1b2c3d4e5", "cables": [] }
]
}
]
}
2. Slå opp kabeltype
GET /catalog/cable-types?category=MV&componentSetScope=REN HTTP/1.1
api-version: 1.0
Authorization: Bearer <token>
[
{ "id": 1042, "name": "XLPE 240 mm² Al 12 kV", "voltageCategory": "MV" }
]
3. Legg til kabel
POST /segments/98765/trench/cables HTTP/1.1
api-version: 1.0
Authorization: Bearer <token>
Content-Type: application/json
{
"typeId": 1042
}
4. Slett kabel
Ingen PUT for kabel - for å endre en kabel, slett og legg til på nytt.
DELETE /segments/98765/trench/cables/c5f8e1a3-... HTTP/1.1
api-version: 1.0
Authorization: Bearer <token>
| Å slette én leder i en kabelgruppe sletter hele gruppen. |
5. Slett delstrekning
Sletter delstrekningen og all underliggende grøftedata.
DELETE /segments/98765 HTTP/1.1
api-version: 1.0
Authorization: Bearer <token>
Statuskoder
| Kode | Betydning |
|---|---|
|
Ugyldig kropp, manglende felt, felt over makslengde, eller manglende |
|
Manglende eller utløpt bearer-token. |
|
Manglende rolle, eller - for en kjent |
|
Ressursen finnes ikke: |
|
På List trench segments in a project/Create a new trench segment: prosjektet finnes ikke, er utilgjengelig, eller mangler CABLESIMULATOR-modulen. På item-/grøftedel-endepunkter: samtidig endring (optimistisk låsing), eller forsøk på å slette siste grøftedel. |
|
Generisk serverfeil. Kontakt REN IT hvis den vedvarer. |
Strengfelter er begrenset til 255 tegn (1000 for description); brudd gir 400.
Full referanse
Den genererte referansen under dekker alle endepunkter i APIet - inkludert rør, jordledere (ECC), sensorer, kulverter, rørgrupper, kanalsystemer, lag, grøftedeler, toppdekke, omgivelse og innstillinger - som ikke inngår i dagens POC. Kan også utforskes interaktivt i API Browser.
Resources
Trench Design Catalog
List cable types available in Trench Design
GET /catalog/cable-types
Description
Returns cable types available to the authenticated user (market access). Use componentSetScope to filter by ownership: REN for the official REN standard catalog, COMPANY for cables added by the authenticated company, USER for cables added by the authenticated user. Omit to return all accessible cable types regardless of ownership.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
category |
Filter by cable category (ELV, LV, MV, HV, EHV, DC). Omit for all categories. |
string |
Query |
componentSetScope |
Filter by component set ownership scope (REN, COMPANY, USER). REN = official REN catalog, COMPANY = company-specific, USER = user-specific. |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Cable types accessible to the authenticated user |
< CableType > array |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
|
oauth2 |
tb.bruker |
Get a cable type by REN internal ID
GET /catalog/cable-types/{cableTypeId}
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
cableTypeId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The cable type |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
|
oauth2 |
tb.bruker |
List ECC types (Earth Continuity Conductors) available in Trench Design
GET /catalog/ecc-types
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
ECC types accessible to the authenticated user |
< EccType > array |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
|
oauth2 |
tb.bruker |
Get an ECC type by REN internal ID
GET /catalog/ecc-types/{eccTypeId}
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
eccTypeId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The ECC type |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
|
oauth2 |
tb.bruker |
List pipe types available in Trench Design
GET /catalog/pipe-types
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Pipe types accessible to the authenticated user |
< PipeType > array |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
|
oauth2 |
tb.bruker |
Trench Segment Items
Add a cable to a trench segment
POST /segments/{segmentId}/trench/cables
Description
Placed in the layer specified by layerId in the payload, or in the first (bottom) layer of the section specified by sectionId, or in the first section if both are omitted. Returns the cable with server-generated ID. Rejected with 400 if the cable type is not compatible with the trench design module (see CableType.cablesimulatorCompatible in the catalog).
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created cable with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add multiple identical power cables to a trench segment in one call
POST /segments/{segmentId}/trench/cables/batch
Description
Creates count independent cables of the same type/configuration/placement in a single internal write, instead of one addCable call per cable - use this when adding many cables at once (e.g. populating a large trench) to avoid one HTTP round-trip per cable. Placement (sectionId/layerId) works exactly like addCable. Returns all created cables with server-generated IDs. Rejected with 400 if the cable type is not compatible with the trench design module (see CableType.cablesimulatorCompatible in the catalog).
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created cables with server-generated IDs |
< Cable > array |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of a cable or cable group
GET /segments/{segmentId}/trench/cables/{cableId}
Description
Returns full placement properties for the specified cable or cable group, including computed layout values (clearOpeningLeft, clearOpeningRight, groundDist) and the catalog type name (typeName). Use the cable id from GET /segments/{segmentId}.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
cableId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The cable |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Delete a cable from a trench segment
DELETE /segments/{segmentId}/trench/cables/{cableId}
Description
Deleting one conductor of a cable group deletes the whole group.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
cableId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
204 |
The cable was deleted |
No Content |
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add a culvert (norsk: betongkanal / kulvert) to a trench segment
POST /segments/{segmentId}/trench/culverts
Description
Cables can be pre-placed inside the culvert by including them in the request body. Returns the culvert with server-generated ID. Rejected with 400 if any pre-placed cable’s type is not compatible with the trench design module (see CableType.cablesimulatorCompatible in the catalog).
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created culvert with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of a culvert (norsk: betongkanal / kulvert)
GET /segments/{segmentId}/trench/culverts/{culvertId}
Description
Returns dimensions, placement and read-only layout values for the specified culvert.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
culvertId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The culvert |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add an ECC (Earth Continuity Conductor) to a trench segment
POST /segments/{segmentId}/trench/eccs
Description
typeId can be omitted - the server uses the default ECC type. Returns the ECC with server-generated ID.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created ECC with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of an ECC (earth continuity conductor)
GET /segments/{segmentId}/trench/eccs/{eccId}
Description
Returns full placement properties for the specified ECC, including computed layout values (clearOpeningLeft, clearOpeningRight, groundDist) and the catalog type name (typeName). Use the ECC id from GET /segments/{segmentId}.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
eccId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The ECC |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add an ecom duct (norsk: ekomkanal) to a trench segment
POST /segments/{segmentId}/trench/ecom-ducts
Description
Adds a telecom duct directly on a layer, or - via pipeId - inside an existing conduit pipe. A pipe only accepts ecom ducts (and sensors) inside it if it has pipeCategory=ECOM (see POST /pipes); rejected with 409 otherwise. Returns the ecom duct with server-generated ID.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created ecom duct with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of an ecom duct (norsk: ekomkanal)
GET /segments/{segmentId}/trench/ecom-ducts/{ductId}
Description
Returns placement properties and read-only layout values for the specified ecom duct.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
ductId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The ecom duct |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add a layer to a trench segment
POST /segments/{segmentId}/trench/layers
Description
Adds a new layer (norsk: niva) to the section identified by sectionId in the request body, or the first section in the segment if sectionId is omitted. Returns the layer with server-generated ID. Use the returned id as layerId when adding cables, pipes or ECCs to this layer.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created layer with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Update spacing properties of a layer
PUT /segments/{segmentId}/trench/layers/{layerId}
Description
Updates protectionLayerThickness, leftBorderAdjustment and/or rightBorderAdjustment. Only non-null fields in the request body are applied. Returns the updated layer.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
layerId |
string |
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The updated layer |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add a pipe canal system (norsk: kanalsystem) to a trench segment
POST /segments/{segmentId}/trench/pipe-canals
Description
Returns the pipe canal with server-generated ID.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created pipe canal with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of a pipe canal system (norsk: kanalsystem)
GET /segments/{segmentId}/trench/pipe-canals/{canalId}
Description
Returns channel count, placement and read-only layout values.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
canalId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The pipe canal |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add a pipe group (norsk: rorgruppe) to a trench segment
POST /segments/{segmentId}/trench/pipe-groups
Description
Creates a group of identical conduit pipes in a defined arrangement (DOUBLE, TRIANGLE, TRIPPLE_FLAT). Returns the pipe group with server-generated ID.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created pipe group with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of a pipe group (norsk: rorgruppe)
GET /segments/{segmentId}/trench/pipe-groups/{groupId}
Description
Returns configuration, pipe type, placement and read-only layout values.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
groupId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The pipe group |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add a pipe to a trench segment
POST /segments/{segmentId}/trench/pipes
Description
Cables can be pre-placed inside the pipe by including them in the request body - except for pipeCategory=ECOM, which only accepts ecom ducts and sensors inside it (see POST /ecom-ducts) and rejects pre-placed cables with 409. Returns the pipe with server-generated ID. Rejected with 400 if any pre-placed cable’s type is not compatible with the trench design module (see CableType.cablesimulatorCompatible in the catalog).
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created pipe with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of a conduit pipe
GET /segments/{segmentId}/trench/pipes/{pipeId}
Description
Returns full placement properties for the specified pipe or pipe group, including computed layout values (clearOpeningLeft, clearOpeningRight, depth) and the catalog type name (typeName). Use the pipe id from GET /segments/{segmentId}.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
pipeId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The pipe |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add a sensor to a trench segment
POST /segments/{segmentId}/trench/sensors
Description
Returns the sensor with server-generated ID.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created sensor with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get detailed properties of a sensor
GET /segments/{segmentId}/trench/sensors/{sensorId}
Description
Returns placement properties and read-only layout values for the specified sensor.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Path |
sensorId |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The sensor |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Trench Segment Structure
Add a section to a trench segment
POST /segments/{segmentId}/trench/sections
Description
Adds a new cross-section (norsk: grøftedel/tverrsnitt) to the segment. The server assigns a UUID and populates geometry defaults. Use beforeSectionId to insert before an existing section; omit to append at the end.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created section with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Update a section’s geometry properties
PUT /segments/{segmentId}/trench/sections/{sectionId}
Description
Updates the geometry of an existing section. Include only the fields to change. Omitted fields are left unchanged.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
sectionId |
string |
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The updated section |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Delete a section from a trench segment
DELETE /segments/{segmentId}/trench/sections/{sectionId}
Description
Deletes the section and all items (cables, pipes, ECCs) it contains. At least one section must remain; attempting to delete the last section returns 409.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
sectionId |
string |
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
204 |
The section was deleted |
No Content |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get segment-level trench settings
GET /segments/{segmentId}/trench/settings
Description
Returns the settings from the Innstillinger tab: snap distance, automatic protection markers, label length, etc.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The trench settings |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Update segment-level trench settings
PUT /segments/{segmentId}/trench/settings
Description
Patches the trench settings. Include only the fields to change.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The updated trench settings |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get surroundings settings
GET /segments/{segmentId}/trench/surroundings
Description
Returns the terrain type and default soil thermal resistivity from the Omgivelse tab.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The surroundings settings |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Add a top covering to a segment
POST /segments/{segmentId}/trench/top-coverings
Description
Appends a new top covering (norsk: nytt toppdekke) to the segment. Defaults are applied for omitted fields. Returns the created covering with its server-assigned ID.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created top covering with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
List top coverings for a segment
GET /segments/{segmentId}/trench/top-coverings
Description
Returns all top coverings (norsk: toppdekke) defined for the segment, in display order from bottom to top.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The top coverings of the segment |
< TopCovering > array |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Update a top covering
PUT /segments/{segmentId}/trench/top-coverings/{topCoveringId}
Description
Patches the top covering with the given ID. Include only the fields to change.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Path |
topCoveringId |
string |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The updated top covering |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Delete a top covering
DELETE /segments/{segmentId}/trench/top-coverings/{topCoveringId}
Description
Removes the top covering with the given ID from the segment.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Path |
topCoveringId |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
204 |
The top covering was deleted |
No Content |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Trench Segments
Create a new trench segment
POST /segments/by-projectid/{projectId}
Description
Returns the segment with server-generated internal ID. name is limited to 255 characters, description to 1000 characters.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
projectId |
Project ID |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The created segment with server-generated ID |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
List trench segments in a project
GET /segments/by-projectid/{projectId}
Description
Returns segment metadata only (id, name, description, length) - not the trench configuration (sections). Fetch a specific segment by id (GET /segments/{segmentId}) for its full trench configuration.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
projectId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Segment metadata in the project |
< TrenchSegment > array |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Get a trench segment with full trench configuration
GET /segments/{segmentId}
Description
segmentId is the unique internal ID (primary key).
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
segmentId |
Segment ID |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The segment |
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Update trench segment metadata
PUT /segments/{segmentId}
Description
Updates name, description and length. Behaves as a partial update: fields omitted (null) are retained unchanged, so fields cannot be cleared to null. Trench configuration (sections) is modified via the item endpoints, not here. segmentId is the unique internal ID.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Body |
body |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The updated segment |
Consumes
-
application/json;charset=utf-8
Produces
-
application/json;charset=utf-8
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Delete a trench segment and all its trench data
DELETE /segments/{segmentId}
Description
Returns 404 if the segment does not exist.
Parameters
| Type | Name | Schema |
|---|---|---|
Path |
segmentId |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
204 |
The segment and its trench data were deleted |
No Content |
Security
| Type | Name | Scopes |
|---|---|---|
oauth2 |
tb.bruker |
Definitions
AddCable
Request body for adding a power cable to a trench section. Server-assigned fields are returned in the response.
| Name | Description | Schema |
|---|---|---|
groupConfiguration |
Physical layout of single-core conductors in the trench, describing how many conductors form this group and how they are arranged (e.g. SINGLE: a lone conductor; TRIANGLE: three in a trefoil). Not related to the cable type’s own conductor count. Omit to let the server pick a market-based default (typically three conductors in a trefoil). |
enum (FLAT, TRIANGLE, TRIANGLE_MIRROR, TRIANGLE_PLUS_ONE, ONE_PLUS_TRIANGLE, SINGLE, PAIR, PAIR_MIRROR, CIRCLE, SQUARE, CUSTOM, FIXED) |
layerId |
Id of the layer to place the cable in. Defaults to the first (bottom) layer of the resolved section if omitted. Not applicable for cables inside a pipe. |
string |
sectionId |
Id of the trench cross-section to place the cable in. Defaults to the first section if omitted. Not applicable for cables inside a pipe. |
string |
typeId |
Cable type id from the catalog. |
integer (int64) |
AddCableBatch
Request body for adding several identical power cables to a trench section in one call.
| Name | Description | Schema |
|---|---|---|
count |
Number of independent cables to create with this type/configuration/placement. |
integer (int32) |
groupConfiguration |
Physical layout of single-core conductors in the trench. See AddCable.groupConfiguration for details. Applied identically to every created cable. |
enum (FLAT, TRIANGLE, TRIANGLE_MIRROR, TRIANGLE_PLUS_ONE, ONE_PLUS_TRIANGLE, SINGLE, PAIR, PAIR_MIRROR, CIRCLE, SQUARE, CUSTOM, FIXED) |
layerId |
Id of the layer to place the cables in. Defaults to the first (bottom) layer of the resolved section if omitted. |
string |
sectionId |
Id of the trench cross-section to place the cables in. Defaults to the first section if omitted. |
string |
typeId |
Cable type id from the catalog. |
integer (int64) |
AddCulvert
Request body for adding a culvert to a trench section, optionally with cables pre-placed inside it.
| Name | Description | Schema |
|---|---|---|
cables |
Cables to pre-place inside the culvert on creation. Max 50 per request. |
< AddCable > array |
height |
Inner height of the culvert in mm. Omit to use the server default. |
number (double) |
layerId |
Id of the layer to place the culvert in. Defaults to the first (bottom) layer of the first section if omitted. |
string |
width |
Inner width of the culvert in mm. Omit to use the server default. |
number (double) |
AddEcc
Request body for adding an earth continuity conductor (ECC) to a trench section.
| Name | Description | Schema |
|---|---|---|
layerId |
Id of the layer to place the ECC in. Defaults to the first (bottom) layer of the first section if omitted. |
string |
typeId |
ECC type id from the catalog. Omit to use the default ECC type. |
integer (int64) |
AddEcomDuct
Request body for adding an ecom duct to a trench section.
| Name | Description | Schema |
|---|---|---|
layerId |
Id of the layer to place the ecom duct in. Defaults to the first (bottom) layer of the first section if omitted. Ignored if pipeId is set. |
string |
outerDiameter |
Outer diameter of the ecom duct in mm. Omit to use the server default. |
number (double) |
pipeId |
Id of an existing conduit pipe to place this ecom duct inside, instead of directly on a layer. The pipe must have pipeCategory=ECOM - an ecom-category pipe only accepts ecom ducts and sensors, never power cables. Omit to place directly on a layer instead. |
string |
AddLayer
Request body for adding a layer to a trench section. After adding the layer, use its returned id as layerId when adding cables, pipes or ECCs to place items in this specific layer.
| Name | Description | Schema |
|---|---|---|
beforeLayerId |
Insert the new layer before the layer with this id. Omit to append the layer at the end (top) of the section. |
string |
protectionLayerThickness |
Thickness in mm of the protection material placed above this layer. Omit to use the server default. |
number (double) |
sectionId |
Id of the trench cross-section to add the layer to. Omit to use the first section in the segment. |
string |
AddPipe
Request body for adding a conduit pipe to a trench section, optionally with cables pre-placed inside it. Server-assigned fields are returned in the response.
| Name | Description | Schema |
|---|---|---|
cables |
Cables to pre-place inside the pipe on creation. Max 50 per request. |
< AddCable > array |
layerId |
Id of the layer to place the pipe in. Defaults to the first (bottom) layer of the first section if omitted. |
string |
pipeCategory |
Pipe category. CONTAINER (default): cable conduit. ECOM: telecommunications conduit. WATER: water pipe. SEWER: sewer pipe. HEAT: district heating pipe. GAS: gas pipe. |
enum (CONTAINER, ECOM, WATER, SEWER, HEAT, GAS) |
typeId |
Pipe type id from the catalog. Omit to let the server pick a default based on pipeCategory. |
integer (int64) |
AddPipeCanal
Request body for adding a pipe canal system to a trench section.
| Name | Description | Schema |
|---|---|---|
layerId |
Id of the layer to place the pipe canal in. Defaults to the first (bottom) layer of the first section if omitted. |
string |
partCount |
Number of cable channels inside the pipe canal. Required. |
integer (int32) |
AddPipeGroup
Request body for adding a pipe group to a trench section. A pipe group arranges multiple pipes of the same type together.
| Name | Description | Schema |
|---|---|---|
configuration |
Physical arrangement of the pipes. DOUBLE: two side by side. TRIANGLE: three in a triangle. TRIPPLE_FLAT: three in a flat row. Required. |
enum (SINGLE, DOUBLE, TRIANGLE, TRIPPLE_FLAT) |
layerId |
Id of the layer to place the pipe group in. Defaults to the first (bottom) layer of the first section if omitted. |
string |
pipeCategory |
Pipe category for all pipes in the group. CONTAINER (default): cable conduit. |
enum (CONTAINER, ECOM, WATER, SEWER, HEAT, GAS) |
typeId |
Pipe type id from the catalog. Omit to let the server pick a default based on pipeCategory. |
integer (int64) |
AddSensor
Request body for adding a sensor to a trench section.
| Name | Description | Schema |
|---|---|---|
layerId |
Id of the layer to place the sensor in. Defaults to the first (bottom) layer of the first section if omitted. |
string |
outerDiameter |
Outer diameter of the sensor in mm. Omit to use the server default. |
number (double) |
AddTopCovering
Properties for a new top covering. Defaults are applied by the server for omitted fields.
| Name | Description | Schema |
|---|---|---|
description |
User-defined description. Maximum 1000 characters. |
string |
infinite |
Whether the covering extends infinitely in width. Defaults to true if omitted. |
boolean |
thermalResistivity |
Thermal resistivity in mK/W. Defaults to 1.0 mK/W if omitted. |
number (double) |
thickness |
Thickness in mm. Defaults to 100 mm if omitted. |
number (double) |
type |
Material type. Defaults to OTHER if omitted. |
enum (TARMAC, CONCRETE, COBBLESTONE, GRAVEL, CRUSHED_STONES, SAND, OTHER) |
Cable
A power cable placed directly in a trench cross-section or inside a conduit pipe.
| Name | Description | Schema |
|---|---|---|
cableCategory |
Voltage and current category of the cable. Read-only, derived from the cable type on creation. |
enum (ELV, LV, MV, HV, EHV, DC) |
displayName |
Human-readable display name for this cable, computed by the server and localised to the authenticated user’s language (e.g. "3x240 XLPE Cu/Al 12/20 kV"). Suitable for use in UI labels and export files without additional catalog lookups. |
string |
groupConfiguration |
Physical layout of the conductors. SINGLE: one single-core cable acting as one conductor. PAIR: two single-core cables. TRIANGLE: three single-core cables in trefoil arrangement. FLAT: three or more cables side by side. CUSTOM: user-defined layout. Omit to let the server derive the layout from the cable type’s conductor count. |
enum (FLAT, TRIANGLE, TRIANGLE_MIRROR, TRIANGLE_PLUS_ONE, ONE_PLUS_TRIANGLE, SINGLE, PAIR, PAIR_MIRROR, CIRCLE, SQUARE, CUSTOM, FIXED) |
id |
Unique server-assigned id of this cable object (String UUID). Use this id as a reference in fine-grained operations on the cable. |
string |
label |
Identification label shown in the trench diagram, e.g. K1, K2. Null means automatic labeling. |
string |
sectionId |
Id of the trench cross-section this cable is placed in. Used in fine-grained write operations; defaults to the first section. |
string |
typeId |
Cable type id from the catalog. |
integer (int64) |
CableBand
A cable band - a physical strap used to group or separate cables within a trench cross-section.
| Name | Description | Schema |
|---|---|---|
id |
Unique server-assigned id of this cable band (String UUID). |
string |
CableDetail
Detailed placement properties for a cable. Includes editable fields and read-only layout-computed values.
| Name | Description | Schema |
|---|---|---|
clearOpeningLeft |
Computed clear opening to the left neighbour, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
groundDist |
Computed distance from the cable centre to ground level, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
groupConfiguration |
Physical layout of the conductors. Only set for single-core cable groups. |
enum (FLAT, TRIANGLE, TRIANGLE_MIRROR, TRIANGLE_PLUS_ONE, ONE_PLUS_TRIANGLE, SINGLE, PAIR, PAIR_MIRROR, CIRCLE, SQUARE, CUSTOM, FIXED) |
id |
Unique server-assigned id of the cable object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm. |
number (double) |
partCount |
Number of single-core conductors in the group. |
integer (int32) |
positioning |
Horizontal positioning strategy. |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
typeId |
Cable type id from the catalog. |
integer (int64) |
typeName |
Cable type name from the catalog, e.g. "AXLJ-TT 12kV3x50/15AL". Read-only. |
string |
userLabel |
Operational label shown in the trench diagram. |
string |
xadjustment |
number (double) |
|
yadjustment |
number (double) |
CableType
A cable type available in the REN catalog. Use the id as typeId when adding cables to a trench segment.
| Name | Description | Schema |
|---|---|---|
cablesimulatorCompatible |
True if this cable type has a complete trench layout configuration and can be used in thermal load calculations. |
boolean |
conductorArea |
Conductor cross-section in mm². |
number (double) |
conductorCount |
Number of conductors. 1 = single-core, 3+ = multi-core. |
integer (int32) |
docCount |
Number of attached technical documents. |
integer (int32) |
generic |
True if this is a generic type not tied to a specific manufacturer. Generic types are used when the exact product is unknown. |
boolean |
id |
Unique catalog id. Use this as typeId when adding cables to a trench segment. |
integer (int64) |
isolationLevel |
Insulation voltage level in kV. |
number (double) |
name |
Display name of the cable type. |
string |
outerDiameter |
Outer diameter in mm. |
number (double) |
voltageCategory |
Voltage category of the cable. |
enum (ELV, LV, MV, HV, EHV) |
CreateSection
Parameters for adding a new section to a trench segment. All fields are optional.
| Name | Description | Schema |
|---|---|---|
beforeSectionId |
If provided, the new section is inserted before this section. If omitted, the section is appended at the end of the segment. |
string |
CreateTrenchSegment
Request body for creating a trench segment. Server-assigned fields are returned in the response.
| Name | Description | Schema |
|---|---|---|
description |
Optional description. Maximum 1000 characters. |
string |
length |
Segment length in meters. |
number (double) |
name |
Name of the trench segment. Maximum 255 characters. |
string |
Culvert
A culvert placed in a trench cross-section.
| Name | Description | Schema |
|---|---|---|
cables |
Power cables placed inside this culvert. |
< Cable > array |
clearOpeningLeft |
Computed clear opening to the left neighbour in mm. Read-only. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour in mm. Read-only. |
number (double) |
depth |
Cover depth (norsk: overdekningsdybde) in mm: vertical distance from ground level to the top of this culvert. Computed by the server. Read-only. |
number (double) |
displayName |
Human-readable display name computed by the server. |
string |
height |
Inner height of the culvert in mm. |
number (double) |
id |
Unique server-assigned id of the culvert object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm (norsk: avstandskrav). |
number (double) |
positioning |
Horizontal positioning strategy (norsk: plassering). |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
width |
Inner width of the culvert in mm. |
number (double) |
xAdjustment |
number (double) |
|
yAdjustment |
number (double) |
Ecc
An earth continuity conductor (ECC) in a trench section. Installed alongside power cables to provide a continuous earthing path along the cable route.
| Name | Description | Schema |
|---|---|---|
displayName |
Human-readable display name for this ECC, computed by the server and localised to the authenticated user’s language (e.g. "Cu 35 mm²"). Suitable for use in UI labels and export files without additional catalog lookups. |
string |
id |
Unique server-assigned id of this ECC object (String UUID). |
string |
typeId |
ECC type id from the catalog. Omit to use the default ECC type. |
integer (int64) |
EccDetail
Detailed placement properties for an ECC (earth continuity conductor). Includes editable fields and read-only layout-computed values.
| Name | Description | Schema |
|---|---|---|
clearOpeningLeft |
Computed clear opening to the left neighbour, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
displayName |
Human-readable display name for this ECC, computed by the server and localised to the authenticated user’s language (e.g. "Cu 35 mm2"). Suitable for use in UI labels and export files. |
string |
groundDist |
Computed distance from the ECC centre to ground level, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
id |
Unique server-assigned id of the ECC object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm. |
number (double) |
positioning |
Horizontal positioning strategy. |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
typeId |
ECC type id from the catalog. |
integer (int64) |
typeName |
ECC type name from the catalog, e.g. "Cu 35 mm2". Read-only. |
string |
xAdjustment |
number (double) |
|
yAdjustment |
number (double) |
EccType
An earth continuity conductor (ECC) type. Use the id as typeId when adding an ECC to a trench section.
| Name | Description | Schema |
|---|---|---|
area |
Conductor cross-section in mm². |
number (double) |
id |
Unique catalog id. Use this as typeId when adding an ECC to a trench section. |
integer (int64) |
name |
Display name of the ECC type. |
string |
radius |
Conductor radius in mm. |
number (double) |
EcomDuct
An ecom duct placed directly in a trench cross-section. Distinct from a telecom conduit pipe (pipeCategory=ECOM), which is a cable container.
| Name | Description | Schema |
|---|---|---|
clearOpeningLeft |
Computed clear opening to the left neighbour in mm. Read-only. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour in mm. Read-only. |
number (double) |
displayName |
Human-readable display name computed by the server. |
string |
groundDist |
Computed distance from the duct centre to ground level in mm. Read-only. |
number (double) |
id |
Unique server-assigned id of the ecom duct object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm. |
number (double) |
outerDiameter |
Outer diameter of the ecom duct in mm. |
number (double) |
positioning |
Horizontal positioning strategy. |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
xAdjustment |
number (double) |
|
yAdjustment |
number (double) |
Layer
A layer in a trench section. Layers are stacked vertically within the section. All cables, pipes and ECCs belong to exactly one layer.
| Name | Description | Schema |
|---|---|---|
cableBands |
Cable bands used to group or separate cables in this layer. |
< CableBand > array |
cables |
Power cables placed directly in this layer. |
< Cable > array |
culverts |
Culverts in this layer. |
< Culvert > array |
displayName |
Human-readable display name for this layer, computed by the server and localised to the authenticated user’s language. |
string |
eccs |
Earth continuity conductors (ECC) in this layer. |
< Ecc > array |
ecomDucts |
Ecom ducts in this layer. |
< EcomDuct > array |
id |
Unique server-assigned id of this layer (String UUID). |
string |
leftBorderAdjustment |
Extra distance in mm between items and the left trench wall. |
number (double) |
pipeCanals |
Pipe canal systems in this layer. |
< PipeCanal > array |
pipeGroups |
Pipe groups in this layer. |
< PipeGroup > array |
pipes |
Conduit pipes in this layer, optionally containing cables. |
< Pipe > array |
protectionLayerThickness |
Thickness in mm of the protection material placed above this layer before the next layer starts. |
number (double) |
rightBorderAdjustment |
Extra distance in mm between items and the right trench wall. |
number (double) |
sensors |
Sensors in this layer. |
< Sensor > array |
Pipe
A conduit pipe in a trench cross-section, optionally containing power cables.
| Name | Description | Schema |
|---|---|---|
cables |
Power cables placed inside this conduit pipe. |
< Cable > array |
depth |
Cover depth in mm: vertical distance from ground level to the top of this pipe. Computed by the server; null if the pipe has not been placed in the trench layout yet. |
number (double) |
displayName |
Human-readable display name for this pipe, computed by the server and localised to the authenticated user’s language (e.g. "PEL 110 mm"). Suitable for use in UI labels and export files without additional catalog lookups. |
string |
id |
Unique server-assigned id of this pipe object (String UUID). Use this id as a reference in fine-grained operations on the pipe. |
string |
pipeCategory |
Pipe category. CONTAINER (default): cable conduit. ECOM: telecommunications conduit. WATER: water pipe. SEWER: sewer pipe. HEAT: district heating pipe. GAS: gas pipe. |
enum (CONTAINER, ECOM, WATER, SEWER, HEAT, GAS) |
typeId |
Pipe type id from the catalog. If omitted, the server picks a default based on pipeCategory. |
integer (int64) |
PipeCanal
A pipe canal system placed in a trench cross-section. A multi-channel conduit unit with a configurable number of internal cable channels.
| Name | Description | Schema |
|---|---|---|
clearOpeningLeft |
Computed clear opening to the left neighbour in mm. Read-only. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour in mm. Read-only. |
number (double) |
depth |
Cover depth in mm. Computed by the server. Read-only. |
number (double) |
displayName |
Human-readable display name computed by the server. |
string |
id |
Unique server-assigned id of the pipe canal object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm. |
number (double) |
partCount |
Number of cable channels inside the pipe canal. |
integer (int32) |
positioning |
Horizontal positioning strategy. |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
xAdjustment |
number (double) |
|
yAdjustment |
number (double) |
PipeDetail
Detailed placement properties for a conduit pipe. Includes editable fields and read-only layout-computed values.
| Name | Description | Schema |
|---|---|---|
cables |
Power cables placed inside this conduit pipe. |
< Cable > array |
clearOpeningLeft |
Computed clear opening to the left neighbour, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour, in mm. Read-only, set by the layout engine. Null if not yet laid out. |
number (double) |
depth |
Cover depth in mm: vertical distance from ground level to the top of this pipe. Computed by the server; null if the pipe has not been placed in the trench layout yet. |
number (double) |
displayName |
Human-readable display name for this pipe, computed by the server and localised to the authenticated user’s language (e.g. "PEL 110 mm"). Suitable for use in UI labels and export files. |
string |
groupConfiguration |
Arrangement of pipes of the same type laid side by side. Only set for pipe groups. |
enum (SINGLE, DOUBLE, TRIANGLE, TRIPPLE_FLAT) |
id |
Unique server-assigned id of the pipe object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm. |
number (double) |
pipeCategory |
Pipe category. Read-only after creation. |
enum (CONTAINER, ECOM, WATER, SEWER, HEAT, GAS) |
positioning |
Horizontal positioning strategy. |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
typeId |
Pipe type id from the catalog. |
integer (int64) |
typeName |
Pipe type name from the catalog, e.g. "PEL 110 mm". Read-only. |
string |
xAdjustment |
number (double) |
|
yAdjustment |
number (double) |
PipeGroup
A pipe group in a trench cross-section: multiple conduit pipes of the same type laid together in a defined arrangement.
| Name | Description | Schema |
|---|---|---|
clearOpeningLeft |
Computed clear opening to the left neighbour in mm. Read-only. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour in mm. Read-only. |
number (double) |
configuration |
Physical arrangement of the pipes in the group. |
enum (SINGLE, DOUBLE, TRIANGLE, TRIPPLE_FLAT) |
depth |
Cover depth in mm. Computed by the server. Read-only. |
number (double) |
displayName |
Human-readable display name computed by the server. |
string |
id |
Unique server-assigned id of the pipe group object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm. |
number (double) |
pipeCategory |
Pipe category of the pipes in the group. |
enum (CONTAINER, ECOM, WATER, SEWER, HEAT, GAS) |
pipeCount |
Number of pipes in the group, derived from the configuration. Read-only. |
integer (int32) |
positioning |
Horizontal positioning strategy. |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
typeId |
Pipe type id from the catalog applied to all pipes in the group. |
integer (int64) |
xAdjustment |
number (double) |
|
yAdjustment |
number (double) |
PipeType
A conduit pipe type from the catalog. Use the id as typeId when adding a pipe to a trench section.
| Name | Description | Schema |
|---|---|---|
id |
Unique catalog id. Use this as typeId when adding a pipe to a trench section. |
integer (int64) |
name |
Display name of the pipe type. |
string |
outerDiameter |
Outer diameter in mm. |
number (double) |
wallThickness |
Wall thickness in mm. |
number (double) |
Section
A trench cross-section within a segment. Each section defines the geometry of the trench and holds one or more layers. All cables, conduit pipes and earth continuity conductors (ECC) belong to exactly one layer.
| Name | Description | Schema |
|---|---|---|
coverThickness |
Cover depth in mm: thickness of the backfill layer above the uppermost cable or pipe. |
number (double) |
displayName |
Human-readable display name for this section, computed by the server and localised to the authenticated user’s language. Suitable for use in UI labels and export files without additional catalog lookups. |
string |
foundationThickness |
Foundation thickness for the cable zone in mm. |
number (double) |
foundationThicknessFillZone |
Foundation thickness for the fill zone in mm. |
number (double) |
id |
Unique server-assigned id of this section (String UUID). Use this id as a reference in fine-grained operations on the section. |
string |
layers |
Layers stacked vertically in this section, bottom first. Each layer contains the cables, pipes and ECCs placed at that vertical level. |
< Layer > array |
layoutDepth |
Laying depth in mm: vertical distance from ground level to the center of the cable zone. |
number (double) |
leftBorderPadding |
Distance from cables/items to the left trench wall in mm. |
number (double) |
rightBorderPadding |
Distance from cables/items to the right trench wall in mm. |
number (double) |
sectionType |
Cross-section type. STANDARD_TRENCH (default): standard uniform trench cross-section. ADVANCED_TRENCH: extended configuration with additional geometry parameters. DIRECTLY_IN_GROUND: cable laid directly in the ground without a constructed trench. |
enum (STANDARD_TRENCH, ADVANCED_TRENCH, DIRECTLY_IN_GROUND) |
Sensor
A sensor placed in a trench cross-section.
| Name | Description | Schema |
|---|---|---|
clearOpeningLeft |
Computed clear opening to the left neighbour in mm. Read-only. |
number (double) |
clearOpeningRight |
Computed clear opening to the right neighbour in mm. Read-only. |
number (double) |
displayName |
Human-readable display name computed by the server. |
string |
groundDist |
Computed distance from the sensor centre to ground level in mm. Read-only. |
number (double) |
id |
Unique server-assigned id of the sensor object (String UUID). |
string |
minPadding |
Minimum required clear opening to adjacent items, in mm. |
number (double) |
outerDiameter |
Outer diameter of the sensor in mm. |
number (double) |
positioning |
Horizontal positioning strategy. |
enum (AUTOMATIC, MINIMUM_CLEAR_OPENING, FIXED_CLEAR_OPENING, SNAP_TO_NEAREST, SNAP_TO_ITEM, FREE_AUTOMATIC, FREE_MANUAL) |
xAdjustment |
number (double) |
|
yAdjustment |
number (double) |
TopCovering
Top covering above the trench. Affects heat dissipation to ambient and thermal ampacity calculations.
| Name | Description | Schema |
|---|---|---|
description |
User-defined description of this top covering. |
string |
id |
Server-assigned UUID of this top covering. |
string |
infinite |
If true, the covering extends infinitely in width beyond the trench When false, a finite width must be specified. |
boolean |
thermalResistivity |
Thermal resistivity of this covering in mK/W. |
number (double) |
thickness |
Thickness in mm. |
number (double) |
type |
Material type of the top covering. |
enum (TARMAC, CONCRETE, COBBLESTONE, GRAVEL, CRUSHED_STONES, SAND, OTHER) |
TrenchSegment
A trench segment (norsk: delstrekning) - the top-level resource in the Trench Design API. A segment represents a physical section of a cable route from one connection point to the next. The server-assigned id is the primary key for all operations.
| Name | Description | Schema |
|---|---|---|
description |
Optional description. |
string |
id |
Unique server-assigned id of the trench segment. Use this id in all subsequent read, update and delete operations. |
integer (int64) |
length |
Route length (norsk: strekningslengde) in meters. |
number (double) |
name |
Name of the trench segment. Can be used as an optional external reference key and looked up via the by-name endpoint. Must be unique within the project if used for lookups. Avoid renaming segments that are managed through the API. |
string |
projectId |
Id of the REN project this trench segment belongs to. Populated when the segment was reached through a project-scoped endpoint (list, create, by-name). Omitted when fetched or updated directly by segmentId, since the API has no way to resolve a segment’s project from its id alone. |
integer (int64) |
sections |
Trench cross-sections (norsk: tverrsnitt) in this segment. Present in the single-segment detail endpoint and in create/update responses. Omitted (null) in list-by-project responses - use GET /segments/{segmentId} to retrieve a specific segment’s sections with full content. |
< Section > array |
validationErrors |
Validation errors in the trench configuration (norsk: valideringsfeil). Present when the layout engine detects problems such as overlapping items or items placed outside their container. Empty list means the configuration is valid. Only populated in the single-segment detail endpoint. |
< TrenchValidationError > array |
TrenchSettings
Trench segment settings. Applies to the whole trench configuration, not a single section.
| Name | Description | Schema |
|---|---|---|
autoMarkers |
Whether automatic protection markers are enabled (norsk: automatisk markering/beskyttelse). |
boolean |
defaultMarkerTypeId |
Default marker/protection type ID from the catalog (norsk: standard markering/beskyttelse). |
integer (int64) |
maxDistUncoveredByAutoMarkers |
Maximum distance in mm not covered by automatic protection markers (norsk: maks avstand udekket av automatisk markering). |
number (double) |
maxSnapDist |
Maximum snap distance in mm. Controls how close items must be to snap to each other automatically. |
number (double) |
shortLabelMaxLength |
Maximum character length for short operational labels (norsk: maks lengde for driftsmerking (kort)). |
integer (int32) |
TrenchSurroundings
Surroundings settings (norsk: omgivelse) for the trench segment. Terrain type affects the thermal model; thermal resistivity is the default soil value used in ampacity calculations (IEC 60287).
| Name | Description | Schema |
|---|---|---|
fillZoneThermalResistivity |
Default fill zone thermal resistivity in mK/W. Represents the surrounding soil. Used as the default for zones without an explicit material. |
number (double) |
terrainType |
Terrain type. SIMPLE = flat and uniform (norsk: flatt og uniformt); ADVANCED = custom terrain profile (norsk: egendefinert). |
enum (SIMPLE, ADVANCED) |
TrenchValidationError
A validation error in the trench configuration. Present when the layout engine detects problems such as overlapping items or items placed outside their container.
| Name | Description | Schema |
|---|---|---|
itemDisplayName |
Display name of the item or item pair with the error. Localised to the authenticated user’s language. |
string |
message |
Human-readable description of the error. Localised to the authenticated user’s language. |
string |
severity |
Severity of the error. |
enum (OK, INVALID, MISSINGINPUT) |
UpdateLayer
Request body for updating spacing properties of a layer (norsk: niva). Only non-null fields are applied; omitted fields are left unchanged.
| Name | Description | Schema |
|---|---|---|
leftBorderAdjustment |
Extra distance in mm between the items in this layer and the left trench wall. Defaults to 0 if omitted on layer creation. |
number (double) |
protectionLayerThickness |
Thickness in mm of the protection material (norsk: beskyttelsesmasse) placed above this layer before the next layer starts. Set to null to clear (reset to server default). |
number (double) |
rightBorderAdjustment |
Extra distance in mm between the items in this layer and the right trench wall. Defaults to 0 if omitted on layer creation. |
number (double) |
UpdateSection
Fields to update on an existing trench section (norsk: grøftedel/tverrsnitt). Include only the fields you want to change.
| Name | Description | Schema |
|---|---|---|
coverThickness |
Cover depth (norsk: overdekningsdybde) in mm: thickness of backfill above the top of the cable zone. |
number (double) |
foundationThickness |
Sand bed thickness (norsk: tykkelse fundament, ledningssone) in mm. |
number (double) |
foundationThicknessFillZone |
Sand bed thickness for the fill zone (norsk: tykkelse fundament, gjenfyllingssone) in mm. |
number (double) |
leftBorderPadding |
Distance (norsk: avstand til venstre kantlinje) in mm between items and the left trench wall. |
number (double) |
rightBorderPadding |
Distance (norsk: avstand til høyre kantlinje) in mm between items and the right trench wall. |
number (double) |
UpdateTopCovering
Fields to update on an existing top covering (norsk: toppdekke). Include only the fields you want to change.
| Name | Description | Schema |
|---|---|---|
description |
User-defined description (norsk: navn/beskrivelse). Maximum 1000 characters. |
string |
infinite |
Whether the covering extends infinitely in width. |
boolean |
thermalResistivity |
Thermal resistivity in mK/W. |
number (double) |
thickness |
Thickness in mm. |
number (double) |
type |
Material type (norsk: type). |
enum (TARMAC, CONCRETE, COBBLESTONE, GRAVEL, CRUSHED_STONES, SAND, OTHER) |
UpdateTrenchSegment
Request body for updating trench segment metadata. Fields that are omitted (null) are kept unchanged.
| Name | Description | Schema |
|---|---|---|
description |
New description. Maximum 1000 characters. |
string |
length |
New route length (norsk: strekningslengde) in meters. |
number (double) |
name |
New name of the trench segment. Maximum 255 characters. |
string |
UpdateTrenchSettings
Fields to update on the trench settings. Include only the fields you want to change.
| Name | Description | Schema |
|---|---|---|
autoMarkers |
Enable automatic protection markers (norsk: automatisk markering/beskyttelse). |
boolean |
defaultMarkerTypeId |
Default marker/protection type ID. |
integer (int64) |
maxDistUncoveredByAutoMarkers |
Maximum distance in mm not covered by automatic protection markers. |
number (double) |
maxSnapDist |
Maximum snap distance in mm. |
number (double) |
shortLabelMaxLength |
Maximum character length for short operational labels. |
integer (int32) |
Security
oauth2-password
A flow where an end user is required. Endpoints using this flow can provide personal customization and access to personal information.
Type : oauth2
Flow : password
Token URL : https://www.ren.no/auth/realms/www.ren.no/protocol/openid-connect/token
| Name | Description |
|---|---|
tb.bruker |
Implies that role 'tb.bruker' is required. |
oauth2-client
A flow where an end user is not involved. Endpoints using this flow will support full automation without any human intervention, but on the other hand cannot provide personal customization or access to personal information.
Type : oauth2
Flow : application
Token URL : https://www.ren.no/auth/realms/www.ren.no/protocol/openid-connect/token
| Name | Description |
|---|---|
tb.bruker |
Implies that role 'tb.bruker' is required. |