Macrometa Collections API

The Collections API from Macrometa — 10 operation(s) for collections.

Operations 14

GET /_fabric/{fabric}/_api/collection List all collections #
POST /_fabric/{fabric}/_api/collection Create collection #
DELETE /_fabric/{fabric}/_api/collection/{collection-name} Remove collection #
GET /_fabric/{fabric}/_api/collection/{collection-name} Get the information about collection #
GET /_fabric/{fabric}/_api/collection/{collection-name}/workflows Get workflows #
POST /_fabric/{fabric}/_api/collection/{collection-name}/workflows Create a workflow #
DELETE /_fabric/{fabric}/_api/collection/{collection-name}/workflows/{workflow-name} Remove workflow #
GET /_fabric/{fabric}/_api/collection/{collection-name}/metadata Retrieve additional collection metadata #
PUT /_fabric/{fabric}/_api/collection/{collection-name}/metadata Update collection metadata #
PUT /_fabric/{fabric}/_api/collection/{collection-name}/reload Truncate and reload data #
GET /_fabric/{fabric}/_api/collection/{collection-name}/count Get number of documents in a collection #
GET /_fabric/{fabric}/_api/collection/{collection-name}/figures Return figures of a collection #
PUT /_fabric/{fabric}/_api/collection/{collection-name}/truncate Truncate collection #
PUT /_fabric/{fabric}/_api/collection/{collection-name}/properties Update collection properties #

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-collections-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-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Macrometa API Reference Activity Metrics Collections 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: Collections
paths:
  /_fabric/{fabric}/_api/collection:
    get:
      description: Fetch the list of all collections.
      operationId: handleCommandGet
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      - description: Whether or not system collections should be excluded from the result.
        in: query
        name: excludeSystem
        required: false
        schema:
          type: boolean
          default: true
      responses:
        '200':
          description: Successfully fetched collections.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_collection_get_http_examples_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'
        '404':
          description: Failed to find specified fabric.
          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 all collections
      tags:
      - Collections
    post:
      description: Create collection.
      operationId: handleCommandPost:CreateCollection
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/fabric_collection_validate'
        required: true
      responses:
        '200':
          description: Successfully created collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_collection_http_200_help'
          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'
        '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 fabric.
          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: Create collection
      tags:
      - Collections
  /_fabric/{fabric}/_api/collection/{collection-name}:
    delete:
      description: Remove the collection.
      operationId: handleCommandDelete:collection
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      - description: The name of the collection to remove.
        in: path
        name: collection-name
        required: true
        schema:
          type: string
          format: string
      - description: Whether or not the collection to remove is a system collection. This parameter must be set to *true* in order to remove system collections.
        in: query
        name: isSystem
        required: false
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: Successfully removed collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_collection_post_http_examples_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'
        '404':
          description: Failed to find specified collection.
          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 collection
      tags:
      - Collections
    get:
      description: Fetch the information about collection.
      operationId: handleCommandGet:collectionGetProperties
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      - description: The name of the collection.
        in: path
        name: collection-name
        required: true
        schema:
          type: string
          format: string
      responses:
        '200':
          description: Successfully fetched collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_collection_get_collection_name_http_examples_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'
        '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 collection.
          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: Get the information about collection
      tags:
      - Collections
  /_fabric/{fabric}/_api/collection/{collection-name}/workflows:
    get:
      description: Retrieve details of assigned workflows to a collection.
      parameters:
      - $ref: '#/components/parameters/Fabric'
      - $ref: '#/components/parameters/Collection'
      summary: Get workflows
      tags:
      - Collections
      operationId: getWorkflows
      responses:
        '200':
          description: Successfully fetched the workflows assigned to the collection.
          content:
            application/json:
              schema:
                title: WorkflowsResponse
                allOf:
                - $ref: '#/components/schemas/ResponseBase'
                - type: object
                  properties:
                    result:
                      type: array
                      items:
                        $ref: '#/components/schemas/WorkflowEntity'
          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 to authenticate the request.
          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'
        '404':
          description: Failed to find specified collection.
          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'
    post:
      description: Create a new workflow to an external data source or target from an existing collection.
      summary: Create a workflow
      tags:
      - Collections
      parameters:
      - $ref: '#/components/parameters/Fabric'
      - $ref: '#/components/parameters/Collection'
      operationId: createWorkflow
      requestBody:
        description: Workflow definition.
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '201':
          description: Successfully created the workflow.
          content:
            application/json:
              schema:
                title: WorkflowResponse
                allOf:
                - $ref: '#/components/schemas/ResponseBase'
                - type: object
                  properties:
                    result:
                      $ref: '#/components/schemas/WorkflowEntity'
          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 to authenticate the request.
          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'
  /_fabric/{fabric}/_api/collection/{collection-name}/workflows/{workflow-name}:
    delete:
      description: Remove a workflow from a collection.
      summary: Remove workflow
      tags:
      - Collections
      parameters:
      - $ref: '#/components/parameters/Fabric'
      - $ref: '#/components/parameters/Collection'
      - $ref: '#/components/parameters/Workflow'
      operationId: deleteWorkflow
      responses:
        '200':
          description: Successfully deleted the workflow.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedResponse'
          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 to authenticate the request.
          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'
        '404':
          description: Failed to find specified collection or workflow.
          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'
  /_fabric/{fabric}/_api/collection/{collection-name}/metadata:
    parameters:
    - $ref: '#/components/parameters/Fabric'
    - $ref: '#/components/parameters/Collection'
    get:
      description: Retrieve metadata related to the collection.
      summary: Retrieve additional collection metadata
      tags:
      - Collections
      operationId: getMetadata
      responses:
        '200':
          description: Successfully retrieved metadata of a collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionMetadataResponse'
          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 to authenticate the request.
          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'
        '404':
          description: Failed to find the metadata entry for the collection.
          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'
    put:
      description: Update metadata related to the collection.
      summary: Update collection metadata
      tags:
      - Collections
      operationId: updateMetadata
      requestBody:
        description: Metadata to update. Not all fields of metadata entity can be updated. You can only update the object properties of workflows.
        required: true
        content:
          application/json:
            schema:
              type: object
              title: CollectionMetadataUpdateEntity
              properties:
                workflows:
                  type: array
                  items:
                    $ref: '#/components/schemas/WorkflowMetadataEntity'
      responses:
        '200':
          description: Successfully updated metadata of the collection.
          content:
            application/json:
              schema:
                type: object
                title: CollectionMetadataUpdateResponse
                allOf:
                - $ref: '#/components/schemas/ResponseBase'
                - type: object
                  properties:
                    result:
                      type: object
                      title: CollectionMetadataUpdateResponseEntity
                      properties:
                        _key:
                          type: string
                          example: 123456
                        _rev:
                          type: string
                          example: _3er45_
          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 to authenticate the request.
          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'
        '404':
          description: Failed to find the metadata entry for the collection.
          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'
  /_fabric/{fabric}/_api/collection/{collection-name}/reload:
    put:
      description: Truncate the collection and reload data from source connection.
      summary: Truncate and reload data
      tags:
      - Collections
      operationId: reloadCollection
      parameters:
      - $ref: '#/components/parameters/Fabric'
      - $ref: '#/components/parameters/Collection'
      responses:
        '200':
          description: Successfully reloaded collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBase'
          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 to authenticate the request.
          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'
        '404':
          description: Failed to find specified collection.
          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'
  /_fabric/{fabric}/_api/collection/{collection-name}/count:
    get:
      description: 'Retrieve the count of documents within the collection.


        **Note**: This always loads the collection into memory.'
      operationId: handleCommandGet:getCollectionCount
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      - description: The name of the collection.
        in: path
        name: collection-name
        required: true
        schema:
          type: string
          format: string
      responses:
        '200':
          description: Successfully fetched number of documents in a collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_collection_get_count_examples_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'
        '404':
          description: Failed to find specified collection.
          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: Get number of documents in a collection
      tags:
      - Collections
  /_fabric/{fabric}/_api/collection/{collection-name}/figures:
    get:
      description: 'Returns an object containing statistics about a collection.


        **Note**: This always loads the collection into memory.'
      operationId: handleCommandGet:collectionFigures
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      - description: The name of the collection.
        in: path
        name: collection-name
        required: true
        schema:
          type: string
          format: string
      responses:
        '200':
          description: Returns information about the collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/get_api_collection_figures_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'
        '404':
          description: Failed to find specified collection.
          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: Return figures of a collection
      tags:
      - Collections
  /_fabric/{fabric}/_api/collection/{collection-name}/truncate:
    put:
      description: Remove all documents from the collection but leaves the indexes intact.
      operationId: handleCommandPut:truncateCollection
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      - description: The name of the collection.
        in: path
        name: collection-name
        required: true
        schema:
          type: string
          format: string
      responses:
        '200':
          description: Successfully removed all the documents.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_collection_get_collection_name_http_examples_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'
        '404':
          description: Failed to find specified collection.
          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: Truncate collection
      tags:
      - Collections
  /_fabric/{fabric}/_api/collection/{collection-name}/properties:
    put:
      description: Changes the properties of a collection.
      operationId: handleCommandPut:modifyProperties
      parameters:
      - in: path
        name: fabric
        required: true
        description: The name of the fabric.
        schema:
          type: string
          format: string
          default: _system
      - description: The name of the collection.
        in: path
        name: collection-name
        required: true
        schema:
          type: string
          format: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api_collection_put_properties_http_examples_rc_200'
        required: true
      responses:
        '200':
          description: Successfully updated the document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_collection_put_collection_property_http_examples_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'
        '404':
          description: Failed to find specified collection.
          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 collection properties
      tags:
      - Collections
components:
  schemas:
    collection_figures_view_indexes:
      properties:
        count:
          description: The total number of views defined for the collection.
          format: int64
          type: integer
          example: 0
        size:
          description: The total memory allocated for views in bytes.
          format: int64
          type: integer
          example: 0
      type: object
    api_collection_post_http_examples_rc_200:
      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
        id:
          description: Removed collection identifier.
          type: string
          example: '61862387'
    api_collection_get_http_examples_rc_200:
      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:
          description: An array of API keys with details as
          type: array
          items:
            $ref: '#/components/schemas/api_collection_http_200_hel

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