> ## Documentation Index
> Fetch the complete documentation index at: https://www.domo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync Datastore

> Triggers a sync of all syncEnabled collections in the datastore to their linked Domo DataSets. Each collection must have `syncEnabled: true` to be synced. If a collection does not yet have a `datasourceId`, one is created automatically on first sync. Optionally pass a list of collection IDs from **other** datastores in the request body to sync those collections in the same operation — these are typically shared collections declared with a fixed UUID in an app design's `collectionsMapping`, which live outside the primary datastore and are shared across app instances.



## OpenAPI

````yaml /openapi/product/appdb.yaml post /api/datastores/v2/export/{datastoreId}
openapi: 3.0.0
info:
  title: App DB API
  version: v1
  description: |
    The App DB API allows developers to interact with AppDB, a NoSQL database 
    for storing arbitrary JSON documents. This API supports CRUD operations, 
    querying, and aggregation, enabling developers to manage data efficiently 
    within their Domo applications.
servers:
  - url: https://{instance}.domo.com
    description: Domo Instance
    variables:
      instance:
        default: api
        description: Your specific Domo instance name (e.g., mycompany)
security:
  - developerToken: []
tags:
  - name: Documents
    description: Manage individual documents in an AppDB collection.
  - name: Collections
    description: Manage AppDB collections (schema, permissions).
  - name: App DB API (Product)
    description: Manage documents and collections in AppDB.
paths:
  /api/datastores/v2/export/{datastoreId}:
    post:
      tags:
        - App DB API (Product)
      summary: Sync Datastore
      description: >-
        Triggers a sync of all syncEnabled collections in the datastore to their
        linked Domo DataSets. Each collection must have `syncEnabled: true` to
        be synced. If a collection does not yet have a `datasourceId`, one is
        created automatically on first sync. Optionally pass a list of
        collection IDs from **other** datastores in the request body to sync
        those collections in the same operation — these are typically shared
        collections declared with a fixed UUID in an app design's
        `collectionsMapping`, which live outside the primary datastore and are
        shared across app instances.
      parameters:
        - name: datastoreId
          in: path
          required: true
          schema:
            type: string
          description: The ID of the datastore.
      requestBody:
        required: false
        description: >-
          Optional. A JSON array of collection UUIDs from other datastores to
          sync alongside this datastore's own collections. Typically used for
          shared collections declared with a fixed UUID in an app design's
          `collectionsMapping`. Pass an empty array or omit the body entirely to
          sync only this datastore's own collections.
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
                format: uuid
            example:
              - 3f2504e0-4f89-11d3-9a0c-0305e82c3301
      responses:
        '200':
          description: Sync triggered successfully. No response body is returned.
components:
  securitySchemes:
    developerToken:
      type: apiKey
      in: header
      name: X-DOMO-Developer-Token
      description: Domo Developer Token for authentication.

````