pydo.actor_limits.update()

Generated on 1 Oct 2026 from pydo version v0.43.0

Usage

client.actor_limits.update(
    actor_id="alice",
    body={
        "overrides": [...],
    },
)
Returns JSONRaises HttpResponseError

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

actor_id string required

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

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.

requests_per_minute string required

Example: 30

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

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "overrides": [
    {
      "category": "LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE",
      "requests_per_minute": "10"
    }
  ]
}

resp = client.actor_limits.update(actor_id="alice", body=req)

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.