Documentation Index

Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

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

This section describes the request format. The method and URI are as follows:

Method URI
POST /geolocation/v2/quota

Request headers

For information about the headers common to all GeoLocation APIs, see GeoLocation request headers.

Request query parameters

You can use the following query parameters with your request:

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 request example is as follows:

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

This section describes the response format.

Response status codes

For information about the HTTP status codes common to all GeoLocation APIs, see GeoLocation response status codes.

Response example

Upon a successful response, the GeoLocation API call limit type and monthly maximum number of calls will be set, along with a 204 OK status.