curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/columns/groups/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"column_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"name": "<string>",
"run_condition": {
"default_value": "<string>",
"kind": "manual"
}
}
'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/columns/groups/"
payload = {
"column_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"name": "<string>",
"run_condition": {
"default_value": "<string>",
"kind": "manual"
}
}
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({
column_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
name: '<string>',
run_condition: {default_value: '<string>', kind: 'manual'}
})
};
fetch('https://api.getoneprofile.ai/tables/{table_id}/columns/groups/', 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}/columns/groups/",
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([
'column_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'name' => '<string>',
'run_condition' => [
'default_value' => '<string>',
'kind' => 'manual'
]
]),
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}/columns/groups/"
payload := strings.NewReader("{\n \"column_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"name\": \"<string>\",\n \"run_condition\": {\n \"default_value\": \"<string>\",\n \"kind\": \"manual\"\n }\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}/columns/groups/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"column_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"name\": \"<string>\",\n \"run_condition\": {\n \"default_value\": \"<string>\",\n \"kind\": \"manual\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/columns/groups/")
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 \"column_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"name\": \"<string>\",\n \"run_condition\": {\n \"default_value\": \"<string>\",\n \"kind\": \"manual\"\n }\n}"
response = http.request(request)
puts response.read_body{
"collapsed": true,
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"members": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_output": true
}
],
"name": "<string>",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ui_color": "gray",
"updated_at": "2023-11-07T05:31:56Z",
"run_condition": {
"default_value": "<string>",
"kind": "manual"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Group columns
Create a column group over the given columns. They are pulled together at the leftmost member’s position, keeping their current relative order, and the LAST member becomes the group’s output: the column that stays visible when the group is collapsed. Groups are org-shared, like column order itself.
curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/columns/groups/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"column_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"name": "<string>",
"run_condition": {
"default_value": "<string>",
"kind": "manual"
}
}
'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/columns/groups/"
payload = {
"column_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"name": "<string>",
"run_condition": {
"default_value": "<string>",
"kind": "manual"
}
}
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({
column_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
name: '<string>',
run_condition: {default_value: '<string>', kind: 'manual'}
})
};
fetch('https://api.getoneprofile.ai/tables/{table_id}/columns/groups/', 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}/columns/groups/",
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([
'column_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'name' => '<string>',
'run_condition' => [
'default_value' => '<string>',
'kind' => 'manual'
]
]),
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}/columns/groups/"
payload := strings.NewReader("{\n \"column_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"name\": \"<string>\",\n \"run_condition\": {\n \"default_value\": \"<string>\",\n \"kind\": \"manual\"\n }\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}/columns/groups/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"column_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"name\": \"<string>\",\n \"run_condition\": {\n \"default_value\": \"<string>\",\n \"kind\": \"manual\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/columns/groups/")
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 \"column_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"name\": \"<string>\",\n \"run_condition\": {\n \"default_value\": \"<string>\",\n \"kind\": \"manual\"\n }\n}"
response = http.request(request)
puts response.read_body{
"collapsed": true,
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"members": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_output": true
}
],
"name": "<string>",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ui_color": "gray",
"updated_at": "2023-11-07T05:31:56Z",
"run_condition": {
"default_value": "<string>",
"kind": "manual"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Path Parameters
Body
Request body for grouping columns.
The columns to group; at least two, each currently ungrouped. They are pulled together at the leftmost member's position, keeping their current relative order. The LAST member becomes the group's output.
2The group's name; omit for the default label.
1 - 255A per-row gate every member without one of its own inherits. It may not read a column inside the group.
- ManualColumnDefinition
- FormulaColumnDefinition
- EnrichmentColumnDefinition
- SourceColumnDefinition
- ExportColumnDefinition
- SequenceColumnDefinition
Show child attributes
Show child attributes
Palette token for the group's band; omit for a neutral band.
gray, red, orange, amber, green, blue, purple, pink Response
Successful Response
A user-managed column group, membership resolved in position order.
Whether the grid folds the group down to its output members. Purely presentational: folded members' cells are still fetched, so expanding costs nothing.
The member columns in position order, with their output flags.
Show child attributes
Show child attributes
The group's name; null renders the client default label.
Palette token for the group's band, or null for a neutral band. A token rather than a hex: the grid renders light and dark, and one stored colour is only legible in one of them.
gray, red, orange, amber, green, blue, purple, pink The group's per-row gate, verbatim; null gates nothing. Every member without a gate of its own carries a copy in its run_condition (marked by run_condition_group_id), so the columns themselves say what runs.
- ManualColumnDefinition
- FormulaColumnDefinition
- EnrichmentColumnDefinition
- SourceColumnDefinition
- ExportColumnDefinition
- SequenceColumnDefinition
Show child attributes
Show child attributes
Was this page helpful?