NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Devices → Create Device for User

AI-generated

Summary

Create a new device for a specified user within a selected domain.

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • CreateDevice__path__domain (required) — Domain of the new device
  • CreateDevice__path__user (required) — User ID or identifier for the new device
  • CreateDevice__body — JSON body payload for creating the device

Output shape

a single device object

On success returns the created device resource; on error returns an error envelope

Examples

Example 1: Create a device for a user in a chosen domain using default settings.

Select domain, select user by ID, optionally refresh options, provide JSON body.

Example 2: Create a device with a custom payload while forcing fresh dropdown options.

Enable refreshOptions, set domain and user, supply custom body JSON.

Example 3: Create a device for a user without specifying a body payload.

Select domain and user, leave body empty, optionally refresh options.

Links

Discussion