Dynamically Update Quota based on the type of in request

Hi,

I have a public API and a user can hit the API with an image or a PDF(multiple pages).

Ideally, the Quota works on the number of requests, I would like to set a quota limit on the type of the request(image/pdf)

So if the user hits the API with a PDF(10 pages), it should be considered as 10 requests and not 1.

Is there a provision to update the quota based on the type of file?

I am new to Apigee, appreciate the help.

Thanks.

Solved Solved
1 1 112
1 ACCEPTED SOLUTION

1 REPLY 1

Refer to the MessageWeight attribute of the quota policy

https://docs.apigee.com/api-platform/reference/policies/quota-policy#messageweight