NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Domains → Create a Domain

AI-generated

Summary

Create a domain

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • CreateDomain__body — Body for creating a domain

Output shape

a single domain record

Returns the created domain; errors are indicated by HTTP status codes and error details

Examples

Example 1: Create a domain with default options

Leave refreshOptions as false and use the default empty body {}

Example 2: Create a domain forcing cache refresh

Set refreshOptions to true and provide a custom body JSON

Links

Discussion