setQuota

Prev Next

Available in Classic and VPC

Set the GeoLocation API call limit type and maximum number of calls per month. It takes about a minute for the settings to be reflected.

Request

The following describes the request format for the endpoint. The request format is as follows:

Method URI
POST /quota

Request headers

For headers common to GeoLocation APIs, see GeoLocation request headers.

Request query parameters

The following describes the parameters.

Field Type Required Description
quota String Required Type the type of limit to set and the maximum number of calls per month
  • If you want an unlimited limit, enter unlimit
  • If you want to limit the monthly usage limit, enter

Request example

The following is a sample request.

curl --location --request POST 'https://geolocation.apigw.ntruss.com/geolocation/v2/quota
?quota=100'
--header 'x-ncp-apigw-timestamp: {Timestamp}'
--header 'x-ncp-iam-access-key: {Access Key}'
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

The following describes the response format.

Response status codes

The following describes the response status codes. For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

HTTP status code Code Message Description
204 - OK (No Content) Request succeeded
400 131001 Invalid Quota Invalid limit settings
400 131002 Internal Server Error GeoLocation server error
  • Solution: Try again after a while, or contact Support if the issue persists
400 131004 Subscription Required GeoLocation service subscription required
  • Solution: Subscribe to the GeoLocation service from the Services > Application Services > GeoLocation > Subscription menu of the NAVER Cloud Platform console
404 - Not Found Resource not found
500 - Internal Server Error Internal server error

Response example

The following is a sample response.

Normal response

HTTP Status : 204

Error response

{
    "error": {
        "errorCode": 130001,
        "message": "Invalid Quota",
        "details": null
    }
}