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

Copy Markdown View Source

Provides API endpoints related to api/users/me/limits

Summary

Functions

Get user's limits

Update user's limits

Functions

get(opts \\ [])

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

Get user's limits

Returns a complete summary of your account's limits. It is the same information you will see on your account's Limits page. The returned data includes the current usage cycle, a summary of your limits, and your current usage.

update(body, opts \\ [])

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

Update user's limits

Updates the account's limits manageable on your account's Limits page. Specifically the: maxMonthlyUsageUsd and dataRetentionDays limits (see request body schema for more details).

Request Body

Content Types: application/json