curl --request POST \
--url https://{instance}.domo.com/api/datastores/v2/export/{datastoreId} \
--header 'Content-Type: application/json' \
--header 'X-DOMO-Developer-Token: <api-key>' \
--data '
[
"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
]
'import requests
url = "https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}"
payload = ["3f2504e0-4f89-11d3-9a0c-0305e82c3301"]
headers = {
"X-DOMO-Developer-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-DOMO-Developer-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify(['3f2504e0-4f89-11d3-9a0c-0305e82c3301'])
};
fetch('https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'3f2504e0-4f89-11d3-9a0c-0305e82c3301'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-DOMO-Developer-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}"
payload := strings.NewReader("[\n \"3f2504e0-4f89-11d3-9a0c-0305e82c3301\"\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-DOMO-Developer-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}")
.header("X-DOMO-Developer-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n \"3f2504e0-4f89-11d3-9a0c-0305e82c3301\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-DOMO-Developer-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n \"3f2504e0-4f89-11d3-9a0c-0305e82c3301\"\n]"
response = http.request(request)
puts response.read_bodySync 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.
curl --request POST \
--url https://{instance}.domo.com/api/datastores/v2/export/{datastoreId} \
--header 'Content-Type: application/json' \
--header 'X-DOMO-Developer-Token: <api-key>' \
--data '
[
"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
]
'import requests
url = "https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}"
payload = ["3f2504e0-4f89-11d3-9a0c-0305e82c3301"]
headers = {
"X-DOMO-Developer-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-DOMO-Developer-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify(['3f2504e0-4f89-11d3-9a0c-0305e82c3301'])
};
fetch('https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'3f2504e0-4f89-11d3-9a0c-0305e82c3301'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-DOMO-Developer-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}"
payload := strings.NewReader("[\n \"3f2504e0-4f89-11d3-9a0c-0305e82c3301\"\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-DOMO-Developer-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}")
.header("X-DOMO-Developer-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n \"3f2504e0-4f89-11d3-9a0c-0305e82c3301\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instance}.domo.com/api/datastores/v2/export/{datastoreId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-DOMO-Developer-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n \"3f2504e0-4f89-11d3-9a0c-0305e82c3301\"\n]"
response = http.request(request)
puts response.read_bodyAuthorizations
Domo Developer Token for authentication.
Path Parameters
The ID of the datastore.
Body
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.
Response
Sync triggered successfully. No response body is returned.

