v1
latestOpenAPI 3.0.12026-07-267912192.3 MBExecutes the Add action for the Equipment data object.
Adds a new equipment record
Path parameters
The code of the subscriber that you are making this request for.
Headers
Used to authorize access to the Direct API.
Request body
Key to em/equipment(EMCo, Equipment).
Key to em/equipment(EMCo, Equipment).
Options: E-Equipment, C-Component. Optional. If omitted, E will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Options: A-Active, I-Inactive, D-Down. Optional. If omitted, A will be defaulted.
Key to em/departments(EMCo, Department).
Key to em/categories(EMCo, Category).
Key to em/locations(EMCo, EMLoc). Optional. If omitted, null will be defaulted.
Key to em/shops(ShopGroup, Shop). ShopGroup based on EMCo. Optional. If omitted, null will be defaulted.
Key to em/rev_codes(EMGroup, RevCode). EMGroup based on EMCo. Optional. If omitted, null will be defaulted.
Key to pr/employees(PRCo, Employee). Optional. If omitted, defaulted based on Vista defaults.
Key to pr/employees(PRCo, Employee). Optional. If omitted, null will be defaulted.
Key to jc/jobs(JCCo, Job). Optional. If omitted, defaulted based on Vista defaults.
Key to jc/jobs(JCCo, Job). Optional. If omitted, null will be defaulted.
Optional. If omitted, defaulted based on Vista defaults.
Optional. If omitted, N will be defaulted.
Format: YYYY-MM-DD. Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Format: YYYY-MM-DD. Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Options: D-Diesel, G-Gas, O-Other, N-None. Optional. If omitted, N will be defaulted.
Key to hq/materials(MatlGroup, Material). MatlGroup determined by .EMCo. Optional. If omitted, null will be defaulted.
Key to em/cost_codes(EMGroup, CostCode). EMGroup determined by .EMCo. Optional. If omitted, null will be defaulted.
Key to em/cost_types(EMGroup, CostType). EMGroup determined by .EMCo. Optional. If omitted, null will be defaulted.
Optional. If omitted, 0.00 will be defaulted.
Key hq/unit_of_measures(UM). Optional. If omitted, null will be defaulted. A non null value is required if .FuelType != N.
Key hq/unit_of_measures(UM). Optional. If omitted, null will be defaulted.
Optional. If omitted, 0.00 will be defaulted.
Key hq/unit_of_measures(UM). Optional. If omitted, null will be defaulted.
Optional. If omitted, 0.00 will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, 0.00 will be defaulted.
Optional. If omitted, 0.000 will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, 0 will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Key em/equipment(EMCo, Equipment). Optional. If omitted, null will be defaulted. Input is ignored if .Type != E.
Optional. If omitted, N will be defaulted. Input is ignored if .Type != E.
Key em/equipment(EMCo, Equipment). A value is required to be provided or defaulted for .Type = C. Optional. If omitted, it will be defaulted ot $.CompUnattachedEquip value in em/company_parameters for the provided EMCo. Input is ignored if .Type != C.
Key em/component_types(EMGroup, ComponentTypeCode). EMGroup based on .EMCo. A value is required to be provided for .Type = C. Optional. If omitted, null will be defaulted. Input is ignored if .Type != C.
Optional. If omitted, N will be defaulted. Input is ignored if .Type != C.
Optional. If omitted, N will be defaulted. Input is ignored if .Type != C.
Optional. If omitted, N will be defaulted. Input is ignored if .Type != C.
Optional. If omitted, defaulted based on Vista defaulting. Input is ignored if .Type != C.
Optional. If omitted, null will be defaulted.
Optional. If omitted, null will be defaulted.
Add properties to this object for any custom fields you want to set as this record is added to Vista.
Response
Success