capabilities.work

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.

  1. Create a new machine under the supplied location.
  2. List machines in the location to resolve the id of the new machine.
  3. Create a viam-server part on the resolved machine.
  4. 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.