curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/duplicate/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"include_rows": true,
"name": "<string>"
}
'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/duplicate/"
payload = {
"include_rows": True,
"name": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({include_rows: true, name: '<string>'})
};
fetch('https://api.getoneprofile.ai/tables/{table_id}/duplicate/', 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://api.getoneprofile.ai/tables/{table_id}/duplicate/",
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([
'include_rows' => true,
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://api.getoneprofile.ai/tables/{table_id}/duplicate/"
payload := strings.NewReader("{\n \"include_rows\": true,\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://api.getoneprofile.ai/tables/{table_id}/duplicate/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"include_rows\": true,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/duplicate/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"include_rows\": true,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"auto_run": true,
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"has_import_source": true,
"has_lead_search": true,
"has_subdomain_feed": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keep_existing_results": true,
"name": "<string>",
"row_count": 123,
"updated_at": "2023-11-07T05:31:56Z",
"ai_made": false,
"archived_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"folder_path": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"former_tags": [
"<string>"
],
"has_webhook_endpoint": false,
"is_favorite": false,
"last_viewed_at": "2023-11-07T05:31:56Z",
"left_out_column_names": [
"<string>"
],
"owner_display_name": "<string>",
"owner_user_id": "<string>",
"shared_as_template": false,
"table_type": "other",
"table_type_set_by_search": false
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Duplicate a table
Copy a table’s structure (columns, types, formulas remapped onto the new columns, descriptions, each column’s run settings and group, the saved views, the team’s display preferences and the caller’s own column layout) and optionally its rows and cell values. Nothing recomputes: the copy already holds the source’s results, errors and staleness included. Sequence columns, and every column reading one, are left out (left_out_column_names), as a copy into another workspace leaves them. The copy sits in the same folder as the source and belongs to whoever made it.
curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/duplicate/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"include_rows": true,
"name": "<string>"
}
'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/duplicate/"
payload = {
"include_rows": True,
"name": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({include_rows: true, name: '<string>'})
};
fetch('https://api.getoneprofile.ai/tables/{table_id}/duplicate/', 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://api.getoneprofile.ai/tables/{table_id}/duplicate/",
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([
'include_rows' => true,
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://api.getoneprofile.ai/tables/{table_id}/duplicate/"
payload := strings.NewReader("{\n \"include_rows\": true,\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://api.getoneprofile.ai/tables/{table_id}/duplicate/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"include_rows\": true,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/duplicate/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"include_rows\": true,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"auto_run": true,
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"has_import_source": true,
"has_lead_search": true,
"has_subdomain_feed": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keep_existing_results": true,
"name": "<string>",
"row_count": 123,
"updated_at": "2023-11-07T05:31:56Z",
"ai_made": false,
"archived_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"folder_path": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"former_tags": [
"<string>"
],
"has_webhook_endpoint": false,
"is_favorite": false,
"last_viewed_at": "2023-11-07T05:31:56Z",
"left_out_column_names": [
"<string>"
],
"owner_display_name": "<string>",
"owner_user_id": "<string>",
"shared_as_template": false,
"table_type": "other",
"table_type_set_by_search": false
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Body
Response
Successful Response
The table a duplicate made, with the columns it left out.
What one row stands for: person, company or other. Other for a table made by hand, loaded from a file or fed by a connected tool, until somebody sets it; a lead search for people or companies sets it when it fills the table. A company table offers Find people at its companies.
person, company, other Was this page helpful?