Add a Machine With a Part
A 4-step recipe with Viam. We can help you get access.
Recipe · 4 steps
Add a Machine With a Part
with Viam
Create a machine in a location, then add a part and confirm the part list.
- Create a new machine under the supplied location.
- List machines in the location to resolve the id of the new machine.
- Create a viam-server part on the resolved machine.
- Read the machine's parts back to confirm the new part is present.
What you'll need to have ready
- apiKey: Viam API key value sent in the key header.
- locationId: The location id the machine will be created under.
- machineName: Display name for the new machine.
- partName: Name for the new machine part.
For your developer
Arazzo workflow viam:add-machine-with-part, 4 operations: newRobot → listRobots → newRobotPart → getRobotParts. Specs on APIs.io.