API reference
Environments
The Environments API manages costing environments: create, list, update, and delete them, set their identity, and attach the machines they cost against.
The Environments API manages costing environments: create, list, update, and delete them, set their identity, and attach the machines they cost against.
Auto-generated from the public OpenAPI spec — this page never drifts from the running API. Base URL
https://api.arcnm.io. Authenticate with theX-API-Keyheader (see Authentication).
Create Environment
POST /api/v1/environments
Create a costing environment, a named set of machines, tools, rates and
overrides that calculations are priced in. By default it starts as a copy of
your default environment; source can start it blank (tools only) or empty.
Counts against your plan's environment limit.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
currency |
string | no | ISO 4217 currency code the environment's rates are denominated in. |
description |
string | no | Optional longer description of the environment. |
empty |
boolean | no | Skip the documented default of attaching every tool in your crib to the new environment. With explicit tool membership (each environment prices only the tools attached to it), an empty environment unambiguously means 'deliberately empty'. |
name |
string | yes | Human-readable name for the new environment. |
region |
string | no | Geographic region this environment prices for (e.g. DE, US). |
source |
baseline_copy | new_account_default | blank | empty |
no | What the new environment starts from. baseline_copy (the default): a copy of your auto-provisioned environment — its machines, tools, rates and overrides, as you have set them. new_account_default: the auto-provisioned environment exactly as a new account receives it — one machine of every type at its library rates, the tool crib and the subcontract trades, no rates of your own — whatever yours holds today. blank: a new environment with every tool of your crib attached and no machines. empty: nothing attached. Omitted → baseline_copy (or empty when the legacy empty: true is sent). |
valid_from |
string | yes | ISO date (YYYY-MM-DD) from which the environment is effective. |
valid_to |
string | no | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. Must be later than valid_from. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"valid_from": "2026-06-01"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"name": "string",
"valid_from": "2026-06-01"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string",
"valid_from": "2026-06-01"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
201 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 201
| Field | Type | Description |
|---|---|---|
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
description |
string | Optional longer description of the environment. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
name |
string | Human-readable name of the costing environment. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"currency": "EUR",
"description": "string",
"id": "string",
"is_baseline": true,
"is_default": true,
"machine_count": 0,
"machines_cloned": 0,
"name": "string",
"parent_environment_id": "string",
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"scheduled_changes_dropped": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
List Environments
GET /api/v1/environments/
List the organization's costing environments, newest first.
The response is a plain array, so the page position travels in the
Link (RFC 8288) and X-Next-Cursor / X-Has-More response headers.
Paginated. Pass
cursor(from the previous response) to fetch the next page;limitcaps the page size.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
cursor |
query | string | no | Opaque position token from the previous page's next_cursor (or the Link / X-Next-Cursor response header). Omit it for the first page. Keep every other query parameter identical for the whole walk — a cursor replayed against different filters is rejected. |
limit |
query | integer | no | Maximum rows to return in one page. |
order |
query | asc | desc |
no | Sort direction over the collection's ordering key. Use asc to reconcile a batch: rows come oldest-first, so work created while you page lands after your position instead of shifting rows under it. |
created_after |
query | string | no | Only rows created at or after this instant (RFC 3339, e.g. 2026-07-20T09:00:00Z). Inclusive. |
created_before |
query | string | no | Only rows created strictly before this instant (RFC 3339). Exclusive, so an after/before pair tiles a range without overlap. |
offset |
query | integer | no | Rows to skip. Superseded by cursor, which is stable under concurrent writes; kept for existing integrations. Bounded — past the cap, page with cursor. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/ \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Delete Environment
DELETE /api/v1/environments/{env_id}
Delete an environment. ON DELETE CASCADE on the rate + machine-
membership tables means the rates + memberships disappear with it;
the underlying MachineDefinition rows survive (they're org-
scoped, not env-scoped, and may be reused by sibling envs).
Refused (409 environment_has_dependent_children) while an
environment that inherits from it holds calculations; otherwise its
direct children are detached and listed in detached_child_ids.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
detached_child_ids |
string[] | Environments that named the deleted one as their parent. They now have no parent, so the values they inherited through it no longer apply and they price on their own statements and the platform defaults. Empty when it had no children. |
message |
string | Human-readable result of the operation. |
Example response
{
"detached_child_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"message": "string"
}
Get Environment
GET /api/v1/environments/{env_id}
Read one costing environment in full: its currency, region, validity dates and the rates, overheads and surcharges that calculations in it are priced with.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
cash_discount_pct |
number | Customer cash discount (Kundenskonto) this environment prices into the offer, as a fraction of the target price, 'im Hundert' (0.02 = 2 %); null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
config_revision |
integer | Monotonic configuration revision; every configuration write increments it, and each calculation records the revision it priced under. |
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
customer_discount_pct |
number | Customer discount (Kundenrabatt) this environment prices into the offer, as a fraction of the list price, 'im Hundert'; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
default_labour_rate_eur_per_h |
number | Labour rate (EUR/h) this environment states. Read-only here: an effective labour rate row beats this column outright, and that row is the setter. Null = states nothing, so the parent environment's value applies, else the platform default. |
default_material_family |
string | Default material family this environment states for calcs that name no grade; null = states nothing, so the parent environment's value applies, else the platform default. |
description |
string | Optional longer description of the environment. |
duty_eur_per_part |
number | Customs duty per unit this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
energy_eur_per_kwh |
number | Energy price (EUR/kWh) this environment states; null = states nothing, so the parent environment's value applies, else the platform default. |
eoq_holding_cost_per_kg_per_year |
number | Storage charge for finished stock this environment states, per kg and year; null = states nothing, so the parent environment's value applies, else the platform default. |
factor_first_off |
number | First-article-inspection factor this environment states: it scales a full inspection into the per-lot first-off time (0 = none). Null = states nothing, so the parent environment's value applies, else the platform default. |
fai_cost |
number | Flat first-article-inspection cost per lot this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default. |
freight_eur_per_part |
number | Outbound freight per unit this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
holding_cost_rate_per_year |
number | Imputed interest rate on capital tied up in finished stock this environment states, per year (0.08 = 8 %); null = states nothing, so the parent environment's value applies, else the platform default. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
learning_holdout_share |
number | The share of this environment's quotes priced without any learned calibration, as a control group (internal or opt-in environments); null = off. This environment's own, never inherited. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
margin_base |
string | The base of the profit mark-up, as this environment states it: 'selbstkosten' (total cost) or 'netto_selbstkosten' (total cost without packaging, freight and duty); null = states nothing, so the parent environment's value applies, else the platform default, 'selbstkosten'. |
margin_pct |
number | Profit mark-up on total cost this environment states; null = states nothing, so the parent environment's value applies, else the platform default, which adds no mark-up — the quote is a should-cost. |
material_overhead_pct |
number | Procurement / storage surcharge on material cost this environment states (0.07 = 7 %); null = states nothing, so the parent environment's value applies, else the platform default, which adds no surcharge. |
name |
string | Human-readable name of the costing environment. |
ordering_cost_eur_per_order |
number | The buyer's fixed cost of placing and receiving one order (Bestellkosten je Bestellvorgang) this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default of 0. Read by the lot-size scenarios where the buyer orders in lots. |
overhead_fixed_eur_per_part |
number | Fixed overhead (EUR/part) this environment states. Read-only here: an effective fixed-overhead rate row beats this column outright, and that row is the setter. Null = states nothing, so the parent environment's value applies, else the platform default. |
overhead_var_pct |
number | Variable-overhead fraction this environment states. Read-only here: an effective variable-overhead rate row beats this column outright, and that row is the setter. Null = states nothing, so the parent environment's value applies, else none: the platform charges no variable overhead nobody stated. The Zuschlagskalkulation ladder and this rate are one overhead system, never charged together by default. |
packaging_eur_per_part |
number | Packaging material per unit this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
production_overhead_pct |
number | Surcharge on production wages this environment states (0.80 = 80 %); null = states nothing, so the parent environment's value applies, else the platform default, which adds no surcharge. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
reject_rate_base |
string | What a reject costs, as this environment states it: 'material' (the stock drawn for the rejected parts) or 'herstellkosten' (the whole part before scrap, for rejects found at final inspection); null = states nothing, so the parent environment's value applies, else the platform default, 'material'. |
reject_rate_pct |
number | Share of started parts this environment states that the shop rejects (0.03 = 3 %); null = states nothing, so the parent environment's value applies, else the platform default, which rejects none. |
sales_commission_pct |
number | Sales commission (Vertreterprovision) this environment prices into the offer, as a fraction of the target price, 'im Hundert'; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
sample_pct_default |
number | In-process inspection sampling fraction (0..1) this environment states; null = states nothing, so the parent environment's value applies, else the platform default. |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
scrap_credit_eur_per_kg |
number | Flat return per kg of scrap this environment states, net of the cost of selling it, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
sga_pct |
number | Administration and selling surcharge on manufacturing cost this environment states; null = states nothing, so the parent environment's value applies, else the platform default, which adds no surcharge. |
source_preset_id |
string | Environment this one was cloned from (lineage). |
space_eur_per_m2_y |
number | Floor-space cost (EUR/m²·year) this environment states; null = states nothing, so the parent environment's value applies, else the platform default. |
subcontract_overhead_pct |
number | Procurement overhead on subcontract work this environment states, as a fraction of the subcontract cost (0.05 = 5 %); null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"cash_discount_pct": 0,
"config_revision": 0,
"currency": "EUR",
"customer_discount_pct": 0,
"default_labour_rate_eur_per_h": 0,
"default_material_family": "string",
"description": "string",
"duty_eur_per_part": 0,
"energy_eur_per_kwh": 0,
"eoq_holding_cost_per_kg_per_year": 0,
"factor_first_off": 0,
"fai_cost": 0,
"freight_eur_per_part": 0,
"holding_cost_rate_per_year": 0,
"id": "string",
"is_baseline": true,
"is_default": true,
"learning_holdout_share": 0,
"machine_count": 0,
"machines_cloned": 0,
"margin_base": "string",
"margin_pct": 0,
"material_overhead_pct": 0,
"name": "string",
"ordering_cost_eur_per_order": 0,
"overhead_fixed_eur_per_part": 0,
"overhead_var_pct": 0,
"packaging_eur_per_part": 0,
"parent_environment_id": "string",
"production_overhead_pct": 0,
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"reject_rate_base": "string",
"reject_rate_pct": 0,
"sales_commission_pct": 0,
"sample_pct_default": 0,
"scheduled_changes_dropped": 0,
"scrap_credit_eur_per_kg": 0,
"sga_pct": 0,
"source_preset_id": "string",
"space_eur_per_m2_y": 0,
"subcontract_overhead_pct": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Get Environment Assumptions
GET /api/v1/environments/{env_id}/assumptions
Every pricing parameter this costing environment has stated —
the value a calculation would use right now, with the tier that won
and where it came from. Filter with bin_prefix (e.g. milling.),
or ask for the economics alone with parameters=false.
Integration credentials receive your own statements: environment overrides, values inherited from a parent environment, and your tools' own cutting data. The full parameter plane behind them is shown in the app.
Parity contract: values here come from the SAME resolver construction
the pricing pipeline uses, at the environment's current
config_revision.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
bin_prefix |
query | string | no | |
parameters |
query | boolean | no | Include the parameter plane — around a thousand rows, each resolved through the environment chain. Pass false when you only need the stated economics: parameters comes back empty and total is 0, which is what the count has always meant — the rows this response carries. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/assumptions \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/assumptions",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/assumptions", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
chain |
string[] | Environment names, leaf to root — the inheritance path. |
config_revision |
integer | |
economics |
object | |
environment_id |
string | |
name |
string | |
named_sigmas |
object | The named confidence constants manual writes carry (relative 1-sigma): manual_entry, tuning_and_rate_pin, subcontract_override. |
parameter_version |
string | Version stamp of the parameter set this resolution ran under; it changes whenever the underlying defaults change, so two responses with the same stamp are directly comparable. |
parameters |
AssumptionRow[] | |
total |
integer | Number of parameter rows in this response — 0 when it was requested with parameters=false. |
Example response
{
"chain": [
"string"
],
"config_revision": 0,
"economics": {},
"environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"named_sigmas": {},
"parameter_version": "string",
"parameters": [
{
"bin": "string",
"parameter": "string",
"sigma": 0,
"source": "string",
"source_id": "string",
"unit": "",
"value": 0
}
],
"total": 0
}
Get Environment Audit
GET /api/v1/environments/{env_id}/audit
Audit the data a price in this environment depends on: unsourced or
out-of-range cutting data and overrides, tools priced without a life,
unresolvable machines, spindle classes with no power stated, members
that source nothing, rate rows in another currency, and — while the
environment credits sold scrap — published scrap prices more than 90
days old. Read-only; every finding names the panel that fixes it.
clean means no error or warning under these rules — not that the
environment is complete; the field lists the rules.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/audit \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/audit",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/audit", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
clean |
boolean | True when none of the audit's rules raised an error or warning (info findings do not count). It means 'no findings under these rules', not 'complete': a gap no rule checks — say a machine no crib tool fits, or an operation no member subcontractor offers — does not show here. The rules: tool_cutting_row_unsourced, tool_cutting_row_far_from_platform, tool_cutting_rows_shadow_calibration, tool_economics_incomplete, machine_unresolvable, machine_spindle_unstated, override_unsourced, override_far_from_platform, membership_of_retired_tool, subcontractor_without_capabilities, rate_row_currency_mismatch, scrap_price_stale. |
counts |
AuditCountsPublic | |
findings |
AuditFindingPublic[] |
Example response
{
"clean": true,
"counts": {
"error": 0,
"info": 0,
"warning": 0
},
"findings": [
{
"code": "string",
"panel": "string",
"params": {
"age_days": 0,
"bin": "string",
"count": 0,
"distance_pct": 0,
"env_currency": "string",
"material": "string",
"material_category": "string",
"max_spindle_rpm": 0,
"missing": "string",
"observed_on": "string",
"parameter": "string",
"platform": 0,
"price_eur": 0,
"retired_on": "string",
"row_currency": "string",
"scrap_class": "string",
"spindle_power_kw": 0,
"tool_life_min": 0,
"tools": [],
"value": 0
},
"severity": "string",
"subject_id": "string",
"subject_kind": "string",
"subject_name": "string"
}
]
}
Clone Environment
POST /api/v1/environments/{env_id}/clone
Duplicate one of the tenant's OWN environments (env + rates + fleet) into a fresh, non-baseline, uncalibrated copy — "start from this environment, then tune or calibrate the duplicate". Only the tenant's own envs can be cloned (any other id, including a platform preset or another tenant's env, → 404).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | no | Optional name for the duplicate; defaults to ' (copy)'. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/clone \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/clone",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"name": "string"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/clone", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
201 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 201
| Field | Type | Description |
|---|---|---|
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
description |
string | Optional longer description of the environment. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
name |
string | Human-readable name of the costing environment. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"currency": "EUR",
"description": "string",
"id": "string",
"is_baseline": true,
"is_default": true,
"machine_count": 0,
"machines_cloned": 0,
"name": "string",
"parent_environment_id": "string",
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"scheduled_changes_dropped": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Get Cutting Data
GET /api/v1/environments/{env_id}/cutting-data
The environment's effective cutting data (Schnittwerte) per process family and material group, and per ISO 513 workpiece group for the cutting speed — the finer axis a grade's speed is resolved from. Your own value on either axis beats a platform figure; where you have set both, the workpiece group wins as the more specific statement. Every row carries its provenance ("platform default vs your override") and the accepted value window for that parameter.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/cutting-data \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/cutting-data",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/cutting-data", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
rows |
CuttingDataRowPublic[] | Every editable cutting-data entry with its effective value. |
Example response
{
"rows": [
{
"axis": "material",
"hardness_band": "string",
"iso_group": "string",
"material_code": "string",
"material_label": "string",
"max": 0,
"min": 0,
"parameter": "string",
"process": "string",
"source": "your_override",
"unit": "string",
"value": 0
}
]
}
Update Cutting Data
PUT /api/v1/environments/{env_id}/cutting-data
Write environment-level cutting-data overrides (audited).
Each entry targets one (process, material-or-workpiece-group, parameter) from the closed catalogue; a null value clears your override so the platform default applies again. Your own value on either axis beats a platform figure; where you have set a cutting speed on both the material and its workpiece group, the group wins for every grade mapped to that leaf — the order the pricing engine resolves them in. Values must sit inside the parameter's plausibility window. Changes re-price new calculations in this environment and its child environments immediately.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
values |
CuttingDataEntryUpdate[] | yes | Cutting-data entries to write (null value = reset to default). |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/cutting-data \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"values": [
{
"material_code": "string",
"parameter": "string",
"process": "string",
"value": 0
}
]
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/cutting-data",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"values": [
{
"material_code": "string",
"parameter": "string",
"process": "string",
"value": 0
}
]
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/cutting-data", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"values": [
{
"material_code": "string",
"parameter": "string",
"process": "string",
"value": 0
}
]
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
rows |
CuttingDataRowPublic[] | Every editable cutting-data entry with its effective value. |
Example response
{
"rows": [
{
"axis": "material",
"hardness_band": "string",
"iso_group": "string",
"material_code": "string",
"material_label": "string",
"max": 0,
"min": 0,
"parameter": "string",
"process": "string",
"source": "your_override",
"unit": "string",
"value": 0
}
]
}
Stop an environment being the organization's default
DELETE /api/v1/environments/{env_id}/default
When this environment is the organization's default, clear it: a calculation that names no environment is priced in the auto-provisioned one again. When it is not the default, nothing changes.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id}/default \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}/default",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/default", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
description |
string | Optional longer description of the environment. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
name |
string | Human-readable name of the costing environment. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"currency": "EUR",
"description": "string",
"id": "string",
"is_baseline": true,
"is_default": true,
"machine_count": 0,
"machines_cloned": 0,
"name": "string",
"parent_environment_id": "string",
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"scheduled_changes_dropped": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Make an environment the organization's default
PUT /api/v1/environments/{env_id}/default
Make this environment the one a calculation that names no environment
is priced in, for the whole organization: POST /calculations, /quote,
/calculations/batch, /upload-and-quote and upload links. Repeating the
call changes nothing. While the environment is not in force (its validity
has not started or has ended) the auto-provisioned one is used, and
is_default reads false.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/default \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/default",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/default", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
description |
string | Optional longer description of the environment. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
name |
string | Human-readable name of the costing environment. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"currency": "EUR",
"description": "string",
"id": "string",
"is_baseline": true,
"is_default": true,
"machine_count": 0,
"machines_cloned": 0,
"name": "string",
"parent_environment_id": "string",
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"scheduled_changes_dropped": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Update the environment's stated economics.
PATCH /api/v1/environments/{env_id}/economics
Set the typed regional economics this environment states itself: energy price, floor-space cost, default material family, the cost-sheet surcharges (material overhead, residual production overhead, administration and selling, profit mark-up) with packaging, freight and duty, the price terms priced in 'im Hundert' (cash discount, sales commission, customer discount), and the inspection / holding scalars. Omit a field to keep it; send null to clear it, which stores nothing on this environment so the value inherits from the parent environment again and ends at the platform default. Takes effect on the next calculation. The platform charges no variable overhead of its own: one applies only where an environment on the chain states it (as a rate row or here). With a material or production overhead (MGK / FGK) stated and no variable overhead, GET /environments/{env_id}/assumptions reports the variable overhead's source as 'disabled_by_ladder'.
Every *_pct field is a fraction of its base: 0.08 is 8 %. A value above the field's maximum is refused with 422, details.reason percent_as_fraction and the fraction meant in the message, instead of being priced as a percentage 100 times too large.
learning_holdout_share (internal or opt-in environments) sets the share of quotes priced without any learned calibration; outside 0 < share ≤ 0.05 it is refused with 422 learning_holdout_share_out_of_range and nothing is changed.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
cash_discount_pct |
number | no | Customer cash discount (Kundenskonto) priced into the offer 'im Hundert' (0.02 = 2 %): it is a share of the target price that already contains it, so a customer who deducts it still pays the cash price. Null clears back to inherit / platform default, which prices none. |
customer_discount_pct |
number | no | Customer discount (Kundenrabatt) priced into the offer 'im Hundert', as a share of the list price (the offer price). Null clears back to inherit / platform default, which prices none. |
default_material_family |
string | no | Default material family for calculations that name no grade (steel, stainless, aluminum, titanium, nickel, other); null clears back to inherit / platform default. |
duty_eur_per_part |
number | no | Customs duty per unit, in the environment's currency; null clears back to inherit / platform default. |
energy_eur_per_kwh |
number | no | Stated energy price per kWh, in the environment's currency; null clears back to inherit / platform default. |
eoq_holding_cost_per_kg_per_year |
number | no | Storage charge for finished stock per kg and year; null clears back to inherit / platform default. |
factor_first_off |
number | no | First-article-inspection factor: scales a full inspection into the per-lot first-off time (0 = none, and an explicit 0 is a statement that survives). Null clears back to inherit / platform default. |
fai_cost |
number | no | Flat first-article-inspection cost per lot, in the environment's currency; null clears back to inherit / platform default. |
freight_eur_per_part |
number | no | Outbound freight per unit, in the environment's currency; null clears back to inherit / platform default. |
holding_cost_rate_per_year |
number | no | Imputed yearly interest rate on capital tied up in finished stock (0.08 = 8 %); null clears back to inherit / platform default. |
learning_holdout_share |
number | no | For internal or opt-in environments: the share of this environment's quotes priced without any learned calibration — a control group that shows what the learned values change. Above 0 and at most 0.05 (0.03 = 3 %); a value outside is refused with 422 learning_holdout_share_out_of_range. The same calculation is always in or out of the share. Null switches it off (the default); never inherited. |
margin_base |
selbstkosten | netto_selbstkosten |
no | The base of the profit mark-up. 'selbstkosten' charges margin_pct on the total cost. 'netto_selbstkosten' charges it on the total cost without packaging, freight and duty — the base German public-contract pricing names. Null clears back to inherit / platform default, 'selbstkosten'. |
margin_pct |
number | no | Profit mark-up on total cost, as a fraction (0.10 = 10 %, at most 1.0); null clears back to inherit / platform default, which adds none. |
material_overhead_pct |
number | no | Procurement / storage surcharge on material cost, as a fraction (0.07 = 7 %, at most 1.0); null clears back to inherit / platform default. The platform states no variable overhead of its own, so nothing is switched off; a variable overhead you state yourself still applies beside it. |
ordering_cost_eur_per_order |
number | no | The buyer's fixed cost of placing and receiving one order, in the environment's currency; null clears back to inherit / platform default (0). |
packaging_eur_per_part |
number | no | Packaging material per unit (Sondereinzelkosten des Vertriebs), in the environment's currency; the packing labour is priced on the labour line, not here. Null clears back to inherit / platform default. |
production_overhead_pct |
number | no | Surcharge on production wages, as a fraction (0.80 = 80 %). The one surcharge accepted above 1.0, up to 10.0 (1 000 %): a production overhead commonly runs at several times the wages it is charged on. Null clears back to inherit / platform default. The platform states no variable overhead of its own, so nothing is switched off; a variable overhead you state yourself still applies beside it. |
reject_rate_base |
material | herstellkosten |
no | What a reject costs. 'material' charges the reject rate on the stock drawn for the parts that fail — the lower bound, right when rejects are found at the first operation. 'herstellkosten' charges it on the whole part before scrap (material, manufacturing and their overheads), the industry convention for end-item scrap found at final inspection. One method, never both. Null clears back to inherit / platform default, 'material'. |
reject_rate_pct |
number | no | Share of the parts this shop STARTS that it rejects, as a fraction (0.03 = 3 %, not 3). It is a yield, not a surcharge: to ship 100 good parts at 0.03 the shop starts 104, and the stock drawn for the four that never shipped is charged to the ones that did. Charged on the base reject_rate_base names: the material draw by default, or the whole part when the shop finds its rejects at final inspection. Must be below 0.5 — half a shop's output failing is a process problem, not a costing input. Null clears back to inherit / platform default, which rejects nothing. |
sales_commission_pct |
number | no | Sales commission (Vertreterprovision) priced into the offer 'im Hundert', as a share of the target price. Null clears back to inherit / platform default, which prices none. |
sample_pct_default |
number | no | In-process inspection sampling fraction (0..1). An explicit 0 switches sampling off and is a statement that survives; null clears back to inherit / platform default. |
scrap_credit_eur_per_kg |
number | no | Scrap credit (Reststoffgutschrift): the flat return per kg of scrap, in the environment's currency — what the dealer pays less what sorting, containers and haulage cost you. Paid on the scrap a dealer buys (sheet skeleton, chips, cut-offs) wherever no scrap price is stated for that kind of scrap; never on a reusable remnant or on the part itself. The credit is never more than the material cost; it reduces the material before the material overhead and a material scrap allowance are charged. Null clears back to inherit / platform default, which credits nothing. |
sga_pct |
number | no | Administration and selling surcharge on manufacturing cost, as a fraction (0.12 = 12 %, at most 1.0); null clears back to inherit / platform default. |
space_eur_per_m2_y |
number | no | Stated floor-space cost per m² and year, in the environment's currency; null clears back to inherit / platform default. |
subcontract_overhead_pct |
number | no | Procurement overhead on subcontract work, as a fraction of the subcontract cost (0.05 = 5 %), charged inside the manufacturing cost. Null clears back to inherit / platform default, which adds none. |
Request
curl -X PATCH https://api.arcnm.io/api/v1/environments/{env_id}/economics \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cash_discount_pct": 0,
"customer_discount_pct": 0,
"default_material_family": "string",
"duty_eur_per_part": 0,
"energy_eur_per_kwh": 0,
"eoq_holding_cost_per_kg_per_year": 0,
"factor_first_off": 0,
"fai_cost": 0,
"freight_eur_per_part": 0,
"holding_cost_rate_per_year": 0,
"learning_holdout_share": 0,
"margin_base": "selbstkosten",
"margin_pct": 0,
"material_overhead_pct": 0,
"ordering_cost_eur_per_order": 0,
"packaging_eur_per_part": 0,
"production_overhead_pct": 0,
"reject_rate_base": "material",
"reject_rate_pct": 0,
"sales_commission_pct": 0,
"sample_pct_default": 0,
"scrap_credit_eur_per_kg": 0,
"sga_pct": 0,
"space_eur_per_m2_y": 0,
"subcontract_overhead_pct": 0
}'
import requests
resp = requests.patch(
"https://api.arcnm.io/api/v1/environments/{env_id}/economics",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"cash_discount_pct": 0,
"customer_discount_pct": 0,
"default_material_family": "string",
"duty_eur_per_part": 0,
"energy_eur_per_kwh": 0,
"eoq_holding_cost_per_kg_per_year": 0,
"factor_first_off": 0,
"fai_cost": 0,
"freight_eur_per_part": 0,
"holding_cost_rate_per_year": 0,
"learning_holdout_share": 0,
"margin_base": "selbstkosten",
"margin_pct": 0,
"material_overhead_pct": 0,
"ordering_cost_eur_per_order": 0,
"packaging_eur_per_part": 0,
"production_overhead_pct": 0,
"reject_rate_base": "material",
"reject_rate_pct": 0,
"sales_commission_pct": 0,
"sample_pct_default": 0,
"scrap_credit_eur_per_kg": 0,
"sga_pct": 0,
"space_eur_per_m2_y": 0,
"subcontract_overhead_pct": 0
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/economics", {
method: "PATCH",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"cash_discount_pct": 0,
"customer_discount_pct": 0,
"default_material_family": "string",
"duty_eur_per_part": 0,
"energy_eur_per_kwh": 0,
"eoq_holding_cost_per_kg_per_year": 0,
"factor_first_off": 0,
"fai_cost": 0,
"freight_eur_per_part": 0,
"holding_cost_rate_per_year": 0,
"learning_holdout_share": 0,
"margin_base": "selbstkosten",
"margin_pct": 0,
"material_overhead_pct": 0,
"ordering_cost_eur_per_order": 0,
"packaging_eur_per_part": 0,
"production_overhead_pct": 0,
"reject_rate_base": "material",
"reject_rate_pct": 0,
"sales_commission_pct": 0,
"sample_pct_default": 0,
"scrap_credit_eur_per_kg": 0,
"sga_pct": 0,
"space_eur_per_m2_y": 0,
"subcontract_overhead_pct": 0
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
cash_discount_pct |
number | Customer cash discount (Kundenskonto) this environment prices into the offer, as a fraction of the target price, 'im Hundert' (0.02 = 2 %); null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
config_revision |
integer | Monotonic configuration revision; every configuration write increments it, and each calculation records the revision it priced under. |
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
customer_discount_pct |
number | Customer discount (Kundenrabatt) this environment prices into the offer, as a fraction of the list price, 'im Hundert'; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
default_labour_rate_eur_per_h |
number | Labour rate (EUR/h) this environment states. Read-only here: an effective labour rate row beats this column outright, and that row is the setter. Null = states nothing, so the parent environment's value applies, else the platform default. |
default_material_family |
string | Default material family this environment states for calcs that name no grade; null = states nothing, so the parent environment's value applies, else the platform default. |
description |
string | Optional longer description of the environment. |
duty_eur_per_part |
number | Customs duty per unit this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
energy_eur_per_kwh |
number | Energy price (EUR/kWh) this environment states; null = states nothing, so the parent environment's value applies, else the platform default. |
eoq_holding_cost_per_kg_per_year |
number | Storage charge for finished stock this environment states, per kg and year; null = states nothing, so the parent environment's value applies, else the platform default. |
factor_first_off |
number | First-article-inspection factor this environment states: it scales a full inspection into the per-lot first-off time (0 = none). Null = states nothing, so the parent environment's value applies, else the platform default. |
fai_cost |
number | Flat first-article-inspection cost per lot this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default. |
freight_eur_per_part |
number | Outbound freight per unit this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
holding_cost_rate_per_year |
number | Imputed interest rate on capital tied up in finished stock this environment states, per year (0.08 = 8 %); null = states nothing, so the parent environment's value applies, else the platform default. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
learning_holdout_share |
number | The share of this environment's quotes priced without any learned calibration, as a control group (internal or opt-in environments); null = off. This environment's own, never inherited. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
margin_base |
string | The base of the profit mark-up, as this environment states it: 'selbstkosten' (total cost) or 'netto_selbstkosten' (total cost without packaging, freight and duty); null = states nothing, so the parent environment's value applies, else the platform default, 'selbstkosten'. |
margin_pct |
number | Profit mark-up on total cost this environment states; null = states nothing, so the parent environment's value applies, else the platform default, which adds no mark-up — the quote is a should-cost. |
material_overhead_pct |
number | Procurement / storage surcharge on material cost this environment states (0.07 = 7 %); null = states nothing, so the parent environment's value applies, else the platform default, which adds no surcharge. |
name |
string | Human-readable name of the costing environment. |
ordering_cost_eur_per_order |
number | The buyer's fixed cost of placing and receiving one order (Bestellkosten je Bestellvorgang) this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default of 0. Read by the lot-size scenarios where the buyer orders in lots. |
overhead_fixed_eur_per_part |
number | Fixed overhead (EUR/part) this environment states. Read-only here: an effective fixed-overhead rate row beats this column outright, and that row is the setter. Null = states nothing, so the parent environment's value applies, else the platform default. |
overhead_var_pct |
number | Variable-overhead fraction this environment states. Read-only here: an effective variable-overhead rate row beats this column outright, and that row is the setter. Null = states nothing, so the parent environment's value applies, else none: the platform charges no variable overhead nobody stated. The Zuschlagskalkulation ladder and this rate are one overhead system, never charged together by default. |
packaging_eur_per_part |
number | Packaging material per unit this environment states, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
production_overhead_pct |
number | Surcharge on production wages this environment states (0.80 = 80 %); null = states nothing, so the parent environment's value applies, else the platform default, which adds no surcharge. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
reject_rate_base |
string | What a reject costs, as this environment states it: 'material' (the stock drawn for the rejected parts) or 'herstellkosten' (the whole part before scrap, for rejects found at final inspection); null = states nothing, so the parent environment's value applies, else the platform default, 'material'. |
reject_rate_pct |
number | Share of started parts this environment states that the shop rejects (0.03 = 3 %); null = states nothing, so the parent environment's value applies, else the platform default, which rejects none. |
sales_commission_pct |
number | Sales commission (Vertreterprovision) this environment prices into the offer, as a fraction of the target price, 'im Hundert'; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
sample_pct_default |
number | In-process inspection sampling fraction (0..1) this environment states; null = states nothing, so the parent environment's value applies, else the platform default. |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
scrap_credit_eur_per_kg |
number | Flat return per kg of scrap this environment states, net of the cost of selling it, in its own currency; null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
sga_pct |
number | Administration and selling surcharge on manufacturing cost this environment states; null = states nothing, so the parent environment's value applies, else the platform default, which adds no surcharge. |
source_preset_id |
string | Environment this one was cloned from (lineage). |
space_eur_per_m2_y |
number | Floor-space cost (EUR/m²·year) this environment states; null = states nothing, so the parent environment's value applies, else the platform default. |
subcontract_overhead_pct |
number | Procurement overhead on subcontract work this environment states, as a fraction of the subcontract cost (0.05 = 5 %); null = states nothing, so the parent environment's value applies, else the platform default, which is none. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"cash_discount_pct": 0,
"config_revision": 0,
"currency": "EUR",
"customer_discount_pct": 0,
"default_labour_rate_eur_per_h": 0,
"default_material_family": "string",
"description": "string",
"duty_eur_per_part": 0,
"energy_eur_per_kwh": 0,
"eoq_holding_cost_per_kg_per_year": 0,
"factor_first_off": 0,
"fai_cost": 0,
"freight_eur_per_part": 0,
"holding_cost_rate_per_year": 0,
"id": "string",
"is_baseline": true,
"is_default": true,
"learning_holdout_share": 0,
"machine_count": 0,
"machines_cloned": 0,
"margin_base": "string",
"margin_pct": 0,
"material_overhead_pct": 0,
"name": "string",
"ordering_cost_eur_per_order": 0,
"overhead_fixed_eur_per_part": 0,
"overhead_var_pct": 0,
"packaging_eur_per_part": 0,
"parent_environment_id": "string",
"production_overhead_pct": 0,
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"reject_rate_base": "string",
"reject_rate_pct": 0,
"sales_commission_pct": 0,
"sample_pct_default": 0,
"scheduled_changes_dropped": 0,
"scrap_credit_eur_per_kg": 0,
"sga_pct": 0,
"source_preset_id": "string",
"space_eur_per_m2_y": 0,
"subcontract_overhead_pct": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Read the environment's effective rates.
GET /api/v1/environments/{env_id}/effective-rates
The rates this environment's prices are computed with — per driver (machine hour, labour hour, overheads) and per machine, each with its source: your override, a calibrated adjustment, or the platform default. Rate detail is shown in the Arcanum app; integrations receive the status envelope.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
at |
query | string | no | As-of date for effective-dated rates; defaults to today (UTC). |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/effective-rates \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/effective-rates",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/effective-rates", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
as_of |
string | |
calibrated |
boolean | Whether this environment has been calibrated to your actuals. |
currency |
string | |
env_id |
string | |
mode |
per_driver | overall |
|
note |
string | |
overhead_var_base |
direct | material | labour | conversion |
The cost the variable-overhead percentage is charged on: all direct and machine cost, bought-in material only, your own wages only, or your own value-add (direct and machine cost less material and bought-in work). Determines whether a supplier invoice attracts your overhead surcharge. |
Example response
{
"as_of": "2026-06-01",
"calibrated": true,
"currency": "EUR",
"env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"mode": "per_driver",
"note": "string",
"overhead_var_base": "direct"
}
Set an effective rate for one driver.
PUT /api/v1/environments/{env_id}/effective-rates
Set the rate a driver charges, in its own unit. Your number becomes the effective rate; future calibrations adjust around it. Takes effect on the next calculation.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
driver |
machine | labour | overhead_var | overhead_fix |
yes | Which rate to set. |
value |
number | yes | The effective rate to charge, in the driver's unit. The two overheads accept 0 (charge none); machine and labour must be above 0. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/effective-rates \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"driver": "machine",
"value": 0
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/effective-rates",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"driver": "machine",
"value": 0
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/effective-rates", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"driver": "machine",
"value": 0
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
as_of |
string | |
calibrated |
boolean | Whether this environment has been calibrated to your actuals. |
currency |
string | |
env_id |
string | |
mode |
per_driver | overall |
|
note |
string | |
overhead_var_base |
direct | material | labour | conversion |
The cost the variable-overhead percentage is charged on: all direct and machine cost, bought-in material only, your own wages only, or your own value-add (direct and machine cost less material and bought-in work). Determines whether a supplier invoice attracts your overhead surcharge. |
Example response
{
"as_of": "2026-06-01",
"calibrated": true,
"currency": "EUR",
"env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"mode": "per_driver",
"note": "string",
"overhead_var_base": "direct"
}
Get Environment Factors
GET /api/v1/environments/{env_id}/factors
Every number the cost sheet lets you change, resolved for this
environment: what it is worth here, where that came from, the range a
what-if may explore, which cost lines it moves, and the endpoint that
saves it. keys and process narrow the table; without them every
factor is returned.
Values are read through the same resolvers a calculation uses, so a factor shown here is the factor that was charged.
Integration credentials receive your own statements; the platform's
own defaults and calibrated fits are shown in the app and come back
here as source: "withheld" with a null value.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
keys |
query | string[] | no | Only these factors. A key matches itself and its per-process rows: time.setup_efficiency returns time.setup_efficiency.milling, ….turning, …. Repeat the parameter for several keys. Omit for every factor. |
process |
query | string | no | Only the rows of this process bin (e.g. milling); environment-wide factors have no process and drop out. Omit for every row. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/factors \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/factors",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/factors", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
config_revision |
integer | |
currency |
string | Currency every money unit in 'rows' is denominated in. |
environment_id |
string | |
rows |
FactorRowPublic[] | |
total |
integer |
Example response
{
"config_revision": 0,
"currency": "EUR",
"environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rows": [
{
"drives": [
"string"
],
"edit_path": "string",
"key": "string",
"label_id": "string",
"max": 0,
"min": 0,
"moves": "string",
"platform_value": 0,
"preview": "linear",
"process": "string",
"source": "your_override",
"source_quality": "sourced",
"unit": "string",
"value": 0
}
],
"total": 0
}
Update Environment Identity
PUT /api/v1/environments/{env_id}/identity
Change a costing environment's name, description, region, currency, validity dates or parent environment. Its machines, tools and rates are changed with their own tools.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
currency |
string | no | New ISO 4217 currency code; omit to leave unchanged. |
description |
string | no | New description for the environment; omit to leave unchanged. |
name |
string | no | New name for the environment; omit to leave unchanged. |
parent_environment_id |
string | no | Environment this one inherits from. Anything this environment does not state itself — a machine rate, a labour rate, a subcontract price, a physics override — resolves from the parent, and from ITS parent above that, so a region can be priced once and a quarter or a customer programme can restate only what differs. Send null to detach. Omit to leave unchanged. |
region |
string | no | New region for the environment; omit to leave unchanged. |
valid_from |
string | no | New effective-from ISO date (YYYY-MM-DD); omit to leave unchanged. |
valid_to |
string | no | New effective-to ISO date (YYYY-MM-DD); omit to leave unchanged. Must be later than valid_from (the one sent, else the stored one). |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/identity \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"currency": "EUR",
"description": "string",
"name": "string",
"parent_environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"region": "EU",
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/identity",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"currency": "EUR",
"description": "string",
"name": "string",
"parent_environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"region": "EU",
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/identity", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"currency": "EUR",
"description": "string",
"name": "string",
"parent_environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"region": "EU",
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
description |
string | Optional longer description of the environment. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
name |
string | Human-readable name of the costing environment. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"currency": "EUR",
"description": "string",
"id": "string",
"is_baseline": true,
"is_default": true,
"machine_count": 0,
"machines_cloned": 0,
"name": "string",
"parent_environment_id": "string",
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"scheduled_changes_dropped": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Get Individualization
GET /api/v1/environments/{env_id}/individualization
What this environment states differently from the platform defaults, per lever — the honest zero-setup meter. Counts only; every line maps to a Setup panel and, on the default environment, to its restore.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/individualization \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/individualization",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/individualization", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
assumptions |
AssumptionsCounts | |
calibration |
CalibrationCounts | |
individualized |
boolean | Any lever differs from the platform set / platform defaults. |
is_baseline |
boolean | |
machines |
LeverCounts | |
rates |
RatesCounts | |
subcontractors |
LeverCounts | |
tools |
LeverCounts |
Example response
{
"assumptions": {
"overrides": 0,
"tuning_changed": true
},
"calibration": {
"is_calibrated": true,
"observations": 0
},
"individualized": true,
"is_baseline": true,
"machines": {
"added": 0,
"custom": 0,
"edited": 0,
"hidden": 0,
"off": 0,
"removed": 0
},
"rates": {
"stated": 0
},
"subcontractors": {
"added": 0,
"custom": 0,
"edited": 0,
"hidden": 0,
"off": 0,
"removed": 0
},
"tools": {
"added": 0,
"custom": 0,
"edited": 0,
"hidden": 0,
"off": 0,
"removed": 0
}
}
List Env Machines
GET /api/v1/environments/{env_id}/machines
Machines wired to this env, ordered by fleet_priority (lower =
earlier candidate). The same fleet feeds every pricing run for the
environment. at answers "what does the fleet look like on date
X" — the same active_as_of window pricing resolves on that date
(rates already take ?at); it defaults to today.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
at |
query | string | no | As-of date for the fleet window; defaults to today. Answers "what does the fleet look like on date X" — a scheduled addition appears once at reaches its valid_from, a scheduled removal disappears from its valid_to on. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/machines \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/machines",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/machines", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Attach Machine
POST /api/v1/environments/{env_id}/machines
Add a machine to a costing environment so calculations in it can plan on it: one of your machines, a machine-library entry, or a new machine defined inline, with optional rate and capability overrides.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
capability_overrides |
object | no | Sparse per-environment capability overrides merged over the library defaults. |
fleet_priority |
integer | no | Orders machines within the environment; lower values are tried first. |
hourly_rate_override_eur |
number | no | Optional flat machine-hour rate; defaults to the library entry's nominal rate. |
is_enabled |
boolean | no | Whether the machine is active in the environment's fleet on attach. |
library_entry_id |
string | no | Instantiate a machine from this shared/tenant library entry; mutually exclusive with machine_id / new_machine. |
machine_id |
string | no | Identifier of an existing machine to attach; mutually exclusive with new_machine. |
name_override |
string | no | Optional name for the instantiated machine; defaults to the library entry's name. |
new_machine |
MachineDefinitionCreate | no | Inline definition of a new machine to create and attach; mutually exclusive with machine_id. |
rate_operator_eur_per_h_override |
number | no | Operator wage already contained in hourly_rate_override_eur, in EUR per hour. Only meaningful with a rate override; without one the library entry's own declaration is inherited along with its rate. 0 means the rate is machine-only. |
valid_from |
string | no | ISO date (YYYY-MM-DD) the membership starts; defaults to the machine's own valid_from. |
valid_to |
string | no | ISO date (YYYY-MM-DD) the membership ends; defaults to the machine's own valid_to. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/machines \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"capability_overrides": {},
"fleet_priority": 100,
"hourly_rate_override_eur": 0,
"is_enabled": true,
"library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"machine_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name_override": "string",
"new_machine": {
"burden_rate_eur": 0,
"capabilities": {
"axes_indexable": 0,
"axes_simultaneous": 0,
"bar_feeder": false,
"certifications": [
"string"
],
"chatter_stability_lobe": {
"rpm_to_max_axial_depth_mm": [
{}
]
},
"coolant": [
"flood"
],
"counter_spindle": false,
"hard_turning": false,
"iso_286_achievable_grade": "IT01",
"klass": "milling.3axis_vmc",
"laser_power_kw": 0,
"max_bar_diameter_mm": 0,
"max_material_thickness_mm": 0,
"max_part_envelope_mm": [
null
],
"max_setups_per_part": 6,
"max_spindle_rpm": 0,
"max_table_load_kg": 0,
"max_tool_diameter_by_kind_mm": {},
"max_tool_diameter_mm": 0,
"max_tool_length_mm": 0,
"min_material_thickness_mm": 0,
"nominal_tool_change_time_s_by_class": {},
"pallet_change_time_s": 0,
"plasma_amperage_a": 0,
"positioning_accuracy_mm": 0.01,
"press_force_kn": 0,
"rapid_traverse_m_per_min": 24,
"repeatability_mm": 0.005,
"schema_version": "1.0.0",
"spindle_power_kw": 0,
"swing_mm": 0,
"tool_interface": "string",
"tool_magazine_capacity": 0,
"turning_length_mm": 0,
"turret_stations": 0,
"vdi_3258": {
"acquisition_cost_eur": 0,
"annual_hours_T_G": 0,
"annual_hours_T_IH": 0,
"annual_hours_T_ST": 0,
"capital_interest_rate": 0,
"depreciation_life_h": 0,
"energy_eur_per_kwh": 0,
"energy_kw": 0,
"floor_space_m2": 0,
"maintenance_eur_per_year": 0,
"operator_hourly_eur": 0,
"operator_share": 0,
"replacement_value_eur": 0,
"shift_model": {
"availability": 1,
"days_per_week": 0,
"hours_per_shift": 0,
"shifts_per_day": 0,
"weeks_per_year": 47
},
"space_eur_per_m2_y": 0,
"tooling_eur_per_year": 0
},
"workholding": [
"vise.3jaw"
]
},
"hourly_rate_eur": 0,
"klass": "milling.3axis_vmc",
"library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_no": "string",
"name": "string",
"programming_rate_eur": 0,
"rate_operator_eur_per_h": 0,
"rate_operator_share": 0,
"setup_rate_eur": 0,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01",
"vendor": "string",
"wage_group": "string"
},
"rate_operator_eur_per_h_override": 0,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/machines",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"capability_overrides": {},
"fleet_priority": 100,
"hourly_rate_override_eur": 0,
"is_enabled": True,
"library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"machine_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name_override": "string",
"new_machine": {
"burden_rate_eur": 0,
"capabilities": {
"axes_indexable": 0,
"axes_simultaneous": 0,
"bar_feeder": False,
"certifications": [
"string"
],
"chatter_stability_lobe": {
"rpm_to_max_axial_depth_mm": [
{}
]
},
"coolant": [
"flood"
],
"counter_spindle": False,
"hard_turning": False,
"iso_286_achievable_grade": "IT01",
"klass": "milling.3axis_vmc",
"laser_power_kw": 0,
"max_bar_diameter_mm": 0,
"max_material_thickness_mm": 0,
"max_part_envelope_mm": [
None
],
"max_setups_per_part": 6,
"max_spindle_rpm": 0,
"max_table_load_kg": 0,
"max_tool_diameter_by_kind_mm": {},
"max_tool_diameter_mm": 0,
"max_tool_length_mm": 0,
"min_material_thickness_mm": 0,
"nominal_tool_change_time_s_by_class": {},
"pallet_change_time_s": 0,
"plasma_amperage_a": 0,
"positioning_accuracy_mm": 0.01,
"press_force_kn": 0,
"rapid_traverse_m_per_min": 24,
"repeatability_mm": 0.005,
"schema_version": "1.0.0",
"spindle_power_kw": 0,
"swing_mm": 0,
"tool_interface": "string",
"tool_magazine_capacity": 0,
"turning_length_mm": 0,
"turret_stations": 0,
"vdi_3258": {
"acquisition_cost_eur": 0,
"annual_hours_T_G": 0,
"annual_hours_T_IH": 0,
"annual_hours_T_ST": 0,
"capital_interest_rate": 0,
"depreciation_life_h": 0,
"energy_eur_per_kwh": 0,
"energy_kw": 0,
"floor_space_m2": 0,
"maintenance_eur_per_year": 0,
"operator_hourly_eur": 0,
"operator_share": 0,
"replacement_value_eur": 0,
"shift_model": {
"availability": 1,
"days_per_week": 0,
"hours_per_shift": 0,
"shifts_per_day": 0,
"weeks_per_year": 47
},
"space_eur_per_m2_y": 0,
"tooling_eur_per_year": 0
},
"workholding": [
"vise.3jaw"
]
},
"hourly_rate_eur": 0,
"klass": "milling.3axis_vmc",
"library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_no": "string",
"name": "string",
"programming_rate_eur": 0,
"rate_operator_eur_per_h": 0,
"rate_operator_share": 0,
"setup_rate_eur": 0,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01",
"vendor": "string",
"wage_group": "string"
},
"rate_operator_eur_per_h_override": 0,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/machines", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"capability_overrides": {},
"fleet_priority": 100,
"hourly_rate_override_eur": 0,
"is_enabled": true,
"library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"machine_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name_override": "string",
"new_machine": {
"burden_rate_eur": 0,
"capabilities": {
"axes_indexable": 0,
"axes_simultaneous": 0,
"bar_feeder": false,
"certifications": [
"string"
],
"chatter_stability_lobe": {
"rpm_to_max_axial_depth_mm": [
{}
]
},
"coolant": [
"flood"
],
"counter_spindle": false,
"hard_turning": false,
"iso_286_achievable_grade": "IT01",
"klass": "milling.3axis_vmc",
"laser_power_kw": 0,
"max_bar_diameter_mm": 0,
"max_material_thickness_mm": 0,
"max_part_envelope_mm": [
null
],
"max_setups_per_part": 6,
"max_spindle_rpm": 0,
"max_table_load_kg": 0,
"max_tool_diameter_by_kind_mm": {},
"max_tool_diameter_mm": 0,
"max_tool_length_mm": 0,
"min_material_thickness_mm": 0,
"nominal_tool_change_time_s_by_class": {},
"pallet_change_time_s": 0,
"plasma_amperage_a": 0,
"positioning_accuracy_mm": 0.01,
"press_force_kn": 0,
"rapid_traverse_m_per_min": 24,
"repeatability_mm": 0.005,
"schema_version": "1.0.0",
"spindle_power_kw": 0,
"swing_mm": 0,
"tool_interface": "string",
"tool_magazine_capacity": 0,
"turning_length_mm": 0,
"turret_stations": 0,
"vdi_3258": {
"acquisition_cost_eur": 0,
"annual_hours_T_G": 0,
"annual_hours_T_IH": 0,
"annual_hours_T_ST": 0,
"capital_interest_rate": 0,
"depreciation_life_h": 0,
"energy_eur_per_kwh": 0,
"energy_kw": 0,
"floor_space_m2": 0,
"maintenance_eur_per_year": 0,
"operator_hourly_eur": 0,
"operator_share": 0,
"replacement_value_eur": 0,
"shift_model": {
"availability": 1,
"days_per_week": 0,
"hours_per_shift": 0,
"shifts_per_day": 0,
"weeks_per_year": 47
},
"space_eur_per_m2_y": 0,
"tooling_eur_per_year": 0
},
"workholding": [
"vise.3jaw"
]
},
"hourly_rate_eur": 0,
"klass": "milling.3axis_vmc",
"library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_no": "string",
"name": "string",
"programming_rate_eur": 0,
"rate_operator_eur_per_h": 0,
"rate_operator_share": 0,
"setup_rate_eur": 0,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01",
"vendor": "string",
"wage_group": "string"
},
"rate_operator_eur_per_h_override": 0,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
201 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 201
| Field | Type | Description |
|---|---|---|
env_count |
integer | How many of your environments this machine is currently in. Editing the machine changes what every one of them prices with, so a save button can say how far the edit reaches before it is pressed. |
fleet_priority |
integer | Orders machines within the environment; lower values are tried first. |
health |
string | Whether this machine can be used for pricing. 'ok' — it takes part in selection. 'unresolvable' — its capability configuration is incomplete, so it is NOT considered by any calculation, even though it is enabled. Render an unresolvable machine as broken; it used to render as a normal row and silently do nothing. |
health_error |
string | Why the machine cannot be evaluated; null when health is 'ok'. |
is_enabled |
boolean | Whether this machine is active in the environment's fleet. |
machine |
MachinePublic | The attached machine definition; null only when it cannot be re-read. |
membership_id |
string | Unique identifier of the environment-machine membership. |
tool_kinds_fit |
string[] | The tool kinds among them, for the panel's summary. |
tools_fit_count |
integer | How many of this environment's enabled tools this machine can run (kind-based fitment; a tool is never allocated to one machine). |
valid_from |
string | ISO date (YYYY-MM-DD) from which this membership is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the membership stops being effective; null = open-ended. |
Example response
{
"env_count": 1,
"fleet_priority": 0,
"health": "ok",
"health_error": "string",
"is_enabled": true,
"machine": {
"burden_rate_eur": 0,
"capabilities": {},
"capability_overrides": {},
"environment_count": 0,
"hourly_rate_eur": 0,
"id": "string",
"klass": "string",
"library_entry_id": "string",
"model_no": "string",
"name": "string",
"programming_rate_eur": 0,
"rate_operator_eur_per_h": 0,
"rate_operator_share": 0,
"setup_rate_eur": 0,
"source": "custom",
"valid_from": "string",
"valid_to": "string",
"vendor": "string",
"wage_group": "string"
},
"membership_id": "string",
"tool_kinds_fit": [
"string"
],
"tools_fit_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Detach Machine
DELETE /api/v1/environments/{env_id}/machines/{membership_id}
Remove a machine from a costing environment, so calculations run afterwards no longer plan on it. The machine definition itself is kept.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
membership_id |
path | string | yes | Identifier of the membership. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id}/machines/{membership_id} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}/machines/{membership_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/machines/{membership_id}", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
message |
string | Human-readable result of the operation. |
Example response
{
"message": "string"
}
Update Membership
PATCH /api/v1/environments/{env_id}/machines/{membership_id}
Change how a machine is used in one costing environment: its priority among machines that can do the same work, whether it is enabled, and its validity dates.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
membership_id |
path | string | yes | Identifier of the membership. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
fleet_priority |
integer | no | New ordering within the environment (lower tried first); omit to leave unchanged. |
is_enabled |
boolean | no | Whether the machine is active in the fleet; omit to leave unchanged. |
valid_from |
string | no | New membership start ISO date (YYYY-MM-DD); omit to leave unchanged. |
valid_to |
string | no | New membership end ISO date (YYYY-MM-DD); omit to leave unchanged. |
Request
curl -X PATCH https://api.arcnm.io/api/v1/environments/{env_id}/machines/{membership_id} \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fleet_priority": 0,
"is_enabled": true,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
}'
import requests
resp = requests.patch(
"https://api.arcnm.io/api/v1/environments/{env_id}/machines/{membership_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"fleet_priority": 0,
"is_enabled": True,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/machines/{membership_id}", {
method: "PATCH",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"fleet_priority": 0,
"is_enabled": true,
"valid_from": "2026-06-01",
"valid_to": "2026-06-01"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
env_count |
integer | How many of your environments this machine is currently in. Editing the machine changes what every one of them prices with, so a save button can say how far the edit reaches before it is pressed. |
fleet_priority |
integer | Orders machines within the environment; lower values are tried first. |
health |
string | Whether this machine can be used for pricing. 'ok' — it takes part in selection. 'unresolvable' — its capability configuration is incomplete, so it is NOT considered by any calculation, even though it is enabled. Render an unresolvable machine as broken; it used to render as a normal row and silently do nothing. |
health_error |
string | Why the machine cannot be evaluated; null when health is 'ok'. |
is_enabled |
boolean | Whether this machine is active in the environment's fleet. |
machine |
MachinePublic | The attached machine definition; null only when it cannot be re-read. |
membership_id |
string | Unique identifier of the environment-machine membership. |
tool_kinds_fit |
string[] | The tool kinds among them, for the panel's summary. |
tools_fit_count |
integer | How many of this environment's enabled tools this machine can run (kind-based fitment; a tool is never allocated to one machine). |
valid_from |
string | ISO date (YYYY-MM-DD) from which this membership is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the membership stops being effective; null = open-ended. |
Example response
{
"env_count": 1,
"fleet_priority": 0,
"health": "ok",
"health_error": "string",
"is_enabled": true,
"machine": {
"burden_rate_eur": 0,
"capabilities": {},
"capability_overrides": {},
"environment_count": 0,
"hourly_rate_eur": 0,
"id": "string",
"klass": "string",
"library_entry_id": "string",
"model_no": "string",
"name": "string",
"programming_rate_eur": 0,
"rate_operator_eur_per_h": 0,
"rate_operator_share": 0,
"setup_rate_eur": 0,
"source": "custom",
"valid_from": "string",
"valid_to": "string",
"vendor": "string",
"wage_group": "string"
},
"membership_id": "string",
"tool_kinds_fit": [
"string"
],
"tools_fit_count": 0,
"valid_from": "string",
"valid_to": "string"
}
Restore Env Machines
POST /api/v1/environments/{env_id}/machines/restore
Restore the platform machine set in the default environment: removed machines are re-attached (new SCD2 rows), switched-off ones switch on, platform classes the environment never had are added. Capability overrides and machine rates are untouched. 409 on any other environment.
Only the platform set comes back: machines of a generic platform type, one per type. Your own machines — bespoke ones, machines of your own types, a second machine you added and removed — stay as you left them.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/machines/restore \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/machines/restore",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/machines/restore", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
added |
integer | Platform machine classes added that the environment never had. |
enabled |
integer | Switched-off memberships switched back on. |
message |
string | Always 'restored'. |
reattached |
integer | Removed machines re-attached (new SCD2 rows). |
Example response
{
"added": 0,
"enabled": 0,
"message": "string",
"reattached": 0
}
List Rates
GET /api/v1/environments/{env_id}/rates
List all rates for an env, uniformly shaped so the rate editor
can render every kind side by side. Optional ?kind= filter.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
kind |
query | string | no | Filter to a single rate kind (labour, overhead, material, fx, subcontract, or scrap). |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/rates \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Add a price without closing one you already hold.
POST /api/v1/environments/{env_id}/rates
Adds a rate and leaves every price you already hold open, so you can keep more than one on file — a second subcontractor's quote for the same operation, for instance. Which of them a part is costed at is decided per order.
A row for the same rate over the same dates is replaced, not added beside it: the same kind, valid_from, valid_to and currency, and the same labour category and wage_group, overhead bucket, material_grade_id or from_ccy/to_ccy pair. A subcontract row is an offer, so it replaces only the same offer: the same operation_kind, subcontractor_id (or none) and terms. The answer is then 200 with the row that replaced it (a new id); a new row answers 201. Sending the same write twice leaves one row.
This one adds. To state the single price this environment should use — closing the price it replaces — use the PUT for the thing itself: .../rates/subcontract/{operation_kind} for bought-in work, .../rates/material/{grade_id} for a material. A scrap price has only its own PUT .../rates/scrap/{material_category}/{scrap_class}.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
currency |
string | no | ISO 4217 currency code for the rate; null to inherit. |
fields |
object | no | Kind-specific columns. Required keys per kind, optional ones in brackets: labour — category (a free label, e.g. 'blended'), hourly_rate (> 0, per hour) [wage_group: a group name such as 'Facharbeiter' — the row is then that wage group's rate, billed on the attended time of the machines that name the group, and leaves the environment's labour rate as it is]; overhead — bucket ('overhead_variable' or 'overhead_fixed'), value (a fraction for a percentage: 0.15 = 15 %) [kind_modifier: 'percentage' (default) or 'flat'; base_bucket for a variable overhead]; material — material_grade_id, price_per_kg (> 0) [attributes: object]; fx — from_ccy, to_ccy, rate (> 0); subcontract — operation_kind (e.g. 'heat_treatment:case_harden'), pricing_unit, unit_rate_eur (in the environment's currency) [lot_minimum_eur, order_fee_eur, subcontractor_id]. A missing required key is refused with 422 naming the keys its kind takes. |
kind |
string | yes | labour |
valid_from |
string | yes | Date from which the rate is effective (ISO 8601). |
valid_to |
string | no | Date after which the rate is no longer effective; null if open-ended (ISO 8601). |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/rates \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "string",
"valid_from": "2026-06-01"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"kind": "string",
"valid_from": "2026-06-01"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"kind": "string",
"valid_from": "2026-06-01"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
A row for the same rate over the same dates was replaced by this one. |
201 |
Successful Response |
422 |
Validation Error — or a refused rate, among them scrap_price_use_scrap_route for kind scrap. |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
created_at |
string | ISO 8601 timestamp when the rate row was created. |
currency |
string | ISO 4217 currency code for the rate; null for kinds without a currency. |
effective_now |
boolean | True when this row is the one currently pricing parts: its validity window contains today and no other row for the same key supersedes it. |
engine_honoured |
boolean | True when this row can be applied as written; false rows are listed but never priced (see unhonoured_reason). |
env_id |
string | Identifier of the environment this rate belongs to. |
fields |
object | Kind-specific rate columns (e.g. hourly_rate, value, price_per_kg, rate). |
id |
string | Unique identifier of the rate row. |
kind |
string | Rate kind: labour, overhead, material, fx, subcontract, or scrap. |
unhonoured_reason |
string | Why the row is never applied, when engine_honoured is false: 'currency_mismatch' (row currency differs from the environment's; fx rows are exempt because they carry their own currency pair), 'pricing_unit_mismatch' (the row's pricing_unit is not the one this operation is quoted in — re-enter the price in the stated unit), 'bucket_combo_unhonoured' (this bucket/kind/base combination is not priceable), 'value_not_positive' (the row's amount is zero or negative and is skipped), 'subcontractor_no_capability' (the subcontractor this price is from does not list this operation — add it to that subcontractor, or enter the price under the one that does) or 'subcontractor_disabled' (that subcontractor is inactive, or is switched off in this environment). Null otherwise. New reasons may be added; treat an unrecognised value as a plain 'not applied'. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this rate is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the rate stops being effective; null = open-ended. |
Example response
{
"created_at": "string",
"currency": "EUR",
"effective_now": false,
"engine_honoured": true,
"env_id": "string",
"fields": {},
"id": "string",
"kind": "string",
"unhonoured_reason": "string",
"valid_from": "string",
"valid_to": "string"
}
Delete Rate
DELETE /api/v1/environments/{env_id}/rates/{kind}/{rate_id}
Delete one rate from a costing environment: a labour, overhead, material, FX or subcontract rate. This cannot be undone.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
kind |
path | string | yes | Rate kind to delete (labour, overhead, material, fx, or subcontract; a scrap price is cleared on its own path). |
rate_id |
path | string | yes | Identifier of the rate. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id}/rates/{kind}/{rate_id} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/{kind}/{rate_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/{kind}/{rate_id}", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error — or scrap_price_use_scrap_route: a scrap price is cleared on its own path. |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
message |
string | Human-readable result of the operation. |
Example response
{
"message": "string"
}
Set a wage group's labour rate in this environment.
PUT /api/v1/environments/{env_id}/rates/labour-groups/{wage_group}
Your number becomes this environment's rate for the wage group (Lohngruppe), from valid_from onwards. Machines naming the group bill their attended time at it; every other labour second keeps the environment's labour rate. The group's rate you were holding open here is closed the same day rather than deleted, so quotes already sent keep the figure they were costed at. A group a parent environment prices is overridden here, not changed there.
Names match regardless of case and extra spaces. To stop pricing a group here, delete its row with DELETE /environments/{env_id}/rates/labour/{rate_id}.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
wage_group |
path | string | yes | The wage group's name, as machines name it (e.g. Facharbeiter). URL-encoded. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
hourly_rate |
number | yes | What an hour of this group's operator costs, in the environment's currency. A machine naming the group bills its attended time — setup, and the run at its operator share — at this rate. |
valid_from |
string | no | Day the rate starts applying. Defaults to today. The rate you replace is closed the same day, so the two never overlap. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/rates/labour-groups/{wage_group} \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hourly_rate": 0
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/labour-groups/{wage_group}",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"hourly_rate": 0
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/labour-groups/{wage_group}", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"hourly_rate": 0
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
created_at |
string | ISO 8601 timestamp when the rate row was created. |
currency |
string | ISO 4217 currency code for the rate; null for kinds without a currency. |
effective_now |
boolean | True when this row is the one currently pricing parts: its validity window contains today and no other row for the same key supersedes it. |
engine_honoured |
boolean | True when this row can be applied as written; false rows are listed but never priced (see unhonoured_reason). |
env_id |
string | Identifier of the environment this rate belongs to. |
fields |
object | Kind-specific rate columns (e.g. hourly_rate, value, price_per_kg, rate). |
id |
string | Unique identifier of the rate row. |
kind |
string | Rate kind: labour, overhead, material, fx, subcontract, or scrap. |
unhonoured_reason |
string | Why the row is never applied, when engine_honoured is false: 'currency_mismatch' (row currency differs from the environment's; fx rows are exempt because they carry their own currency pair), 'pricing_unit_mismatch' (the row's pricing_unit is not the one this operation is quoted in — re-enter the price in the stated unit), 'bucket_combo_unhonoured' (this bucket/kind/base combination is not priceable), 'value_not_positive' (the row's amount is zero or negative and is skipped), 'subcontractor_no_capability' (the subcontractor this price is from does not list this operation — add it to that subcontractor, or enter the price under the one that does) or 'subcontractor_disabled' (that subcontractor is inactive, or is switched off in this environment). Null otherwise. New reasons may be added; treat an unrecognised value as a plain 'not applied'. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this rate is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the rate stops being effective; null = open-ended. |
Example response
{
"created_at": "string",
"currency": "EUR",
"effective_now": false,
"engine_honoured": true,
"env_id": "string",
"fields": {},
"id": "string",
"kind": "string",
"unhonoured_reason": "string",
"valid_from": "string",
"valid_to": "string"
}
Drop your price for a material in this environment.
DELETE /api/v1/environments/{env_id}/rates/material/{grade_id}
Removes the environment's own price rows for this material, so it prices at the platform figure for its category again. Takes effect immediately.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
grade_id |
path | string | yes | Identifier of the grade. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id}/rates/material/{grade_id} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/material/{grade_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/material/{grade_id}", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
message |
string | Human-readable result of the operation. |
Example response
{
"message": "string"
}
Set what a material costs in this environment.
PUT /api/v1/environments/{env_id}/rates/material/{grade_id}
Your number becomes the price per kilogram this environment calculates with, from valid_from onwards. The price it replaces is closed the same day rather than deleted, so past quotes keep the figure they were costed at.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
grade_id |
path | string | yes | Identifier of the grade. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
price_per_kg |
number | yes | Price per kilogram, in the environment's currency. Takes effect on the next calculation. |
valid_from |
string | no | Day the price starts applying. Defaults to today. The price you replace is closed on the same day, so the two never overlap. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/rates/material/{grade_id} \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"price_per_kg": 0
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/material/{grade_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"price_per_kg": 0
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/material/{grade_id}", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"price_per_kg": 0
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
created_at |
string | ISO 8601 timestamp when the rate row was created. |
currency |
string | ISO 4217 currency code for the rate; null for kinds without a currency. |
effective_now |
boolean | True when this row is the one currently pricing parts: its validity window contains today and no other row for the same key supersedes it. |
engine_honoured |
boolean | True when this row can be applied as written; false rows are listed but never priced (see unhonoured_reason). |
env_id |
string | Identifier of the environment this rate belongs to. |
fields |
object | Kind-specific rate columns (e.g. hourly_rate, value, price_per_kg, rate). |
id |
string | Unique identifier of the rate row. |
kind |
string | Rate kind: labour, overhead, material, fx, subcontract, or scrap. |
unhonoured_reason |
string | Why the row is never applied, when engine_honoured is false: 'currency_mismatch' (row currency differs from the environment's; fx rows are exempt because they carry their own currency pair), 'pricing_unit_mismatch' (the row's pricing_unit is not the one this operation is quoted in — re-enter the price in the stated unit), 'bucket_combo_unhonoured' (this bucket/kind/base combination is not priceable), 'value_not_positive' (the row's amount is zero or negative and is skipped), 'subcontractor_no_capability' (the subcontractor this price is from does not list this operation — add it to that subcontractor, or enter the price under the one that does) or 'subcontractor_disabled' (that subcontractor is inactive, or is switched off in this environment). Null otherwise. New reasons may be added; treat an unrecognised value as a plain 'not applied'. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this rate is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the rate stops being effective; null = open-ended. |
Example response
{
"created_at": "string",
"currency": "EUR",
"effective_now": false,
"engine_honoured": true,
"env_id": "string",
"fields": {},
"id": "string",
"kind": "string",
"unhonoured_reason": "string",
"valid_from": "string",
"valid_to": "string"
}
Restore Env Rates
POST /api/v1/environments/{env_id}/rates/restore
Drops every rate this environment states, so it prices at the platform defaults again with honest "platform default" provenance. A rate that applied on an earlier day stays on record, ending yesterday, so quotes already made keep it; one that starts today or later is removed. Your assumptions, tuning and calibration are untouched. Takes effect immediately. Only the default environment can be restored.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/rates/restore \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/restore",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/restore", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
closed |
integer | Stated rates retired, so the platform defaults price again. Takes effect immediately. A rate row that applied on an earlier day is kept on record, ending yesterday; one that starts today or later is removed. |
message |
string | Always 'restored'. |
Example response
{
"closed": 0,
"message": "string"
}
Read the scrap prices this environment uses today.
GET /api/v1/environments/{env_id}/rates/scrap
Every scrap price a calculation in this environment would use today, one row per material, grade and kind of scrap, with whose price it is — this environment's, a parent environment's or the platform's published reference figure — and whether a platform figure is stale. credit_scrap_stated says whether any of them changes a quote yet.
Integration credentials receive your own prices; the platform's reference figures are shown in the app.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
404 |
No environment with this id is visible to your organization. |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
credit_scrap_stated |
boolean | True when this environment, or a parent it inherits from, credits sold scrap at these prices. Until it does, none of these prices changes a quote; an environment that states only a flat return per kg is credited at that. |
rows |
ScrapPriceResolvedPublic[] |
Example response
{
"credit_scrap_stated": true,
"rows": [
{
"age_days": 0,
"as_of": "string",
"currency": "EUR",
"grade_label": "string",
"material_category": "string",
"material_grade_id": "string",
"price_per_kg": 0,
"price_source": "string",
"reference": "string",
"scrap_class": "string",
"source_environment_id": "string",
"source_environment_name": "string",
"stale": true,
"stated_grade_id": "string",
"valid_from": "string",
"valid_to": "string"
}
]
}
Stop using your price for one kind of scrap.
DELETE /api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class}
The environment's own price for this material and kind of scrap stops applying today. One that started on an earlier day stays on record, so quotes already made keep it; one set today, or for a later day, is withdrawn. Calculations then use the price a parent environment states, or the platform's reference figure.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
material_category |
path | carbon_steel | alloy_steel | stainless_steel | tool_steel | cast_iron | aluminium | copper_alloy | nickel_alloy | titanium_alloy | magnesium_alloy | zinc_alloy | thermoplastic | thermoset | elastomer | composite | other |
yes | |
scrap_class |
path | sheet_skeleton | chips | drop |
yes | |
grade_id |
query | string | no | The grade the price is for. Leave it out to price every grade of the category that states no price of its own. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class}", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
404 |
No environment with this id is visible to your organization, or it states no price for this material and kind of scrap (scrap_price_not_found). |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
message |
string | Human-readable result of the operation. |
Example response
{
"message": "string"
}
Set what your scrap dealer pays for one kind of scrap.
PUT /api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class}
Your price per kilogram for the scrap parts of this material leave behind — sheet skeletons and offcuts, chips, or bar ends and cut-offs — from valid_from onwards. Name a grade with grade_id to price it apart from the rest of its category. A price it replaces that started on an earlier day stops the day before rather than being deleted, so quotes already made keep the figure they were costed at; one set earlier the same day is simply replaced.
A scrap price is credited only in an environment that credits sold scrap: the shop-practice question scrap_credit.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
material_category |
path | carbon_steel | alloy_steel | stainless_steel | tool_steel | cast_iron | aluminium | copper_alloy | nickel_alloy | titanium_alloy | magnesium_alloy | zinc_alloy | thermoplastic | thermoset | elastomer | composite | other |
yes | |
scrap_class |
path | sheet_skeleton | chips | drop |
yes | |
grade_id |
query | string | no | The grade the price is for. Leave it out to price every grade of the category that states no price of its own. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
price_per_kg |
number | yes | What you get back per kilogram, in the environment's currency: what the dealer pays less what sorting, containers and haulage cost you. Zero is allowed: a shop that sells nothing back states 0. |
valid_from |
string | no | Day the price starts applying: today, which is the default, or later — never earlier, so quotes already made keep the price they were costed at. The price it replaces stops the day before. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class} \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"price_per_kg": 0
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class}",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"price_per_kg": 0
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/scrap/{material_category}/{scrap_class}", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"price_per_kg": 0
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
404 |
No environment or material grade with this id is visible to your organization. |
422 |
Validation Error — or a refused price: scrap_price_backdated (valid_from lies before today) or scrap_price_grade_category_mismatch (the grade is not of this material category). |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
created_at |
string | ISO 8601 timestamp when the rate row was created. |
currency |
string | ISO 4217 currency code for the rate; null for kinds without a currency. |
effective_now |
boolean | True when this row is the one currently pricing parts: its validity window contains today and no other row for the same key supersedes it. |
engine_honoured |
boolean | True when this row can be applied as written; false rows are listed but never priced (see unhonoured_reason). |
env_id |
string | Identifier of the environment this rate belongs to. |
fields |
object | Kind-specific rate columns (e.g. hourly_rate, value, price_per_kg, rate). |
id |
string | Unique identifier of the rate row. |
kind |
string | Rate kind: labour, overhead, material, fx, subcontract, or scrap. |
unhonoured_reason |
string | Why the row is never applied, when engine_honoured is false: 'currency_mismatch' (row currency differs from the environment's; fx rows are exempt because they carry their own currency pair), 'pricing_unit_mismatch' (the row's pricing_unit is not the one this operation is quoted in — re-enter the price in the stated unit), 'bucket_combo_unhonoured' (this bucket/kind/base combination is not priceable), 'value_not_positive' (the row's amount is zero or negative and is skipped), 'subcontractor_no_capability' (the subcontractor this price is from does not list this operation — add it to that subcontractor, or enter the price under the one that does) or 'subcontractor_disabled' (that subcontractor is inactive, or is switched off in this environment). Null otherwise. New reasons may be added; treat an unrecognised value as a plain 'not applied'. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this rate is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the rate stops being effective; null = open-ended. |
Example response
{
"created_at": "string",
"currency": "EUR",
"effective_now": false,
"engine_honoured": true,
"env_id": "string",
"fields": {},
"id": "string",
"kind": "string",
"unhonoured_reason": "string",
"valid_from": "string",
"valid_to": "string"
}
Set what an outside operation costs in this environment.
PUT /api/v1/environments/{env_id}/rates/subcontract/{operation_kind}
Your number becomes the price this environment uses for this operation, from valid_from onwards. Prices you were holding open for the same operation are closed the same day rather than deleted, so quotes you have already sent keep the figure they were costed at.
This one replaces: afterwards there is a single open price for the operation. To put a second subcontractor's quote on file alongside the one you already hold, use POST /environments/{env_id}/rates, which adds a price and closes nothing.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
operation_kind |
path | string | yes | The operation this price is for — heat_treatment:<kind>, coating:<kind>, marking:<kind> or weld, with the kind from the treatment register (e.g. heat_treatment:case_harden, heat_treatment:stress_relieve, coating:zinc_plate, marking:laser_mark). The same vocabulary as a subcontractor's capabilities. A value outside it is refused with 422 whose details.allowed lists every accepted value and details.suggestion the nearest one. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
lot_minimum_eur |
number | no | Minimum order value, in the environment's currency: the shop invoices one order at max(its work, this). The difference is the small-lot surcharge, spread over the lot — it dominates small batches and is zero once the lot's own work is worth the minimum. |
order_fee_eur |
number | no | Fee the shop charges on every order regardless of its value, in the environment's currency, on top of the work or the minimum. Spread over the lot. Zero for a shop that charges none. |
pricing_unit |
string | yes | The cost basis your price is quoted per: kg, m2 or part for any heat-treatment, coating or marking operation (the part's mass, surface area or one piece is what the rate multiplies), m for a weld (metres of deposited seam). Each shop states its own; the answer names the accepted bases and stores nothing otherwise. |
subcontractor_id |
string | no | Which of your subcontractors this price is from. Optional — leave it out for a figure you carry without naming a shop. |
unit_rate_eur |
number | yes | What the subcontractor charges per pricing unit, in the environment's currency. Zero is allowed — a shop that charges a minimum and nothing per unit. |
valid_from |
string | no | Day the price starts applying. Defaults to today. The price you replace is closed on the same day, so the two never overlap. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/rates/subcontract/{operation_kind} \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"unit_rate_eur": 0,
"pricing_unit": "string"
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/rates/subcontract/{operation_kind}",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"unit_rate_eur": 0,
"pricing_unit": "string"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/rates/subcontract/{operation_kind}", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"unit_rate_eur": 0,
"pricing_unit": "string"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
created_at |
string | ISO 8601 timestamp when the rate row was created. |
currency |
string | ISO 4217 currency code for the rate; null for kinds without a currency. |
effective_now |
boolean | True when this row is the one currently pricing parts: its validity window contains today and no other row for the same key supersedes it. |
engine_honoured |
boolean | True when this row can be applied as written; false rows are listed but never priced (see unhonoured_reason). |
env_id |
string | Identifier of the environment this rate belongs to. |
fields |
object | Kind-specific rate columns (e.g. hourly_rate, value, price_per_kg, rate). |
id |
string | Unique identifier of the rate row. |
kind |
string | Rate kind: labour, overhead, material, fx, subcontract, or scrap. |
unhonoured_reason |
string | Why the row is never applied, when engine_honoured is false: 'currency_mismatch' (row currency differs from the environment's; fx rows are exempt because they carry their own currency pair), 'pricing_unit_mismatch' (the row's pricing_unit is not the one this operation is quoted in — re-enter the price in the stated unit), 'bucket_combo_unhonoured' (this bucket/kind/base combination is not priceable), 'value_not_positive' (the row's amount is zero or negative and is skipped), 'subcontractor_no_capability' (the subcontractor this price is from does not list this operation — add it to that subcontractor, or enter the price under the one that does) or 'subcontractor_disabled' (that subcontractor is inactive, or is switched off in this environment). Null otherwise. New reasons may be added; treat an unrecognised value as a plain 'not applied'. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this rate is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the rate stops being effective; null = open-ended. |
Example response
{
"created_at": "string",
"currency": "EUR",
"effective_now": false,
"engine_honoured": true,
"env_id": "string",
"fields": {},
"id": "string",
"kind": "string",
"unhonoured_reason": "string",
"valid_from": "string",
"valid_to": "string"
}
Read how a costing environment is set up, and its gaps.
GET /api/v1/environments/{env_id}/setup
One compact answer: the environment's economics, its machines with their rates, its tools per kind, its subcontractors and the operations they offer, its labour, overhead and subcontract prices, how many material prices of its own it holds, your stock formats — and the gaps that leave prices on platform references (a machine with no rate, an operation offered with no price, no labour rate, a stored rate that never applies). Read it before and after an import or a changeset.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/setup \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/setup",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/setup", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
404 |
The costing environment (or another resource the request names) is not one of your organization's — environment_not_found for an environment. Another organization's id answers exactly like one that never existed. |
422 |
Validation Error — or the request as a whole cannot be planned (setup_refused): no list, two lists, an unreadable file. |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
currency |
string | The currency its prices are in. |
economics |
object | Its stated economics (margin, overheads, scrap credit, …); a setting left out inherits the platform reference. |
environment_id |
string | The costing environment. |
gaps |
SetupGap[] | What leaves prices on platform references or out of the price. |
is_default |
boolean | Whether it is the organization's default. |
labour_rates |
SetupRate[] | Labour rates in effect today. |
machines |
SetupMachine[] | The machines it prices on. |
material_prices |
integer | Material grades with a price of your own in effect today; every other grade prices at the platform reference. |
name |
string | Its name. |
overhead_rates |
SetupRate[] | Overhead rates in effect today. |
stock_formats |
object | Your own stock formats (the organization's), per kind. |
subcontract_prices |
object[] | Prices for bought-in operations in effect today. |
subcontractors |
SetupSubcontractor[] | The shops it buys from. |
tools |
object | Tools attached, per kind. |
Example response
{
"currency": "EUR",
"economics": {},
"environment_id": "string",
"gaps": [
{
"code": "no_machines",
"detail": "string",
"items": [
"string"
]
}
],
"is_default": true,
"labour_rates": [
{
"fields": {},
"kind": "string",
"rate_id": "string",
"valid_from": "string"
}
],
"machines": [
{
"fleet_priority": 0,
"hourly_rate_eur": 0,
"is_enabled": true,
"machine_class": "string",
"machine_id": "string",
"membership_id": "string",
"name": "string",
"programming_rate_eur": 0,
"rate_operator_eur_per_h": 0,
"setup_rate_eur": 0
}
],
"material_prices": 0,
"name": "string",
"overhead_rates": [
{
"fields": {},
"kind": "string",
"rate_id": "string",
"valid_from": "string"
}
],
"stock_formats": {},
"subcontract_prices": [
{}
],
"subcontractors": [
{
"is_enabled": true,
"membership_id": "string",
"name": "string",
"operation_kinds": [
"string"
],
"subcontractor_id": "string"
}
],
"tools": {}
}
Write exactly the previewed changeset.
POST /api/v1/environments/{env_id}/setup/changes
Send the same changes as the preview with its plan_digest as expected_plan_digest. Written only when the plan is unchanged; otherwise nothing is written and the answer is 409 plan_changed. A change the platform refuses is reported failed with its reason. Free; new calculations in the environment price with it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
changes |
EnvironmentChange[] | yes | The changes, applied in order. |
expected_plan_digest |
string | yes | The plan_digest of the preview being committed. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/setup/changes \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"changes": [
{
"grade_id": "string",
"kind": "labour",
"machine_id": "string",
"material_category": "carbon_steel",
"op": "economics",
"rate_id": "string",
"scrap_class": "sheet_skeleton",
"subcontractor_id": "string",
"tool_id": "string",
"valid_from": "string",
"values": {}
}
],
"expected_plan_digest": "string"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/setup/changes",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"changes": [
{
"grade_id": "string",
"kind": "labour",
"machine_id": "string",
"material_category": "carbon_steel",
"op": "economics",
"rate_id": "string",
"scrap_class": "sheet_skeleton",
"subcontractor_id": "string",
"tool_id": "string",
"valid_from": "string",
"values": {}
}
],
"expected_plan_digest": "string"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/setup/changes", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"changes": [
{
"grade_id": "string",
"kind": "labour",
"machine_id": "string",
"material_category": "carbon_steel",
"op": "economics",
"rate_id": "string",
"scrap_class": "sheet_skeleton",
"subcontractor_id": "string",
"tool_id": "string",
"valid_from": "string",
"values": {}
}
],
"expected_plan_digest": "string"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
404 |
The costing environment (or another resource the request names) is not one of your organization's — environment_not_found for an environment. Another organization's id answers exactly like one that never existed. |
409 |
The plan is no longer what the preview showed — the list, or what the setup holds, changed since (plan_changed). Nothing was written; details.plan_digest names the plan now. Preview again. |
422 |
Validation Error — or the request as a whole cannot be planned (setup_refused): no list, two lists, an unreadable file. |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
applied |
boolean | False for a plan (nothing written). |
changes |
ChangeResult[] | Each change, in order. |
environment_id |
string | The costing environment. |
guidance |
string | What the result means and what to do next. |
plan_digest |
string | Fingerprint of this plan: a commit that names it writes exactly this plan. |
Example response
{
"applied": true,
"changes": [
{
"current": {},
"detail": "string",
"endpoint": "string",
"new": {},
"op": "string",
"status": "planned",
"target": "string"
}
],
"environment_id": "string",
"guidance": "string",
"plan_digest": "string"
}
Plan a changeset of single settings; nothing is written.
POST /api/v1/environments/{env_id}/setup/changes/preview
Per change — economics, a machine's rates, enabling or detaching a machine, tool or subcontractor, a subcontractor's details, a labour, overhead or currency rate, a scrap price, clearing a material price — the write it makes, today's value and the new one, or why it is refused, and a plan_digest. Nothing is written.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
changes |
EnvironmentChange[] | yes | The changes, applied in order. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/setup/changes/preview \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"changes": [
{
"grade_id": "string",
"kind": "labour",
"machine_id": "string",
"material_category": "carbon_steel",
"op": "economics",
"rate_id": "string",
"scrap_class": "sheet_skeleton",
"subcontractor_id": "string",
"tool_id": "string",
"valid_from": "string",
"values": {}
}
]
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/setup/changes/preview",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"changes": [
{
"grade_id": "string",
"kind": "labour",
"machine_id": "string",
"material_category": "carbon_steel",
"op": "economics",
"rate_id": "string",
"scrap_class": "sheet_skeleton",
"subcontractor_id": "string",
"tool_id": "string",
"valid_from": "string",
"values": {}
}
]
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/setup/changes/preview", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"changes": [
{
"grade_id": "string",
"kind": "labour",
"machine_id": "string",
"material_category": "carbon_steel",
"op": "economics",
"rate_id": "string",
"scrap_class": "sheet_skeleton",
"subcontractor_id": "string",
"tool_id": "string",
"valid_from": "string",
"values": {}
}
]
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
404 |
The costing environment (or another resource the request names) is not one of your organization's — environment_not_found for an environment. Another organization's id answers exactly like one that never existed. |
422 |
Validation Error — or the request as a whole cannot be planned (setup_refused): no list, two lists, an unreadable file. |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
applied |
boolean | False for a plan (nothing written). |
changes |
ChangeResult[] | Each change, in order. |
environment_id |
string | The costing environment. |
guidance |
string | What the result means and what to do next. |
plan_digest |
string | Fingerprint of this plan: a commit that names it writes exactly this plan. |
Example response
{
"applied": true,
"changes": [
{
"current": {},
"detail": "string",
"endpoint": "string",
"new": {},
"op": "string",
"status": "planned",
"target": "string"
}
],
"environment_id": "string",
"guidance": "string",
"plan_digest": "string"
}
Read the environment's shop-practice profile.
GET /api/v1/environments/{env_id}/shop-practice
How this environment answers the shop-practice questions — packaging, deburring, and whether sold scrap and reusable remnants (sheet remnants, bar and tube ends) are credited against the material bought. Each answer says where it comes from: stated here, inherited from a parent environment, or the platform default.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/shop-practice \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/shop-practice",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/shop-practice", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
questions |
object | Per-question state: effective answer, source, and options. |
Example response
{
"questions": {}
}
Update the environment's shop-practice profile.
PUT /api/v1/environments/{env_id}/shop-practice
Answer the shop-practice questions (packaging, deburring, scrap credit, remnant credit, and how sheet is cut: grain direction, mirroring, the web by thickness, micro-joints, common-line cutting, the job nest's rotation step; and whether geometric tolerances are re-checked on every part or on the ISO 2859-1 sample after the first article). Each answer sets this environment's time allowances, credit policy, cutting practice or inspection sampling from a closed set of choices and is recorded in the audit log; a question you leave out keeps its answer. 'standard' removes this environment's own answer: where a parent environment states one, that answer applies and is returned with source 'parent_environment'; otherwise the platform behaviour does.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
answers |
object | yes | Question key → answer. Only catalogued questions and answers are accepted. 'standard' removes this environment's own answer: where a parent environment states one, that answer applies (source 'parent_environment'); otherwise the platform behaviour does. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/shop-practice \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"answers": {}
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/shop-practice",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"answers": {}
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/shop-practice", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"answers": {}
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
questions |
object | Per-question state: effective answer, source, and options. |
Example response
{
"questions": {}
}
List Env Subcontractors
GET /api/v1/environments/{env_id}/subcontractors
The subcontractors THIS environment orders from (active
memberships). An external operation priced here that no member offers
carries a subcontract_unsourced note on the result — a note,
never a veto.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Attach Env Subcontractor
POST /api/v1/environments/{env_id}/subcontractors
Attach one of your subcontractors to this environment.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
is_enabled |
boolean | no | |
subcontractor_id |
string | yes |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subcontractor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"subcontractor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"subcontractor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
201 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 201
| Field | Type | Description |
|---|---|---|
is_active |
boolean | |
is_enabled |
boolean | |
lead_time_days |
integer | |
membership_id |
string | |
name |
string | |
operation_kinds |
string[] | External operations this member offers (capability slugs). |
preset_key |
string | Platform preset this shop was installed from (heat_treatment_shop, electroplating_shop, …); null = the org's own subcontractor. |
region |
string | |
subcontractor_id |
string | |
valid_from |
string |
Example response
{
"is_active": true,
"is_enabled": true,
"lead_time_days": 0,
"membership_id": "string",
"name": "string",
"operation_kinds": [
"string"
],
"preset_key": "string",
"region": "EU",
"subcontractor_id": "string",
"valid_from": "string"
}
Detach Env Subcontractor
DELETE /api/v1/environments/{env_id}/subcontractors/{membership_id}
Detach a subcontractor (SCD2: the membership closes its window; a same-day attach+detach hard-deletes the zero-length row).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
membership_id |
path | string | yes | Identifier of the membership. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/{membership_id} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/{membership_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/{membership_id}", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
message |
string | Human-readable result of the operation. |
Example response
{
"message": "string"
}
Update Env Subcontractor Membership
PATCH /api/v1/environments/{env_id}/subcontractors/{membership_id}
Enable/disable a subcontractor here without detaching it.
The engine has always gated on this flag — pipeline_context_cache
filters is_enabled.is_(True) when it collects the sourced operation
kinds — but no route set it, so it could never be anything but the
True it defaults to on attach. A shop wanting to stop sourcing one
operation from one subcontractor in one environment had to detach and
re-attach, discarding the SCD2 history the membership exists to keep.
Same shape as the tool sibling above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
membership_id |
path | string | yes | Identifier of the membership. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
is_enabled |
boolean | yes | Enable/disable without detaching. |
Request
curl -X PATCH https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/{membership_id} \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"is_enabled": true
}'
import requests
resp = requests.patch(
"https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/{membership_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"is_enabled": True
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/{membership_id}", {
method: "PATCH",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"is_enabled": true
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
is_active |
boolean | |
is_enabled |
boolean | |
lead_time_days |
integer | |
membership_id |
string | |
name |
string | |
operation_kinds |
string[] | External operations this member offers (capability slugs). |
preset_key |
string | Platform preset this shop was installed from (heat_treatment_shop, electroplating_shop, …); null = the org's own subcontractor. |
region |
string | |
subcontractor_id |
string | |
valid_from |
string |
Example response
{
"is_active": true,
"is_enabled": true,
"lead_time_days": 0,
"membership_id": "string",
"name": "string",
"operation_kinds": [
"string"
],
"preset_key": "string",
"region": "EU",
"subcontractor_id": "string",
"valid_from": "string"
}
Restore Env Subcontractors
POST /api/v1/environments/{env_id}/subcontractors/restore
Restore the platform subcontractor presets in the default environment: hidden presets return, removed ones re-attach, switched-off ones switch on and are active again. Your own subcontractors and every other environment are untouched. 409 on any other environment.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/restore \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/restore",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/subcontractors/restore", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
enabled |
integer | Switched-off memberships switched back on. |
message |
string | Always 'restored'. |
reattached |
integer | Presets re-attached (new SCD2 rows). |
Example response
{
"enabled": 0,
"message": "string",
"reattached": 0,
"unhidden": 0
}
List Env Tools
GET /api/v1/environments/{env_id}/tools
The crib tools THIS environment runs (active memberships). What the
engine prices with — an empty list means the environment deliberately
runs no crib tool and every handler keeps its own constants. at
answers "what does the crib look like on date X" — the same
active_as_of window pricing resolves on that date (rates already
take ?at); it defaults to today. kind and q narrow the
list; without them every active tool is returned.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
at |
query | string | no | As-of date for the crib window; defaults to today. Answers "what does the crib look like on date X" — a scheduled addition appears once at reaches its valid_from, a scheduled removal disappears from its valid_to on. |
kind |
query | end_mill | face_mill | drill | spot_drill | centre_drill | tap | reamer | boring_bar | thread_mill | insert_holder_turn | grooving_tool | grinding_wheel | chamfer_mill | corner_rounding_mill | slitting_saw | countersink | counterbore | annular_cutter | saw_blade | edm_wire | press_brake_punch | press_brake_die | tube_bend_die | plasma_consumable_set | laser_nozzle | waterjet_nozzle | punch_die_set | weld_consumable | broach | gear_milling_cutter | hob | profile_broach |
no | Only tools of this kind (VDI 2852 class, e.g. drill). |
q |
query | string | no | Only tools whose name contains this text (case-insensitive). |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/tools \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/tools",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/tools", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Attach Env Tool
POST /api/v1/environments/{env_id}/tools
Attach one of your crib tools to this environment.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
is_enabled |
boolean | no | |
tool_id |
string | yes | Crib tool to attach. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/tools \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/tools",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"tool_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/tools", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"tool_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
201 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 201
| Field | Type | Description |
|---|---|---|
catalogue_item_id |
string | Platform article this tool was adopted from; null = custom tool. |
diameter_mm |
number | Cutting diameter, mm. |
differs_from_article |
boolean | The tool's geometry / economics / spec differ from its article's (edited); always false for a custom tool. |
fits_machine_names |
string[] | The enabled machines that can run the tool, by name — the positive half of the fitment answer. Null when fitment does not apply to this tool kind (nothing mounts it). |
fits_machines |
boolean | Whether any enabled machine of this environment can run the tool; false = the tool is inert here whatever its switch says. |
is_enabled |
boolean | Whether pricing may use this tool here. |
kind |
string | Tool kind (VDI 2852 class). |
membership_id |
string | Membership row id (detach/toggle handle). |
name |
string | Tool name. |
price_eur |
number | Replacement price, EUR. |
teeth |
integer | Cutting edges / flutes. |
tool_id |
string | Crib tool id. |
tool_life_min |
number | Edge life, cutting minutes. |
valid_from |
string | Membership validity start (ISO date). |
Example response
{
"catalogue_item_id": "string",
"diameter_mm": 0,
"differs_from_article": false,
"fits_machine_names": [
"string"
],
"fits_machines": true,
"is_enabled": true,
"kind": "string",
"membership_id": "string",
"name": "string",
"price_eur": 0,
"teeth": 0,
"tool_id": "string",
"tool_life_min": 0,
"valid_from": "string"
}
Detach Env Tool
DELETE /api/v1/environments/{env_id}/tools/{membership_id}
Detach a tool from this environment (SCD2 retire; a same-day attach is hard-deleted). The heal-forward record means a detached tool is never silently re-attached by provisioning.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
membership_id |
path | string | yes | Identifier of the membership. |
Request
curl -X DELETE https://api.arcnm.io/api/v1/environments/{env_id}/tools/{membership_id} \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.delete(
"https://api.arcnm.io/api/v1/environments/{env_id}/tools/{membership_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/tools/{membership_id}", {
method: "DELETE",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
message |
string | Human-readable result of the operation. |
Example response
{
"message": "string"
}
Update Env Tool Membership
PATCH /api/v1/environments/{env_id}/tools/{membership_id}
Enable/disable a tool here without detaching it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
membership_id |
path | string | yes | Identifier of the membership. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
is_enabled |
boolean | yes | Enable/disable without detaching. |
Request
curl -X PATCH https://api.arcnm.io/api/v1/environments/{env_id}/tools/{membership_id} \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"is_enabled": true
}'
import requests
resp = requests.patch(
"https://api.arcnm.io/api/v1/environments/{env_id}/tools/{membership_id}",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"is_enabled": True
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/tools/{membership_id}", {
method: "PATCH",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"is_enabled": true
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
catalogue_item_id |
string | Platform article this tool was adopted from; null = custom tool. |
diameter_mm |
number | Cutting diameter, mm. |
differs_from_article |
boolean | The tool's geometry / economics / spec differ from its article's (edited); always false for a custom tool. |
fits_machine_names |
string[] | The enabled machines that can run the tool, by name — the positive half of the fitment answer. Null when fitment does not apply to this tool kind (nothing mounts it). |
fits_machines |
boolean | Whether any enabled machine of this environment can run the tool; false = the tool is inert here whatever its switch says. |
is_enabled |
boolean | Whether pricing may use this tool here. |
kind |
string | Tool kind (VDI 2852 class). |
membership_id |
string | Membership row id (detach/toggle handle). |
name |
string | Tool name. |
price_eur |
number | Replacement price, EUR. |
teeth |
integer | Cutting edges / flutes. |
tool_id |
string | Crib tool id. |
tool_life_min |
number | Edge life, cutting minutes. |
valid_from |
string | Membership validity start (ISO date). |
Example response
{
"catalogue_item_id": "string",
"diameter_mm": 0,
"differs_from_article": false,
"fits_machine_names": [
"string"
],
"fits_machines": true,
"is_enabled": true,
"kind": "string",
"membership_id": "string",
"name": "string",
"price_eur": 0,
"teeth": 0,
"tool_id": "string",
"tool_life_min": 0,
"valid_from": "string"
}
Restore Env Tools
POST /api/v1/environments/{env_id}/tools/restore
Restore the platform tool set in the default environment: hidden platform tools return, removed ones are re-attached, switched-off ones switch on. Edited values, custom tools and every other environment are untouched. 409 on any other environment.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/tools/restore \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/{env_id}/tools/restore",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/tools/restore", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
enabled |
integer | Switched-off memberships switched back on. |
message |
string | Always 'restored'. |
reattached |
integer | Tools re-attached to the default environment (new SCD2 rows). |
unhidden |
integer | Hidden platform tools that returned. |
Example response
{
"enabled": 0,
"message": "string",
"reattached": 0,
"unhidden": 0
}
Get Calculation Tuning
GET /api/v1/environments/{env_id}/tuning
Read the environment's calculation-tuning knobs with provenance: stated on this environment, inherited from a parent environment, or the platform default — the order calculations read them in.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request
curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/tuning \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/{env_id}/tuning",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/tuning", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
bar_clamp_remnant_mm |
TuningKnob | End of each bar, mm, the clamp holds and no part is cut from. It leaves as scrap. |
bar_length_mm |
TuningKnob | Length, mm, the round bar a turned part is cut from is bought in. A part carries its share of one bar. Once your stock formats list bars of your own, a part is priced on the lengths listed there, and this length is only the fallback when none of them can be used. |
bar_remnant_min_l_mm |
TuningKnob | Shortest end, mm, a bar leaves past its last part — or a tube past its part — that counts as a reusable remnant, which is not charged to the part. |
bolt_cycle_s |
TuningKnob | Seconds to fit one bolt with its nut and washer in an assembly. Billed as stated, with no allowance added on top. |
custom_format_surcharge_pct |
TuningKnob | Premium a sheet cut to an ordered size carries on its metal over the same metal in a stocked format, as a fraction of the metal's price (0.15 = 15 %). Read by the nesting workbench's sheet comparison: a proposed custom size must beat the best stocked format after this premium and the cut-to-size fees. A re-run on a stated size books no surcharge yet. |
cut_to_size_increment_mm |
TuningKnob | Step, mm, a plate ordered cut to size is bought in: each side rounds up to a whole multiple of it. 0 buys the exact size. |
cycle_factor |
TuningKnob | Multiplier on the per-unit run time across all process bins — cutting, air moves, peck retract and tool changes — read off the reference process (milling). See 'processes'. Setup, prove-out, programming and the handling (load/unload, pallet change, re-chucking: nebenzeit_factor) have their own factors. |
edge_margin_mm |
TuningKnob | Edge margin kept to every side of a purchased sheet, mm — clamping and edge trim. A plate ordered cut to size carries it on each side too. |
erholzeit_pct |
TuningKnob | Recovery allowance (Erholzeit) as a fraction OF THE RUN BASE TIME it is added to. Setup has its own, ruesterholzeit_pct. |
eur_per_fastener |
TuningKnob | Price of one bolt with its nut and washer at M8, EUR. Other thread sizes are priced from it by the platform's size index. |
filler_wire_eur_per_kg |
TuningKnob | Price of the filler wire an assembly's in-house arc welding deposits, EUR per kg. |
full_stock_threshold |
TuningKnob | The fill of a started stock piece — a sheet, a bar — from which a lot pays the piece whole, as a fraction of the parts it holds (0.85 = 85 %). Below it the lot pays its share and the rest goes back to stock; from it on the whole piece is the lot's and its empty cells are credited as scrap where scrap is credited. 1.0 turns the rule off (every lot pays its share). |
learning_rate |
TuningKnob | Wright learning-curve rate applied to the lot-size curve (1.0 = off). |
micro_joint_width_mm |
TuningKnob | Width of a micro-joint, mm — the uncut tab that holds a part in the skeleton; applies where micro-joints are used (shop practice). |
micro_joints_over_1000mm |
TuningKnob | Micro-joints per part whose outline is over 1000 mm long. |
micro_joints_to_1000mm |
TuningKnob | Micro-joints per part whose outline is over 300 up to 1000 mm. |
micro_joints_to_300mm |
TuningKnob | Micro-joints per part whose outline is up to 300 mm long. |
min_web_mm_over_12mm |
TuningKnob | Minimum web between parts, mm, for plate over 12 mm. |
min_web_mm_to_12mm |
TuningKnob | Minimum web between parts, mm, for plate over 6 up to 12 mm. |
min_web_mm_to_3mm |
TuningKnob | Minimum web between parts, mm, for sheet up to 3 mm thick — applies where the web depends on the thickness (shop practice). |
min_web_mm_to_6mm |
TuningKnob | Minimum web between parts, mm, for sheet over 3 up to 6 mm. |
nebenzeit_factor |
TuningKnob | Multiplier on estimated Nebenzeit — loading and unloading, pallet changes — read off the reference process (milling). See 'processes'. |
press_in_cycle_s |
TuningKnob | Seconds to install one pressed-in catalogue part of an assembly — a self-clinching nut or stud, a dowel pin: pick it, place it and press it. Priced per piece at the assembly shop rate. |
press_tool_change_s |
TuningKnob | Seconds to change an insertion press's punch and anvil to another part type or thread size. Priced once per lot for each type and size of pressed-in part an assembly holds, at the assembly shop rate. |
processes |
object | Every process that states a factor of its own on this environment, keyed by process (milling, turning, sawing, ...). A flat write states all of them; a per-process write states only the ones it names. Empty when this environment sets nothing; a parent environment's per-process factors are not listed. |
programming_factor |
TuningKnob | Multiplier on estimated programming times, read off the reference process (milling). See 'processes'. |
proveout_factor |
TuningKnob | Multiplier on estimated prove-out times — the dry run, the first piece and its measurement, trial parts and the first article — read off the reference process (milling). See 'processes'. The setup factor does not reach them. |
remnant_min_area_share |
TuningKnob | Area a reusable remnant needs, as a fraction of the purchased sheet's (0.05 = 5 %). A reusable remnant is not charged to the part. |
remnant_min_l_mm |
TuningKnob | Longer side, mm, a rest of the sheet needs to count as a reusable remnant, which is not charged to the part. |
remnant_min_w_mm |
TuningKnob | Shorter side, mm, a rest of the sheet needs to count as a reusable remnant, which is not charged to the part. |
remnant_value_factor |
TuningKnob | The share of a reusable remnant — a rest of a sheet, an end of a bar or a tube — that is not charged to the part, as a fraction of its value at the price of new stock (1.0, the default, charges none of it; 0.8 charges the part 20 %). Has no effect where the environment charges remnants to the part. |
rivet_cycle_s |
TuningKnob | Seconds to set one blind rivet in an assembly, allowances included. |
ruesterholzeit_pct |
TuningKnob | Recovery allowance on setup (Rüsterholzeit) as a fraction OF THE SETUP BASE TIME. Separate from the run plane's erholzeit_pct: setting up and running are different work. |
ruestverteilzeit_pct |
TuningKnob | Distribution allowance on setup (Rüstverteilzeit) as a fraction OF THE SETUP BASE TIME. |
setup_factor |
TuningKnob | Multiplier on estimated setup times, read off the reference process (milling). Per-process factors are in 'processes'. |
shielding_gas_eur_per_m3 |
TuningKnob | Price of the shielding gas an assembly's in-house arc welding uses, EUR per cubic metre. |
skeleton_web_mm |
TuningKnob | Web left standing between two nested parts, mm, WITHOUT the cutting gap: the cutter's own kerf is added to it, so parts sit this web plus the kerf apart. |
verteilzeit_pct |
TuningKnob | Distribution allowance (Verteilzeit) as a fraction OF THE RUN BASE TIME — 0.10 adds 10 % to every machining time. |
weld_inspection_order_minimum_eur |
TuningKnob | The test lab's minimum charge per order, EUR, charged once per lot when the welds need surface testing. |
weld_ndt_eur_per_m |
TuningKnob | Surface testing (MT/PT) of an assembly's welds by a test lab, EUR per metre of tested seam. |
weld_visual_inspection_eur_per_m |
TuningKnob | Visual testing (VT) of an assembly's welds, EUR per metre of seam. |
Example response
{
"bar_clamp_remnant_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"bar_length_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"bar_remnant_min_l_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"bolt_cycle_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"custom_format_surcharge_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"cut_to_size_increment_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"cycle_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"edge_margin_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"erholzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"eur_per_fastener": {
"platform_default": 0,
"source": "string",
"value": 0
},
"filler_wire_eur_per_kg": {
"platform_default": 0,
"source": "string",
"value": 0
},
"full_stock_threshold": {
"platform_default": 0,
"source": "string",
"value": 0
},
"learning_rate": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joint_width_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joints_over_1000mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joints_to_1000mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joints_to_300mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_over_12mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_to_12mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_to_3mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_to_6mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"nebenzeit_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"press_in_cycle_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"press_tool_change_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"processes": {},
"programming_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"proveout_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_min_area_share": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_min_l_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_min_w_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_value_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"rivet_cycle_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"ruesterholzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"ruestverteilzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"setup_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"shielding_gas_eur_per_m3": {
"platform_default": 0,
"source": "string",
"value": 0
},
"skeleton_web_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"verteilzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"weld_inspection_order_minimum_eur": {
"platform_default": 0,
"source": "string",
"value": 0
},
"weld_ndt_eur_per_m": {
"platform_default": 0,
"source": "string",
"value": 0
},
"weld_visual_inspection_eur_per_m": {
"platform_default": 0,
"source": "string",
"value": 0
}
}
Update Calculation Tuning
PUT /api/v1/environments/{env_id}/tuning
Write env-tier tuning overrides (audited).
Each <plane>_factor — setup, programming, cycle, proveout,
nebenzeit — writes the per-bin <plane>_efficiency override for every
routable process bin at ENV tier; 1.0, its identity, clears the
override. processes writes them for only the processes it names,
after the flat fields.
The four REFA allowances (verteilzeit_pct, erholzeit_pct,
ruestverteilzeit_pct, ruesterholzeit_pct) write the same per-bin
overrides over every bin that reads them.
The six sheet-nesting settings (edge_margin_mm, skeleton_web_mm,
the three remnant thresholds, cut_to_size_increment_mm) each write
their cell of the sheet-nesting settings, which a sheet part's purchase
reads; remnant_value_factor writes its cell of the material valuation
policy, beside the remnant answer it serves. The three
bar stock settings (bar_length_mm, bar_clamp_remnant_mm and
bar_remnant_min_l_mm, the shortest end that counts as a remnant)
write theirs, which a turned part's bar purchase reads. As with the
allowances, 0 is a statement and reset is the way back.
The four inspection_* fields write the platform-wide inspection
constants in the global bin — the cells the cost sheet's Prüfung line
moves. They read back, with provenance and the platform value, on
GET /environments/{env_id}/factors, not on this endpoint's read
model (the tuning knobs).
learning_rate writes the env's Wright rate.
null means "no statement" on every field, never a write: a
client serialising its whole model leaves the knobs it sends as null
as they are. Clearing a knob — so it reads a
parent environment's statement, else the platform default — is the
named reset list (0 is a statable allowance, so an allowance has no
identity value to send; for a multiplier it equals sending 1.0). The one exception: an explicit null
on an inspection cell clears its override (the cost sheet's save-dialog
contract).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
env_id |
path | string | yes | Identifier of the env. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
bar_clamp_remnant_mm |
number | no | End of each bar the clamp holds and no part is cut from, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
bar_length_mm |
number | no | Length the round bar a turned part is cut from is bought in, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
bar_remnant_min_l_mm |
number | no | Shortest bar or tube end that counts as a reusable remnant, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
bolt_cycle_s |
number | no | Seconds to fit one bolt with nut and washer, billed as stated with no allowance added on top; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
custom_format_surcharge_pct |
number | no | Premium a sheet cut to an ordered size carries on its metal, as a fraction of the metal's price (0.15 = 15 %); omit or send null to keep, "reset" to clear it back to inherit / platform default. |
cut_to_size_increment_mm |
number | no | Step a plate ordered cut to size is bought in, mm — each side rounds up to a multiple of it, 0 buys the exact size; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
cycle_factor |
number | no | Multiplier on the per-unit run time — cutting, air moves, peck retract and tool changes (the handling has its own nebenzeit_factor); omit or send null to keep, 1.0 (its identity) or "reset" to clear it back to inherit / platform default. |
edge_margin_mm |
number | no | Edge margin kept to every side of a purchased sheet, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. 0 is a statement, not a reset. |
erholzeit_pct |
number | no | Recovery allowance on the RUN base time, as a fraction (0.045 = 4.5 %); omit or send null to keep, "reset" to clear it back to inherit / platform default. |
eur_per_fastener |
number | no | Price of one M8 bolt with nut and washer, EUR; other sizes follow the platform size index. Omit or send null to keep, "reset" to clear it back to inherit / platform default. |
filler_wire_eur_per_kg |
number | no | Filler wire price for in-house arc welding, EUR/kg; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
full_stock_threshold |
number | no | The fill of a started stock piece from which a lot pays it whole, as a fraction of the parts it holds (0.85 = 85 %; 1.0 turns the rule off); omit or send null to keep, "reset" to clear it back to inherit / platform default. |
inspection_tau_s_per_element |
number | no | Seconds to measure one characteristic; omit to keep, send null to clear your override. |
inspection_weight_datum |
number | no | Effort weight of a datum characteristic; omit to keep, null to clear. |
inspection_weight_gdt |
number | no | Effort weight of a geometric-tolerance characteristic; omit to keep, null to clear. |
inspection_weight_ndt |
number | no | Effort weight of a non-destructive-testing callout; omit to keep, null to clear. |
learning_rate |
number | no | Wright rate in [0.5, 1.0]; 1.0 disables learning. Omit or send null to keep it; name it in "reset" to return it to the platform default. |
micro_joint_width_mm |
number | no | Micro-joint width, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
micro_joints_over_1000mm |
number | no | Micro-joints per part with an outline over 1000 mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
micro_joints_to_1000mm |
number | no | Micro-joints per part with an outline over 300 up to 1000 mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
micro_joints_to_300mm |
number | no | Micro-joints per part with an outline up to 300 mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
min_web_mm_over_12mm |
number | no | Minimum web for plate over 12 mm, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
min_web_mm_to_12mm |
number | no | Minimum web for plate over 6 up to 12 mm, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
min_web_mm_to_3mm |
number | no | Minimum web for sheet up to 3 mm, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
min_web_mm_to_6mm |
number | no | Minimum web for sheet over 3 up to 6 mm, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
nebenzeit_factor |
number | no | Nebenzeit multiplier (loading and unloading, pallet changes); omit or send null to keep, 1.0 (its identity) or "reset" to clear it back to inherit / platform default. |
press_in_cycle_s |
number | no | Seconds to install one pressed-in catalogue part of an assembly (a self-clinching nut or stud, a dowel pin), handling included; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
press_tool_change_s |
number | no | Seconds to change an insertion press's punch and anvil to another part type or thread size, charged once per lot for each; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
processes |
object | no | Per-process factors, keyed by process (milling, turning, sawing, ...). Applied after the flat fields, so a flat value sets every process and a named one overrides it. |
programming_factor |
number | no | Programming-time multiplier; omit or send null to keep, 1.0 (its identity) or "reset" to clear it back to inherit / platform default. |
proveout_factor |
number | no | Prove-out-time multiplier (dry run, first piece and its measurement, trial parts, first article); omit or send null to keep, 1.0 (its identity) or "reset" to clear it back to inherit / platform default. |
remnant_min_area_share |
number | no | Area a reusable remnant needs, as a fraction of the purchased sheet's (0.05 = 5 %); omit or send null to keep, "reset" to clear it back to inherit / platform default. |
remnant_min_l_mm |
number | no | Longer side a reusable remnant needs, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
remnant_min_w_mm |
number | no | Shorter side a reusable remnant needs, mm; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
remnant_value_factor |
number | no | What a reusable remnant is worth against new stock of its kind, as a fraction of its price per kg (0.8 = 80 %); omit or send null to keep, "reset" to clear it back to inherit / platform default. |
reset |
string[] | no | Knobs to clear on this environment, by name — learning_rate, setup_factor, programming_factor, cycle_factor, proveout_factor, nebenzeit_factor, verteilzeit_pct, erholzeit_pct, ruestverteilzeit_pct, ruesterholzeit_pct, edge_margin_mm, skeleton_web_mm, remnant_min_l_mm, remnant_min_w_mm, remnant_min_area_share, remnant_value_factor, full_stock_threshold, cut_to_size_increment_mm, custom_format_surcharge_pct, bar_length_mm, bar_clamp_remnant_mm, bar_remnant_min_l_mm, min_web_mm_to_3mm, min_web_mm_to_6mm, min_web_mm_to_12mm, min_web_mm_over_12mm, micro_joint_width_mm, micro_joints_to_300mm, micro_joints_to_1000mm, micro_joints_over_1000mm, press_in_cycle_s, press_tool_change_s, filler_wire_eur_per_kg, shielding_gas_eur_per_m3, eur_per_fastener, bolt_cycle_s, rivet_cycle_s, weld_visual_inspection_eur_per_m, weld_ndt_eur_per_m, weld_inspection_order_minimum_eur. A cleared knob reads what a parent environment states, else the platform default; learning_rate is this environment's own and returns to the platform default. Clearing is a named gesture because a null in a knob's own field means 'no statement' and must never delete one. An unknown name is rejected. |
rivet_cycle_s |
number | no | Seconds to set one blind rivet, allowances included; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
ruesterholzeit_pct |
number | no | Recovery allowance on the SETUP base time, as a fraction (0.045 = 4.5 %); omit or send null to keep, "reset" to clear it back to inherit / platform default. |
ruestverteilzeit_pct |
number | no | Distribution allowance on setup as a fraction of the setup base time (0.10 = 10 %); omit or send null to keep, "reset" to clear it back to inherit / platform default. |
setup_factor |
number | no | Setup-time multiplier; omit or send null to keep, 1.0 (its identity) or "reset" to clear it back to inherit / platform default. |
shielding_gas_eur_per_m3 |
number | no | Shielding gas price for in-house arc welding, EUR/m3; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
skeleton_web_mm |
number | no | Web between two nested parts WITHOUT the cutting gap, mm — the cutter's kerf is added to it; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
verteilzeit_pct |
number | no | Distribution allowance as a fraction of the run base time (0.10 = 10 %); omit or send null to keep, "reset" to clear it back to inherit / platform default. 0 is a statable allowance, not a reset. |
weld_inspection_order_minimum_eur |
number | no | The test lab's minimum charge per order, EUR; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
weld_ndt_eur_per_m |
number | no | Surface testing (MT/PT) of welds by a test lab, EUR per metre of tested seam; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
weld_visual_inspection_eur_per_m |
number | no | Visual testing (VT) of welds, EUR per metre of seam; omit or send null to keep, "reset" to clear it back to inherit / platform default. |
Request
curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/tuning \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"bar_clamp_remnant_mm": 0,
"bar_length_mm": 0,
"bar_remnant_min_l_mm": 0,
"bolt_cycle_s": 184,
"custom_format_surcharge_pct": 0,
"cut_to_size_increment_mm": 0,
"cycle_factor": 0,
"edge_margin_mm": 0,
"erholzeit_pct": 0,
"eur_per_fastener": 0,
"filler_wire_eur_per_kg": 0,
"full_stock_threshold": 0,
"inspection_tau_s_per_element": 0,
"inspection_weight_datum": 0,
"inspection_weight_gdt": 0,
"inspection_weight_ndt": 0,
"learning_rate": 0,
"micro_joint_width_mm": 0,
"micro_joints_over_1000mm": 0,
"micro_joints_to_1000mm": 0,
"micro_joints_to_300mm": 0,
"min_web_mm_over_12mm": 0,
"min_web_mm_to_12mm": 0,
"min_web_mm_to_3mm": 0,
"min_web_mm_to_6mm": 0,
"nebenzeit_factor": 0,
"press_in_cycle_s": 184,
"press_tool_change_s": 184,
"processes": {},
"programming_factor": 0,
"proveout_factor": 0,
"remnant_min_area_share": 0,
"remnant_min_l_mm": 0,
"remnant_min_w_mm": 0,
"remnant_value_factor": 0,
"reset": [
"string"
],
"rivet_cycle_s": 184,
"ruesterholzeit_pct": 0,
"ruestverteilzeit_pct": 0,
"setup_factor": 0,
"shielding_gas_eur_per_m3": 0,
"skeleton_web_mm": 0,
"verteilzeit_pct": 0,
"weld_inspection_order_minimum_eur": 0,
"weld_ndt_eur_per_m": 0,
"weld_visual_inspection_eur_per_m": 0
}'
import requests
resp = requests.put(
"https://api.arcnm.io/api/v1/environments/{env_id}/tuning",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"bar_clamp_remnant_mm": 0,
"bar_length_mm": 0,
"bar_remnant_min_l_mm": 0,
"bolt_cycle_s": 184,
"custom_format_surcharge_pct": 0,
"cut_to_size_increment_mm": 0,
"cycle_factor": 0,
"edge_margin_mm": 0,
"erholzeit_pct": 0,
"eur_per_fastener": 0,
"filler_wire_eur_per_kg": 0,
"full_stock_threshold": 0,
"inspection_tau_s_per_element": 0,
"inspection_weight_datum": 0,
"inspection_weight_gdt": 0,
"inspection_weight_ndt": 0,
"learning_rate": 0,
"micro_joint_width_mm": 0,
"micro_joints_over_1000mm": 0,
"micro_joints_to_1000mm": 0,
"micro_joints_to_300mm": 0,
"min_web_mm_over_12mm": 0,
"min_web_mm_to_12mm": 0,
"min_web_mm_to_3mm": 0,
"min_web_mm_to_6mm": 0,
"nebenzeit_factor": 0,
"press_in_cycle_s": 184,
"press_tool_change_s": 184,
"processes": {},
"programming_factor": 0,
"proveout_factor": 0,
"remnant_min_area_share": 0,
"remnant_min_l_mm": 0,
"remnant_min_w_mm": 0,
"remnant_value_factor": 0,
"reset": [
"string"
],
"rivet_cycle_s": 184,
"ruesterholzeit_pct": 0,
"ruestverteilzeit_pct": 0,
"setup_factor": 0,
"shielding_gas_eur_per_m3": 0,
"skeleton_web_mm": 0,
"verteilzeit_pct": 0,
"weld_inspection_order_minimum_eur": 0,
"weld_ndt_eur_per_m": 0,
"weld_visual_inspection_eur_per_m": 0
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/tuning", {
method: "PUT",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"bar_clamp_remnant_mm": 0,
"bar_length_mm": 0,
"bar_remnant_min_l_mm": 0,
"bolt_cycle_s": 184,
"custom_format_surcharge_pct": 0,
"cut_to_size_increment_mm": 0,
"cycle_factor": 0,
"edge_margin_mm": 0,
"erholzeit_pct": 0,
"eur_per_fastener": 0,
"filler_wire_eur_per_kg": 0,
"full_stock_threshold": 0,
"inspection_tau_s_per_element": 0,
"inspection_weight_datum": 0,
"inspection_weight_gdt": 0,
"inspection_weight_ndt": 0,
"learning_rate": 0,
"micro_joint_width_mm": 0,
"micro_joints_over_1000mm": 0,
"micro_joints_to_1000mm": 0,
"micro_joints_to_300mm": 0,
"min_web_mm_over_12mm": 0,
"min_web_mm_to_12mm": 0,
"min_web_mm_to_3mm": 0,
"min_web_mm_to_6mm": 0,
"nebenzeit_factor": 0,
"press_in_cycle_s": 184,
"press_tool_change_s": 184,
"processes": {},
"programming_factor": 0,
"proveout_factor": 0,
"remnant_min_area_share": 0,
"remnant_min_l_mm": 0,
"remnant_min_w_mm": 0,
"remnant_value_factor": 0,
"reset": [
"string"
],
"rivet_cycle_s": 184,
"ruesterholzeit_pct": 0,
"ruestverteilzeit_pct": 0,
"setup_factor": 0,
"shielding_gas_eur_per_m3": 0,
"skeleton_web_mm": 0,
"verteilzeit_pct": 0,
"weld_inspection_order_minimum_eur": 0,
"weld_ndt_eur_per_m": 0,
"weld_visual_inspection_eur_per_m": 0
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
404 |
not_found |
A referenced resource doesn't exist or isn't visible to your organisation. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
bar_clamp_remnant_mm |
TuningKnob | End of each bar, mm, the clamp holds and no part is cut from. It leaves as scrap. |
bar_length_mm |
TuningKnob | Length, mm, the round bar a turned part is cut from is bought in. A part carries its share of one bar. Once your stock formats list bars of your own, a part is priced on the lengths listed there, and this length is only the fallback when none of them can be used. |
bar_remnant_min_l_mm |
TuningKnob | Shortest end, mm, a bar leaves past its last part — or a tube past its part — that counts as a reusable remnant, which is not charged to the part. |
bolt_cycle_s |
TuningKnob | Seconds to fit one bolt with its nut and washer in an assembly. Billed as stated, with no allowance added on top. |
custom_format_surcharge_pct |
TuningKnob | Premium a sheet cut to an ordered size carries on its metal over the same metal in a stocked format, as a fraction of the metal's price (0.15 = 15 %). Read by the nesting workbench's sheet comparison: a proposed custom size must beat the best stocked format after this premium and the cut-to-size fees. A re-run on a stated size books no surcharge yet. |
cut_to_size_increment_mm |
TuningKnob | Step, mm, a plate ordered cut to size is bought in: each side rounds up to a whole multiple of it. 0 buys the exact size. |
cycle_factor |
TuningKnob | Multiplier on the per-unit run time across all process bins — cutting, air moves, peck retract and tool changes — read off the reference process (milling). See 'processes'. Setup, prove-out, programming and the handling (load/unload, pallet change, re-chucking: nebenzeit_factor) have their own factors. |
edge_margin_mm |
TuningKnob | Edge margin kept to every side of a purchased sheet, mm — clamping and edge trim. A plate ordered cut to size carries it on each side too. |
erholzeit_pct |
TuningKnob | Recovery allowance (Erholzeit) as a fraction OF THE RUN BASE TIME it is added to. Setup has its own, ruesterholzeit_pct. |
eur_per_fastener |
TuningKnob | Price of one bolt with its nut and washer at M8, EUR. Other thread sizes are priced from it by the platform's size index. |
filler_wire_eur_per_kg |
TuningKnob | Price of the filler wire an assembly's in-house arc welding deposits, EUR per kg. |
full_stock_threshold |
TuningKnob | The fill of a started stock piece — a sheet, a bar — from which a lot pays the piece whole, as a fraction of the parts it holds (0.85 = 85 %). Below it the lot pays its share and the rest goes back to stock; from it on the whole piece is the lot's and its empty cells are credited as scrap where scrap is credited. 1.0 turns the rule off (every lot pays its share). |
learning_rate |
TuningKnob | Wright learning-curve rate applied to the lot-size curve (1.0 = off). |
micro_joint_width_mm |
TuningKnob | Width of a micro-joint, mm — the uncut tab that holds a part in the skeleton; applies where micro-joints are used (shop practice). |
micro_joints_over_1000mm |
TuningKnob | Micro-joints per part whose outline is over 1000 mm long. |
micro_joints_to_1000mm |
TuningKnob | Micro-joints per part whose outline is over 300 up to 1000 mm. |
micro_joints_to_300mm |
TuningKnob | Micro-joints per part whose outline is up to 300 mm long. |
min_web_mm_over_12mm |
TuningKnob | Minimum web between parts, mm, for plate over 12 mm. |
min_web_mm_to_12mm |
TuningKnob | Minimum web between parts, mm, for plate over 6 up to 12 mm. |
min_web_mm_to_3mm |
TuningKnob | Minimum web between parts, mm, for sheet up to 3 mm thick — applies where the web depends on the thickness (shop practice). |
min_web_mm_to_6mm |
TuningKnob | Minimum web between parts, mm, for sheet over 3 up to 6 mm. |
nebenzeit_factor |
TuningKnob | Multiplier on estimated Nebenzeit — loading and unloading, pallet changes — read off the reference process (milling). See 'processes'. |
press_in_cycle_s |
TuningKnob | Seconds to install one pressed-in catalogue part of an assembly — a self-clinching nut or stud, a dowel pin: pick it, place it and press it. Priced per piece at the assembly shop rate. |
press_tool_change_s |
TuningKnob | Seconds to change an insertion press's punch and anvil to another part type or thread size. Priced once per lot for each type and size of pressed-in part an assembly holds, at the assembly shop rate. |
processes |
object | Every process that states a factor of its own on this environment, keyed by process (milling, turning, sawing, ...). A flat write states all of them; a per-process write states only the ones it names. Empty when this environment sets nothing; a parent environment's per-process factors are not listed. |
programming_factor |
TuningKnob | Multiplier on estimated programming times, read off the reference process (milling). See 'processes'. |
proveout_factor |
TuningKnob | Multiplier on estimated prove-out times — the dry run, the first piece and its measurement, trial parts and the first article — read off the reference process (milling). See 'processes'. The setup factor does not reach them. |
remnant_min_area_share |
TuningKnob | Area a reusable remnant needs, as a fraction of the purchased sheet's (0.05 = 5 %). A reusable remnant is not charged to the part. |
remnant_min_l_mm |
TuningKnob | Longer side, mm, a rest of the sheet needs to count as a reusable remnant, which is not charged to the part. |
remnant_min_w_mm |
TuningKnob | Shorter side, mm, a rest of the sheet needs to count as a reusable remnant, which is not charged to the part. |
remnant_value_factor |
TuningKnob | The share of a reusable remnant — a rest of a sheet, an end of a bar or a tube — that is not charged to the part, as a fraction of its value at the price of new stock (1.0, the default, charges none of it; 0.8 charges the part 20 %). Has no effect where the environment charges remnants to the part. |
rivet_cycle_s |
TuningKnob | Seconds to set one blind rivet in an assembly, allowances included. |
ruesterholzeit_pct |
TuningKnob | Recovery allowance on setup (Rüsterholzeit) as a fraction OF THE SETUP BASE TIME. Separate from the run plane's erholzeit_pct: setting up and running are different work. |
ruestverteilzeit_pct |
TuningKnob | Distribution allowance on setup (Rüstverteilzeit) as a fraction OF THE SETUP BASE TIME. |
setup_factor |
TuningKnob | Multiplier on estimated setup times, read off the reference process (milling). Per-process factors are in 'processes'. |
shielding_gas_eur_per_m3 |
TuningKnob | Price of the shielding gas an assembly's in-house arc welding uses, EUR per cubic metre. |
skeleton_web_mm |
TuningKnob | Web left standing between two nested parts, mm, WITHOUT the cutting gap: the cutter's own kerf is added to it, so parts sit this web plus the kerf apart. |
verteilzeit_pct |
TuningKnob | Distribution allowance (Verteilzeit) as a fraction OF THE RUN BASE TIME — 0.10 adds 10 % to every machining time. |
weld_inspection_order_minimum_eur |
TuningKnob | The test lab's minimum charge per order, EUR, charged once per lot when the welds need surface testing. |
weld_ndt_eur_per_m |
TuningKnob | Surface testing (MT/PT) of an assembly's welds by a test lab, EUR per metre of tested seam. |
weld_visual_inspection_eur_per_m |
TuningKnob | Visual testing (VT) of an assembly's welds, EUR per metre of seam. |
Example response
{
"bar_clamp_remnant_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"bar_length_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"bar_remnant_min_l_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"bolt_cycle_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"custom_format_surcharge_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"cut_to_size_increment_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"cycle_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"edge_margin_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"erholzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"eur_per_fastener": {
"platform_default": 0,
"source": "string",
"value": 0
},
"filler_wire_eur_per_kg": {
"platform_default": 0,
"source": "string",
"value": 0
},
"full_stock_threshold": {
"platform_default": 0,
"source": "string",
"value": 0
},
"learning_rate": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joint_width_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joints_over_1000mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joints_to_1000mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"micro_joints_to_300mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_over_12mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_to_12mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_to_3mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"min_web_mm_to_6mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"nebenzeit_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"press_in_cycle_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"press_tool_change_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"processes": {},
"programming_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"proveout_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_min_area_share": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_min_l_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_min_w_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"remnant_value_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"rivet_cycle_s": {
"platform_default": 0,
"source": "string",
"value": 0
},
"ruesterholzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"ruestverteilzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"setup_factor": {
"platform_default": 0,
"source": "string",
"value": 0
},
"shielding_gas_eur_per_m3": {
"platform_default": 0,
"source": "string",
"value": 0
},
"skeleton_web_mm": {
"platform_default": 0,
"source": "string",
"value": 0
},
"verteilzeit_pct": {
"platform_default": 0,
"source": "string",
"value": 0
},
"weld_inspection_order_minimum_eur": {
"platform_default": 0,
"source": "string",
"value": 0
},
"weld_ndt_eur_per_m": {
"platform_default": 0,
"source": "string",
"value": 0
},
"weld_visual_inspection_eur_per_m": {
"platform_default": 0,
"source": "string",
"value": 0
}
}
List new machines and tools that are still switched off.
GET /api/v1/environments/additions
Machines and tools a platform update added to the organization's
environments switched off, until the organization decides once — switch
them on everywhere (POST /environments/additions/switch-on) or keep
them off (POST /environments/additions/keep-off). Nothing listed here
affects a price while it is switched off.
Request
curl -X GET https://api.arcnm.io/api/v1/environments/additions \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/additions",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/additions", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
environments |
EnvironmentAdditionsRow[] | Environments holding machines or tools the platform added switched off and the organization has not decided on yet. Empty when there is nothing to decide. |
machine_classes |
string[] | Machine classes of the new machines, each once. |
machines |
integer | New machines across all environments. |
technologies |
string[] | Manufacturing technologies the new machines bring that calculations can use once the machines are switched on, e.g. gear_hobbing. |
tools |
integer | New tools across all environments, each catalogue article once. |
Example response
{
"environments": [
{
"env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"machine_classes": [
"string"
],
"machines": [
"string"
],
"name": "string",
"tools": 0
}
],
"machine_classes": [
"string"
],
"machines": 0,
"technologies": [
"string"
],
"tools": 0
}
Keep the new machines and tools switched off.
POST /api/v1/environments/additions/keep-off
End the offer and change nothing: the new machines and tools stay in their environments, switched off, where each can be switched on later.
Request
curl -X POST https://api.arcnm.io/api/v1/environments/additions/keep-off \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/additions/keep-off",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/additions/keep-off", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
environments |
integer | Environments the decision covered. |
machines |
integer | Machines switched on. |
tools |
integer | Tools switched on. |
Example response
{
"environments": 0,
"machines": 0,
"tools": 0
}
Switch on every new machine and tool, in every environment.
POST /api/v1/environments/additions/switch-on
Switch on everything GET /environments/additions lists and end the
offer. From then on calculations in those environments can use the new
machines and tools; each one can still be switched off in its
environment.
Request
curl -X POST https://api.arcnm.io/api/v1/environments/additions/switch-on \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/additions/switch-on",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/additions/switch-on", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 200
| Field | Type | Description |
|---|---|---|
environments |
integer | Environments the decision covered. |
machines |
integer | Machines switched on. |
tools |
integer | Tools switched on. |
Example response
{
"environments": 0,
"machines": 0,
"tools": 0
}
Clone Preset
POST /api/v1/environments/clone-preset
Deep-copy a platform region preset (env + rates + fleet) into the tenant.
The clone is immediately runnable and priceable for every discipline. Only a genuine platform preset can be cloned — any other id (including another tenant's env) reads as 404.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | no | Optional name for the cloned environment; defaults to ' (copy)'. |
preset_id |
string | yes | Identifier of the platform region preset to clone. |
Request
curl -X POST https://api.arcnm.io/api/v1/environments/clone-preset \
-H "X-API-Key: $ARCNM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"preset_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
import requests
resp = requests.post(
"https://api.arcnm.io/api/v1/environments/clone-preset",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"preset_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/clone-preset", {
method: "POST",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"preset_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}),
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
201 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
409 |
conflict |
A conflicting change, or an Idempotency-Key reused with a different body. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
Response body 201
| Field | Type | Description |
|---|---|---|
currency |
string | ISO 4217 currency code the environment's rates are denominated in. |
description |
string | Optional longer description of the environment. |
id |
string | Unique identifier of the costing environment. |
is_baseline |
boolean | Whether this is the auto-provisioned environment the tenant started with. |
is_default |
boolean | Whether a calculation that names no environment is priced in this one: the organization's default (PUT /environments/{env_id}/default) while it exists and is in force, else the auto-provisioned one. Set on the list, on GET /environments/{env_id} and by the default routes; null on other responses. |
machine_count |
integer | Machines currently in this environment's fleet. |
machines_cloned |
integer | Number of machines copied into the environment; only set by the clone endpoints. |
name |
string | Human-readable name of the costing environment. |
parent_environment_id |
string | Environment this one inherits from, or null when it stands alone. Anything this environment does not state itself resolves from the parent and, recursively, from the parent's parent. |
rate_count |
integer | Rate rows this environment states itself (every kind, every validity window) — what GET /{env_id}/rates returns. Rates it only inherits from its parent are not counted. |
rates_cloned |
integer | Number of rate rows copied into the environment; only set by the clone endpoints. |
region |
string | Geographic region this environment prices for (e.g. DE, US). |
scheduled_changes_dropped |
integer | Memberships of the source whose validity window is not active today (scheduled future additions or removals). A clone is a snapshot as of today, so these do not travel; re-schedule them on the copy if you need them. Only set by the clone endpoint. |
subcontractor_count |
integer | Subcontractors this environment orders from. |
tool_count |
integer | Crib tools currently attached to this environment. |
valid_from |
string | ISO date (YYYY-MM-DD) from which this environment is effective. |
valid_to |
string | ISO date (YYYY-MM-DD) the environment stops being effective; null = open-ended. |
Example response
{
"currency": "EUR",
"description": "string",
"id": "string",
"is_baseline": true,
"is_default": true,
"machine_count": 0,
"machines_cloned": 0,
"name": "string",
"parent_environment_id": "string",
"rate_count": 0,
"rates_cloned": 0,
"region": "EU",
"scheduled_changes_dropped": 0,
"subcontractor_count": 0,
"tool_count": 0,
"valid_from": "string",
"valid_to": "string"
}
List Presets
GET /api/v1/environments/presets
The 6 platform region presets a tenant can clone into a runnable env.
Read-only and platform-scoped: only platform rows (org_id IS NULL) are
returned (bypass-read inside the service), so no tenant data is exposed.
Request
curl -X GET https://api.arcnm.io/api/v1/environments/presets \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/presets",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/presets", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |
List published surcharge-rate presets.
GET /api/v1/environments/surcharge-presets
Benchmark Zuschlagskalkulation rates from primary sources (automotive supplier mark-ups on total manufacturing cost; the usual profit mark-up of German public price law), each with its citation and the equivalent environment economics. Nothing here prices on its own: applying a preset means sending its economics to PATCH /environments/{env_id}/economics, which records the rates as that environment's own statement.
Request
curl -X GET https://api.arcnm.io/api/v1/environments/surcharge-presets \
-H "X-API-Key: $ARCNM_API_KEY"
import requests
resp = requests.get(
"https://api.arcnm.io/api/v1/environments/surcharge-presets",
headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/surcharge-presets", {
method: "GET",
headers: {
"X-API-Key": process.env.ARCNM_API_KEY!,
},
})
const data = await resp.json()
Responses
| Status | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
default |
Error — the error envelope; branch on error.code. |
Errors
Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.
| Status | Code | When |
|---|---|---|
401 |
invalid_api_key |
Missing, malformed, or revoked API key. |
403 |
insufficient_scope |
The key is valid but lacks a scope this endpoint requires. |
429 |
rate_limited |
Per-key or per-org rate limit exceeded — back off with jitter and retry. |