Usage

Set API key quota

Changed on

Creates or updates a per-key quota limit. The key will be enforced independently of the organization quota.

put/v1beta/quota/keys/{api_key_id}

Request

  • Base URL
    https://api.factify.com
  • URL
    https://api.factify.com/v1beta/quota/keys/{api_key_id}
  • Auth
    HTTP bearer

Path parameters

api_key_idstring required

The API key ID (required).

Request body

limitinteger nullable

The limit for this key. Must be > 0.

organization_idstring nullable

Optional: organization ID. If not provided, uses the caller's organization.

Example request

{
  "organization_id": "org_01h2xcejqtf2nbrexx3vqjhp41"
}

Response

Success

Example response

{
  "quota": {
    "api_key_id": "key_01h2xcejqtf2nbrexx3vqjhp41"
  }
}

Changes

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from 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 required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status