Provides API endpoints related to api/users/limits
Summary
Functions
@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.
@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