dots.v2.dedicatedInferences.byDedicated_inference_id().patch()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.dedicatedInferences.byDedicated_inference_id(dedicated_inference_id).patch(body: Dedicated_inference_update_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithDedicated_inference_PatchResponse>

Description

Update an existing Dedicated Inference. Send a PATCH request to /v2/dedicated-inferences/{dedicated_inference_id} with updated spec and/or access_tokens. Status will move to updating and return to active when done.

Parameters

Path Parameters

dedicated_inference_id string required

Example: 6b5c619c-359c-44ca-87e2-47e98170c01d

A unique identifier for a Dedicated Inference instance.

Request Body

spec object optional

Structured configuration for a Dedicated Inference deployment.

Show child properties
version integer required

Example: 1

Spec version.

name string required

Example: new-dedicated-inference

Name of the Dedicated Inference. Must be unique within the team.

Max length: 255

region string required

DigitalOcean region where the Dedicated Inference is hosted.

One of: atl1, nyc2, tor1

vpc object required
Show child properties
uuid string required

Example: 997615ce-132d-4bae-9270-9ee21b395e5d

VPC UUID for the Dedicated Inference.

enablePublicEndpoint boolean required

Whether to expose a public LLM endpoint.

modelDeployments array of objects required

At least one model deployment is required.

Show child properties
modelId string optional

Used to identify an existing deployment when updating; empty means create new.

modelSlug string optional

Example: mistral/mistral-7b-instruct-v3

Model identifier (e.g. Hugging Face slug).

modelProvider string optional

Example: hugging_face

Model provider.

workloadConfig object optional

Workload-specific configuration (e.g. ISL/OSL in future).

accelerators array of objects optional

Accelerator configuration for this deployment.

Show child properties
scale integer required

Example: 1

Number of accelerator instances.

Min: 1

type string required

Example: prefill_decode

Accelerator type (e.g. prefill_decode).

acceleratorSlug string required

Example: gpu-mi300x1-192gb

DigitalOcean GPU slug.

status string optional read-only

Current state of the Accelerator.

One of: new, provisioning, active

accessTokens object optional

Provider tokens for model access (e.g. gated Hugging Face models).

Show child properties
huggingFaceToken string optional

Example: $HF_TOKEN

Hugging Face token required for gated models.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.dedicatedInferences
    .byDedicated_inference_id("6b5c619c-359c-44ca-87e2-47e98170c01d").patch({
    spec: {
        version: 1,
        name: "new-dedicated-inference",
        region: "atl1",
        vpc: {
            uuid: "997615ce-132d-4bae-9270-9ee21b395e5d",
        },
        enablePublicEndpoint: true,
        modelDeployments: [],
    },
    accessTokens: {
        huggingFaceToken: "$HF_TOKEN",
    },
});

Response Example

Show Response Example
{
  "dedicated_inference": {
    "id": "6b5c619c-359c-44ca-87e2-47e98170c01d",
    "status": "active",
    "region": "atl1",
    "vpc_uuid": "997615ce-132d-4bae-9270-9ee21b395e5d",
    "spec": {
      "version": 1,
      "name": "new-dedicated-inference",
      "region": "atl1",
      "enable_public_endpoint": true,
      "model_deployments": []
    },
    "pending_deployment_spec": {
      "id": "7c6d729d-360d-44db-88e3-58e98281d12e",
      "version": 1,
      "name": "new-dedicated-inference",
      "status": "provisioning",
      "enable_public_endpoint": true,
      "model_deployments": [],
      "created_at": "2024-01-09T20:44:32Z",
      "updated_at": "2024-01-09T20:44:32Z"
    },
    "endpoints": {
      "public_endpoint_fqdn": "https://b4bfug4jc41kts2ro54if91eo-public-dedicated-inference.do-infra.ai",
      "private_endpoint_fqdn": "https://b4bfug4jc41kts2ro54if91eo-private-dedicated-inference.do-infra.ai"
    },
    "created_at": "2024-01-09T20:44:32Z",
    "updated_at": "2024-01-09T20:44:32Z"
  }
}

More Information

See /v2/dedicated-inferences/{dedicated_inference_id} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.