Read and change project data through the API

The project endpoints expose the saved engineering model, analysis evidence, and atomic graph imports under /api/v1/projects.

Read project data

All read endpoints require projects:read and at least viewer access to the project.

Method and pathResult
GET /projectsActive projects you can access. Use org_id=<uuid> to filter by organization.
GET /projects/{projectId}Project metadata.
GET /projects/{projectId}/componentsEvery component, grouped by type. Each protection device lists its mountedParts (mounted parts).
GET /projects/{projectId}/components/{type}One component collection. Valid types are buses, cables, loads, capacitor_banks, protection_devices, motor_control_devices, transformers, generators, and utility_feeds. Protection devices list their mountedParts.
GET /projects/{projectId}/connectionsConnections in creation order.
GET /projects/{projectId}/scenariosProject scenarios.
GET /projects/{projectId}/scenarios/{scenarioId}/overridesThe override values one scenario sets itself.
GET /projects/{projectId}/settingsProject settings and canvas state.
GET /projects/{projectId}/tccsSaved TCC sheets with their members (saved TCC sheets).
GET /projects/{projectId}/tccs/{tccId}One saved TCC sheet.
GET /projects/{projectId}/sizingSaved sizing results, newest first.
GET /projects/{projectId}/exportA complete project export, including study history and protection-operation evidence. Capacitor banks are listed under capacitorBanks. Relays and CTs are protection devices with their own connections (relays and CTs); mountedRelays lists each relay model in the import shape. catalogueReferences names each equipment class, protection catalogue part, cable series and cable size the project uses, because some of their IDs differ between EKX databases.

The calculations endpoint requires exactly one result selector:

  • GET /projects/{projectId}/calculations?study_run_id={studyRunId} reads results owned by one API or in-app study run.
  • GET /projects/{projectId}/calculations?type=power_flow reads legacy results that are not attached to a study run. Add scenario_id={scenarioId} when needed.

Use limit from 1 to 500 and a nonnegative offset to page calculation rows.

Select a legacy project's electrical code

PATCH /projects/{projectId} requires projects:write and editor or owner access. Send one complete supported pair. Authentication and scope checks happen before body reading; the JSON body is limited to 4 KiB (413 REQUEST_TOO_LARGE) and consumed before the short editor/access check and locked mutation transaction:

{ "codeBook": "CEC", "codeEditionYear": 2024 }

Supported choices are NEC 2026 and CEC 2024. Selection fills missing values only: null/null allows either pair, CEC/null allows CEC 2024, NEC/null allows NEC 2026, and null/year allows only a registered profile with that exact year. Each non-null saved member must match. A complete configured pair stays fixed, even when that edition is unsupported. An identical supported pair is a no-op. Partial requests, null clearing, unknown fields and unsupported pairs return 400; a different supported pair conflicting with saved members returns 409. Refusals change no rows or activity. Existing import metadata updates without profile fields leave the pair untouched; replace/patch imports still cannot choose or switch it. This resource does not implement PUT.

The response contains projectId, the saved pair, changed, selectionEventId, and the server codeProfileChangeToken. A real first selection returns the original server activity event ID; a no-op returns null. Undo or Redo uses the same PATCH endpoint and supplies only the receipt and direction:

{ "selectionEventId": "<original-event-uuid>", "direction": "undo" }

Use redo for the forward replay. The original actor must still have editor access to that same project, and its current pair must equal the expected side of the original event. A forged, cross-project, other-actor, replay-event or mismatching receipt returns 409; extra snapshots or profile fields are rejected. Replay restores the exact original partial/null pair or the captured supported pair, records a distinct activity event, and keeps the original event unchanged.

Selection and replay invalidate saved network-study freshness across project scenarios and current sizing evidence. They do not run studies, re-size equipment or change cable selections. An explicit study run refreshes results; a later genuine engineering edit resumes the editor's normal automatic refresh conditions. Reload, metadata edits, display toggles and cache refresh alone do not launch one. In the editor, preparation may cancel an earlier queued automatic apply even when selection is refused or becomes a no-op. It launches no compensating study/apply; the next genuine engineering edit uses the normal configured mode. Raw exports preserve saved historical sizing rows. GET /projects/{projectId}/sizing adds codeProfileStale: after a code event, current rows must have captured creation and update timestamps newer than its UTC cutoff and carry a matching inputs.codeProfile.key. Wrong or missing keys stay historical even on late worker rows. An unconfigured or unsupported complete pair has no current code-based evidence even before any code event. Only supported configured projects retain their previous pre-event evidence behavior. Stale rows have no current voltage-drop review.

Sizing-check responses retain typed profile failure codes. Missing-profile guidance names this PATCH resource and its complete pair, so API callers can recover without using the editor.

Create a project and graph

POST /projects/import requires projects:write. It creates the project, its Base scenario, the submitted components, connections, settings, defaults, and sizing settings in one transaction.

curl "https://joinekx.com/api/v1/projects/import" \
  -X POST \
  -H "Authorization: Bearer $EKX_API_KEY" \
  -H "Content-Type: application/json" \
  --data @project.json

For new projects, agents should omit component positions and let EKX arrange the diagram. If any component omits both coordinates, EKX lays out the whole imported graph, including components with supplied positions. To preserve a prepared layout, supply both coordinates for every component. A partial, blank, or non-finite position is rejected.

A small project.json can look like this:

{
  "project": {
    "name": "Plant distribution",
    "codeBook": "NEC",
    "codeEditionYear": 2026
  },
  "components": [
    {
      "tempId": "utility",
      "type": "utility_feed",
      "properties": {
        "name": "UTILITY",
        "voltageKv": "13.8",
        "shortCircuitMva": "500"
      }
    },
    {
      "tempId": "service-bus",
      "type": "bus",
      "properties": {
        "name": "SERVICE BUS",
        "baseKv": "13.8"
      }
    }
  ],
  "connections": [
    {
      "tempId": "utility-to-bus",
      "sourceTempId": "utility",
      "targetTempId": "service-bus",
      "sourceHandleSide": "bottom",
      "targetHandleSide": "top"
    }
  ]
}

The response maps each temporary ID to its saved UUID:

{
  "data": {
    "ok": true,
    "projectId": "...",
    "componentIds": {
      "utility": "...",
      "service-bus": "..."
    },
    "connectionIds": {
      "utility-to-bus": "..."
    }
  },
  "meta": {
    "timestamp": "2026-08-30T12:00:00.000Z",
    "version": "1"
  }
}

New bus duration acceptance through POST, PUT or PATCH imports records the authenticated engineer and the server instant's UTC calendar date. API imports and managed writes intentionally provide no browser timezone. Supplied accepting names and dates are ignored; unchanged acceptance keeps its stored name, date and evidence. Reads and exports return stored YYYY-MM-DD dates unchanged. Browser edits, node paste and Copy Data use the browser calendar at the server instant.

Replace or patch a graph

CEC voltage-drop inputs are nullable component properties. Read and export preserve them:

ComponentPropertyValues
CablevoltageDropCircuitKindtwo_wire_ac, balanced_three_phase_ac or null
CablevoltageDropCircuitVoltageVPositive finite voltage in V, or null
CablebondingMeansfield_installed_conductor, integral_cable, approved_metal_raceway or null; integral_cable clears the bonding conductor size, material and quantity
CablebondingLocationservice_equipment, other_equipment or null; a location requires field-installed bonding
Motor loadmotorNameplateVoltagePositive finite motor nameplate voltage in kV, or null; separate from ratedVoltage
Motor loadfullLoadAmpsSourcenameplate, calculated or null; a source requires positive fullLoadAmps

Omitting a property from a patch preserves it; null clears it. Voltage-drop sizing starts each path at the sole grid supply or transformer secondary of a radial network; multiple supplies and unsupported topology remain unresolved. On a CEC project, a cable created with bondingMeans omitted or null, or whose series, installation or raceway changes, gets integral_cable when its series has an integral bonding conductor and null otherwise. Other declarations remain unconfirmed unless explicitly supplied. Send a motor current and its source together when confirming a nameplate value. Rating and supply-voltage changes preserve confirmed nameplate current. Replacing or clearing the current clears its confirmation unless the request supplies the matching source. The legacy calculated source denotes a table lookup, not a nameplate confirmation. These declarations do not automatically accept a sizing result.

A load requires activePowerMw, except a motor load that has a positive motorHorsepower or fullLoadAmps: studies and sizing take the motor's size from whichever of the three you send. Arc flash is the exception for a motor sent with fullLoadAmps alone: it is left out as under 50 hp only when √3 × voltage × fullLoadAmps ÷ 745.7 W, at its nameplate voltage, is under 50 hp. A motor whose full-load current could be 50 hp or more still needs motorHorsepower or activePowerMw for arc flash, and the buses it can reach have no result until it has one. For an existing load, PATCH may explicitly set activePowerMw, reactivePowerMvar, and ratedCurrent all to null together to clear its rating and ordinary input authority while preserving unrelated fields.

motorNameplateVoltage is optional on motor loads in create, replace, and patch imports. Omission on a patch preserves it; null selects automatic supply-following behavior. Reads and exports retain null for automatic mode and the entered kV value for a fixed override; they never save an assumed rating as an entered value. Automatic motor defaults in volts are 120→115, 208→200, 240→230, 480→460, 600→575, 2400→2300 and 4160→4000; other positive supplies remain unchanged. The motor panel displays volts. Create, replace, copy and restore retain the same null-versus-fixed distinction.

Both operations require projects:write and an editor or owner role.

PUT /projects/{projectId}/import replaces the existing components, connections, and component sizing settings. It also applies any project metadata, project settings, canvas state, or defaults included in the body. Use it only when the submitted components and connections describe the complete intended graph. Existing completed study evidence remains available but becomes stale.

Create and replace requests require a tempId for every component. Connections in those requests refer to the component temporary IDs. Saved connection IDs are supported only in patch requests.

A replace keeps the protection work of every component you submit with its saved id and the same type:

  • Mounted trip units, relay models, fuse parts and overload relays, with their settings, curve overrides and CT links, stay on that protection or motor control device.
  • An installed catalogue curve profile stays when the catalogue still supports it. It is cleared when the catalogue no longer does, and marked for review when the device rating no longer matches it.
  • Trip-unit pickups set as a share of the device rating follow a changed rating.
  • Scenario values for that component stay.
  • Saved TCCs keep their members that remain.

A replace removes the same work for every component it does not keep, as a delete would. A saved TCC is deleted when it had members and none of them remain; a saved TCC that had no members stays. To drop a device's mounted parts in a replace, submit the device without its id. A changed LV frame keeps a compatible trip package. If the installed package is incompatible, the replace installs the sole compatible active electronic part that can start with valid settings, or rejects the whole request when none or several are valid. A mountedTripUnits entry for that breaker supplies your choice instead; EKX validates that part and its settings rather than making an automatic choice. Other type or role misfits, such as a breaker resubmitted as a fuse, still remove the unsupported parts and name the component in warnings; the rest of that replace applies. Tree copies and exact replay retain their existing strict validation.

PATCH /projects/{projectId}/import changes only the submitted records. For components:

  • Omit id and provide tempId to create a component.
  • Provide id and the correct singular type to update a component.
  • Provide id, type, and "op": "delete" to delete a component.

An update sends only what it changes. Each submitted property, and the position when sent, updates the saved record; every omitted property, including the name and position, keeps its current value. A required property such as the name or a bus's baseKv cannot be cleared: sending it as null or "" is rejected. A component created by PATCH or included in a replacement must include its position and required properties. Only the new-project POST import can omit positions to request automatic layout.

For transformers, transformerConstruction accepts "dry_type", "other_than_dry_type", or null. Create and replace leave construction unknown when omitted. Patch preserves an omitted value and clears it when you send null. Reads and exports return the saved value. Cooling type does not establish construction; supply it from the drawing, nameplate, or an engineer's confirmation. On a CEC 2024 project with a primary of 750 V or less, an unknown construction sizes protection to a rating both Rule 26-252 and Rule 26-254 permit.

For transformers, neutralGrounding accepts "solid", "impedance", or "ungrounded" (default "solid"). With "impedance", groundFaultLimitAmps records the line-to-ground fault current the grounding device allows, in amperes; it is a number above 0 or null. A wye-wye transformer also accepts primaryNeutralGrounding (the same values, or null to follow neutralGrounding) and primaryGroundFaultLimitAmps (null follows groundFaultLimitAmps). Generators accept groundingType ("solid", "resistance", "reactance", "ungrounded", or null, which reads as solid) with groundingResistanceOhms or groundingReactanceOhms, each above 0 or null. Utility feeds accept neutralGrounding ("solid", "impedance", or "ungrounded", default "solid"; "ungrounded" also covers a delta service). Any other value is refused with 400 GROUNDING_INVALID naming the field. Create, replace, patch, reads and exports carry these fields. They decide whether slash interrupting ratings apply, and the line-to-ground fault reads the transformer and generator fields with a generator's x0 and x2 (per unit on its rating); it does not read a utility's grounding, only its line-to-ground data.

Loads, motors included, accept isFirePump (true or false, default false). Any other value is refused with 400 naming the field. The ground fault code check then reports ground fault protection on any device that can supply the load (NEC 695.7(G), CEC Rule 32-312). Create, replace, patch, reads and exports carry the field; no study calculation reads it.

For synchronous generators, statorResistancePu accepts finite nonnegative Ra in per unit on the rated kV/MVA base: "0.01" means 1%. Create and replace use generator defaults when Ra is omitted; the built-in default is blank. Null retains the legacy zero-resistance assumption. Patch preserves an omitted Ra and clears it with null; an explicit "0" remains distinct from blank. Reads, exports and scenario overrides preserve the entered per-unit value. Changing Ra marks short-circuit and arc flash studies stale.

Generators also accept sustainedShortCircuitPercent, the fault current the excitation system holds after the first cycles in percent of rated current ("300"), and sustainedShortCircuitHoldSeconds, how long it holds it before the set shuts down ("10"). Both are blank by default and must be above 0; null clears them. Arc flash reads them, together with xdPrime, xd, tdoPrime and tdoDoublePrime, and changing any of them marks arc flash studies stale.

Utility operating voltage

operatingVoltagePercent is the percent of nominal voltage the utility holds in power flow, from 80 to 120. It is optional on create and defaults to 100; a value outside the range is rejected with 400. Reads and exports return it. Changing it marks power flow stale; short-circuit and arc flash studies do not use it.

Utility fault cases

A utility can hold up to four fault cases, for example the maximum and minimum levels a utility letter gives. The utility's fault-level fields (shortCircuitMva, xrRatio, and so on for its inputMethod) are its first case. Three more fields describe the cases:

FieldValues
faultCaseNameThe first case's name, up to 40 characters, or null. A blank name reads "Case 1".
faultCaseStudiesThe studies the first case is included in: any of short_circuit and arc_flash. Default both.
additionalFaultCasesUp to three more cases. Default [].

Each additional case is an object:

{
  "id": "6f1c2a4e-7d1b-4c55-9a52-0f6b3c1e2d77",
  "name": "Min",
  "studies": ["arc_flash"],
  "shortCircuitMva": "40",
  "xrRatio": "6"
}
  • id is a UUID you choose. Keep it when you rename the case.
  • name is required, 1 to 40 characters. Names must differ from each other and from the first case's name, ignoring case.
  • studies lists the studies the case is included in, as for faultCaseStudies.
  • The values use the first case's field names for the utility's input method: shortCircuitMva, xrRatio, shortCircuitMvaLg and xrRatioLg for mva; threePhaseFaultCurrent, faultCurrentXrRatio, singlePhaseFaultCurrent and xrRatioLg for fault_current; z1PuReal, z1PuImag, z0PuReal, and z0PuImag for per_unit. baseMva stays single. The line-to-ground values feed the line-to-ground fault; a case without them gives no line-to-ground current on the buses that depend on it. MVA, X/R, kA and z1PuImag must be above 0; z1PuReal, z0PuReal, and z0PuImag must be 0 or more. A value may be null until you have it.

New Base additionalFaultCases values accept finite JSON numbers or decimal text with an optional sign and exponent, such as "+1.60e1". Surrounding whitespace is trimmed; text keeps its trimmed spelling and JSON numbers are stored as strings. Existing field ranges still apply. Null values and omitted value keys keep their existing meaning; an omitted list keeps the saved list, [] clears it, and a null list is refused.

Ordinary create, update and import writes, managed single-line merges, and forward component COPY or Copy Data paste, check the entire submitted list. Authenticated CUT instead retains the already deleted equipment's captured numeric text while keeping the existing create validation and list transformations. A client property or a copied selection marker cannot authorize this preservation. Hexadecimal, binary and octal text are refused with 400 UTILITY_FEED_VALIDATION_FAILED. For an import text refusal, details.path identifies the nested value, for example components[1].properties.additionalFaultCases.0.shortCircuitMva; the entire import rolls back. An unrelated edit does not recheck an omitted older list. Replace its unsupported values or clear the list before submitting it again. Reads, exports, captured Undo/Redo, historical project copy and support restore keep older values without automatic repair. Duplicating a scenario uses the scenario numeric-text rule below.

Changing inputMethod through the API does not convert the added cases: send additionalFaultCases with values for the new method in the same request, or it is rejected. The Study tab converts them for you.

EKX does not compare the cases with each other. A key the input method does not use, an unknown key, a repeated id or name, or a fifth case rejects the whole request with 400 UTILITY_FEED_VALIDATION_FAILED naming the problem. Reads and exports return the three fields; a utility that never had cases returns one case in both studies. Changing faultCaseStudies or additionalFaultCases marks short-circuit and arc flash studies stale; changing faultCaseName does not.

A short-circuit run evaluates every case included in short circuit and reports the highest current at each location, naming its case; see Studies and sizing. An arc flash run evaluates every case included in arc flash and reports, per bus, the case with the highest incident energy; see Studies and sizing.

Connections follow the same pattern. A connection update or delete uses its saved id. Submit both endpoints and handle sides when updating a connection. New records may refer to components created in the same request through sourceTempId and targetTempId.

A connection's properties.connectionType is electrical (the default), ct_signal or trip; see relays and CTs. A connection's properties.operatingStatus is closed (the default) or open; an open connection carries no current in any study, in sizing, or in TCC ordering. Any other value is refused with 400. The former isNormallyOpen property is refused with 400 as well: send operatingStatus: "open" for a tie that is open in the base design, and a scenario override for a tie that is open only in one operating case.

Component payload types are bus, cable, transformer, generator, load, capacitor_bank, utility_feed, protection_device, and motor_control_device. Positions may use position: { "x": ..., "y": ... }. Connection sides may use top, bottom, left, right, primary, secondary, or tertiary where the component supports them.

Relays and CTs

A protective relay and the CT it measures through are protection devices on the diagram, joined by dashed signal lines:

PartdeviceTypeConnections
CTcurrent_transformerIn series on a wire: top toward the source, bottom toward the load. Its right side feeds relays.
RelayrelayNo wires. Its left side takes one CT line; its right side sends trip lines.
  • A CT states its ratio as the component properties ctRatioPrimary and ctRatioSecondary, in

amperes, for example 600 and 5. Omitted, a new CT is 600:5. Only a CT accepts them; reads and exports return them on each CT. The CT's ratedCurrent follows ctRatioPrimary.

  • Deleting a CT with op: "delete" in a PATCH closes its wire: one new wire joins the two parts

it sat between, as deleting it on the single-line does. A row of CTs deleted together closes to one wire, which is open when any wire it replaces was open. The wire is not added when the same request already joins those two parts or uses either handle. A PUT states the whole drawing, so it adds no wire.

  • A CT line runs from a CT's right side to a relay's left side with

properties.connectionType: "ct_signal". A relay takes one CT line; one CT can feed several relays.

  • A trip line runs from a relay's right side to the left side of a device the relay opens, with

properties.connectionType: "trip". A relay can trip several devices: HV and LV breakers, reclosers, sectionalizers, disconnect and load-break switches, and fused switches.

  • A relay counts in studies only with a CT line and at least one trip line. It then times each fault

at the current through its CT, and each device it trips opens at the relay's operating time plus its own mechanism time.

  • The same rules as in the editor apply: a line on the wrong side or to a device that cannot be

tripped rejects the request with 400 naming the connection.

{
  "components": [
    { "tempId": "ct-1", "type": "protection_device", "properties": { "name": "CT-001", "deviceType": "current_transformer", "ctRatioPrimary": 600, "ctRatioSecondary": 5 } },
    { "tempId": "rly-1", "type": "protection_device", "properties": { "name": "RLY-001", "deviceType": "relay" } }
  ],
  "connections": [
    { "sourceTempId": "bus-1", "targetTempId": "ct-1", "sourceHandleSide": "bottom", "targetHandleSide": "top" },
    { "sourceTempId": "ct-1", "targetTempId": "cb-1", "sourceHandleSide": "bottom", "targetHandleSide": "top" },
    { "sourceTempId": "ct-1", "targetTempId": "rly-1", "sourceHandleSide": "right", "targetHandleSide": "left", "properties": { "connectionType": "ct_signal" } },
    { "sourceTempId": "rly-1", "targetTempId": "cb-1", "sourceHandleSide": "right", "targetHandleSide": "left", "properties": { "connectionType": "trip" } }
  ]
}

Choose the relay's model and settings with `mountedRelays`.

Capacitor banks

A capacitor bank uses type capacitor_bank in create, replace, and patch imports. Like other components, a bank created by PATCH or included in a replacement needs a position.

PropertyRequiredValues
nameYesBank name
ratedKvarYesRating of the whole installed bank, in kvar
ratedKvNoRated voltage in kV
ratedFrequencyHzNo50 or 60
connectionNodelta, grounded_wye, or ungrounded_wye
stepsNoInstalled steps
energizedStepsNoEnergized steps; cannot exceed steps
lossWattsPerKvarNoLosses in W/kvar
inServiceNotrue or false
descriptionNoText

Capacitor banks are no longer a load type. A load sent with loadType capacitor_bank is refused with 400 and the message: "Capacitor banks are their own component type. Send type "capacitor_bank" instead of a load with loadType "capacitor_bank"."

Each request may contain at most 500 components, 1,000 connections, 64 default records, and 1,000 sizing-setting records. The complete JSON body may not exceed 2 MiB.

Mount trip units and set their dials

A breaker's electronic trip unit is a mounted part. Create, replace, and patch imports accept an optional mountedTripUnits array to mount one and set its dials:

{
  "mountedTripUnits": [
    {
      "protectionDeviceTempId": "cb-001",
      "tripUnit": { "catalogId": "45aadb83-...", "skuId": "98c64ced-..." },
      "nativeSettings": {
        "longTimePickup": { "kind": "discrete", "id": "long_time.pickup_9" },
        "longTimeBand": { "kind": "discrete", "id": "long_time.band_6" },
        "shortTime": {
          "pickup": { "kind": "discrete", "id": "short_time.pickup_4" },
          "band": { "kind": "discrete", "id": "short_time.band_6" },
          "i2t": "IN"
        },
        "instantaneous": { "kind": "discrete", "id": "instantaneous.pickup_0" }
      }
    }
  ]
}
  • Name the breaker with protectionDeviceTempId (a breaker in the same request) or protectionDeviceId (a saved breaker).
  • A breaker that already carries the named trip unit keeps it; a different mounted trip unit is replaced.
  • For create, patch and replace, mountedTripUnits supplies your explicit choice and takes precedence over automatic selection for that breaker. Both device references use the same compatibility and settings checks; an invalid part or setting rejects the whole request, including its frame change.
  • Without an explicit choice, a new or changed LV frame keeps a compatible installed package. An incompatible installed package is replaced only by its sole compatible active electronic part with valid native, verified fixed-profile or generic starting settings; none or several valid replacements rejects the whole request atomically. On a bare frame, the existing sole-part default applies only when its settings can initialize; otherwise the frame stays bare. An unchanged frame keeps its trip unit, or the absence of one. Reads and exports return the saved assembly without choosing a part.
  • nativeSettings applies to trip units whose curves EKX generates from their ETAP record, such as the Siemens 3VA ETU 350 and ETU 856. Each dial names a position from the record (kind: "discrete" with its option id) or, for a trip unit with fine steps, a value (kind: "continuous": pickups in multiples of the rating plug or frame, delays in seconds). Omit it to keep the trip unit's current dials; send null for the slowest combination the record offers.
  • A combination the trip unit does not offer, or nativeSettings for a trip unit without an ETAP record, rejects the whole request with a VALIDATION_ERROR naming the entry.

Exports return each trip unit's dials as nativeSettings in its trip unit settings.

mountedTripUnits takes electronic trip units only; naming a relay there rejects the request. A relay is its own component: draw it and choose its model with mountedRelays.

Mount relay models and set their settings

Create, replace, and patch imports accept an optional mountedRelays array to choose a drawn relay's model and set it:

{
  "mountedRelays": [
    {
      "relayDeviceTempId": "rly-1",
      "relay": { "catalogId": "9a1337e3-...", "skuId": null },
      "settings": {
        "phase51CurveType": "U3",
        "phase51TimeDial": 2,
        "phase51PickupAmpsPri": 480,
        "ground51Enabled": true,
        "ground51PickupAmpsPri": 120
      }
    }
  ]
}
  • Name the relay with relayDeviceTempId (a relay in the same request) or relayDeviceId (a saved

relay). Only a relay (deviceType: "relay") takes a relay model; naming a breaker, switch or fuse rejects the request. A relay opens those devices through trip lines instead.

  • relay names the catalogue entry and, when the part has one, its SKU. A relay already carrying

the named part keeps it and its settings; a different mounted relay model is replaced.

  • settings uses the field names of the relay settings row in a project export

(protection.settings.relayOcSettings), such as phase51PickupAmpsPri, phase51CurveType, phase51TimeDial, ground51Enabled and neutral50DelayCycles. Each value is checked and stored as choosing it in the Protection view would. A primary pickup decides its secondary pickup through the CT; when you send both, the primary decides.

  • The phase CT ratio is not a relay setting: ctPrimary, ctSecondary and ctRatioText are

refused. Set ctRatioPrimary and ctRatioSecondary on the CT that feeds the relay.

  • Omitted fields keep their stored values. A value the relay does not offer, an unknown field, or a

different value for a field you cannot change rejects the whole request with 400 VALIDATION_ERROR and writes nothing; details.path names the field, for example mountedRelays[0].settings.phase51TimeDial.

A patch or replace that keeps a relay's id keeps its model and settings.

Set breaker clearing times

A relay's curve gives its operating time only, so arc flash also needs the time its breaker takes to open and clear. Create, replace, and patch imports accept an optional breakerClearingTimes array to set it, in cycles at the project's frequency:

{
  "breakerClearingTimes": [
    { "protectionDeviceTempId": "52-1", "totalClearingTimeCycles": 5 }
  ]
}
  • Name the breaker with protectionDeviceTempId (a breaker in the same request) or

protectionDeviceId (a saved one). One entry per breaker.

  • Give totalClearingTimeCycles, or openingTimeCycles and arcingTimeCycles. A total takes

precedence over opening plus arcing time. Each is a positive number or null to clear it; omitted fields keep their stored values.

  • A breaker with no breaker part gets a generic one carrying the times, as entering a time in the

Protection view does. A breaker part from the catalogue publishes its own times; sending a time it publishes rejects the request with 400 VALIDATION_ERROR, and details.path names the field, for example breakerClearingTimes[0].totalClearingTimeCycles.

To keep clearing times when you import an export as a new project, take the protection.deviceComponents rows with componentRole: "breaker" and no catalogId, and send the times from the protection.settings.hvBreakerSettings row with the same deviceComponentId as an entry, with the breaker row's protectionDeviceId as protectionDeviceTempId.

Set trip unit settings, including ground fault

settings sets a mounted trip unit's long-time, short-time, instantaneous and ground fault settings. It uses the field names of the trip unit's settings row in a project export:

{
  "mountedTripUnits": [
    {
      "protectionDeviceTempId": "cb-main",
      "tripUnit": { "catalogId": "45aadb83-...", "skuId": "98c64ced-..." },
      "settings": {
        "ltPickupAmps": 1000,
        "stPickupMult": 4,
        "stDelayBand": "0.2",
        "instPickupMult": 8,
        "gfEnabled": true,
        "gfPickupAmps": 800,
        "gfDelayBand": "0.2",
        "gfI2tEnabled": true,
        "gfSensing": "source_ground_return"
      }
    }
  ]
}
  • Each value is checked and stored as choosing it in the Protection view would. It must be one of the trip unit's catalogue choices. A percent or multiple follows the ampere pickup it belongs to; when you send both, the ampere pickup decides.
  • Some trip units offer different short-time or ground fault delays with I²t on than with I²t off. A delay you send is checked against the delays of the I²t mode the same request sets, or of the stored mode when it sets none. Changing only stI2tEnabled or gfI2tEnabled moves the delay to the same seconds in the other mode, or to its nearest delay.
  • Omitted fields keep their stored values. A value equal to the stored one changes nothing and leaves studies current. Each changed value is recorded in the project activity for its breaker and marks short-circuit and arc flash studies stale.
  • A trip unit on a fixed curve profile takes ground fault changes and keeps its profile. Its long-time, short-time and instantaneous settings come from the profile.
  • A field you cannot change, such as ZSI, maintenance mode, a fixed profile's long-time pickup or a percent derived from an ampere pickup, is accepted when it equals the stored value.
  • A value the catalogue does not offer, a field that is not a trip unit setting, or a different value for a field you cannot change rejects the whole request with 400 VALIDATION_ERROR and writes nothing. details.path names the field, for example mountedTripUnits[0].settings.gfDelayBand. details.value.allowed lists what it accepts: the catalogue's values, a { min, max, step } range, or the stored value. An unknown field is named in the details list with the supported field names as allowed.
  • For a trip unit with native ETAP dials, settings.nativeSettings sets the dials as nativeSettings does. Send one of settings and nativeSettings, not both.

Read mounted parts and their settings

Protection devices from GET /projects/{projectId}/components and GET /projects/{projectId}/components/protection_devices carry mountedParts, in mounting order. Each part gives its role (trip_unit, thermal_magnetic, fuse, relay and so on), catalogId, skuId and settings. settings is the part's settings row as an export has it, without id, deviceComponentId, createdAt and updatedAt, or null when the part has none.

To keep trip unit settings when you import an export as a new project, send each exported trip unit as a mountedTripUnits entry. Take the protection.deviceComponents rows with componentRole: "trip_unit": use protectionDeviceId as protectionDeviceTempId (when the exported ids are your temp ids), catalogId and skuId as tripUnit, and the protection.settings.tripUnitSettings row with the same deviceComponentId as settings, without id, deviceComponentId, createdAt and updatedAt. A trip unit's mountedParts[].settings from a component read can be sent the same way.

An export also lists each drawn relay's model as a ready mountedRelays entry, with the relay's id as relayDeviceTempId and its settings without the phase CT ratio. Send that list unchanged with the export's components and connections. A relay without a catalogue model has no entry.

Saved TCC sheets

A saved TCC is a coordination sheet: a name, an optional drawing number, a phase or ground view, a plot range and its members. A member is a protection device, transformer, motor or motor starter, named by its component id; EKX works out which. Writes need projects:write and editor access.

Method and pathEffect
POST /projects/{projectId}/tccsCreate a sheet. Answers 201 with the sheet.
PATCH /projects/{projectId}/tccs/{tccId}Change its fields or members.
DELETE /projects/{projectId}/tccs/{tccId}Delete it. Add ?expectedVersion= to refuse when it changed since.
{
  "name": "Utility A to IT panel A1",
  "drawingNumber": "M-TCC-01",
  "viewMode": "phase",
  "members": ["<relay id>", "<transformer id>", "<breaker id>"]
}
  • A create works as making the sheet in the Protection view does: a motor branch breaker or fuse

brings in its motor and the starter's overload, and a name already used gets a numbered suffix. The answer gives the name it saved.

  • A change takes name, drawingNumber (null prints the project's), viewMode, viewport,

and either members to replace the list or addMembers and removeMembers to change it. Send expectedVersion to refuse with 409 when the sheet changed since you read it; without it the change applies to the current version.

  • Each write builds the sheet's plot before it saves. A member with no usable curve refuses the

request with 400 TCC_LAYOUT_UNAVAILABLE, and details.value.affectedComponentIds names it. An id that is not a device, transformer, motor or starter of the project is refused with 400 TCC_MEMBER_NOT_FOUND, naming the ids.

Create, replace, and patch imports also accept a tccs array, written after every component, connection and mounted part:

{
  "tccs": [
    {
      "name": "Main to feeder",
      "drawingNumber": "E-TCC-01",
      "members": [{ "componentTempId": "CB-MAIN" }, { "componentId": "<saved breaker id>" }]
    }
  ]
}

A name that matches a saved sheet (ignoring case) sets that sheet's members and fields, so sending the same import again does not add copies. Any other name is a new sheet. Each name may appear once in a request.

Send project settings

Create, replace, and patch imports accept an optional settings object with three fields:

  • projectSettings: study and project options, using the field names that GET /projects/{projectId}/settings returns.
  • canvasState: the saved canvas view, using the field names that the same read returns.
  • tccLabelPreferences: TCC label choices, described in TCC label preferences.

Place project settings inside settings.projectSettings, not directly under settings:

{
  "settings": {
    "projectSettings": {
      "arcFlashPreFaultVoltagePercent": 105,
      "arcFlashTwoSecondCap": true
    }
  }
}
FieldValues
baseMvaPer-unit power base in MVA; default 100
nominalFrequency50 or 60 Hz; default 60
shortCircuitPreFaultVoltagePercentPercent of nominal from 80 to 120, or null for the IEC 60909 voltage factor; default 100
arcFlashPreFaultVoltagePercentPercent of nominal from 80 to 120, or null for the IEC 60909 voltage factor; default 100
arcFlashTwoSecondCaptrue caps arc duration at 2 seconds; default false
arcFlashGeneratorSustainedPercentSustained fault current, percent of rated current, assumed for every generator with none entered; null (default) decays such a generator to Xd
arcFlashNoUpstreamPolicyunsupported or two_seconds; default unsupported
autoSizingModeoff, suggest, or apply
typicalRacewaynon_magnetic or steel; default non_magnetic. The raceway assumed for a cable whose installationType and racewayType do not name one; it picks the built-in 600 V and 1 kV conductors' NEC Chapter 9, Table 9 resistance and reactance. Changing it marks completed power flow, short-circuit and arc flash runs stale.

Each request saves only the fields you send; omitted fields keep their saved values. A field EKX does not recognize, under settings or inside projectSettings or canvasState, rejects the whole request with a VALIDATION_ERROR whose details name the field. A project export also contains settings.displayConfig; leave it out of an import.

Engineering rules still apply

API graph changes follow the same rules as changes made in the editor. EKX validates component names and required fields, project access, references, handle use, voltage zones, catalog selections, cleanup, and plan limits before it commits.

A successful import may normalize derived values or return a warnings array. A failed rule returns an error and rolls back the complete request. Imports do not run calculations. In a project whose autoSizingMode is apply, the default for a new project, EKX sizes the project after the import commits, as it does after an edit in the editor: blank cables get a size, and equipment you did not rate gets the rating sizing selects. Values you send are manual and stay as sent. To keep every value as sent, set autoSizingMode to suggest or off in settings.projectSettings. If that sizing cannot finish, the import still succeeds and warnings names the skipped or blocked components and explains what remains. The editor shows the saved sizing review when you open the drawing, without requiring another edit or applying changes on open.

Changing a fixed thermal-magnetic breaker's rated current selects the matching part in its series. A mounted fixed release belonging to that assembled part follows the replacement, including its fixed pickup; selecting another part directly does the same. Reads and exports return the replacement and its settings.

A cable created or replaced without cableVariantId, or with null, keeps a blank conductor size in its catalogue series; EKX does not pick one. When the cable's circuit voltage is above that series' rating, the series moves to one rated for it, as it does for a sized cable, and the size stays blank. A patch that omits cableVariantId keeps the saved size, and null clears it. Reads and exports return null for a blank size. In an apply project the sizing that follows the import gives it a size. Otherwise every study that needs the cable's impedance refuses with INCOMPLETE_ENGINEERING_INPUT and names the cable. A cable of length 0 has no impedance at any size, so load flow, short circuit and arc flash run without one; its loading stays unavailable until it has a size. Send a conductor size, from the built-in catalogue or a series you add through the cable library, or size the cable with the sizing preview and apply endpoints in Studies and sizing. Sizing only sizes a cable in automatic mode. On a blank cable, selectedCableSeriesId and parallelRuns name no size, so the cable stays automatic: sizing picks its size in that series and, while automatic parallel runs are on (the default), its run count too. A cableVariantId, or a sizingSettings entry of manual or locked, takes a cable out of sizing. A manual or locked cable with a blank size blocks the protection it would limit until you send a size.

A fuse with a catalogId and skuId gets that fuse part mounted, as picking it in the editor does: its settings, the part's rating and interrupting rating on the device, and the part's catalogue curves when it has exactly one set. A patch or replace that names a different part swaps the mounted fuse; one that resends the saved part keeps the mounted fuse, including a part changed in the editor since, or mounts the named part when the fuse has none. A part that is archived, belongs to another category, or is not in the named catalogue entry fails the request at properties.catalogId.

A patch marks completed studies stale when a submitted component changes any saved value other than its name, description, canvas position or rotation, or a cable's display length unit; resending a component unchanged, or changing only those, leaves them current. Any created or deleted component, and any submitted connection, marks them stale. A sizing setting that changes a component's sizing mode or overrides marks sizing stale.

Important: A project export contains more information than an import accepts. Do not send the export response back unchanged. Build the import body from its project, component, connection, default, sizing-setting, and settings data, and omit study history, calculation evidence, protection internals, and the export's tcc records; send each saved sheet as a `tccs` entry instead. Trip units and their settings go in mountedTripUnits, as described above, and relay models in the export's mountedRelays. CTs keep their ratio as ctRatioPrimary and ctRatioSecondary on the component. Keep each component's id in a replace so its protection and saved TCCs stay.

Keep every exported sizingSettings entry, including its sizingMode (auto, manual, or locked) and authored overrides. Omission lets the import choose new modes from the submitted ratings and can change an automatic component to manual. Remove only sizingInputEvidence from each entry's overrides before sending it; it records server confirmation of the old inputs and cannot authorize a new import. The writer records confirmation from the imported inputs again.

const sizingSettings = exported.sizingSettings.map(({ overrides, ...setting }) => ({
  ...setting,
  overrides: Object.fromEntries(
    Object.entries(overrides ?? {}).filter(([key]) => key !== "sizingInputEvidence")
  ),
}));

Use the resulting entries unchanged for a replacement. For a new project, replace each componentId with componentTempId referring to that component's submitted tempId. The same conversion applies when patching exported sizing settings. Never submit acceptance records, coordinated-group hashes, or sizing results as overrides: these are server-owned evidence.

A transformer export preserves both xrRatio and loadLossesKw. Send both unchanged: when they agree within the stored decimal precision, create, replace and patch retain the pair. Editing losses alone derives X/R; editing X/R alone derives losses. If both change and disagree, losses determine X/R.

Exports report an installed catalogue curve profile as curveProfileKey with a curveProfileStatus, as component reads do; they do not include the catalogue curve IDs behind it.

Create and change scenarios

A scenario is an operating case of the drawing: it changes switching, in-service status and operating values without changing the base design. Equipment values such as ratings, impedances and cable lengths belong to the base design. The scenario endpoints require projects:write and editor access to the project. A viewer key can read scenarios but not change them.

Method and pathResult
POST /projects/{projectId}/scenariosCreates a scenario. Returns 201 with the scenario.
PATCH /projects/{projectId}/scenarios/{scenarioId}Renames a scenario or changes its description.
DELETE /projects/{projectId}/scenarios/{scenarioId}Deletes the scenario and its overrides.
PATCH /projects/{projectId}/scenarios/{scenarioId}/overridesAdds or changes override values. Other values the scenario already overrides stay.
PUT /projects/{projectId}/scenarios/{scenarioId}/overridesReplaces each listed component's overrides with the values you send. Send {} to remove them.
DELETE /projects/{projectId}/scenarios/{scenarioId}/overrides?component_type={type}&component_id={id}Removes one component's overrides. Add fields=z1PuReal,z1PuImag to remove only those values.

Create a scenario with a name, and optionally a description. A new scenario starts equal to the base design. Names must be unique in the project. You cannot delete the Base scenario. Adding, deleting or wiring components changes the drawing for every scenario.

Override writes take a list of components. Each componentType is the singular type: bus, cable, transformer, generator, load, capacitor_bank, utility_feed, protection_device, motor_control_device, or connection. The request saves every component or none.

A connection override names a wire by its connection ID and sets only operatingStatus, open or closed, so a tie drawn as a plain wire can be open in one scenario and closed in another. A protection device's operatingState does the same for a breaker, fuse or switch.

{
  "components": [
    {
      "componentId": "...",
      "componentType": "utility_feed",
      "overrides": { "z1PuReal": "0.1499", "z1PuImag": "0.4611", "z0PuReal": "0.531", "z0PuImag": "0.6112" }
    }
  ]
}

PATCH and PUT return all of the scenario's override records, in the same form as the read endpoint.

Ordinary loads carry nullable loadInputBasis: power holds entered active power and PF, current holds entered current and PF, and power_reactive holds entered active and reactive power, including zero or negative reactive power. Dependent nominal values use the load's own Base rated voltage and phase. Motors and passive loads use their existing models and reject a non-null ordinary-load basis.

For create and complete replacement imports without this key, positive current with absent power selects current. Positive power without usable current selects power_reactive only when reactive power was supplied and PF was absent; otherwise it selects power. Positive power together with positive current is ambiguous and stores null. Nothing positive also stores null. An explicit basis, including null, wins; null preserves supplied numbers without guessing authority. An explicit basis missing its independent input is refused with 400 and the batch writes nothing. Read and export retain the basis; format 4 introduced it, and format 5 also preserves reactive direction for round trips. Older exports remain readable, and support restore and undo replay preserve captured values.

Managed additions with known input authority reject contradictory nonzero inputs; canonical REST imports derive the dependent values.

PATCH and normal editor writes use electrical values that actually differ at stored column precision. In PATCH, an echoed loadInputBasis, including null, is an explicit assertion: clients editing an electrical field should omit it or select the intended basis rather than echoing the whole GET record. Current edits select current; reactive-power edits select P/Q and retain the effective pre-edit active power. Active-power edits keep P/Q when already selected; other active-power edits select power. PF edits retain current or power, and change P/Q to power. For unknown old rows, an explicit PF or rated-voltage edit follows that load's characteristic: constant power holds power, constant current or impedance holds current. Graph propagation and reads do not infer authority for unknown rows. New and explicitly edited known loads keep their entered basis; ambiguous old rows retain legacy behavior until an explicit electrical edit. There is no backfill.

Valid omitted PF inherits. An explicit PF null or zero resets to the scoped configured load PF, accepting only values above zero and at most one, otherwise 0.8. An explicit electrical edit on an unknown row with unusable omitted PF uses 0.8. Readers never look up configured defaults; a missing usable inherited scenario PF uses the constant 0.8.

Normal scenario writes store local independent P, Q or I with a local basis. They do not store derived triangle values or pin a valid inherited PF. Promotion preserves the full-precision pre-edit quantity that becomes independent. Removing the final local independent value removes the local basis; removing or nulling the basis alone while local independent values remain rejects the whole request with 400. Whole clear works, and exact clone/restore accepts legacy captured triangles without adding authority.

On an old Base load with null basis, an explicit scenario PF edit pins Base P for constant power or Base I for constant current or impedance, together with PF and the matching local basis. Resetting PF or the held input removes those three together only when the held value matches the current Base at stored precision (P: 4 decimals; I: 2); nonmatching inputs follow ordinary field-reset semantics, and unrelated overrides remain.

A scenario containing only PF over known Base P/Q uses a temporary effective power basis: live inherited P and the local PF determine its triangle. It saves no local P, Q, I or basis. Later Base P edits still flow through; clearing PF restores live Base P/Q authority and Q. Inherited current stays current and inherited power stays power. A PF edit of an already local P/Q triangle instead promotes it locally to power and retains the required active-power input. Scenario source voltage is an operating condition, not a change to ordinary-load rated voltage or phase.

For ordinary power and current authority, nullable reactivePowerDirection retains leading or lagging independently of a dependent Q that can round to zero. Null keeps the existing effective stored-Q sign fallback; old zero Q is not evidence of intended direction and is not backfilled. P/Q owns its independent signed Q: normal Base writes store direction null, sparse P/Q scenarios omit competing direction, and effective P/Q reads report null direction. A direction-only input cannot change independent Q. Unity PF and true zero Q stay zero.

A PF-only scenario inherits live Base direction. An unchanged displayed direction echo creates no new ownership, including an equal-value reassertion. Newly local power/current inputs, and local Q-to-PF promotions, capture direction for that local triangle; a later Base direction correction does not change it, while an omitted PF remains inherited. An absent local direction inherits Base; an explicit local null suppresses inherited direction metadata and uses the existing effective stored-Q sign fallback. Resetting the local triangle removes captured direction, but retains separately edited direction. A complete rating clear removes both and still normalizes an explicit null/zero PF to the configured default.

Raw scenario GET/export can contain __loadReactivePowerDirectionCaptured: true. This reserved key records reset coupling only: normal writes discard a supplied key and derive provenance themselves. It cannot bypass input validation, permissions or calculations. Exact authenticated/editor-locked snapshot replay and project copy/clone preserve valid captured state under their existing validation contract; they do not prove cryptographic authorship. Normal public import remains new admission, can classify a copied direction as explicit, and can therefore retain it on a later triangle reset when the exact source copy would remove it. Do not assume public import preserves reset ownership identically.

A nonempty load PUT replaces the whole local set and derives electrical values from Base and the submitted set. Discarded local P/Q/current never feeds that calculation; the previous direction can only classify unchanged submitted capture ownership. In the editor, the existing negative-Q then PF workflow authors a leading power/current load, and signed resolved Q shows the direction; no additional control or prompt is required.

New numeric scenario values, including numeric values in additionalFaultCases, accept finite JSON numbers or decimal strings with an optional leading sign and exponent, such as "+2.50e0". Admission trims surrounding whitespace and preserves the decimal token. Scalar JSON numbers keep their type at admission; fault-case values keep the existing typed-list format, which stores numbers as decimal strings. Existing load input and derived-value rules still determine final load values and their formatting. Hexadecimal, binary, octal, underscores, commas, blank text, and non-finite values are refused with 400 SCENARIO_OVERRIDE_INVALID; details.path names the scalar field or a path such as additionalFaultCases.0.shortCircuitMva. The whole request writes nothing. Null keeps each field's existing clearing behavior.

This text rule checks newly submitted values in an ordinary scenario edit and all numeric values copied when duplicating a scenario. An unrelated edit or field reset does not recheck untouched older scalar spellings or fault-case lists. You can replace the affected value/list or clear its overrides; there is no automatic repair of old rows. Reads, exports, Undo and historical project restore/copy retain their existing handling of captured values. Captured scenario replay preserves scalar spellings and keeps the existing fault-case list transformations, including whitespace trimming and number-to-string conversion. Older unsupported text can still require repair before a study runs. Base additional fault-case writes use the ordinary list-admission rule above; other Base numeric fields are unchanged.

Numeric overrides must fit the storage range of the matching Base field, and non-null faultInceptionState values apply only to motors. While a scenario keeps any local transformer tap field, each normal save, field reset, clone or scenario-edit restore of that transformer checks the complete setting, including inherited Base and saved scenario values, against the tap rules used by studies. Clearing all local overrides remains allowed. Base saves keep their existing validation. A field that a scenario cannot change, or an invalid value, rejects the whole request with 400 and names the problem; an equipment field answers with the code SCENARIO_FIELD_NOT_OPERATING and the field in details.path. A scenario can change these fields:

componentTypeFields
businService, isSlackBus
cableinService
transformerinService, tapPosition, tapStep, tapChangerType (the tap setting)
generatorinService, ratedPowerMw (the dispatched output), powerFactor, minimumLoad
loadinService, activePowerMw, reactivePowerMvar, powerFactor, ratedCurrent, loadInputBasis, reactivePowerDirection, demandFactor, diversityFactor, utilizationFactor, faultInceptionState
capacitor_bankinService, energizedSteps
protection_deviceinService, operatingState (closed or open; a load_break_switch takes throw_a, throw_b or open)
motor_control_deviceinService

For a utility feed, a scenario can change voltageKv, operatingVoltagePercent, inService, inputMethod, and the source values for each method:

inputMethodValues the fault studies read
mvashortCircuitMva, xrRatio
fault_currentthreePhaseFaultCurrent, faultCurrentXrRatio
per_unitbaseMva, z1PuReal, z1PuImag, z0PuReal, z0PuImag

A scenario can also set faultCaseName, faultCaseStudies, and additionalFaultCases. It replaces additionalFaultCases as a whole list, and EKX stores the list with the input method its values are for: if you send the list without inputMethod, the scenario's current input method is stored with it. Removing additionalFaultCases from a scenario removes that stored inputMethod too; removing inputMethod alone while the scenario keeps its cases is rejected. A list whose keys do not match the scenario's input method, or whose case is named like the scenario's first case, is rejected.

The studies read only the values for the scenario's input method, after overrides. To study a fault current on a utility entered in per unit, also set inputMethod to fault_current in the scenario; if the utility has added fault cases, send additionalFaultCases with fault-current values in the same request. baseMva and z1PuImag must be above 0, and the other per-unit and ohm values must be 0 or more. A scenario can also set singlePhaseFaultCurrent, shortCircuitMvaLg and xrRatioLg, which the line-to-ground fault reads, and r1Ohms, x1Ohms, r0Ohms, and x0Ohms, which are stored, but no study reads them. A cable's scenario harmonicSettings sets its zero-sequence R0 and X0 for the line-to-ground fault.

To run a study for a scenario, send its ID as scenario_id to the study endpoints in Studies and sizing. A change to a scenario's values marks the completed studies of that scenario stale.

Archive a project

DELETE /projects/{projectId} requires projects:write and project ownership. It archives the project instead of permanently deleting its records.

TCC label preferences

Project reads and full exports include settings.tccLabelPreferences: the project's explicit label choices by breaker, fuse, and relay. Inherited organization/system defaults and personal preferences are excluded.

The existing create, replace, and patch import endpoints accept the same optional field:

{
  "settings": {
    "tccLabelPreferences": {
      "breaker": { "manufacturer": true, "frameSize": true, "functions": true },
      "fuse": { "fuseClass": true }
    }
  }
}

This example is the settings portion of an import payload. Omit the field to preserve existing choices. Supply a map to replace all project TCC choices, or {} to reset them to inherited values. A field omitted from a supplied map inherits; false explicitly hides it. Unsupported device types, fields, and non-boolean values are rejected. Do not place these choices inside projectSettings.

Device typeSupported fields
breakermanufacturer, model, partNumber, frameSize, ratingAmps, tripUnitModel, tripTechnology, functions, curveName, settings
fusemanufacturer, model, partNumber, fuseClass, ratingAmps, curveName
relaymanufacturer, model, partNumber, functions, curveName, settings

These choices affect presentation. They do not change protection functions, applied settings, curves, or study results. Graph imports that omit the field leave label choices unchanged.

Ordinary-load template edits and reset provenance

A newly explicit reactivePowerDirection on an ordinary load with unknown/null input basis may be stored as dormant intent. Legacy calculations ignore it until a known power/current triangle is authored; reads never guess a basis or backfill old zero-Q direction. P/Q continues to use its independent signed Q and normalizes direction to null.

Normal scenario field deletion refuses an explicit __loadReactivePowerDirectionCaptured request, alone or mixed with public fields, atomically. Reset direction or the last local rating to let the shared policy remove its capture; authenticated exact snapshot replay retains its existing validation and permission contract. The marker supplies reset provenance only.

Known ordinary-load defaults carry their authored triangle only while required independent inputs are usable. Missing/cleared/unusable inputs return new creation to its previous defaults path. Individual Settings P/I/PF edits to the scope's own template use the ordinary basis rules without a new control, and a higher legacy field-only rating keeps its prior creation priority over a lower known template. These are new-template rules, not historical component/scenario inference.