# `ApifyClient.API.Users.Limits`
[🔗](https://github.com/social-growth-studio/apify-client-ex/blob/v1.0.0/lib/apify_client/api/users/limits.ex#L1)

Provides API endpoints related to api/users/limits

# `get`

```elixir
@spec get(user_id :: String.t(), opts :: keyword()) ::
  {:ok, ApifyClient.Schemas.AccountLimits.t()} | {:error, ApifyClient.Error.t()}
```

Get user's limits by ID

Returns the same summary of limits as [Get user's limits](https://docs.apify.com/api/v2/users-me-limits-get), for an account given by
its ID or username.

You can only access your own account, or the organization your API token belongs to. API tokens with
limited permissions can't use this endpoint.

# `update`

```elixir
@spec update(
  user_id :: String.t(),
  body :: map() | ApifyClient.Schemas.UpdateLimitsRequest.t(),
  opts :: keyword()
) :: {:ok, map() | nil} | {:error, ApifyClient.Error.t()}
```

Update user's limits by ID

Updates the same limits as [Update user's limits](https://docs.apify.com/api/v2/users-me-limits-put), for an account given by its ID
or username.

You can only access your own account, or the organization your API token belongs to. API tokens with
limited permissions can't use this endpoint.
For an organization, you also need the permission to manage the organization.

## Request Body

**Content Types**: `application/json`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
