Disable Geolocation

Overview

Disables geolocation functionality in Apinizer. After disabling, geolocation features will no longer be available.

Endpoint

PUT /apiops/settings/geolocation/disable

Authentication

Requires a Personal API Access Token with admin privileges.

Authorization: Bearer YOUR_TOKEN

Request

Headers

Header Value Required
Authorization Bearer {token} Yes

Path Parameters

None.

Request Body

None.

Response

Success Response (200 OK)

{
  "success": true,
  "deploymentResult": {
    "success": true,
    "message": "Deployment completed successfully",
    "environmentResults": [
      {
        "environmentName": "production",
        "success": true,
        "message": "Deployed successfully"
      }
    ]
  }
}

Error Response (401 Unauthorized)

{
  "error": "unauthorized_client",
  "error_description": "User does not have privilege to access admin settings!"
}

cURL Example

curl -X PUT \
  "https://demo.apinizer.com/apiops/settings/geolocation/disable" \
  -H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Admin Only:
    • This endpoint requires admin privileges
    • Only sysAdmin users can disable geolocation
  • Automatic Deployment:
    • Setting is automatically deployed to all environments
    • Deployment results are returned in the response