Manage your fleet with Viam's fleet management API | APIs

Manage your fleet with Viam's fleet management API

The fleet management API allows you to manage your machine fleet with code the same way you can do in the web UI. With it you can

The fleet management API supports the following methods:

Method Name Description
GetUserIDByEmail Get the ID of a user by email.
CreateOrganization Create an organization.
ListOrganizations List the organizations the user is an authorized user of.
GetOrganizationsWithAccessToLocation Get all organizations that have access to a location.
ListOrganizationsByUser List the organizations a user belongs to.
GetOrganization Retrieve the organization object for the requested organization containing the organization’s ID, name, public namespace, and more.
GetOrganizationNamespaceAvailability Check the availability of an organization namespace.
UpdateOrganization Updates organization details.
DeleteOrganization Delete an organization.
ListOrganizationMembers List the members and invites of the organization that you are currently authenticated to.
CreateOrganizationInvite Create an organization invite and send it by email.
UpdateOrganizationInviteAuthorizations Update (add or remove) the authorizations attached to an organization invite that has already been created.
DeleteOrganizationMember Remove a member from the organization you are currently authenticated to.
DeleteOrganizationInvite Delete a pending organization invite to the organization you are currently authenticated to.
ResendOrganizationInvite Resend a pending organization invite email.
GetOrganizationMetadata Gets the user-defined metadata for an organization.
UpdateOrganizationMetadata Updates the user-defined metadata for an organization.
CreateLocation Create and name a location under the organization you are currently authenticated to.
GetLocation Get a location by its location ID.
UpdateLocation Change the name of a location and/or assign a parent location to a location.
DeleteLocation Delete a location.
ListLocations Get a list of all locations under the organization you are currently authenticated to.
ShareLocation Share a location with an organization.
UnshareLocation Stop sharing a location with an organization.
LocationAuth Get a location’s LocationAuth (location secret or secrets).
CreateLocationSecret Create a new location secret.
DeleteLocationSecret Delete a location secret.
GetLocationMetadata Get the user-defined metadata for a location.
UpdateLocationMetadata Update the user-defined metadata for a location.
GetRobot Get a machine by its ID.
GetRobotAPIKeys Gets the API keys for the machine.
GetRobotParts Get a list of all the parts under a specific machine.
GetRobotPart Get a specific machine part including its part config, part address, and other information.
GetRobotPartLogs Get the logs associated with a specific machine part.
GetRobotPartByNameAndLocation Query a specific robot part by name and location id.
TailRobotPartLogs Get an asynchronous iterator that receives live machine part logs.
GetRobotPartHistory Get a list containing the history of a machine part.
UpdateRobotPart Change the name of and assign an optional new configuration to a machine part.
NewRobotPart Create a new machine part.
DeleteRobotPart Delete the specified machine part.
MarkPartAsMain Mark a machine part as the main part of a machine.
MarkPartForRestart Mark a specified machine part for restart.
CreateRobotPartSecret Create a machine part secret.
DeleteRobotPartSecret Delete a machine part secret.
ListRobots Get a list of all machines in a specified location.
NewRobot Create a new machine.
UpdateRobot Update an existing machine’s name and/or location.
DeleteRobot Delete a specified machine.
GetRobotMetadata Gets the user-defined metadata for a machine.
GetRobotPartMetadata Gets the user-defined metadata for a machine part.
UpdateRobotMetadata Updates the user-defined metadata for a machine.
UpdateRobotPartMetadata Updates the user-defined metadata for a machine part.
ListFragments Get a list of fragments in the organization you are currently authenticated to.
ListMachineFragments Get a list of top level and nested fragments for a machine, as well as additionally specified fragment IDs.
ListMachineSummaries Lists machine summaries for an organization, optionally filtered by fragment IDs, location IDs, and limit.
GetFragment Get a fragment by ID.
CreateFragment Create a new private fragment.
UpdateFragment Update a fragment name and its config and/or visibility.
DeleteFragment Delete a fragment.
GetFragmentHistory Get fragment history.
AddRole Add a role under the organization you are currently authenticated to.
RemoveRole Remove a role under the organization you are currently authenticated to.
ChangeRole Changes an existing role to a new role.
ListAuthorizations List all authorizations (owners and operators) of a specific resource (or resources) within the organization you are currently authenticated to.
CheckPermissions Check if the organization, location, or robot your ViamClient is authenticated to is permitted to perform some action or set of actions on the resource you pass to the method.
GetRegistryItem Get metadata about a registry item (a module, training script, or ML model) by registry item ID.
CreateRegistryItem Create a registry item.
UpdateRegistryItem Update a registry item.
ListRegistryItems List the registry items in an organization.
DeleteRegistryItem Delete a registry item.
CreateModule Create a module under the organization you are currently authenticated to.
UpdateModule Update the documentation URL, description, models, entrypoint, and/or the visibility of a module.
UploadModuleFile Upload a module file.
GetModule Get a module by its ID.
ListModules List the modules under the organization you are currently authenticated to.
CreateKey Create a new API key.
DeleteKey Delete an API key.
RotateKey Rotate an API key.
ListKeys List all keys for the organization that you are currently authenticated to.
RenameKey RenameKey renames an API key and returns its ID and name.
CreateKeyFromExistingKeyAuthorizations Create a new API key with an existing key’s authorizations.
GetAppContent Retrieve the app content for an organization.
GetAppBranding Retrieves the app branding for an organization or app.

Establish a connection

To use the fleet management API, you need to instantiate a ViamClient and then instantiate a AppClient.

You need an API key and API key ID at least Machine operator permissions to use the fleet management API. To get an API key (and corresponding ID), use the web UI to the Viam CLI.


Copy


Copy


Copy

See Use platform APIs from within a module.

Once you have instantiated an AppClient, you can run the following API methods against the AppClient object (named fleet in the examples).

To instantiate an `AppClient` from inside a module, you must authenticate using API keys. You can use the module environment variables `VIAM_API_KEY` and `VIAM_API_KEY_ID` to access credentials.

API

GetUserIDByEmail

Get the ID of a user by email.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateOrganization

Create an organization.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

For more information, see the TypeScript SDK Docs.

ListOrganizations

List the organizations the user is an authorized user of.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetOrganizationsWithAccessToLocation

Get all organizations that have access to a location.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListOrganizationsByUser

List the organizations a user belongs to.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

For more information, see the TypeScript SDK Docs.

GetOrganization

Retrieve the organization object for the requested organization containing the organization’s ID, name, public namespace, and more.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetOrganizationNamespaceAvailability

Check the availability of an organization namespace.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateOrganization

Updates organization details.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteOrganization

Delete an organization.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListOrganizationMembers

List the members and invites of the organization that you are currently authenticated to.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateOrganizationInvite

Create an organization invite and send it by email.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateOrganizationInviteAuthorizations

Update (add or remove) the authorizations attached to an organization invite that has already been created. If an invitation has only one authorization and you want to remove it, delete the invitation instead of using this method.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteOrganizationMember

Remove a member from the organization you are currently authenticated to.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteOrganizationInvite

Delete a pending organization invite to the organization you are currently authenticated to.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ResendOrganizationInvite

Resend a pending organization invite email.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetOrganizationMetadata

Gets the user-defined metadata for an organization.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateOrganizationMetadata

Updates the user-defined metadata for an organization. User-defined metadata is billed as data.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateLocation

Create and name a location under the organization you are currently authenticated to. Optionally, put the new location under a specified parent location.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetLocation

Get a location by its location ID.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateLocation

Change the name of a location and/or assign a parent location to a location.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteLocation

Delete a location.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListLocations

Get a list of all locations under the organization you are currently authenticated to.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ShareLocation

Share a location with an organization.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UnshareLocation

Stop sharing a location with an organization.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

LocationAuth

Get a location’s LocationAuth (location secret or secrets).

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateLocationSecret

Create a new location secret.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteLocationSecret

Delete a location secret.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetLocationMetadata

Get the user-defined metadata for a location.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateLocationMetadata

Update the user-defined metadata for a location.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobot

Get a machine by its ID.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotAPIKeys

Gets the API keys for the machine.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotParts

Get a list of all the parts under a specific machine.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotPart

Get a specific machine part including its part config, part address, and other information.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotPartLogs

Get the logs associated with a specific machine part.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotPartByNameAndLocation

Query a specific robot part by name and location id.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

TailRobotPartLogs

Get an asynchronous iterator that receives live machine part logs.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotPartHistory

Get a list containing the history of a machine part.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateRobotPart

Change the name of and assign an optional new configuration to a machine part. You can only change the name and configuration of the machine part, not the location.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

NewRobotPart

Create a new machine part.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteRobotPart

Delete the specified machine part.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

MarkPartAsMain

Mark a machine part as the main part of a machine.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

MarkPartForRestart

Mark a specified machine part for restart.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateRobotPartSecret

Create a machine part secret.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteRobotPartSecret

Delete a machine part secret.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListRobots

Get a list of all machines in a specified location.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

NewRobot

Create a new machine.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateRobot

Update an existing machine’s name and/or location.

You can change:

Requirements for location changes:

Important

Moving a machine has several important implications:

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteRobot

Delete a specified machine.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotMetadata

Gets the user-defined metadata for a machine.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetRobotPartMetadata

Gets the user-defined metadata for a machine part.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateRobotMetadata

Updates the user-defined metadata for a machine. User-defined metadata is billed as data.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateRobotPartMetadata

Updates the user-defined metadata for a machine part. User-defined metadata is billed as data.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListFragments

Get a list of fragments in the organization you are currently authenticated to.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListMachineFragments

Get a list of top level and nested fragments for a machine, as well as additionally specified fragment IDs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListMachineSummaries

Lists machine summaries for an organization, optionally filtered by fragment IDs, location IDs, and limit.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetFragment

Get a fragment by ID.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateFragment

Create a new private fragment.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateFragment

Update a fragment name and its config and/or visibility.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteFragment

Delete a fragment.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetFragmentHistory

Get fragment history.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

AddRole

Add a role under the organization you are currently authenticated to.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

RemoveRole

Remove a role under the organization you are currently authenticated to.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ChangeRole

Changes an existing role to a new role.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListAuthorizations

List all authorizations (owners and operators) of a specific resource (or resources) within the organization you are currently authenticated to. If no resource IDs are provided, all resource authorizations within the organizations are returned.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

For more information, see the TypeScript SDK Docs.

CheckPermissions

Check if the organization, location, or robot your ViamClient is authenticated to is permitted to perform some action or set of actions on the resource you pass to the method.

Parameters:

Returns:

Raises:

Example:


Copy

Valid arguments for permissions are as follows:

Click to see permissions strings available
"read_organization"
"write_organization"
"read_fragment"
"write_fragment"
"read_location"
"write_location"
"read_location_secret"
"read_robot_secret"
"read_robot"
"read_robot_config"
"read_robot_logs"
"write_robot"
"control_robot"
"read_organization_data_management"
"read_location_data_management"
"read_robot_data_management"
"write_organization_data_management"
"write_location_data_management"
"write_robot_data_management"
"read_robot_history"
"read_mapping_sessions"
"create_maps"
"write_private_registry_item"
"write_public_registry_item"
"read_private_registry_item"
"train_models"
"read_packages"
"write_packages"
"delete_packages"
"configure_database_user"
"get_database_connection"
"create_dataset"
"list_dataset"
"rename_dataset"
"delete_dataset"

Copy

For more information about managing permissions, see Role-Based Access Control.

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

For more information, see the TypeScript SDK Docs.

GetRegistryItem

Get metadata about a registry item (a module, training script, or ML model) by registry item ID.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateRegistryItem

Create a registry item.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateRegistryItem

Update a registry item.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListRegistryItems

List the registry items in an organization.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

DeleteRegistryItem

Delete a registry item.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateModule

Create a module under the organization you are currently authenticated to.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UpdateModule

Update the documentation URL, description, models, entrypoint, and/or the visibility of a module.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

UploadModuleFile

Upload a module file.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

GetModule

Get a module by its ID.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListModules

List the modules under the organization you are currently authenticated to.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

CreateKey

Create a new API key.

Parameters:

Returns:

Raises:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

For more information, see the TypeScript SDK Docs.

DeleteKey

Delete an API key.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

RotateKey

Rotate an API key.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

ListKeys

List all keys for the organization that you are currently authenticated to.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

RenameKey

RenameKey renames an API key and returns its ID and name.

Parameters:

Returns:

Example:


Copy

For more information, see the Go SDK Docs.

CreateKeyFromExistingKeyAuthorizations

Create a new API key with an existing key’s authorizations.

Parameters:

Returns:

Example:


Copy

For more information, see the Python SDK Docs.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetAppContent

Retrieve the app content for an organization.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

GetAppBranding

Retrieves the app branding for an organization or app.

Parameters:

Returns:

Example:


Copy

For more information, see the TypeScript SDK Docs.

Find part ID

To copy the ID of your machine part, select the part status dropdown to the right of your machine’s location and name on the top of its page and click the copy icon next to Part ID:

Find machine ID

To copy the ID of your machine, click the (Actions) button in the upper-right corner of your machine’s page, then click Copy machine ID:

Ask AI

Was this page helpful?

YesNo

Glad to hear it! If you have any other feedback please let us know:

Send

We're sorry about that. To help us improve, please tell us what we can do better:

Send

Thank you!