Macrometa Administration API

The Administration API from Macrometa — 36 operation(s) for administration.

Operations 60

GET /_api/tenants Fetch list of tenants #
POST /_api/tenant Create Tenant #
DELETE /_api/tenant/{tenant} Remove Tenant #
GET /_api/tenant/{tenant} List details of the tenant #
PATCH /_api/tenant/{tenant} Modify Tenant #
GET /_api/plan Fetch list of billing plans #
POST /_api/plan Create billing plan #
GET /_api/plan/{name} List details of the billing plan #
PATCH /_api/plan/{name} Modify billing plan #
DELETE /_api/plan/{name} Remove billing plan #
POST /_api/plan/update Update tenant billing plan #
PUT /_api/billing/paymentsettings Update payment settings #
GET /_api/limits/defaults Fetch the default limits for tenants #
PUT /_api/limits/defaults Set the default tenant limits #
PATCH /_api/limits/defaults Update default tenant limits #
DELETE /_api/limits/defaults Reset default tenant limits #
GET /_api/limits/defaults/{service} Fetch the default limits for tenants #
GET /_api/limits/enable Get limits configured #
POST /_api/limits/enable Set limits configured #
GET /_api/limits/tenant/{tenant} Fetch the limits for a tenant #
PUT /_api/limits/tenant/{tenant} Set the tenant limits #
PATCH /_api/limits/tenant/{tenant} Update tenant limit #
DELETE /_api/limits/tenant/{tenant} Reset tenant limits #
GET /_api/limits/tenant/{tenant}/{service} Get the limits for a tenant service #
GET /_api/limits/plan/{attribution}/{name} Get the limits for a billing plan #
PUT /_api/limits/plan/{attribution}/{name} Set the billing plan limits #
PATCH /_api/limits/plan/{attribution}/{name} Update billing plan limits #
DELETE /_api/limits/plan/{attribution}/{name} Reset billing plan limits #
GET /_api/limits/plan/{attribution}/{name}/{service} Get the service limits for a billing plan #
DELETE /_api/features/tenant/{tenant} Reset features for a tenant #
GET /_api/features/tenant/{tenant} Get features for a tenant #
POST /_api/features/tenant/{tenant} Set features for a tenant #
PUT /_api/features/tenant/{tenant} Update features for a tenant #
POST /_api/tenant/{tenant}/datacenter/{datacenter} Add data center to the tenant #
DELETE /_api/tenant/{tenant}/datacenter/{datacenter} Remove data center from the tenant. #
PUT /_api/tenant/{tenant}/datacenter/{datacenter} Reconcile tenant from given data center #
GET /_api/tenant/{tenant}/datacenter/status Get the current sync status of a tenant or fabric #
POST /_api/tenant/datacenter/{datacenter}/syncall Add data center to all fabrics from all tenants #
PUT /_api/tenant/{tenant}/fabric/{fabric}/publish-local-collections Enable publishing changes to local collections #
DELETE /_api/tenant/{tenant}/fabric/{fabric}/publish-local-collections Disable publishing changes to local collections #
PUT /_api/tenant/{tenant}/fabric/{fabric}/accept-local-collections-updates Enable accepting updates to local collections #
DELETE /_api/tenant/{tenant}/fabric/{fabric}/accept-local-collections-updates Disable accepting updates to local collections #
PUT /_fabric/{fabric}/_api/collection/{collection-name}/compact Compact Collection #
DELETE /_fabric/{fabric}/_api/events Remove event #
POST /_fabric/{fabric}/_api/events Create event #
GET /_fabric/{fabric}/_api/events Lookup events for a tenant and fabric #
GET /_fabric/{fabric}/_api/metrics/names Get metrics names #
POST /_fabric/{fabric}/_api/metrics/query Query user metrics #
POST /_api/repair/all Fixes streams settings for all tenants and fabrics #
POST /_api/repair/tenant/{tenant} Fixes streams settings for a specific tenant and its fabrics #
POST /_api/repair/check Check if regions are in sync #
POST /_api/repair/sync Synchronize global collections that are experiencing data discrepancies between regions #
POST /_api/repair/sync/priority/{priority} Set sync priority #
POST /_api/repair/sync/cancel Cancel sync operation #
POST /_api/_admin/_billing/usage/hourly Generates hourly usage data. #
POST /_api/_admin/_billing/usage/daily Generates daily usage data for billing. #
POST /_api/_admin/_billing/usage/federation Generates aggregated usage data for billing. #
POST /_api/_admin/_billing/usage/report Upload usage data to Stripe for billing invoice. #
GET /_api/_admin/_billing/usage/missing Returns the list of missing usage records of tenants. #
POST /_api/_admin/_billing/usage/missing/generate Generate missing usage records. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/macrometa-administration-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

macrometa-administration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Macrometa API Reference Activity Metrics Administration API
  version: 0.17.17
  description: API reference for the Macrometa Global Data Network.
  license:
    name: Macrometa License, Version 2.0
servers:
- url: https://api-play.paas.macrometa.io
  description: GDN API
host: api-play.paas.macrometa.io
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Administration
paths:
  /_api/tenants:
    get:
      description: 'Fetch a list of tenants in the system.


        **Note**: Requires *administrator* permissions.'
      operationId: ReturnListOfTenants
      responses:
        '200':
          description: Successfully fetched tenants.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/administration_tenants_get_rc_200'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Fetch list of tenants
      tags:
      - Administration
  /_api/tenant:
    post:
      description: 'Create a new tenant.


        **Note**: Requires *administrator* permissions.'
      operationId: CreateTenant(requiresSuperuserPrivileges)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tenant_create'
        required: true
      responses:
        '201':
          description: Successfully created tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/administration_tenant_create_rc_201'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '400':
          description: Failed due to missing or malformed data. Verify that all parameters are complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_400'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '409':
          description: Failed because tenant already exists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_409'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Create Tenant
      tags:
      - Administration
  /_api/tenant/{tenant}:
    delete:
      description: 'Remove the tenant. The system tenant _mm account cannot remove.


        **Note**: Requires *administrator* permissions.'
      operationId: RemoveTenant(requiresSuperuserPrivileges)
      parameters:
      - description: The tenant name to remove. The main default system tenant *_mm* cannot remove.
        in: path
        name: tenant
        required: true
        schema:
          type: string
          format: string
      responses:
        '202':
          description: Successfully removed tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/administration_tenant_delete_rc_200'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '400':
          description: Failed due to missing or malformed data. Verify that all parameters are complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_400'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Remove Tenant
      tags:
      - Administration
    get:
      description: 'Fetch information about the tenant.


        **Note**: Requires *administrator* permissions.'
      operationId: ListDetailsOfTenant
      parameters:
      - description: The tenant name for whom we want to fetch info.
        in: path
        name: tenant
        required: true
        schema:
          type: string
          format: string
      responses:
        '200':
          description: Successfully fetched tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/get_tenant_example_rc_200'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: List details of the tenant
      tags:
      - Administration
    patch:
      description: 'Update a tenant.


        **Note**: Requires *administrator* permissions.'
      operationId: ModifyTenant
      parameters:
      - description: The name of the tenant.
        in: path
        name: tenant
        required: true
        schema:
          type: string
          format: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tenant_modify'
        required: true
      responses:
        '200':
          description: Successfully updated tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tenant_modify_example_rc_200'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '400':
          description: Failed due to missing or malformed data. Verify that all parameters are complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_400'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Modify Tenant
      tags:
      - Administration
  /_api/plan:
    get:
      description: 'Fetch a list of billing plans.


        **Note**: Requires *administrator* permissions.'
      operationId: GetListOfPlans
      responses:
        '201':
          description: Successfully fetched billing plans.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_plan_list_rc_200'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Fetch list of billing plans
      tags:
      - Administration
    post:
      description: 'Create a new billing plan.


        **Note**: Requires *administrator* permissions.'
      operationId: CreatePlan
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/plan_create'
        required: true
      responses:
        '201':
          description: Successfully created billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/plan_201_billing'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '400':
          description: Failed due to missing or malformed data. Verify that all parameters are complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_400'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '409':
          description: Failed becasue billing plan already exists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_409'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Create billing plan
      tags:
      - Administration
  /_api/plan/{name}:
    get:
      description: Fetch information about a billing plan.
      operationId: ListDetailsOfPlan
      parameters:
      - description: The billing plan name for which we want to fetch info.
        in: path
        name: name
        required: true
        schema:
          type: string
          format: string
      responses:
        '200':
          description: Successfully fetched details of the billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/plan_201_billing'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: List details of the billing plan
      tags:
      - Administration
    patch:
      description: Update the billing plan.
      operationId: ModifyPlan
      parameters:
      - description: The name of the billing plan to modify.
        in: path
        name: name
        required: true
        schema:
          type: string
          format: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/plan_modify'
        required: true
      responses:
        '200':
          description: Successfully updated billing plan data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/plan_modify'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '400':
          description: Failed due to missing or malformed data. Verify that all parameters are complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_400'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Modify billing plan
      tags:
      - Administration
    delete:
      description: Remove an existing billing plan.
      operationId: RemovePlan
      parameters:
      - description: The billing plan name to remove.
        in: path
        name: name
        required: true
        schema:
          type: string
          format: string
      responses:
        '202':
          description: Successfully removed billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/plan_201_billing'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Remove billing plan
      tags:
      - Administration
  /_api/plan/update:
    post:
      description: 'Update the billing plan for a tenant.


        **Note**: If tenant name is not specified, the tenant invoking the API is used to update billing plan.'
      operationId: UpdateTenantPlan
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/update_tenant_plan'
        required: true
      responses:
        '200':
          description: Successfully updated billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tenant_update_plan_example_rc_200'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '400':
          description: Failed due to missing or malformed data. Verify that all parameters are complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_400'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_403'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '404':
          description: Failed to find specified billing plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_404'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Update tenant billing plan
      tags:
      - Administration
  /_api/billing/paymentsettings:
    put:
      description: "Update payment settings for given tenant.\n\n **Note**: This API is not applicable for system tenants `_mm` and `demo`."
      operationId: UpdatePaymentSettings
      parameters:
      - description: Tenant name. *If not set it uses the tenant invoking the request.*
        in: header
        name: tenant
        schema:
          type: string
          format: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Payment_Update'
        required: true
      responses:
        '200':
          description: Successfully updated payment settings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Billing_Code_200'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '400':
          description: Failed due to missing or malformed data. Verify that all parameters are complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Billing_Code_400'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
      summary: Update payment settings
      tags:
      - Administration
  /_api/limits/defaults:
    get:
      description: Fetch the default limits for tenants.
      operationId: GetDefaultTenantLimits
      responses:
        '200':
          description: Successfully fetched billing plan limits.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: HTTP response code.
                    type: integer
                    example: 200
                  error:
                    description: Flag if there is an error in response. *False* for this response.
                    type: boolean
                    example: false
                  result:
                    $ref: '#/components/schemas/tenant_limits_value'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '401':
          description: Failed because you do not have administrator permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_example_rc_401'
          headers:
            x-gdn-region:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-region'
            x-gdn-requestid:
              schema:
                $ref: '#/components/schemas/headers/x-gdn-requestid'
        '403':
          description: Failed to validate because you do not have access to the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/

# --- truncated at 32 KB (223 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/macrometa/refs/heads/main/openapi/macrometa-administration-api-openapi.yml