MENU
      setQuota

        setQuota


        Article summary

        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:

        MethodURI
        POST/quota

        Request headers

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

        Request query parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        quotaStringRequiredType 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}'
        Curl

        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 codeCodeMessageDescription
        204-OK (No Content)Request succeeded
        400131001Invalid QuotaInvalid limit settings
        400131002Internal Server ErrorGeoLocation server error
        • Solution: Try again after a while, or contact Support if the issue persists
        400131004Subscription RequiredGeoLocation 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 FoundResource not found
        500-Internal Server ErrorInternal server error

        Response example

        The following is a sample response.

        Normal response

        HTTP Status : 204
        Plain text

        Error response

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

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.