Update Extraction
curl --request PUT \
--url https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 6422272,
"title": "extracted transcripts config",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "767e6bc2-b4db-4c35-9733-ff4a638772b1",
"storeExtractedData": true,
"scheduleType": "MANUAL",
"schedule": {
"cronExpression": ""
},
"outputConfiguration": {
"createNewWorkbook": false,
"title": "extracted transcripts",
"tableId": "5722991e-c826-460b-902f-ccf241f4bc80"
},
"inputTableId": "5a408388-4c83-4007-8921-f5b7c72509f2",
"primaryKeyColumnId": [
"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd"
],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": {
"title": "Title"
},
"id": "d86ed28b-8642-430e-8070-3512419aee3e",
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": {
"title": "Segments"
},
"id": "d6882086-f833-4519-a6b4-0f1c7c620ff9",
"uiDataType": "JSON"
}
],
"advancedSchema": {
"properties": {
"title": {
"type": "string"
},
"segments": {
"type": "array"
}
}
}
}
'import requests
url = "https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}"
payload = {
"id": 6422272,
"title": "extracted transcripts config",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "767e6bc2-b4db-4c35-9733-ff4a638772b1",
"storeExtractedData": True,
"scheduleType": "MANUAL",
"schedule": { "cronExpression": "" },
"outputConfiguration": {
"createNewWorkbook": False,
"title": "extracted transcripts",
"tableId": "5722991e-c826-460b-902f-ccf241f4bc80"
},
"inputTableId": "5a408388-4c83-4007-8921-f5b7c72509f2",
"primaryKeyColumnId": ["acd7f6ee-3c93-4f13-a854-d476aa8f8cbd"],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": { "title": "Title" },
"id": "d86ed28b-8642-430e-8070-3512419aee3e",
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": { "title": "Segments" },
"id": "d6882086-f833-4519-a6b4-0f1c7c620ff9",
"uiDataType": "JSON"
}
],
"advancedSchema": { "properties": {
"title": { "type": "string" },
"segments": { "type": "array" }
} }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 6422272,
title: 'extracted transcripts config',
extractionMode: 'ADVANCED',
elementType: 'COLUMN',
elementId: '767e6bc2-b4db-4c35-9733-ff4a638772b1',
storeExtractedData: true,
scheduleType: 'MANUAL',
schedule: {cronExpression: ''},
outputConfiguration: {
createNewWorkbook: false,
title: 'extracted transcripts',
tableId: '5722991e-c826-460b-902f-ccf241f4bc80'
},
inputTableId: '5a408388-4c83-4007-8921-f5b7c72509f2',
primaryKeyColumnId: ['acd7f6ee-3c93-4f13-a854-d476aa8f8cbd'],
columnConfiguration: [
{
name: 'title',
description: 'Transcript title',
uiMetadata: {title: 'Title'},
id: 'd86ed28b-8642-430e-8070-3512419aee3e',
uiDataType: 'SINGLE_LINE_TEXT'
},
{
name: 'segments',
description: 'Transcript segments',
uiMetadata: {title: 'Segments'},
id: 'd6882086-f833-4519-a6b4-0f1c7c620ff9',
uiDataType: 'JSON'
}
],
advancedSchema: {properties: {title: {type: 'string'}, segments: {type: 'array'}}}
})
};
fetch('https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}', 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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 6422272,
'title' => 'extracted transcripts config',
'extractionMode' => 'ADVANCED',
'elementType' => 'COLUMN',
'elementId' => '767e6bc2-b4db-4c35-9733-ff4a638772b1',
'storeExtractedData' => true,
'scheduleType' => 'MANUAL',
'schedule' => [
'cronExpression' => ''
],
'outputConfiguration' => [
'createNewWorkbook' => false,
'title' => 'extracted transcripts',
'tableId' => '5722991e-c826-460b-902f-ccf241f4bc80'
],
'inputTableId' => '5a408388-4c83-4007-8921-f5b7c72509f2',
'primaryKeyColumnId' => [
'acd7f6ee-3c93-4f13-a854-d476aa8f8cbd'
],
'columnConfiguration' => [
[
'name' => 'title',
'description' => 'Transcript title',
'uiMetadata' => [
'title' => 'Title'
],
'id' => 'd86ed28b-8642-430e-8070-3512419aee3e',
'uiDataType' => 'SINGLE_LINE_TEXT'
],
[
'name' => 'segments',
'description' => 'Transcript segments',
'uiMetadata' => [
'title' => 'Segments'
],
'id' => 'd6882086-f833-4519-a6b4-0f1c7c620ff9',
'uiDataType' => 'JSON'
]
],
'advancedSchema' => [
'properties' => [
'title' => [
'type' => 'string'
],
'segments' => [
'type' => 'array'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}"
payload := strings.NewReader("{\n \"id\": 6422272,\n \"title\": \"extracted transcripts config\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"767e6bc2-b4db-4c35-9733-ff4a638772b1\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": false,\n \"title\": \"extracted transcripts\",\n \"tableId\": \"5722991e-c826-460b-902f-ccf241f4bc80\"\n },\n \"inputTableId\": \"5a408388-4c83-4007-8921-f5b7c72509f2\",\n \"primaryKeyColumnId\": [\n \"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"id\": \"d86ed28b-8642-430e-8070-3512419aee3e\",\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"id\": \"d6882086-f833-4519-a6b4-0f1c7c620ff9\",\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 6422272,\n \"title\": \"extracted transcripts config\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"767e6bc2-b4db-4c35-9733-ff4a638772b1\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": false,\n \"title\": \"extracted transcripts\",\n \"tableId\": \"5722991e-c826-460b-902f-ccf241f4bc80\"\n },\n \"inputTableId\": \"5a408388-4c83-4007-8921-f5b7c72509f2\",\n \"primaryKeyColumnId\": [\n \"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"id\": \"d86ed28b-8642-430e-8070-3512419aee3e\",\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"id\": \"d6882086-f833-4519-a6b4-0f1c7c620ff9\",\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 6422272,\n \"title\": \"extracted transcripts config\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"767e6bc2-b4db-4c35-9733-ff4a638772b1\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": false,\n \"title\": \"extracted transcripts\",\n \"tableId\": \"5722991e-c826-460b-902f-ccf241f4bc80\"\n },\n \"inputTableId\": \"5a408388-4c83-4007-8921-f5b7c72509f2\",\n \"primaryKeyColumnId\": [\n \"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"id\": \"d86ed28b-8642-430e-8070-3512419aee3e\",\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"id\": \"d6882086-f833-4519-a6b4-0f1c7c620ff9\",\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_bodyAI Extraction
Update Extraction
1️⃣ Overview
Purpose:
Updates an existing extraction configuration.
Supports:
-
STANDARD or ADVANCED extraction modes
-
Column, file, or folder-based extraction
-
Schema-driven advanced extraction
2️⃣ Endpoint
PUT /noCo/api/v2/workspaces/{workspaceId}/extraction/{extractionId}
3️⃣ Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | UUID | ✅ Yes | Workspace identifier |
| extractionId | string | ✅ Yes | Extraction configuration identifier |
4️⃣ Authentication
Requires authentication using:
Authorization: Bearer <token>
5️⃣ Request Headers
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
| Content-Type: application/json | ✅ Yes |
6️⃣ Request Body Schema
{
"title": "string",
"extractionMode": "string",
"elementType": "string",
"elementId": "string",
"inputTableId": "string",
"outputConfiguration": {},
"columnConfiguration": [],
"primaryKeyColumnId": [],
"storeExtractedData": true,
"scheduleType": "string",
"schedule": {},
"advancedSchema": {}
}
9️⃣ Behavior Summary
Updates an extraction configuration within a workspace.
PUT
/
noCo
/
api
/
v2
/
workspaces
/
{workspaceId}
/
extraction
/
{extraction_id}
Update Extraction
curl --request PUT \
--url https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 6422272,
"title": "extracted transcripts config",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "767e6bc2-b4db-4c35-9733-ff4a638772b1",
"storeExtractedData": true,
"scheduleType": "MANUAL",
"schedule": {
"cronExpression": ""
},
"outputConfiguration": {
"createNewWorkbook": false,
"title": "extracted transcripts",
"tableId": "5722991e-c826-460b-902f-ccf241f4bc80"
},
"inputTableId": "5a408388-4c83-4007-8921-f5b7c72509f2",
"primaryKeyColumnId": [
"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd"
],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": {
"title": "Title"
},
"id": "d86ed28b-8642-430e-8070-3512419aee3e",
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": {
"title": "Segments"
},
"id": "d6882086-f833-4519-a6b4-0f1c7c620ff9",
"uiDataType": "JSON"
}
],
"advancedSchema": {
"properties": {
"title": {
"type": "string"
},
"segments": {
"type": "array"
}
}
}
}
'import requests
url = "https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}"
payload = {
"id": 6422272,
"title": "extracted transcripts config",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "767e6bc2-b4db-4c35-9733-ff4a638772b1",
"storeExtractedData": True,
"scheduleType": "MANUAL",
"schedule": { "cronExpression": "" },
"outputConfiguration": {
"createNewWorkbook": False,
"title": "extracted transcripts",
"tableId": "5722991e-c826-460b-902f-ccf241f4bc80"
},
"inputTableId": "5a408388-4c83-4007-8921-f5b7c72509f2",
"primaryKeyColumnId": ["acd7f6ee-3c93-4f13-a854-d476aa8f8cbd"],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": { "title": "Title" },
"id": "d86ed28b-8642-430e-8070-3512419aee3e",
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": { "title": "Segments" },
"id": "d6882086-f833-4519-a6b4-0f1c7c620ff9",
"uiDataType": "JSON"
}
],
"advancedSchema": { "properties": {
"title": { "type": "string" },
"segments": { "type": "array" }
} }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 6422272,
title: 'extracted transcripts config',
extractionMode: 'ADVANCED',
elementType: 'COLUMN',
elementId: '767e6bc2-b4db-4c35-9733-ff4a638772b1',
storeExtractedData: true,
scheduleType: 'MANUAL',
schedule: {cronExpression: ''},
outputConfiguration: {
createNewWorkbook: false,
title: 'extracted transcripts',
tableId: '5722991e-c826-460b-902f-ccf241f4bc80'
},
inputTableId: '5a408388-4c83-4007-8921-f5b7c72509f2',
primaryKeyColumnId: ['acd7f6ee-3c93-4f13-a854-d476aa8f8cbd'],
columnConfiguration: [
{
name: 'title',
description: 'Transcript title',
uiMetadata: {title: 'Title'},
id: 'd86ed28b-8642-430e-8070-3512419aee3e',
uiDataType: 'SINGLE_LINE_TEXT'
},
{
name: 'segments',
description: 'Transcript segments',
uiMetadata: {title: 'Segments'},
id: 'd6882086-f833-4519-a6b4-0f1c7c620ff9',
uiDataType: 'JSON'
}
],
advancedSchema: {properties: {title: {type: 'string'}, segments: {type: 'array'}}}
})
};
fetch('https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}', 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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 6422272,
'title' => 'extracted transcripts config',
'extractionMode' => 'ADVANCED',
'elementType' => 'COLUMN',
'elementId' => '767e6bc2-b4db-4c35-9733-ff4a638772b1',
'storeExtractedData' => true,
'scheduleType' => 'MANUAL',
'schedule' => [
'cronExpression' => ''
],
'outputConfiguration' => [
'createNewWorkbook' => false,
'title' => 'extracted transcripts',
'tableId' => '5722991e-c826-460b-902f-ccf241f4bc80'
],
'inputTableId' => '5a408388-4c83-4007-8921-f5b7c72509f2',
'primaryKeyColumnId' => [
'acd7f6ee-3c93-4f13-a854-d476aa8f8cbd'
],
'columnConfiguration' => [
[
'name' => 'title',
'description' => 'Transcript title',
'uiMetadata' => [
'title' => 'Title'
],
'id' => 'd86ed28b-8642-430e-8070-3512419aee3e',
'uiDataType' => 'SINGLE_LINE_TEXT'
],
[
'name' => 'segments',
'description' => 'Transcript segments',
'uiMetadata' => [
'title' => 'Segments'
],
'id' => 'd6882086-f833-4519-a6b4-0f1c7c620ff9',
'uiDataType' => 'JSON'
]
],
'advancedSchema' => [
'properties' => [
'title' => [
'type' => 'string'
],
'segments' => [
'type' => 'array'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}"
payload := strings.NewReader("{\n \"id\": 6422272,\n \"title\": \"extracted transcripts config\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"767e6bc2-b4db-4c35-9733-ff4a638772b1\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": false,\n \"title\": \"extracted transcripts\",\n \"tableId\": \"5722991e-c826-460b-902f-ccf241f4bc80\"\n },\n \"inputTableId\": \"5a408388-4c83-4007-8921-f5b7c72509f2\",\n \"primaryKeyColumnId\": [\n \"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"id\": \"d86ed28b-8642-430e-8070-3512419aee3e\",\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"id\": \"d6882086-f833-4519-a6b4-0f1c7c620ff9\",\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 6422272,\n \"title\": \"extracted transcripts config\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"767e6bc2-b4db-4c35-9733-ff4a638772b1\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": false,\n \"title\": \"extracted transcripts\",\n \"tableId\": \"5722991e-c826-460b-902f-ccf241f4bc80\"\n },\n \"inputTableId\": \"5a408388-4c83-4007-8921-f5b7c72509f2\",\n \"primaryKeyColumnId\": [\n \"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"id\": \"d86ed28b-8642-430e-8070-3512419aee3e\",\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"id\": \"d6882086-f833-4519-a6b4-0f1c7c620ff9\",\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction/{extraction_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 6422272,\n \"title\": \"extracted transcripts config\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"767e6bc2-b4db-4c35-9733-ff4a638772b1\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": false,\n \"title\": \"extracted transcripts\",\n \"tableId\": \"5722991e-c826-460b-902f-ccf241f4bc80\"\n },\n \"inputTableId\": \"5a408388-4c83-4007-8921-f5b7c72509f2\",\n \"primaryKeyColumnId\": [\n \"acd7f6ee-3c93-4f13-a854-d476aa8f8cbd\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"id\": \"d86ed28b-8642-430e-8070-3512419aee3e\",\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"id\": \"d6882086-f833-4519-a6b4-0f1c7c620ff9\",\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
This API uses OAuth 2.0 with the authorization code grant flow.
Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
User-defined schema for advanced extraction
Response
200
Updated Extraction
⌘I