Users/Usage

Update user's limits by ID

Changed on

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.

put/v2/users/{userId}/limits

Request

  • Base URL
    https://api.apify.com
  • Auth
    • HTTP bearer
    • or API key in query parameter token

Path parameters

userIdstring required
Example:HGzIk8z78YcAPEB

User ID or username of your account, or of the organization your API token belongs to.

Request body

maxMonthlyUsageUsdnumber

If your platform usage in the billing period exceeds the prepaid usage, you will be charged extra. Setting this property you can update your hard limit on monthly platform usage to prevent accidental overage or to limit the extra charges.

dataRetentionDaysinteger

Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. Lear more.

Example request

{
  "maxMonthlyUsageUsd": 300,
  "dataRetentionDays": 90
}

Response

object required

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      endpoint added