> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/infra-controller/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/infra-controller/_mcp/server.

# Create SpectrumX Partition

POST https://nico-rest-api.nico.svc.cluster.local/v2/org/{org}/nico/spectrumx-partition
Content-Type: application/json

Create a SpectrumX Partition for the org.

Org must have a Tenant entity. User must have authorization role with `TENANT_ADMIN` suffix.

The Tenant must be associated with the Site and hold an Allocation on it. Omit `vni` to let the Site allocate one; a requested `vni` that is already allocated or outside the Site's pool is rejected.

Reference: https://docs.nvidia.com/infra-controller/rest-api-reference/api-reference/spectrum-x-partition/create-spectrumx-partition

## Authentication

- `Authorization` header (bearer token, required) — ``` export JWT_BEARER_TOKEN="<jwt-bearer-token>" # Example org name: "acme-inc export ORG_NAME=<org-name> # Use the JWT bearer token in your API request auth header: curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current ```

## Request

### Path parameters

- `org` (string, required) — Name of the Org

### Body (application/json)

This endpoint expects an object.

- `name` (string, required) — Name of the Partition to create
- `siteId` (string, required) — ID of the Site the Partition should belong to
- `description` (string, optional, nullable) — Optional description of the Partition
- `vni` (integer, optional, nullable) — Requested VXLAN Network Identifier. Omit it to let the Site allocate one from its pool. A requested value that is already allocated or outside that pool is rejected by the Site
- `labels` (map from string to string, optional) — String key-value pairs describing Partition labels. Up to 10 key-value pairs can be specified

## Response

### 201

Created

- `id` (string, required) — Unique UUID v4 identifier for the SpectrumX Partition
- `name` (string, required) — Name of the SpectrumX Partition
- `siteId` (string, required) — ID of the Site the Partition belongs to
- `tenantId` (string, required) — ID of the Tenant that owns the Partition
- `status` (enum, required) — Status of the SpectrumX Partition. A Partition becomes Ready once the Site reports it in inventory
  - Allowed values: `Pending`, `Provisioning`, `Ready`, `Error`, `Deleting`
- `description` (string, optional, nullable) — Description of the SpectrumX Partition
- `site` (object, optional) — Summary of the Site, present when requested through includeRelation
  - `id` (string, optional) — Unique UUID v4 identifier for the Site
  - `name` (string, optional) — Name of the Site
  - `infrastructureProviderId` (string, optional) — ID of the Infrastructure Provider that owns the Site
  - `isSerialConsoleEnabled` (boolean, optional) — Indicates if Serial Console is enabled for the Site by the Provider
  - `isOnline` (boolean, optional) — Indicates if the Site is currently reachable from Cloud
  - `capabilities` (object, optional) — Site capabilities used for feature availability and configuration
    - `nativeNetworking` (boolean, optional) — Whether the Site supports native networking
    - `networkSecurityGroup` (boolean, optional) — Whether the Site supports Network Security Groups
    - `nvLinkPartition` (boolean, optional) — Whether the Site supports NVLink partitioning
    - `flow` (boolean, optional) — Whether the Site supports Flow-based operations
    - `imageBasedOperatingSystem` (boolean, optional) — Whether the Site supports image-based operating system provisioning
    - `vpcSlaac` (boolean, optional) — Whether the latest successfully stored Site configuration inventory reports that Core supports VPCs with SLAAC enabled. False also represents a missing Site configuration or an inventory report that omits the capability. This value is managed by Site configuration inventory and cannot be updated through the Site API.
    - `dpsPowerManagement` (boolean, optional, default: false) — Whether this Site accepts non-empty power resource groups and power profiles for DPS power management. When false, omission and explicit clearing remain allowed.
  - `status` (enum, optional) — Status of the Site
    - Allowed values: `Pending`, `Registered`, `Error`
- `tenant` (object, optional) — Summary of the Tenant, present when requested through includeRelation
  - `org` (string, optional) — Name of the org this tenant belongs to
  - `orgDisplayName` (string, optional, nullable) — Display name of the org the Tenant belongs to
  - `capabilities` (object, optional) — Deprecated compatibility object. The targetedInstanceCreation property is omitted; use Tenant Account siteCapabilities for the authoritative configuration.
    - `targetedInstanceCreation` (boolean, optional, deprecated) — Deprecated in favor of TenantAccount.siteCapabilities. On GET `/tenant/current`, the property is present and true only when every Ready Tenant Account enables TargetedInstanceCreation and no Tenant Site explicitly disables it; otherwise it is omitted. It is also omitted from embedded TenantSummary objects.
  - `deprecations` (list of object, optional) — Deprecation notices for Tenant fields
    - `attribute` (string, optional, nullable) — Name of the attribute that is deprecated. Omitted if queryParam or endpoint is being deprecated.
    - `queryParam` (string, optional, nullable) — Query parameter that is deprecated. Omitted if attribute or endpoint is being deprecated.
    - `endpoint` (string, optional, nullable) — API endpoint that is deprecated. Omitted if attribute or queryParam is being deprecated.
    - `replacedBy` (string, optional, nullable) — Name of the attribute, query parameter, or endpoint that replaces the deprecated item. Omitted if no replacement is available.
    - `takeActionBy` (datetime, optional) — Date/time by which clients should migrate away from the deprecated API surface
    - `notice` (string, optional) — Message describing the deprecation
- `vni` (integer, optional, nullable) — VXLAN Network Identifier for the Partition. Allocated by the Site when the create request omits it
- `labels` (map from string to string, optional) — String key-value pairs describing Partition labels. Up to 10 key-value pairs can be specified
- `statusHistory` (list of object, optional) — Status detail records for the SpectrumX Partition over time
  - `status` (string, optional) — State of the associated entity at a particular time
  - `message` (string, optional, nullable) — Description of the state and cause/remedy in case of error
  - `created` (datetime, optional) — Date/time when the associated entity assumed the status
  - `updated` (datetime, optional) — Date/time when the associated entity was last observed with this status
- `created` (datetime, optional) — ISO datetime string for when the SpectrumX Partition was created
- `updated` (datetime, optional) — ISO datetime string for when the SpectrumX Partition was last updated

## Errors

### 400 Bad Request Error

Error response when request data cannot be validated

- `source` (enum, optional) — Source of the error.
  - Allowed values: `nico`
- `message` (string, optional) — Message describing the error
- `data` (object, optional, nullable) — Additional data about the error

### 403 Forbidden Error

Error response when user is not authorized to call an endpoint or retrieve/modify objects

- `source` (enum, optional) — Source of the error.
  - Allowed values: `nico`
- `message` (string, optional) — Message describing the error
- `data` (object, optional, nullable) — Additional data about the error

### 409 Conflict Error

A SpectrumX Partition with the requested name already exists for the Tenant on the Site. The response data carries the conflicting Partition ID.

- `source` (enum, optional) — Source of the error.
  - Allowed values: `nico`
- `message` (string, optional) — Message describing the error
- `data` (object, optional, nullable) — Additional data about the error

## Examples

**Request**

```json
{
  "name": "east-west-net",
  "siteId": "69dae3c8-3554-4a1f-b391-858c6dc47fff",
  "labels": {
    "environment": "production",
    "team": "devops"
  }
}
```

**Response**

```json
{
  "id": "8e6f2a1c-9b3d-4e5f-a6b7-c8d9e0f1a2b3",
  "name": "east-west-net",
  "siteId": "60189e9c-7d12-438c-b9ca-6998d9c364b1",
  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
  "status": "Pending",
  "description": "SpectrumX Partition for east-west training traffic",
  "vni": 10200,
  "labels": {
    "environment": "production",
    "team": "devops"
  },
  "statusHistory": [
    {
      "status": "Pending",
      "message": "SpectrumX Partition request received, pending creation on Site",
      "created": "2019-08-24T14:15:22Z",
      "updated": "2019-08-24T14:15:22Z"
    }
  ],
  "created": "2019-08-24T14:15:22Z",
  "updated": "2019-08-24T14:15:22Z"
}
```

**SDK Code**

```python Example 1
import requests

url = "https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition"

payload = {
    "name": "east-west-net",
    "siteId": "69dae3c8-3554-4a1f-b391-858c6dc47fff",
    "labels": {
        "environment": "production",
        "team": "devops"
    }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Example 1
const url = 'https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"name":"east-west-net","siteId":"69dae3c8-3554-4a1f-b391-858c6dc47fff","labels":{"environment":"production","team":"devops"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example 1
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition"

	payload := strings.NewReader("{\n  \"name\": \"east-west-net\",\n  \"siteId\": \"69dae3c8-3554-4a1f-b391-858c6dc47fff\",\n  \"labels\": {\n    \"environment\": \"production\",\n    \"team\": \"devops\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example 1
require 'uri'
require 'net/http'

url = URI("https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"east-west-net\",\n  \"siteId\": \"69dae3c8-3554-4a1f-b391-858c6dc47fff\",\n  \"labels\": {\n    \"environment\": \"production\",\n    \"team\": \"devops\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Example 1
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"east-west-net\",\n  \"siteId\": \"69dae3c8-3554-4a1f-b391-858c6dc47fff\",\n  \"labels\": {\n    \"environment\": \"production\",\n    \"team\": \"devops\"\n  }\n}")
  .asString();
```

```php Example 1
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition', [
  'body' => '{
  "name": "east-west-net",
  "siteId": "69dae3c8-3554-4a1f-b391-858c6dc47fff",
  "labels": {
    "environment": "production",
    "team": "devops"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Example 1
using RestSharp;

var client = new RestClient("https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"east-west-net\",\n  \"siteId\": \"69dae3c8-3554-4a1f-b391-858c6dc47fff\",\n  \"labels\": {\n    \"environment\": \"production\",\n    \"team\": \"devops\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Example 1
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "east-west-net",
  "siteId": "69dae3c8-3554-4a1f-b391-858c6dc47fff",
  "labels": [
    "environment": "production",
    "team": "devops"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/spectrumx-partition")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```