Change the Linear config
curl --request PATCH \
--url https://api.statisfy.com/v1/integrations/linear/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": [
"<string>"
],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": true,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": true
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
}
'import requests
url = "https://api.statisfy.com/v1/integrations/linear/config"
payload = {
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": ["<string>"],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": True,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": True
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
expected_version: 1,
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
project_ids: ['<string>'],
project_rules: [
{
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
project_id: '<string>',
creates_task: true,
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
id: '<string>',
is_active: true
}
],
status_mappings: [
{
project_id: '<string>',
workflow_state_id: '<string>',
workflow_state_name: '<string>'
}
]
})
};
fetch('https://api.statisfy.com/v1/integrations/linear/config', 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.statisfy.com/v1/integrations/linear/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'expected_version' => 1,
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'project_ids' => [
'<string>'
],
'project_rules' => [
[
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'project_id' => '<string>',
'creates_task' => true,
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'id' => '<string>',
'is_active' => true
]
],
'status_mappings' => [
[
'project_id' => '<string>',
'workflow_state_id' => '<string>',
'workflow_state_name' => '<string>'
]
]
]),
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://api.statisfy.com/v1/integrations/linear/config"
payload := strings.NewReader("{\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.statisfy.com/v1/integrations/linear/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/linear/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"customer_resolution": [
{}
],
"field_whitelist": {},
"project_ids": [
"<string>"
],
"project_rules": [
{}
],
"status_mappings": [
{}
],
"version": 123
}integrations
Change the Linear config
Changes the settings you send; the others stay. Each mapped Statisfy field becomes read-only in the app: Linear writes it. At most one active rule per project. Try a draft with /preview first. A 409 means the config changed since you read it (or expected_version is not the live one): read it again.
PATCH
/
v1
/
integrations
/
linear
/
config
Change the Linear config
curl --request PATCH \
--url https://api.statisfy.com/v1/integrations/linear/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": [
"<string>"
],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": true,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": true
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
}
'import requests
url = "https://api.statisfy.com/v1/integrations/linear/config"
payload = {
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": ["<string>"],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": True,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": True
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
expected_version: 1,
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
project_ids: ['<string>'],
project_rules: [
{
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
project_id: '<string>',
creates_task: true,
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
id: '<string>',
is_active: true
}
],
status_mappings: [
{
project_id: '<string>',
workflow_state_id: '<string>',
workflow_state_name: '<string>'
}
]
})
};
fetch('https://api.statisfy.com/v1/integrations/linear/config', 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.statisfy.com/v1/integrations/linear/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'expected_version' => 1,
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'project_ids' => [
'<string>'
],
'project_rules' => [
[
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'project_id' => '<string>',
'creates_task' => true,
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'id' => '<string>',
'is_active' => true
]
],
'status_mappings' => [
[
'project_id' => '<string>',
'workflow_state_id' => '<string>',
'workflow_state_name' => '<string>'
]
]
]),
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://api.statisfy.com/v1/integrations/linear/config"
payload := strings.NewReader("{\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.statisfy.com/v1/integrations/linear/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/linear/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"customer_resolution": [
{}
],
"field_whitelist": {},
"project_ids": [
"<string>"
],
"project_rules": [
{}
],
"status_mappings": [
{}
],
"version": 123
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
application/json
Only the settings you send change; the rest stay. null puts a setting back to its default (empty).
Response
200 - application/json
Successful Response
Linear's settings, as saved. Each setting has the shape that PATCH /config takes.
Was this page helpful?