dots.v2.genAi.anthropic.keys.byApi_key_uuId().put()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.genAi.anthropic.keys.byApi_key_uuId(api_key_uuId).put(body: ApiUpdateAnthropicAPIKeyInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateAnthropicAPIKeyOutput>

Description

To update an Anthropic API key, send a PUT request to /v2/gen-ai/anthropic/keys/{api_key_uuid}.

Parameters

Path Parameters

api_key_uuId string required

Example: "123e4567-e89b-12d3-a456-426614174000"

API key ID

Request Body

apiKey string optional

Example: "sk-ant-12345678901234567890123456789012"

Anthropic API key

apiKeyUuid string optional

Example: "12345678-1234-1234-1234-123456789012"

API key ID

name string optional

Example: "Production Key"

Name of the key

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.genAi.anthropic.keys
    .byApi_key_uuId("\"123e4567-e89b-12d3-a456-426614174000\"").put({
    apiKey: "\"sk-ant-12345678901234567890123456789012\"",
    apiKeyUuid: "\"12345678-1234-1234-1234-123456789012\"",
    name: "\"Production Key\"",
});

Response Example

Show Response Example
{
  "api_key_info": {
    "created_at": "2023-01-01T00:00:00Z",
    "created_by": "12345",
    "deleted_at": "2023-01-01T00:00:00Z",
    "name": "example name",
    "updated_at": "2023-01-01T00:00:00Z",
    "uuid": "123e4567-e89b-12d3-a456-426614174000"
  }
}

More Information

See /v2/gen-ai/anthropic/keys/{api_key_uuid} 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.