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! Go to Solution.
Refer to the MessageWeight attribute of the quota policy
https://docs.apigee.com/api-platform/reference/policies/quota-policy#messageweight
Refer to the MessageWeight attribute of the quota policy
https://docs.apigee.com/api-platform/reference/policies/quota-policy#messageweight
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |