Environments Attach Machine
environments_attach_machineDestructive
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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_id | Yes | ||
| valid_to | No | ISO date (YYYY-MM-DD) the membership ends; defaults to the machine's own valid_to. | |
| is_enabled | No | Whether the machine is active in the environment's fleet on attach. | |
| machine_id | No | Identifier of an existing machine to attach; mutually exclusive with new_machine. | |
| valid_from | No | ISO date (YYYY-MM-DD) the membership starts; defaults to the machine's own valid_from. | |
| new_machine | No | Inline definition of a new machine to create and attach; mutually exclusive with machine_id. | |
| name_override | No | Optional name for the instantiated machine; defaults to the library entry's name. | |
| fleet_priority | No | Orders machines within the environment; lower values are tried first. | |
| library_entry_id | No | Instantiate a machine from this shared/tenant library entry; mutually exclusive with machine_id / new_machine. | |
| capability_overrides | No | Sparse per-environment capability overrides merged over the library defaults. | |
| hourly_rate_override_eur | No | Optional flat machine-hour rate; defaults to the library entry's nominal rate. | |
| rate_operator_eur_per_h_override | No | Operator wage already contained in hourly_rate_override_eur, in EUR per hour. Only meaningful with a rate override; without one the library entry's own declaration is inherited along with its rate. 0 means the rate is machine-only. |