PATCH
/
v1
/
accounts
/
{account_id}
/
nodePools
/
{node_pool_id}
curl --request PATCH \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/nodePools/{node_pool_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "displayName": "<string>",
  "minNodeCount": 123,
  "maxNodeCount": 123,
  "overprovisionNodeCount": 123,
  "eksNodePool": {
    "nodeRole": "<string>",
    "instanceType": "<string>",
    "spot": true,
    "nodeGroupName": "<string>",
    "subnetIds": [
      "<string>"
    ],
    "zone": "<string>",
    "placementGroup": "<string>",
    "launchTemplate": "<string>"
  },
  "fakeNodePool": {
    "machineType": "<string>",
    "numNodes": 123,
    "serviceAccount": "<string>"
  },
  "annotations": {}
}'
{
  "name": "<string>",
  "displayName": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "minNodeCount": 123,
  "maxNodeCount": 123,
  "overprovisionNodeCount": 123,
  "eksNodePool": {
    "nodeRole": "<string>",
    "instanceType": "<string>",
    "spot": true,
    "nodeGroupName": "<string>",
    "subnetIds": [
      "<string>"
    ],
    "zone": "<string>",
    "placementGroup": "<string>",
    "launchTemplate": "<string>"
  },
  "fakeNodePool": {
    "machineType": "<string>",
    "numNodes": 123,
    "serviceAccount": "<string>"
  },
  "annotations": {},
  "state": "STATE_UNSPECIFIED",
  "status": {
    "code": "OK",
    "message": "<string>"
  },
  "nodePoolStats": {
    "nodeCount": 123,
    "ranksPerNode": 123,
    "environmentCount": 123,
    "environmentRanks": 123,
    "batchJobCount": {},
    "batchJobRanks": {}
  },
  "updateTime": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

The Account Id

node_pool_id
string
required

The Node Pool Id

Body

application/json
The properties of the NodePool being updated. `node_pool.name` must be populated with the updated resource's name.

The body is of type object.

Response

200 - application/json
A successful response.

The response is of type object.