setQuota
- Print
- PDF
setQuota
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
In GeoLocation, you can change the monthly limit for calls and monthly maximum number of calls. It takes about 1 minute for changes to be applied.
Requests
API URL
POST https://geolocation.apigw.ntruss.com/geolocation/v2/quota?quota=2000
Request headers
Header | Description |
---|---|
x-ncp-apigw-timestamp | This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC. If the time difference compared to the APIGW server is more than 5 minutes, the request is considered invalid.x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-iam-access-key | This is the Access Key ID issued by NAVER CLOUD PLATFORM portal.x-ncp-iam-access-key:{Sub Account Access Key} |
x-ncp-apigw-signature-v2 | This is the signature encrypted Access Key ID and Secret Key.x-ncp-apigw-signature-v2:{API Gateway Signature} |
Request parameters
Parameter | Required | Type | Restrictions | Description |
---|---|---|---|---|
quota | Yes | String | "unlimit", or the desired values to limit (e.g., 100) | For unlimited calls, "unlimit" should be entered. If you want to set a monthly limit for use, the desired maximum number of calls should be entered. |
Responses
Response statuses
HTTP Status | description |
---|---|
204 | OK (No Content) |
404 | Not Found |
500 | Internal Server Error |
Example
Normal response
HTTP Status : 204
Error response
{
"error": {
"errorCode": 130001,
"message": "Invalid Quota",
"details": null
}
}
Error codes
Error code | Response message | Description |
---|---|---|
130001 | Invalid Quota | This error occurs when an invalid quota is set. |
131002 | Internal Server Error | This occurs when there is a GeoLocation server error. If the problem persists, please contact Support > Contact Us. |
131004 | Subscription Required | Using the NAVER CLOUD PLATFORM console, go to AI·NAVER API > GeoLocation > Subscription to request use of GeoLocation services. |
For other error codes, please see NAVER CLOUD PLATFORM API > Handle error.
Was this article helpful?