dots.v2.actionGateway.actors.byActor_id().limitsSet.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.actionGateway.actors.byActor_id(actor_id).limitsSet.post(body: Set_actor_limits, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Empty_response>

Description

Sets per-minute limits for the listed categories and leaves the others unchanged. A limit may not exceed your team’s current limit for the category (400 otherwise), and 0 blocks every call in the category. The actor does not need to exist yet.

Parameters

Path Parameters

actor_id string required

Example: alice

Actor ID: a session actor_id or a connection user_id, 1 to 64 characters from [A-Za-z0-9._-].

Request Body

overrides array of objects required

Required. Limits to set, at most one per category.

Show child properties
category string required

The category the limit applies to.

One of: LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE, LIMIT_CATEGORY_WEB_FETCH_REQUESTS_PER_MINUTE, LIMIT_CATEGORY_NATIVE_TOOL_CALLS_REQUESTS_PER_MINUTE, LIMIT_CATEGORY_NON_NATIVE_TOOL_CALLS_REQUESTS_PER_MINUTE

requestsPerMinute string required

Example: 30

Calls allowed per minute. 0 blocks every call in the category.

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.actionGateway.actors
    .byActor_id("alice").limitsSet.post({
    overrides: [
        {
            category: "LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE",
            requestsPerMinute: "10",
        },
    ],
});

Response Example

Show Response Example
{}

More Information

See /v2/action-gateway/actors/{actor_id}/limits:set 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.