ARCNM

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 the X-API-Key header (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.

Parameters

Name In Type Required Description
Idempotency-Key header string no Optional retry key. A retry with the same key and the same request within 24 hours returns the first answer and creates nothing again; the same key with another request is a 409. As an MCP tool's idempotency_key: 1 to 128 letters, digits, ., _, : or -.

Request body (application/json)

Field Type Required Description
currency string no ISO 4217 currency code the environment's rates are denominated in. A baseline_copy keeps the default environment's rates, so it takes the default's currency — omitted, it is the default's: another is refused with 422 baseline_currency_mismatch (install that country's environment from GET /catalogue/environments instead).
description string no Optional longer description of the environment.
empty boolean no Deprecated: send source: "empty" instead. true starts the environment as source: "empty" does; with another source it is refused with 422. false changes nothing. A successful response to a request that sends it carries Deprecation and Sunset headers (a refusal carries none); after the sunset (1 June 2027) it is refused with 422.
name string yes Human-readable name for the new environment, unique among your organization's environments: compared ignoring case and extra spaces, a name another of them holds is refused with 409 environment_name_taken (details.suggested_name is a free one).
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: no tools and no machines attached. Every new environment starts with your raw material — the standard stock formats and items and your own — which you then narrow under its raw material. Omitted → baseline_copy.
valid_from string no ISO date (YYYY-MM-DD) from which the environment is effective; today (UTC) when omitted.
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"
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments",
    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", {
  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.
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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
currency string ISO 4217 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "is_baseline": true,
  "is_default": true,
  "machine_count": 0,
  "machines_cloned": 0,
  "name": "string",
  "parent_environment_id": "string",
  "presentation_currency": "string",
  "rate_count": 0,
  "rates_cloned": 0,
  "region": "EU",
  "scheduled_changes_dropped": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "valid_from": "string",
  "valid_to": "string"
}

List Environments

GET /api/v1/environments/

List the organization's costing environments, newest first. Archived ones are left out unless include_archived is set.

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; limit caps the page size.

Parameters

Name In Type Required Description
upstream_env_id query string no Only the environments that follow this available environment — how a caller finds the follow it already has before it installs the same environment again. An id nothing in the organization follows answers an empty list.
include_archived query boolean no Also list the archived environments (archived_at set). Left out by default, so the list holds only the environments a new calculation can be priced in.
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.

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. Its rates and machine memberships are deleted with it; the machines themselves remain (they belong to your organization, not to one environment, and other environments may use them).

Refused (409 environment_has_calculations, the count in details.calculations) while calculations were priced in it: archive it instead (POST /environments/{env_id}/archive). 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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
capital_interest_pct number Imputed interest on tied-up capital this environment states, as a fraction (0.045 = 4.5 %) — the VDI 3258 capital cost of its machines; null = states nothing, so the parent environment's value applies, else the regional reference value, else the platform default.
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 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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_per_h number Labour rate per hour this environment states, in its own currency. 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_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_price_per_kwh number Energy price per kWh this environment states, in its own currency; 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_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_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_per_part number Fixed overhead per part this environment states, in its own currency. 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_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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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_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_cost_per_m2_y number Floor-space cost per m² and year this environment states, in its own currency; 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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "capital_interest_pct": 0,
  "cash_discount_pct": 0,
  "config_revision": 0,
  "currency": "EUR",
  "customer_discount_pct": 0,
  "default_labour_rate_per_h": 0,
  "default_material_family": "string",
  "description": "string",
  "duty_per_part": 0,
  "energy_price_per_kwh": 0,
  "eoq_holding_cost_per_kg_per_year": 0,
  "factor_first_off": 0,
  "fai_cost": 0,
  "freight_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_per_order": 0,
  "overhead_fixed_per_part": 0,
  "overhead_var_pct": 0,
  "packaging_per_part": 0,
  "parent_environment_id": "string",
  "presentation_currency": "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_per_kg": 0,
  "sga_pct": 0,
  "source_preset_id": "string",
  "space_cost_per_m2_y": 0,
  "subcontract_overhead_pct": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "valid_from": "string",
  "valid_to": "string"
}

Archive Environment

POST /api/v1/environments/{env_id}/archive

Archive an environment: retire one that cannot be deleted because calculations were priced in it. It stays on record and readable, and its calculations stay readable, comparable and exportable. While archived it is read-only (every change to it, its rates, machines, tools and follow is refused with 409 environment_archived), prices no new calculation and no re-price, is left out of GET /environments unless include_archived is set, and does not count against your plan. Archiving an archived environment changes nothing.

The default environment cannot be archived (409 default_environment_cannot_be_archived): make another one the default first (PUT /environments/{env_id}/default).

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}/archive \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/archive",
    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}/archive", {
  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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
currency string ISO 4217 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "is_baseline": true,
  "is_default": true,
  "machine_count": 0,
  "machines_cloned": 0,
  "name": "string",
  "parent_environment_id": "string",
  "presentation_currency": "string",
  "rate_count": 0,
  "rates_cloned": 0,
  "region": "EU",
  "scheduled_changes_dropped": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "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[]
reference_values_apply boolean Whether the reference values of the environment's cost region, and the reference exchange rates, price what the environment does not state. True for an environment installed from Environments, also after it stops following; for any other environment only once the platform applies reference values to every environment. False: what it does not state prices at the platform defaults, and a quote in a currency it states no exchange rate for is refused.
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
    }
  ],
  "reference_values_apply": true,
  "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",
        "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"
    }
  ]
}

List Environment Channels

GET /api/v1/environments/{env_id}/channels

The environment's channels and the versions they point at.

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}/channels \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/channels",
    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}/channels", {
  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.

Move Environment Channel

PUT /api/v1/environments/{env_id}/channels/{channel}

Point one of the environment's channels (e.g. 'quote-basis') at a published version; creates the channel when it does not exist.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
channel path string yes

Request body (application/json)

Field Type Required Description
version_id string yes Published version the channel points at.

Request

curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/channels/{channel} \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "version_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }'
import requests

resp = requests.put(
    "https://api.arcnm.io/api/v1/environments/{env_id}/channels/{channel}",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "version_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}/channels/{channel}", {
  method: "PUT",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "version_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }),
})
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
channel string Channel name.
env_id string Identifier of the environment.
moved_at string ISO timestamp the channel last moved.
version_id string Identifier of the version the channel points at.
version_label string Label of that version.

Example response

{
  "channel": "string",
  "env_id": "string",
  "moved_at": "string",
  "version_id": "string",
  "version_label": "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). A copy of an environment that follows another follows it too, in the same update mode and on the version the source has applied.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
Idempotency-Key header string no Optional retry key. A retry with the same key and the same request within 24 hours returns the first answer and creates nothing again; the same key with another request is a 409. As an MCP tool's idempotency_key: 1 to 128 letters, digits, ., _, : or -.

Request body (application/json)

Field Type Required Description
name string no Optional name for the duplicate. A name another of your environments holds (compared ignoring case and extra spaces) is refused with 409 environment_name_taken. Omitted, it is ' (copy)', then ' (copy 2)', '(copy 3)' … when that is taken (a copy's copy counts on from its source). The word is English: the API has no locale, so send the name to have it in another language.

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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
currency string ISO 4217 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "is_baseline": true,
  "is_default": true,
  "machine_count": 0,
  "machines_cloned": 0,
  "name": "string",
  "parent_environment_id": "string",
  "presentation_currency": "string",
  "rate_count": 0,
  "rates_cloned": 0,
  "region": "EU",
  "scheduled_changes_dropped": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
currency string ISO 4217 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "is_baseline": true,
  "is_default": true,
  "machine_count": 0,
  "machines_cloned": 0,
  "name": "string",
  "parent_environment_id": "string",
  "presentation_currency": "string",
  "rate_count": 0,
  "rates_cloned": 0,
  "region": "EU",
  "scheduled_changes_dropped": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
currency string ISO 4217 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "is_baseline": true,
  "is_default": true,
  "machine_count": 0,
  "machines_cloned": 0,
  "name": "string",
  "parent_environment_id": "string",
  "presentation_currency": "string",
  "rate_count": 0,
  "rates_cloned": 0,
  "region": "EU",
  "scheduled_changes_dropped": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "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
capital_interest_pct number no Stated imputed interest on tied-up capital, as a fraction (0.045 = 4.5 %); null clears back to inherit / regional reference / platform default.
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_per_part number no Customs duty per unit, in the environment's currency (at most the equivalent of 100 000 EUR); null clears back to inherit / platform default.
energy_price_per_kwh number no Stated energy price per kWh, in the environment's currency (at most the equivalent of 1 000 EUR); 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, in the environment's currency (at most the equivalent of 10 000 EUR); 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 (at most the equivalent of 100 000 EUR); null clears back to inherit / platform default.
freight_per_part number no Outbound freight per unit, in the environment's currency (at most the equivalent of 100 000 EUR); 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_per_order number no The buyer's fixed cost of placing and receiving one order, in the environment's currency (at most the equivalent of 100 000 EUR); null clears back to inherit / platform default (0).
packaging_per_part number no Packaging material per unit (Sondereinzelkosten des Vertriebs), in the environment's currency (at most the equivalent of 100 000 EUR); 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_per_kg number no Scrap credit (Reststoffgutschrift): the flat return per kg of scrap, in the environment's currency (at most the equivalent of 100 000 EUR) — 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_cost_per_m2_y number no Stated floor-space cost per m² and year, in the environment's currency (at most the equivalent of 100 000 EUR); 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 '{
    "capital_interest_pct": 0,
    "cash_discount_pct": 0,
    "customer_discount_pct": 0,
    "default_material_family": "string",
    "duty_per_part": 0,
    "energy_price_per_kwh": 0,
    "eoq_holding_cost_per_kg_per_year": 0,
    "factor_first_off": 0,
    "fai_cost": 0,
    "freight_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_per_order": 0,
    "packaging_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_per_kg": 0,
    "sga_pct": 0,
    "space_cost_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={
        "capital_interest_pct": 0,
        "cash_discount_pct": 0,
        "customer_discount_pct": 0,
        "default_material_family": "string",
        "duty_per_part": 0,
        "energy_price_per_kwh": 0,
        "eoq_holding_cost_per_kg_per_year": 0,
        "factor_first_off": 0,
        "fai_cost": 0,
        "freight_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_per_order": 0,
        "packaging_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_per_kg": 0,
        "sga_pct": 0,
        "space_cost_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({
    "capital_interest_pct": 0,
    "cash_discount_pct": 0,
    "customer_discount_pct": 0,
    "default_material_family": "string",
    "duty_per_part": 0,
    "energy_price_per_kwh": 0,
    "eoq_holding_cost_per_kg_per_year": 0,
    "factor_first_off": 0,
    "fai_cost": 0,
    "freight_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_per_order": 0,
    "packaging_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_per_kg": 0,
    "sga_pct": 0,
    "space_cost_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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
capital_interest_pct number Imputed interest on tied-up capital this environment states, as a fraction (0.045 = 4.5 %) — the VDI 3258 capital cost of its machines; null = states nothing, so the parent environment's value applies, else the regional reference value, else the platform default.
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 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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_per_h number Labour rate per hour this environment states, in its own currency. 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_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_price_per_kwh number Energy price per kWh this environment states, in its own currency; 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_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_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_per_part number Fixed overhead per part this environment states, in its own currency. 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_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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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_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_cost_per_m2_y number Floor-space cost per m² and year this environment states, in its own currency; 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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "capital_interest_pct": 0,
  "cash_discount_pct": 0,
  "config_revision": 0,
  "currency": "EUR",
  "customer_discount_pct": 0,
  "default_labour_rate_per_h": 0,
  "default_material_family": "string",
  "description": "string",
  "duty_per_part": 0,
  "energy_price_per_kwh": 0,
  "eoq_holding_cost_per_kg_per_year": 0,
  "factor_first_off": 0,
  "fai_cost": 0,
  "freight_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_per_order": 0,
  "overhead_fixed_per_part": 0,
  "overhead_var_pct": 0,
  "packaging_per_part": 0,
  "parent_environment_id": "string",
  "presentation_currency": "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_per_kg": 0,
  "sga_pct": 0,
  "source_preset_id": "string",
  "space_cost_per_m2_y": 0,
  "subcontract_overhead_pct": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "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. An environment with no machine that prices today answers its empty state: empty_reason says why and nothing else is filled.

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.
calibration_inherited_from InheritedCalibrationSource The parent environment the price correction of these rates is inherited from — the entry of inherited_from that supplies unit_cost, in the same shape. Null when it is this environment's own or there is none. Calibrating this environment replaces it.
currency string
empty_reason no_machines_configured | no_machines_active | no_machine_could_be_evaluated Set when this environment has no machine that prices today, so there are no rates to show yet and nothing below is filled: no_machines_configured — add a machine; no_machines_active — its machines are switched off or outside their validity dates; no_machine_could_be_evaluated — its machines need attention before they price. Null when rates are shown.
env_id string
inherited_from InheritedCalibrationSource[] Every parent environment a calibration of these prices is read from, nearest first, with what each supplies — the same list the calibration status returns. calibration_inherited_from is its entry that supplies the price correction. Empty when everything is this environment's own or there is none.
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,
  "calibration_inherited_from": {
    "applies_to": [
      "unit_cost"
    ],
    "env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "time_factors_replaced": 0
  },
  "currency": "EUR",
  "empty_reason": "no_machines_configured",
  "env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "inherited_from": [
    {
      "applies_to": [
        "unit_cost"
      ],
      "env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "time_factors_replaced": 0
    }
  ],
  "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. The machine hour's effective rate is the median of the machines in use, so a machine edit scales every machine by one factor — your number over that median. 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.
calibration_inherited_from InheritedCalibrationSource The parent environment the price correction of these rates is inherited from — the entry of inherited_from that supplies unit_cost, in the same shape. Null when it is this environment's own or there is none. Calibrating this environment replaces it.
currency string
empty_reason no_machines_configured | no_machines_active | no_machine_could_be_evaluated Set when this environment has no machine that prices today, so there are no rates to show yet and nothing below is filled: no_machines_configured — add a machine; no_machines_active — its machines are switched off or outside their validity dates; no_machine_could_be_evaluated — its machines need attention before they price. Null when rates are shown.
env_id string
inherited_from InheritedCalibrationSource[] Every parent environment a calibration of these prices is read from, nearest first, with what each supplies — the same list the calibration status returns. calibration_inherited_from is its entry that supplies the price correction. Empty when everything is this environment's own or there is none.
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,
  "calibration_inherited_from": {
    "applies_to": [
      "unit_cost"
    ],
    "env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "time_factors_replaced": 0
  },
  "currency": "EUR",
  "empty_reason": "no_machines_configured",
  "env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "inherited_from": [
    {
      "applies_to": [
        "unit_cost"
      ],
      "env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "time_factors_replaced": 0
    }
  ],
  "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",
      "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, presentation currency, validity dates or parent environment. Its machines, tools and rates are changed with their own tools.

currency is what the environment's own figures are stated in, and a change converts none of them: it is refused (409 environment_currency_in_use) while the environment states money in its current currency. presentation_currency is what new calculations are quoted in, and changes no figure.

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 code of the currency the environment states its figures in; omit to leave unchanged. A change converts nothing, so it is refused with 409 environment_currency_in_use while the environment states money in its current currency — economics, a machine's stated rate, tuning money, or a rate or stock price in it. To show results in another currency, set presentation_currency.
description string no New description for the environment; omit to leave unchanged.
name string no New name for the environment; omit to leave unchanged. A name another of your environments holds (compared ignoring case and extra spaces) is refused with 409 environment_name_taken.
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.
presentation_currency string no New ISO 4217 code of the currency new calculations are quoted in when the request names none; null = the environment's own currency; omit to leave unchanged. It changes no stated figure. A code that is not ISO 4217 is refused with 422 currency_unknown, a currency the environment has no exchange rate to with 422 currency_not_configured.
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",
    "presentation_currency": "string",
    "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",
        "presentation_currency": "string",
        "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",
    "presentation_currency": "string",
    "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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
currency string ISO 4217 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "is_baseline": true,
  "is_default": true,
  "machine_count": 0,
  "machines_cloned": 0,
  "name": "string",
  "parent_environment_id": "string",
  "presentation_currency": "string",
  "rate_count": 0,
  "rates_cloned": 0,
  "region": "EU",
  "scheduled_changes_dropped": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "string",
  "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": {
    "inherited_from": [
      {
        "applies_to": [],
        "env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string",
        "time_factors_replaced": 0
      }
    ],
    "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" — by the same effective dates 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.
Idempotency-Key header string no Optional retry key. A retry with the same key and the same request within 24 hours returns the first answer and creates nothing again; the same key with another request is a 409. As an MCP tool's idempotency_key: 1 to 128 letters, digits, ., _, : or -.

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 number no Optional flat machine-hour rate per hour, in the environment's currency; at most the equivalent of 100 000 EUR. 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_per_h_override number no Operator wage already contained in hourly_rate_override, per hour in the environment's currency. 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": 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": 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": 0,
      "klass": "milling.3axis_vmc",
      "library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "model_no": "string",
      "name": "string",
      "programming_rate": 0,
      "rate_operator_per_h": 0,
      "rate_operator_share": 0,
      "setup_rate": 0,
      "valid_from": "2026-06-01",
      "valid_to": "2026-06-01",
      "vendor": "string",
      "wage_group": "string"
    },
    "rate_operator_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": 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": 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": 0,
            "klass": "milling.3axis_vmc",
            "library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "model_no": "string",
            "name": "string",
            "programming_rate": 0,
            "rate_operator_per_h": 0,
            "rate_operator_share": 0,
            "setup_rate": 0,
            "valid_from": "2026-06-01",
            "valid_to": "2026-06-01",
            "vendor": "string",
            "wage_group": "string"
        },
        "rate_operator_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": 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": 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": 0,
      "klass": "milling.3axis_vmc",
      "library_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "model_no": "string",
      "name": "string",
      "programming_rate": 0,
      "rate_operator_per_h": 0,
      "rate_operator_share": 0,
      "setup_rate": 0,
      "valid_from": "2026-06-01",
      "valid_to": "2026-06-01",
      "vendor": "string",
      "wage_group": "string"
    },
    "rate_operator_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, or no exchange rate converts its library rate (health_error says which), 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": 0,
    "capabilities": {},
    "capability_overrides": {},
    "currency": "EUR",
    "environment_count": 0,
    "fx_per_eur": 0,
    "hourly_rate": 0,
    "id": "string",
    "klass": "string",
    "library_entry_id": "string",
    "model_no": "string",
    "name": "string",
    "programming_rate": 0,
    "rate_currency": "string",
    "rate_operator_per_h": 0,
    "rate_operator_share": 0,
    "setup_rate": 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, or no exchange rate converts its library rate (health_error says which), 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": 0,
    "capabilities": {},
    "capability_overrides": {},
    "currency": "EUR",
    "environment_count": 0,
    "fx_per_eur": 0,
    "hourly_rate": 0,
    "id": "string",
    "klass": "string",
    "library_entry_id": "string",
    "model_no": "string",
    "name": "string",
    "programming_rate": 0,
    "rate_currency": "string",
    "rate_operator_per_h": 0,
    "rate_operator_share": 0,
    "setup_rate": 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 First date on which the rate no longer applies: the window is half-open, so a rate valid through 31 March ends on 1 April (must be after valid_from); 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; at most the equivalent of 10 000 EUR. 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
attributes object no Optional basis of the price. Omitted or {"basis": "fixed"}: price_per_kg is the price. `{"basis": "index_plus_premium", "index_series": ..., "index_scale": ..., "index_currency": ..., "premium_eur_per_kg": ..., "conversion_eur_per_kg": ..., "reset": "daily"
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 today (it applied through 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 today (it applied through 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 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 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 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": 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": 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": 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"
}

What raw material an environment calculates with.

GET /api/v1/environments/{env_id}/raw-material

How many stock items and stock formats this environment holds of those your organization can use, and how many standard rows were published since that it has not decided on. A calculation in this environment chooses its sheet, plate and length from the formats it holds, and a price stated for a stock item applies only while the environment holds that item. The sizes of bars, tubes and sections follow the standard size series. format_kinds_empty names the kinds of format it holds none of: a sheet or a bar is then calculated in the standard formats your organization has not hidden. No write leaves an environment without a format of a kind it calculates 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}/raw-material \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material",
    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}/raw-material", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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
environment_id string
format_kinds_empty sheet | plate | bar | tube | section[] Kinds of stock format your organization can use and this environment holds none of. A sheet or a bar is then calculated in the standard formats you have not hidden; add a format of the kind to state which ones this environment buys.
formats_available integer
formats_in_environment integer
items_available integer Stock items your organization can use: the standard ones it has not hidden, and its own.
items_in_environment integer
new_formats integer Standard stock formats, likewise.
new_items integer Standard stock items published since this environment was created or last reviewed that it has never held. They are not part of this environment until you add them.

Example response

{
  "environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "format_kinds_empty": [
    "sheet"
  ],
  "formats_available": 0,
  "formats_in_environment": 0,
  "items_available": 0,
  "items_in_environment": 0,
  "new_formats": 0,
  "new_items": 0
}

Add stock items and formats to an environment, in bulk.

POST /api/v1/environments/{env_id}/raw-material/add

Let calculations in this environment use more raw material, from today: a selection by id, or with all everything a filter names — one shape, one standard, one material group, a search, or the whole catalogue. What the environment already holds is left as it is and not counted. dry_run answers with the counts and changes nothing.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
dry_run boolean no Count what the write would change, and change nothing.
formats StockFormatSelection no
items StockItemSelection no

Request

curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/add \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dry_run": false,
    "formats": {
      "all": false,
      "format_ids": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "kind": "sheet",
      "q": "string",
      "scope": "standard"
    },
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    }
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/add",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "dry_run": False,
        "formats": {
            "all": False,
            "format_ids": [
                "3fa85f64-5717-4562-b3fc-2c963f66afa6"
            ],
            "kind": "sheet",
            "q": "string",
            "scope": "standard"
        },
        "items": {
            "all": False,
            "dimension_standard": "string",
            "family": "round_bar",
            "item_keys": [
                "3fa85f64-5717-4562-b3fc-2c963f66afa6"
            ],
            "material_group": "steel",
            "only_new": False,
            "q": "string",
            "scope": "standard",
            "stocked": True
        }
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/add", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "dry_run": false,
    "formats": {
      "all": false,
      "format_ids": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "kind": "sheet",
      "q": "string",
      "scope": "standard"
    },
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    }
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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
dry_run boolean
environment_id string
formats integer Stock formats, likewise.
items integer Stock items that joined (or left); one already there is not counted.
items_sharing_section integer Stock items that, through this addition, have the shape, material and dimensions of another item the environment holds, under another standard or delivery condition (the added ones and the ones they pair with). A calculation whose stock line names no standard cannot tell such items apart and applies the item price of neither: add only the one you buy, or state the price for the material.

Example response

{
  "dry_run": false,
  "environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "formats": 0,
  "items": 0,
  "items_sharing_section": 0
}

Copy the raw material of another environment.

POST /api/v1/environments/{env_id}/raw-material/copy

Make this environment hold what another of your environments holds today: add what it lacks and, with replace, remove the rest.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
dry_run boolean no
formats boolean no
items boolean no
replace boolean no false: add what this environment lacks. true: also remove what the source does not hold, so the two hold the same.
source_environment_id string yes The environment of yours to copy the raw material from.

Request

curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/copy \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source_environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/copy",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "source_environment_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}/raw-material/copy", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "source_environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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
dry_run boolean
environment_id string
formats_added integer
formats_removed integer
items_added integer
items_removed integer

Example response

{
  "dry_run": false,
  "environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "formats_added": 0,
  "formats_removed": 0,
  "items_added": 0,
  "items_removed": 0
}

List stock formats and whether an environment holds them.

GET /api/v1/environments/{env_id}/raw-material/formats

The sheet, plate, bar, tube and section formats your organization can use today — the standard ones it has not hidden and its own — each with whether this environment calculates with it.

Paginated. Pass limit and offset to page through results.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
in_environment query boolean no
kind query sheet | plate | bar | tube | section no
scope query standard | own no
q query string no
limit query integer no Maximum number of results to return.
offset query integer no Number of results to skip before the returned page.

Request

curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/formats \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/formats",
    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}/raw-material/formats", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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.

List stock items and whether an environment holds them.

GET /api/v1/environments/{env_id}/raw-material/items

The stock items your organization can use today — the standard ones it has not hidden and its own — by shape and size, each with whether this environment calculates with it.

Paginated. Pass limit and offset to page through results.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
in_environment query boolean no true: the environment's own raw material. false: what it could still add. Left out: the whole catalogue.
scope query standard | own no
family query round_bar | flat_bar | square_bar | hex_bar | round_tube | square_tube | rect_tube | chs | shs | rhs | channel | channel_parallel | beam_i | beam_h | angle_equal | angle_unequal | tee | z_section | cold_formed | threaded_rod | polygon_section | sheet | plate | block | near_net_piece no
material_group query steel | stainless | aluminium no
dimension_standard query string no
q query string no Part of the designation, e.g. HEA 200 or 40x40.
stocked query boolean no
only_new query boolean no Only the standard items published since the environment was created or last reviewed that it has never held.
limit query integer no Maximum number of results to return.
offset query integer no Number of results to skip before the returned page.

Request

curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/items \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/items",
    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}/raw-material/items", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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
families EnvStockFamilyCount[] Per shape under the same filters, the shape filter aside.
in_environment_total integer Of those, the ones the environment holds.
items EnvStockItem[]
total integer Items the filters name.

Example response

{
  "families": [
    {
      "count": 0,
      "family": "round_bar",
      "in_environment": 0
    }
  ],
  "in_environment_total": 0,
  "items": [
    {
      "article_no": "string",
      "delivery_condition": "string",
      "designation": "string",
      "dimension_standard": "string",
      "family": "round_bar",
      "in_environment": true,
      "is_new": true,
      "is_standard": true,
      "item_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kg_per_m": 0,
      "material_group": "steel",
      "since": "2026-06-01",
      "stocked": true
    }
  ],
  "total": 0
}

State the base price of several stock items at once.

POST /api/v1/environments/{env_id}/raw-material/prices

State one base price for every selected stock item in this environment, from valid_from. An item that has a base price keeps it up to the day before and gets the new one from then; nothing already calculated changes. All of the items, or none. A price applies only to an item the environment holds: in_environment says how many of the selected ones it does, and the rest are priced for the day they are added.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
amount number yes
basis per_kg | per_100kg | per_m | per_m2 | per_piece | per_cut | per_position | pct | one_time yes What the amount is per: per_kg, per_100kg, per_m or per_piece.
dry_run boolean no
items StockItemSelection yes
reference string no Where the price comes from.
valid_from string no The first day it applies; today when left out.

Request

curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/prices \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    },
    "basis": "per_kg",
    "amount": 0
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/prices",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "items": {
            "all": False,
            "dimension_standard": "string",
            "family": "round_bar",
            "item_keys": [
                "3fa85f64-5717-4562-b3fc-2c963f66afa6"
            ],
            "material_group": "steel",
            "only_new": False,
            "q": "string",
            "scope": "standard",
            "stocked": True
        },
        "basis": "per_kg",
        "amount": 0
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/prices", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    },
    "basis": "per_kg",
    "amount": 0
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
422 A price is refused for one of the items; error.message says why and error.details.item_key which (stock_item_price_basis_refused, stock_item_price_item_unread, stock_item_price_invalid), or the selection names more than 500 items. Nothing was changed.
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
changed integer Items whose base price was replaced.
cleared integer Items whose own base price was ended.
dry_run boolean
environment_id string
in_environment integer Of those, the ones this environment holds. A price stated for an item the environment does not hold applies to no calculation until the item is added to it (POST …/raw-material/add).
items integer Stock items the selection names.
stated integer Items that had no base price and have one now.
unchanged integer Items whose base price already states exactly this, from that day on: nothing is written for them.

Example response

{
  "changed": 0,
  "cleared": 0,
  "dry_run": false,
  "environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "in_environment": 0,
  "items": 0,
  "stated": 0,
  "unchanged": 0
}

End the base price of several stock items at once.

POST /api/v1/environments/{env_id}/raw-material/prices/clear

End the base price this environment states itself for every selected stock item, every quantity tier, from today: the item is priced by its grade or family price again, or by a parent environment's. Calculations made before keep the price they were costed at.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
dry_run boolean no
items StockItemSelection yes

Request

curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/prices/clear \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    }
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/prices/clear",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "items": {
            "all": False,
            "dimension_standard": "string",
            "family": "round_bar",
            "item_keys": [
                "3fa85f64-5717-4562-b3fc-2c963f66afa6"
            ],
            "material_group": "steel",
            "only_new": False,
            "q": "string",
            "scope": "standard",
            "stocked": True
        }
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/prices/clear", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    }
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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
changed integer Items whose base price was replaced.
cleared integer Items whose own base price was ended.
dry_run boolean
environment_id string
in_environment integer Of those, the ones this environment holds. A price stated for an item the environment does not hold applies to no calculation until the item is added to it (POST …/raw-material/add).
items integer Stock items the selection names.
stated integer Items that had no base price and have one now.
unchanged integer Items whose base price already states exactly this, from that day on: nothing is written for them.

Example response

{
  "changed": 0,
  "cleared": 0,
  "dry_run": false,
  "environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "in_environment": 0,
  "items": 0,
  "stated": 0,
  "unchanged": 0
}

Remove stock items and formats from an environment, in bulk.

POST /api/v1/environments/{env_id}/raw-material/remove

Stop calculations in this environment from using raw material, from today. Nothing is deleted: a calculation made before keeps what it was costed with, and the rows stay in your catalogue and in your other environments. What the environment does not hold is not counted.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
dry_run boolean no Count what the write would change, and change nothing.
formats StockFormatSelection no
items StockItemSelection no

Request

curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/remove \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dry_run": false,
    "formats": {
      "all": false,
      "format_ids": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "kind": "sheet",
      "q": "string",
      "scope": "standard"
    },
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    }
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/remove",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "dry_run": False,
        "formats": {
            "all": False,
            "format_ids": [
                "3fa85f64-5717-4562-b3fc-2c963f66afa6"
            ],
            "kind": "sheet",
            "q": "string",
            "scope": "standard"
        },
        "items": {
            "all": False,
            "dimension_standard": "string",
            "family": "round_bar",
            "item_keys": [
                "3fa85f64-5717-4562-b3fc-2c963f66afa6"
            ],
            "material_group": "steel",
            "only_new": False,
            "q": "string",
            "scope": "standard",
            "stocked": True
        }
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/remove", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "dry_run": false,
    "formats": {
      "all": false,
      "format_ids": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "kind": "sheet",
      "q": "string",
      "scope": "standard"
    },
    "items": {
      "all": false,
      "dimension_standard": "string",
      "family": "round_bar",
      "item_keys": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "material_group": "steel",
      "only_new": false,
      "q": "string",
      "scope": "standard",
      "stocked": true
    }
  }),
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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
dry_run boolean
environment_id string
formats integer Stock formats, likewise.
items integer Stock items that joined (or left); one already there is not counted.
items_sharing_section integer Stock items that, through this addition, have the shape, material and dimensions of another item the environment holds, under another standard or delivery condition (the added ones and the ones they pair with). A calculation whose stock line names no standard cannot tell such items apart and applies the item price of neither: add only the one you buy, or state the price for the material.

Example response

{
  "dry_run": false,
  "environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "formats": 0,
  "items": 0,
  "items_sharing_section": 0
}

Mark the new standard raw material as seen.

POST /api/v1/environments/{env_id}/raw-material/reviewed

The standard rows published so far have been seen: they stop counting as new for this environment. Nothing is added and no price changes; each can still be added later.

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}/raw-material/reviewed \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/raw-material/reviewed",
    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}/raw-material/reviewed", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
404 No costing environment of your organization has this id (environment_not_found); or a selection names a stock item or stock format your organization cannot use today (stock_item_not_found, stock_format_not_found) — nothing was changed.
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
environment_id string
format_kinds_empty sheet | plate | bar | tube | section[] Kinds of stock format your organization can use and this environment holds none of. A sheet or a bar is then calculated in the standard formats you have not hidden; add a format of the kind to state which ones this environment buys.
formats_available integer
formats_in_environment integer
items_available integer Stock items your organization can use: the standard ones it has not hidden, and its own.
items_in_environment integer
new_formats integer Standard stock formats, likewise.
new_items integer Standard stock items published since this environment was created or last reviewed that it has never held. They are not part of this environment until you add them.

Example response

{
  "environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "format_kinds_empty": [
    "sheet"
  ],
  "formats_available": 0,
  "formats_in_environment": 0,
  "items_available": 0,
  "items_in_environment": 0,
  "new_formats": 0,
  "new_items": 0
}

Restore Environment

POST /api/v1/environments/{env_id}/restore

Restore an archived environment: it can be changed and priced in again, is listed again and counts against your plan again. Your plan is checked as for a new environment, and the restore is refused the same way when it is full (402 entitlement_exceeded, or 403 country_slot_requires_admin for a country your organization does not price in). Restoring an environment in use changes nothing.

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}/restore \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/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}/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
archived_at string When the environment was archived (ISO 8601), or null while it is in use. An archived environment is read-only, prices no new calculation, is left out of the list unless include_archived is set and does not count against your plan; POST /environments/{env_id}/restore brings it back.
calculation_count integer Calculations priced in this environment. While any is, the environment cannot be deleted; archive it instead (POST /environments/{env_id}/archive). Set on the list and on GET /environments/{env_id}; null on other responses.
currency string ISO 4217 code of the currency the environment states its own figures in and prices in: its economics, its machines' stated rates, its tuning money and every rate without a currency of its own.
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.
presentation_currency string ISO 4217 code of the currency a new calculation priced here is quoted in when the request names none: the result is translated once at the end, and the result in currency is kept beside it. Null = currency. Set with PUT /environments/{env_id}/identity; switching it changes no figure the environment states.
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.
upstream_env_id string The available environment this one follows (it was installed with POST /environments/from-catalogue), or null when it follows none. Set on the list; null on other responses — GET /environments/{env_id}/subscription states the follow in full.
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

{
  "archived_at": "string",
  "calculation_count": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "is_baseline": true,
  "is_default": true,
  "machine_count": 0,
  "machines_cloned": 0,
  "name": "string",
  "parent_environment_id": "string",
  "presentation_currency": "string",
  "rate_count": 0,
  "rates_cloned": 0,
  "region": "EU",
  "scheduled_changes_dropped": 0,
  "subcontractor_count": 0,
  "tool_count": 0,
  "upstream_env_id": "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). For an environment that follows an upstream or reads its region's reference values, each gap names what prices instead: the followed version (by name and version), the region's reference value, the platform reference — or that nothing does. 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 it states its own figures in and prices in.
economics object Its economics (margin, overheads, scrap credit, …) as it prices with them: its own, or inherited from parent_chain (see economics_inherited_from). A setting left out prices at the platform reference — or, for an environment that follows an upstream environment, at the version it follows and its region's reference values.
economics_inherited_from object Each setting of economics this environment inherits → the environment it comes from.
environment_id string The costing environment.
gaps SetupGap[] What leaves prices on platform references or out of the price. For an environment that follows an upstream environment or reads its region's reference values, each gap names what prices instead: the followed version (by name and version), the region's reference value, the platform reference, or nothing.
is_default boolean Whether it is the organization's default.
labour_rates SetupRate[] Labour rates in effect today, its own and those it inherits (inherited_from).
machines SetupMachine[] The machines it prices on.
material_prices integer Material grades it prices with a price of your own in effect today, stated here or inherited; every other grade prices at the platform reference — or at the version the environment follows and its region's reference values (the no_material_prices gap names which).
material_prices_inherited integer Of material_prices, the grades whose price is inherited from parent_chain.
name string Its name.
overhead_rates SetupRate[] Overhead rates in effect today, its own and those it inherits (inherited_from).
parent_chain SetupParent[] The environments this one inherits from, nearest first: a value it does not state itself is the nearest one's that does.
presentation_currency string The currency its new calculations are quoted in; null = currency.
stock_formats object Your own stock formats (the organization's), per kind.
subcontract_prices object[] Prices for bought-in operations in effect today, its own and, with inherited_from, those it inherits.
subcontractors SetupSubcontractor[] The shops it buys from.
tools object Tools attached, per kind.

Example response

{
  "currency": "EUR",
  "economics": {},
  "economics_inherited_from": {},
  "environment_id": "string",
  "gaps": [
    {
      "code": "no_machines",
      "detail": "string",
      "items": [
        "string"
      ]
    }
  ],
  "is_default": true,
  "labour_rates": [
    {
      "fields": {},
      "inherited_from": "string",
      "kind": "string",
      "rate_id": "string",
      "valid_from": "string"
    }
  ],
  "machines": [
    {
      "fleet_priority": 0,
      "hourly_rate": 0,
      "is_enabled": true,
      "machine_class": "string",
      "machine_id": "string",
      "membership_id": "string",
      "name": "string",
      "programming_rate": 0,
      "rate_currency": "string",
      "rate_operator_per_h": 0,
      "setup_rate": 0
    }
  ],
  "material_prices": 0,
  "material_prices_inherited": 0,
  "name": "string",
  "overhead_rates": [
    {
      "fields": {},
      "inherited_from": "string",
      "kind": "string",
      "rate_id": "string",
      "valid_from": "string"
    }
  ],
  "parent_chain": [
    {
      "environment_id": "string",
      "name": "string"
    }
  ],
  "presentation_currency": "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 changeset is not all-or-nothing: each change has its own outcome. The changes the plan refused are not written; a change the platform refuses only when it is written (the setup changed in between) is failed with its code and reason, and the others stay written — written and failed count them. 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",
        "scope": "string",
        "scrap_class": "sheet_skeleton",
        "subcontractor_id": "string",
        "tool_id": "string",
        "valid_from": "string",
        "values": {
          "bucket": "overhead_variable",
          "burden_rate": 0,
          "hourly_rate": 0,
          "kind_modifier": "percentage",
          "programming_rate": null,
          "rate_operator_per_h": 0,
          "setup_rate": null
        }
      }
    ],
    "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",
                "scope": "string",
                "scrap_class": "sheet_skeleton",
                "subcontractor_id": "string",
                "tool_id": "string",
                "valid_from": "string",
                "values": {
                    "bucket": "overhead_variable",
                    "burden_rate": 0,
                    "hourly_rate": 0,
                    "kind_modifier": "percentage",
                    "programming_rate": None,
                    "rate_operator_per_h": 0,
                    "setup_rate": None
                }
            }
        ],
        "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",
        "scope": "string",
        "scrap_class": "sheet_skeleton",
        "subcontractor_id": "string",
        "tool_id": "string",
        "valid_from": "string",
        "values": {
          "bucket": "overhead_variable",
          "burden_rate": 0,
          "hourly_rate": 0,
          "kind_modifier": "percentage",
          "programming_rate": null,
          "rate_operator_per_h": 0,
          "setup_rate": null
        }
      }
    ],
    "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.
failed integer Changes the platform refused when they were written. The others stay written: a changeset is not all-or-nothing.
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.
written integer Changes written (0 for a plan).

Example response

{
  "applied": true,
  "changes": [
    {
      "affected_environments": [
        {}
      ],
      "code": "string",
      "current": {},
      "detail": "string",
      "endpoint": "string",
      "new": {},
      "op": "string",
      "status": "planned",
      "target": "string"
    }
  ],
  "environment_id": "string",
  "failed": 0,
  "guidance": "string",
  "plan_digest": "string",
  "written": 0
}

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. Each write is tried on the route that makes it, in the order of the changes, and all of it is rolled back: a change is held to what the changes before it leave, as the commit writes them. So a value the commit would be refused for (a percentage sent as 12 instead of 0.12, an unknown overhead bucket, a negative rate) is refused here, with that route's error code and reason. Nothing is written. Counts as one heavy call against the rate limit, like the commit, whatever the number of changes.

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",
        "scope": "string",
        "scrap_class": "sheet_skeleton",
        "subcontractor_id": "string",
        "tool_id": "string",
        "valid_from": "string",
        "values": {
          "bucket": "overhead_variable",
          "burden_rate": 0,
          "hourly_rate": 0,
          "kind_modifier": "percentage",
          "programming_rate": null,
          "rate_operator_per_h": 0,
          "setup_rate": null
        }
      }
    ]
  }'
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",
                "scope": "string",
                "scrap_class": "sheet_skeleton",
                "subcontractor_id": "string",
                "tool_id": "string",
                "valid_from": "string",
                "values": {
                    "bucket": "overhead_variable",
                    "burden_rate": 0,
                    "hourly_rate": 0,
                    "kind_modifier": "percentage",
                    "programming_rate": None,
                    "rate_operator_per_h": 0,
                    "setup_rate": None
                }
            }
        ]
    },
)
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",
        "scope": "string",
        "scrap_class": "sheet_skeleton",
        "subcontractor_id": "string",
        "tool_id": "string",
        "valid_from": "string",
        "values": {
          "bucket": "overhead_variable",
          "burden_rate": 0,
          "hourly_rate": 0,
          "kind_modifier": "percentage",
          "programming_rate": null,
          "rate_operator_per_h": 0,
          "setup_rate": null
        }
      }
    ]
  }),
})
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.
failed integer Changes the platform refused when they were written. The others stay written: a changeset is not all-or-nothing.
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.
written integer Changes written (0 for a plan).

Example response

{
  "applied": true,
  "changes": [
    {
      "affected_environments": [
        {}
      ],
      "code": "string",
      "current": {},
      "detail": "string",
      "endpoint": "string",
      "new": {},
      "op": "string",
      "status": "planned",
      "target": "string"
    }
  ],
  "environment_id": "string",
  "failed": 0,
  "guidance": "string",
  "plan_digest": "string",
  "written": 0
}

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 or disable a subcontractor in this environment without detaching it.

A disabled membership keeps its history; pricing in this environment sources no operation from it until it is enabled again.

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).
unhidden integer Hidden presets that returned.

Example response

{
  "enabled": 0,
  "message": "string",
  "reattached": 0,
  "unhidden": 0
}

Get Environment Subscription

GET /api/v1/environments/{env_id}/subscription

What this environment follows, the version in effect and how far behind the channel it is.

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}/subscription \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/subscription",
    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}/subscription", {
  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
applied_at string ISO timestamp the applied version took effect.
applied_automatically boolean Whether the version in effect was applied automatically on its release (auto_apply) rather than by a person; reported while the revert window is open.
applied_version VersionRefPublic The version in effect.
auto_apply boolean Whether a new version on the channel is applied automatically when it is released, unless it conflicts with your own rows.
channel string Followed channel, when tracking.
env_id string Identifier of the following environment.
newest_on_channel VersionRefPublic The version the channel (or the pin) points at now.
notify boolean Whether new versions raise a notification.
pending VersionRefPublic A newer version not yet applied, if any.
policy string 'track_channel' or 'pinned'.
previous_applied_version VersionRefPublic What a revert would restore, while the window is open.
revertable_until string ISO timestamp until which a revert is possible.
updated_to_version VersionRefPublic The version the last update applied, while the revert window is open (null otherwise). It is applied_version unless a later release that changed no value has since moved the follow onto a newer version: the revert still undoes this update.
upstream_env_id string Identifier of the environment it follows (the upstream).
upstream_listing_status listed | suspended | retired For an organization's listing: 'listed', 'suspended' (no new version can be applied until it is reinstated) or 'retired' (no new versions; the applied one keeps pricing). Null for a platform environment.
upstream_name string Name of the environment it follows.
versions_behind integer Published versions between the applied one and the newest that change something; a version with the applied one's assumptions is not counted.

Example response

{
  "applied_at": "string",
  "applied_automatically": false,
  "applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "auto_apply": true,
  "channel": "string",
  "env_id": "string",
  "newest_on_channel": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "notify": true,
  "pending": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "policy": "string",
  "previous_applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "revertable_until": "string",
  "updated_to_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "upstream_env_id": "string",
  "upstream_listing_status": "listed",
  "upstream_name": "string",
  "versions_behind": 0
}

Set Environment Subscription Notify

PATCH /api/v1/environments/{env_id}/subscription

Turn the follow's new-version notifications on or off. Only the flag changes: the environment is not versioned and its calculations are not flagged as changed, because nothing they price with moved.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
notify boolean yes Raise a notification when the followed environment publishes a version this follow hears: a channel follow hears a release that moved its channel, a pinned follow every release.

Request

curl -X PATCH https://api.arcnm.io/api/v1/environments/{env_id}/subscription \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "notify": true
  }'
import requests

resp = requests.patch(
    "https://api.arcnm.io/api/v1/environments/{env_id}/subscription",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "notify": True
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/subscription", {
  method: "PATCH",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "notify": 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
applied_at string ISO timestamp the applied version took effect.
applied_automatically boolean Whether the version in effect was applied automatically on its release (auto_apply) rather than by a person; reported while the revert window is open.
applied_version VersionRefPublic The version in effect.
auto_apply boolean Whether a new version on the channel is applied automatically when it is released, unless it conflicts with your own rows.
channel string Followed channel, when tracking.
env_id string Identifier of the following environment.
newest_on_channel VersionRefPublic The version the channel (or the pin) points at now.
notify boolean Whether new versions raise a notification.
pending VersionRefPublic A newer version not yet applied, if any.
policy string 'track_channel' or 'pinned'.
previous_applied_version VersionRefPublic What a revert would restore, while the window is open.
revertable_until string ISO timestamp until which a revert is possible.
updated_to_version VersionRefPublic The version the last update applied, while the revert window is open (null otherwise). It is applied_version unless a later release that changed no value has since moved the follow onto a newer version: the revert still undoes this update.
upstream_env_id string Identifier of the environment it follows (the upstream).
upstream_listing_status listed | suspended | retired For an organization's listing: 'listed', 'suspended' (no new version can be applied until it is reinstated) or 'retired' (no new versions; the applied one keeps pricing). Null for a platform environment.
upstream_name string Name of the environment it follows.
versions_behind integer Published versions between the applied one and the newest that change something; a version with the applied one's assumptions is not counted.

Example response

{
  "applied_at": "string",
  "applied_automatically": false,
  "applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "auto_apply": true,
  "channel": "string",
  "env_id": "string",
  "newest_on_channel": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "notify": true,
  "pending": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "policy": "string",
  "previous_applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "revertable_until": "string",
  "updated_to_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "upstream_env_id": "string",
  "upstream_listing_status": "listed",
  "upstream_name": "string",
  "versions_behind": 0
}

Update Environment Subscription

PUT /api/v1/environments/{env_id}/subscription

Change the follow policy: track a channel or pin a version, and the auto-apply / notify flags. Changes nothing on the environment's own rows; a pin to another version shows as pending until applied.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
auto_apply boolean no Apply a new version when it is released, unless it conflicts with your own rows; omit to keep.
channel string no Channel to follow (for 'track_channel').
notify boolean no Raise a notification on a new version; omit to keep. Sent here it versions the environment like the policy does; PATCH /environments/{env_id}/subscription changes only this flag and versions nothing.
policy track_channel | pinned yes 'track_channel' follows a channel; 'pinned' stays on one version.
version_id string no Version to pin (for 'pinned').

Request

curl -X PUT https://api.arcnm.io/api/v1/environments/{env_id}/subscription \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "policy": "track_channel"
  }'
import requests

resp = requests.put(
    "https://api.arcnm.io/api/v1/environments/{env_id}/subscription",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "policy": "track_channel"
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/subscription", {
  method: "PUT",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "policy": "track_channel"
  }),
})
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
applied_at string ISO timestamp the applied version took effect.
applied_automatically boolean Whether the version in effect was applied automatically on its release (auto_apply) rather than by a person; reported while the revert window is open.
applied_version VersionRefPublic The version in effect.
auto_apply boolean Whether a new version on the channel is applied automatically when it is released, unless it conflicts with your own rows.
channel string Followed channel, when tracking.
env_id string Identifier of the following environment.
newest_on_channel VersionRefPublic The version the channel (or the pin) points at now.
notify boolean Whether new versions raise a notification.
pending VersionRefPublic A newer version not yet applied, if any.
policy string 'track_channel' or 'pinned'.
previous_applied_version VersionRefPublic What a revert would restore, while the window is open.
revertable_until string ISO timestamp until which a revert is possible.
updated_to_version VersionRefPublic The version the last update applied, while the revert window is open (null otherwise). It is applied_version unless a later release that changed no value has since moved the follow onto a newer version: the revert still undoes this update.
upstream_env_id string Identifier of the environment it follows (the upstream).
upstream_listing_status listed | suspended | retired For an organization's listing: 'listed', 'suspended' (no new version can be applied until it is reinstated) or 'retired' (no new versions; the applied one keeps pricing). Null for a platform environment.
upstream_name string Name of the environment it follows.
versions_behind integer Published versions between the applied one and the newest that change something; a version with the applied one's assumptions is not counted.

Example response

{
  "applied_at": "string",
  "applied_automatically": false,
  "applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "auto_apply": true,
  "channel": "string",
  "env_id": "string",
  "newest_on_channel": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "notify": true,
  "pending": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "policy": "string",
  "previous_applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "revertable_until": "string",
  "updated_to_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "upstream_env_id": "string",
  "upstream_listing_status": "listed",
  "upstream_name": "string",
  "versions_behind": 0
}

Apply Environment Subscription

POST /api/v1/environments/{env_id}/subscription/apply

Update to an upstream version. Every conflict the diff reports needs a resolution; your own statements are never changed. The previous version stays revertable for 72 hours.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
resolutions ResolutionIn[] no One entry per conflict.
version_id string yes The upstream version to apply.

Request

curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/subscription/apply \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "version_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/subscription/apply",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "version_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}/subscription/apply", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "version_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }),
})
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
applied_at string ISO timestamp the applied version took effect.
applied_automatically boolean Whether the version in effect was applied automatically on its release (auto_apply) rather than by a person; reported while the revert window is open.
applied_version VersionRefPublic The version in effect.
auto_apply boolean Whether a new version on the channel is applied automatically when it is released, unless it conflicts with your own rows.
channel string Followed channel, when tracking.
env_id string Identifier of the following environment.
newest_on_channel VersionRefPublic The version the channel (or the pin) points at now.
notify boolean Whether new versions raise a notification.
pending VersionRefPublic A newer version not yet applied, if any.
policy string 'track_channel' or 'pinned'.
previous_applied_version VersionRefPublic What a revert would restore, while the window is open.
revertable_until string ISO timestamp until which a revert is possible.
updated_to_version VersionRefPublic The version the last update applied, while the revert window is open (null otherwise). It is applied_version unless a later release that changed no value has since moved the follow onto a newer version: the revert still undoes this update.
upstream_env_id string Identifier of the environment it follows (the upstream).
upstream_listing_status listed | suspended | retired For an organization's listing: 'listed', 'suspended' (no new version can be applied until it is reinstated) or 'retired' (no new versions; the applied one keeps pricing). Null for a platform environment.
upstream_name string Name of the environment it follows.
versions_behind integer Published versions between the applied one and the newest that change something; a version with the applied one's assumptions is not counted.

Example response

{
  "applied_at": "string",
  "applied_automatically": false,
  "applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "auto_apply": true,
  "channel": "string",
  "env_id": "string",
  "newest_on_channel": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "notify": true,
  "pending": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "policy": "string",
  "previous_applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "revertable_until": "string",
  "updated_to_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "upstream_env_id": "string",
  "upstream_listing_status": "listed",
  "upstream_name": "string",
  "versions_behind": 0
}

Detach Environment Subscription

POST /api/v1/environments/{env_id}/subscription/detach

Stop following and keep every value the environment inherits: what it read from the applied version and does not state itself — rates, economics, cutting data, tuning, shop practice — is written as its own, valid from today, so it prices exactly as it did a moment before. It receives no new versions; following again is a new follow. A newer version waiting to be applied, or an open revert window, ends with the follow.

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}/subscription/detach \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/subscription/detach",
    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}/subscription/detach", {
  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
config_revision integer Configuration revision after the detach.
economics_written string[] Economics fields written as the environment's own.
env_id string Identifier of the detached environment.
learning_rate_written boolean Whether the version's learning rate became the environment's.
overrides_written integer Cutting-data, tuning and shop-practice values written as the environment's own.
reference_values_written string[] Of those, the fields the version answered with a regional reference value it pinned.
rows_written DetachedRowsPublic Rate rows written as the environment's own, valid from today.
upstream_env_id string Identifier of the environment it followed.
version VersionRefPublic The version it followed, whose values it keeps.

Example response

{
  "config_revision": 0,
  "economics_written": [
    "string"
  ],
  "env_id": "string",
  "learning_rate_written": true,
  "overrides_written": 0,
  "reference_values_written": [
    "string"
  ],
  "rows_written": {
    "fx_rates": 0,
    "labour_rates": 0,
    "material_prices": 0,
    "overhead_rates": 0,
    "scrap_prices": 0,
    "subcontract_rates": 0
  },
  "upstream_env_id": "string",
  "version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  }
}

Get Environment Subscription Diff

GET /api/v1/environments/{env_id}/subscription/diff

Three-way diff: the applied version, the target version and your own statements, every moved path classed as inherited, overridden or a conflict that must be resolved before applying. For an integration a pinned reference value moves under its licence: a derived_only one is listed by what moved besides its figure (never its value or source line), an internal_only one not at all.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
version_id query string no Target upstream version; defaults to the pending (newest) one.

Request

curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/subscription/diff \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/subscription/diff",
    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}/subscription/diff", {
  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
conflicts string[] Row paths that must be resolved before the target can be applied.
env_id string Identifier of the following environment.
from_version VersionRefPublic The applied version.
rows DiffRowPublic[] Every moved path.
summary object Counts by kind.
to_version VersionRefPublic The target version.

Example response

{
  "conflicts": [
    "string"
  ],
  "env_id": "string",
  "from_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "rows": [
    {
      "delta_pct": 0,
      "kind": "unchanged",
      "mine": null,
      "path": "string",
      "upstream_from": null,
      "upstream_to": null
    }
  ],
  "summary": {},
  "to_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  }
}

Revert Environment Subscription

POST /api/v1/environments/{env_id}/subscription/revert

Restore the previously applied version, within 72 hours of the last update. Calculations run in between keep their own pins.

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}/subscription/revert \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/subscription/revert",
    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}/subscription/revert", {
  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
applied_at string ISO timestamp the applied version took effect.
applied_automatically boolean Whether the version in effect was applied automatically on its release (auto_apply) rather than by a person; reported while the revert window is open.
applied_version VersionRefPublic The version in effect.
auto_apply boolean Whether a new version on the channel is applied automatically when it is released, unless it conflicts with your own rows.
channel string Followed channel, when tracking.
env_id string Identifier of the following environment.
newest_on_channel VersionRefPublic The version the channel (or the pin) points at now.
notify boolean Whether new versions raise a notification.
pending VersionRefPublic A newer version not yet applied, if any.
policy string 'track_channel' or 'pinned'.
previous_applied_version VersionRefPublic What a revert would restore, while the window is open.
revertable_until string ISO timestamp until which a revert is possible.
updated_to_version VersionRefPublic The version the last update applied, while the revert window is open (null otherwise). It is applied_version unless a later release that changed no value has since moved the follow onto a newer version: the revert still undoes this update.
upstream_env_id string Identifier of the environment it follows (the upstream).
upstream_listing_status listed | suspended | retired For an organization's listing: 'listed', 'suspended' (no new version can be applied until it is reinstated) or 'retired' (no new versions; the applied one keeps pricing). Null for a platform environment.
upstream_name string Name of the environment it follows.
versions_behind integer Published versions between the applied one and the newest that change something; a version with the applied one's assumptions is not counted.

Example response

{
  "applied_at": "string",
  "applied_automatically": false,
  "applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "auto_apply": true,
  "channel": "string",
  "env_id": "string",
  "newest_on_channel": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "notify": true,
  "pending": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "policy": "string",
  "previous_applied_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "revertable_until": "string",
  "updated_to_version": {
    "id": "string",
    "label": "string",
    "published_at": "string",
    "version_no": 0
  },
  "upstream_env_id": "string",
  "upstream_listing_status": "listed",
  "upstream_name": "string",
  "versions_behind": 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 effective dates 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, in the environment's currency — what its calculations price the tool at: a price inherited from a platform article is its euro list price, converted where the environment converts the platform's euro figures (an installed country outside the euro). The name keeps its historical _eur suffix.
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, in the environment's currency — what its calculations price the tool at: a price inherited from a platform article is its euro list price, converted where the environment converts the platform's euro figures (an installed country outside the euro). The name keeps its historical _eur suffix.
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.
filler_wire_price_per_kg TuningKnob Price of the filler wire an assembly's in-house arc welding deposits, per kg, in the environment's currency.
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.
price_per_fastener TuningKnob Price of one bolt with its nut and washer at M8, in the environment's currency. Other thread sizes are priced from it by the platform's size index.
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_price_per_m3 TuningKnob Price of the shielding gas an assembly's in-house arc welding uses, per cubic metre, in the environment's currency.
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 TuningKnob The test lab's minimum charge per order, in the environment's currency, charged once per lot when the welds need surface testing.
weld_ndt_price_per_m TuningKnob Surface testing (MT/PT) of an assembly's welds by a test lab, per metre of tested seam, in the environment's currency.
weld_visual_inspection_price_per_m TuningKnob Visual testing (VT) of an assembly's welds, per metre of seam, in the environment's currency.

Example response

{
  "bar_clamp_remnant_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "bar_length_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "bar_remnant_min_l_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "bolt_cycle_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "custom_format_surcharge_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "cut_to_size_increment_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "cycle_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "edge_margin_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "erholzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "filler_wire_price_per_kg": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "full_stock_threshold": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "learning_rate": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joint_width_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joints_over_1000mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joints_to_1000mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joints_to_300mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_over_12mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_to_12mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_to_3mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_to_6mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "nebenzeit_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "press_in_cycle_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "press_tool_change_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "price_per_fastener": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "processes": {},
  "programming_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "proveout_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_min_area_share": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_min_l_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_min_w_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_value_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "rivet_cycle_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "ruesterholzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "ruestverteilzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "setup_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "shielding_gas_price_per_m3": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "skeleton_web_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "verteilzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "weld_inspection_order_minimum": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "weld_ndt_price_per_m": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "weld_visual_inspection_price_per_m": {
    "max": 0,
    "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.
filler_wire_price_per_kg number no Filler wire price for in-house arc welding, per kg, in the environment's currency (at most the equivalent of 200 EUR); 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.
price_per_fastener number no Price of one M8 bolt with nut and washer, in the environment's currency (at most the equivalent of 100 EUR); other sizes follow the platform size index. 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_price_per_kg, shielding_gas_price_per_m3, price_per_fastener, bolt_cycle_s, rivet_cycle_s, weld_visual_inspection_price_per_m, weld_ndt_price_per_m, weld_inspection_order_minimum. 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_price_per_m3 number no Shielding gas price for in-house arc welding, per m³, in the environment's currency (at most the equivalent of 500 EUR); 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 number no The test lab's minimum charge per order, in the environment's currency (at most the equivalent of 100 000 EUR); omit or send null to keep, "reset" to clear it back to inherit / platform default.
weld_ndt_price_per_m number no Surface testing (MT/PT) of welds by a test lab, per metre of tested seam, in the environment's currency (at most the equivalent of 1 000 EUR); omit or send null to keep, "reset" to clear it back to inherit / platform default.
weld_visual_inspection_price_per_m number no Visual testing (VT) of welds, per metre of seam, in the environment's currency (at most the equivalent of 1 000 EUR); 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,
    "filler_wire_price_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,
    "price_per_fastener": 0,
    "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_price_per_m3": 0,
    "skeleton_web_mm": 0,
    "verteilzeit_pct": 0,
    "weld_inspection_order_minimum": 0,
    "weld_ndt_price_per_m": 0,
    "weld_visual_inspection_price_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,
        "filler_wire_price_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,
        "price_per_fastener": 0,
        "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_price_per_m3": 0,
        "skeleton_web_mm": 0,
        "verteilzeit_pct": 0,
        "weld_inspection_order_minimum": 0,
        "weld_ndt_price_per_m": 0,
        "weld_visual_inspection_price_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,
    "filler_wire_price_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,
    "price_per_fastener": 0,
    "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_price_per_m3": 0,
    "skeleton_web_mm": 0,
    "verteilzeit_pct": 0,
    "weld_inspection_order_minimum": 0,
    "weld_ndt_price_per_m": 0,
    "weld_visual_inspection_price_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.
filler_wire_price_per_kg TuningKnob Price of the filler wire an assembly's in-house arc welding deposits, per kg, in the environment's currency.
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.
price_per_fastener TuningKnob Price of one bolt with its nut and washer at M8, in the environment's currency. Other thread sizes are priced from it by the platform's size index.
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_price_per_m3 TuningKnob Price of the shielding gas an assembly's in-house arc welding uses, per cubic metre, in the environment's currency.
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 TuningKnob The test lab's minimum charge per order, in the environment's currency, charged once per lot when the welds need surface testing.
weld_ndt_price_per_m TuningKnob Surface testing (MT/PT) of an assembly's welds by a test lab, per metre of tested seam, in the environment's currency.
weld_visual_inspection_price_per_m TuningKnob Visual testing (VT) of an assembly's welds, per metre of seam, in the environment's currency.

Example response

{
  "bar_clamp_remnant_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "bar_length_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "bar_remnant_min_l_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "bolt_cycle_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "custom_format_surcharge_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "cut_to_size_increment_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "cycle_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "edge_margin_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "erholzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "filler_wire_price_per_kg": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "full_stock_threshold": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "learning_rate": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joint_width_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joints_over_1000mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joints_to_1000mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "micro_joints_to_300mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_over_12mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_to_12mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_to_3mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "min_web_mm_to_6mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "nebenzeit_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "press_in_cycle_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "press_tool_change_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "price_per_fastener": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "processes": {},
  "programming_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "proveout_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_min_area_share": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_min_l_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_min_w_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "remnant_value_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "rivet_cycle_s": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "ruesterholzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "ruestverteilzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "setup_factor": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "shielding_gas_price_per_m3": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "skeleton_web_mm": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "verteilzeit_pct": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "weld_inspection_order_minimum": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "weld_ndt_price_per_m": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  },
  "weld_visual_inspection_price_per_m": {
    "max": 0,
    "platform_default": 0,
    "source": "string",
    "value": 0
  }
}

List Environment Versions

GET /api/v1/environments/{env_id}/versions

The environment's own versions, 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; limit caps the page size.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
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.

Request

curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/versions \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/versions",
    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}/versions", {
  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.

Cut Environment Version

POST /api/v1/environments/{env_id}/versions

Freeze the environment's current configuration as a named version — what an exported quote cites. Cutting a version changes nothing on the environment.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.

Request body (application/json)

Field Type Required Description
label string yes Label of the version, unique per environment.
notes string no Release notes.
status draft | published no Publish now, or keep as a draft.

Request

curl -X POST https://api.arcnm.io/api/v1/environments/{env_id}/versions \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "string"
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/{env_id}/versions",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "label": "string"
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/{env_id}/versions", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "label": "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
changelog_summary object Counts of what moved against the previous published version.
config_revision integer The environment's configuration revision this version was cut at.
content_hash string Content hash of the snapshot.
created_at string ISO timestamp the version was created.
env_id string Identifier of the environment the version belongs to.
erratum_of string Identifier of the version this one corrects, if any.
id string Identifier of the version.
label string Human label of the version.
notes string Release notes.
publication_id string Identifier of the listing this version was published through, if any.
published_at string ISO timestamp the version was published at.
reference_vintage_at string ISO timestamp of the reference data the snapshot was cut against.
status draft | published | deprecated | withdrawn Lifecycle status: draft, published, deprecated or withdrawn.
supported_until string ISO date after which new calculations against this version warn.
version_no integer Monotonic version number within the environment.

Example response

{
  "changelog_summary": {},
  "config_revision": 0,
  "content_hash": "string",
  "created_at": "string",
  "env_id": "string",
  "erratum_of": "string",
  "id": "string",
  "label": "string",
  "notes": "string",
  "publication_id": "string",
  "published_at": "string",
  "reference_vintage_at": "string",
  "status": "draft",
  "supported_until": "string",
  "version_no": 0
}

Diff Environment Versions

GET /api/v1/environments/{env_id}/versions/{a}/diff/{b}

What moved between two of the environment's own versions (labels or ids), drafts included — the same shape as the version diff of an available environment.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
a path string yes
b path string yes

Request

curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/versions/{a}/diff/{b} \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/versions/{a}/diff/{b}",
    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}/versions/{a}/diff/{b}", {
  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
changes VersionChangePublic[] Every path that moved.
from_version CatalogueVersionRef The older version.
summary object Counts by kind and by section.
to_version CatalogueVersionRef The newer version.

Example response

{
  "changes": [
    {
      "delta_pct": 0,
      "from": null,
      "path": "string",
      "to": null
    }
  ],
  "from_version": {
    "content_hash": "string",
    "id": "string",
    "label": "string",
    "published_at": "string"
  },
  "summary": {},
  "to_version": {
    "content_hash": "string",
    "id": "string",
    "label": "string",
    "published_at": "string"
  }
}

Get Environment Version

GET /api/v1/environments/{env_id}/versions/{label}

One of the environment's versions by label or id, with its snapshot.

Parameters

Name In Type Required Description
env_id path string yes Identifier of the env.
label path string yes

Request

curl -X GET https://api.arcnm.io/api/v1/environments/{env_id}/versions/{label} \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/{env_id}/versions/{label}",
    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}/versions/{label}", {
  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
changelog object What moved against the previous published version.
changelog_summary object Counts of what moved against the previous published version.
config_revision integer The environment's configuration revision this version was cut at.
content_hash string Content hash of the snapshot.
created_at string ISO timestamp the version was created.
env_id string Identifier of the environment the version belongs to.
erratum_of string Identifier of the version this one corrects, if any.
id string Identifier of the version.
label string Human label of the version.
notes string Release notes.
publication_id string Identifier of the listing this version was published through, if any.
published_at string ISO timestamp the version was published at.
reference_vintage_at string ISO timestamp of the reference data the snapshot was cut against.
snapshot object The priced configuration the version states: identity, economics, the rate rows, the machines and tools by library lineage, and the capability envelope.
status draft | published | deprecated | withdrawn Lifecycle status: draft, published, deprecated or withdrawn.
supported_until string ISO date after which new calculations against this version warn.
version_no integer Monotonic version number within the environment.

Example response

{
  "changelog": {},
  "changelog_summary": {},
  "config_revision": 0,
  "content_hash": "string",
  "created_at": "string",
  "env_id": "string",
  "erratum_of": "string",
  "id": "string",
  "label": "string",
  "notes": "string",
  "publication_id": "string",
  "published_at": "string",
  "reference_vintage_at": "string",
  "snapshot": {},
  "status": "draft",
  "supported_until": "string",
  "version_no": 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
}

List Environment Follows

GET /api/v1/environments/follows

Every environment of the organization that follows a listing (every installed environment), in one read: what it follows and how (policy, channel, auto-apply, notifications), the version in effect and who applied it, a newer version waiting and how much it moves, until when the last update can be reverted, how many values the environment states itself, whether its version is provisional — and the organization's default assumption policy. Archived environments are left out unless include_archived is set. Read-only. GET /environments/{env_id}/subscription and …/subscription/diff are the detail of one.

Parameters

Name In Type Required Description
include_archived query boolean no Also list the follows of archived environments (archived_at set), as GET /environments does. Left out by default: an archived environment takes no new version.

Request

curl -X GET https://api.arcnm.io/api/v1/environments/follows \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/environments/follows",
    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/follows", {
  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
assumption_policy_default frozen | market_tracking | live The organization's default assumption policy — what a calculation reads when it is run again: 'frozen' — the version, costing date and reference values it was priced with; 'market_tracking' — the version it was priced with, everything else as of today; 'live' — the version its environment has in effect now, as of today. A batch or a calculation may state its own.
follows EnvironmentFollowPublic[] Every following environment, by name; empty when none follows.

Example response

{
  "assumption_policy_default": "frozen",
  "follows": [
    {
      "applied_version": {
        "applied_at": "string",
        "automatic": true,
        "label": "string"
      },
      "auto_apply": true,
      "channel": "string",
      "env_id": "string",
      "is_default": true,
      "name": "string",
      "notify": true,
      "overrides": 0,
      "pending_version": {
        "changes": 0,
        "conflicts": 0,
        "label": "string",
        "released_at": "string"
      },
      "policy": "pinned",
      "provisional": true,
      "reads_reference_plane": true,
      "region_code": "string",
      "revert_until": "string",
      "upstream": {
        "listing_status": "listed",
        "publisher": "string",
        "publisher_kind": "platform",
        "ref": "string",
        "title": "string",
        "update_cadence": "string"
      }
    }
  ]
}

Install an available environment

POST /api/v1/environments/from-catalogue

Install an available environment: a new environment that carries the upstream's identity, machines and selection policy, states no rates of its own, and follows the upstream version the policy names. It prices on day one; every value it does not state resolves from the applied version until it is overridden. One request names it, picks the follow (a channel or a pinned version, auto-apply, notifications) and, with make_default, makes it the organization's default. Installing the same environment again makes a second environment; send an Idempotency-Key so a repeated click makes one. An install in a country your organization does not price in yet takes one of your plan's countries, which only an owner or admin takes, or an API key with the countries:write scope (403 country_slot_requires_admin to anyone else, any other API key included).

Request body (application/json)

Field Type Required Description
follow FollowRequest yes Follow policy for the new environment.
make_default boolean no Make the new environment the organization's default — the one a calculation that names no environment is priced in (as PUT /environments/{env_id}/default does).
name string yes Name of the new environment. A name another environment of your organization holds (compared ignoring case and extra spaces) is refused with 409 environment_name_taken; one of only spaces takes ' ()', numbered when taken.
upstream_env_id string yes Identifier of the available environment to install.

Request

curl -X POST https://api.arcnm.io/api/v1/environments/from-catalogue \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "upstream_env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "follow": {
      "auto_apply": false,
      "channel": "string",
      "notify": true,
      "policy": "track_channel",
      "version_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  }'
import requests

resp = requests.post(
    "https://api.arcnm.io/api/v1/environments/from-catalogue",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={
        "upstream_env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string",
        "follow": {
            "auto_apply": False,
            "channel": "string",
            "notify": True,
            "policy": "track_channel",
            "version_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        }
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/environments/from-catalogue", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "upstream_env_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "follow": {
      "auto_apply": false,
      "channel": "string",
      "notify": true,
      "policy": "track_channel",
      "version_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
config_revision integer Configuration revision after the fork.
currency string ISO 4217 currency carried from upstream.
description string Description carried from upstream.
id string Identifier of the new environment.
in_workspace CatalogueWorkspaceFollow[] Your organization's environments that now follow the same available environment, the new one included — the listing's in_workspace.
is_baseline boolean Always false for a forked environment.
is_default boolean Whether the new environment is the organization's default.
machines_instantiated integer Machines created in the new environment from the library.
machines_skipped integer Upstream machines without library lineage, which could not be instantiated.
name string Name of the new environment.
region string Cost region code carried from upstream.
source_environment_id string Identifier of the available environment this one was installed from.
subscription EnvironmentSubscriptionPublic The follow the fork recorded.
valid_from string ISO date the environment is effective from.

Example response

{
  "config_revision": 0,
  "currency": "EUR",
  "description": "string",
  "id": "string",
  "in_workspace": [
    {
      "applied_version_label": "string",
      "auto_apply": true,
      "channel": "string",
      "env_id": "string",
      "name": "string",
      "pending_version_label": "string",
      "policy": "pinned"
    }
  ],
  "is_baseline": true,
  "is_default": false,
  "machines_instantiated": 0,
  "machines_skipped": 0,
  "name": "string",
  "region": "EU",
  "source_environment_id": "string",
  "subscription": {
    "applied_at": "string",
    "applied_automatically": false,
    "applied_version": {
      "id": "string",
      "label": "string",
      "published_at": "string",
      "version_no": 0
    },
    "auto_apply": true,
    "channel": "string",
    "env_id": "string",
    "newest_on_channel": {
      "id": "string",
      "label": "string",
      "published_at": "string",
      "version_no": 0
    },
    "notify": true,
    "pending": {
      "id": "string",
      "label": "string",
      "published_at": "string",
      "version_no": 0
    },
    "policy": "string",
    "previous_applied_version": {
      "id": "string",
      "label": "string",
      "published_at": "string",
      "version_no": 0
    },
    "revertable_until": "string",
    "updated_to_version": {
      "id": "string",
      "label": "string",
      "published_at": "string",
      "version_no": 0
    },
    "upstream_env_id": "string",
    "upstream_listing_status": "listed",
    "upstream_name": "string",
    "versions_behind": 0
  },
  "valid_from": "string"
}

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.