---
title: "Create a new slurm nodeset owned by the logged in user."
method: POST
path: "/projects/{project_id}/slurm/{slurm_cluster_id}/nodesets"
tags: ["Slurm Nodesets"]
---

# Create a new slurm nodeset owned by the logged in user.

`POST /projects/{project_id}/slurm/{slurm_cluster_id}/nodesets`

## Request

- Base URL: `https://api.cloud.crusoe.ai/v1`
- URL: `https://api.cloud.crusoe.ai/v1/projects/{project_id}/slurm/{slurm_cluster_id}/nodesets`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/docs/projects/:project_id/slurm/:slurm_cluster_id/nodesets/post.ts> (a function with typed inputs; its response is checked against the schema)

A successful response from this resource will contain the async operation.

## Path parameters

- `project_id` string, required
- `slurm_cluster_id` string, required

## Request body

- SlurmNodesetPostRequest
  - `count` integer, required: Count of nodes in the nodeset.
  - `name` string, required: Name of the nodeset.
  - `subnet_id` string: ID of the subnet.
  - `transport_partition_id` string: ID of the transport partition.
  - `type` string, required: VM type of the nodeset.
  - `vm_ssh_public_key` string: VM SSH public key.

## Response `200`

- AsyncOperationResponse
  - `operation` Operation, required: Individual resources that use Operations should populate the `metadata` field with resource-specific information.
    - `completed_at` string, required
    - `metadata` string, required
    - `operation_id` string, required
    - `result` string
    - `started_at` string, required
    - `state` 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED', required

## Other responses

- `400`: Error Bad Request
- `401`: Error Authentication Failed
- `403`: Error Permissions
- `500`: Error Internal Server

---

[API](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway.md) - [All operations](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b?raw)
