ApifyClient.API.Users.Limits (apify_client v1.0.0)

Copy Markdown View Source

Provides API endpoints related to api/users/limits

Summary

Functions

Get user's limits by ID

Update user's limits by ID

Functions

get(user_id, opts \\ [])

@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, 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(user_id, body, opts \\ [])

@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, 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