curl --request PATCH \
--url https://api.journeybee.io/v1/schema/objects/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expected_schema_version": 4503599627370495,
"enabled_features": []
}
'import requests
url = "https://api.journeybee.io/v1/schema/objects/{key}"
payload = {
"expected_schema_version": 4503599627370495,
"enabled_features": []
}
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({expected_schema_version: 4503599627370495, enabled_features: []})
};
fetch('https://api.journeybee.io/v1/schema/objects/{key}', 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.journeybee.io/v1/schema/objects/{key}",
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([
'expected_schema_version' => 4503599627370495,
'enabled_features' => [
]
]),
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.journeybee.io/v1/schema/objects/{key}"
payload := strings.NewReader("{\n \"expected_schema_version\": 4503599627370495,\n \"enabled_features\": []\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.journeybee.io/v1/schema/objects/{key}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expected_schema_version\": 4503599627370495,\n \"enabled_features\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/schema/objects/{key}")
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 \"expected_schema_version\": 4503599627370495,\n \"enabled_features\": []\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"key": "<string>",
"singular_label": "<string>",
"plural_label": "<string>",
"schema_version": 4503599627370495,
"is_partner_type": true,
"archived": true,
"enabled_features": [
"notes"
]
}Change an object type's settings
Saves settings of an object type, found by its key. Every setting is optional; one left out stays as it is. enabled_features is the full set of record features switched on: a switched-off feature is hidden in the app and refused by the API and MCP with 403 reason feature_disabled, and its data is kept. A partner type always keeps tags and stages (400 reason partner_type_feature_required); switching any other feature off on a partner type is refused for now (400 reason not_available_yet). The body echoes expected_schema_version; a stale one returns 409 and nothing is saved. Needs a company admin. A Buzz agent can only run this as an approved proposal. Use previewObjectDefinitionChange first to see what a change reaches.
curl --request PATCH \
--url https://api.journeybee.io/v1/schema/objects/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expected_schema_version": 4503599627370495,
"enabled_features": []
}
'import requests
url = "https://api.journeybee.io/v1/schema/objects/{key}"
payload = {
"expected_schema_version": 4503599627370495,
"enabled_features": []
}
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({expected_schema_version: 4503599627370495, enabled_features: []})
};
fetch('https://api.journeybee.io/v1/schema/objects/{key}', 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.journeybee.io/v1/schema/objects/{key}",
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([
'expected_schema_version' => 4503599627370495,
'enabled_features' => [
]
]),
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.journeybee.io/v1/schema/objects/{key}"
payload := strings.NewReader("{\n \"expected_schema_version\": 4503599627370495,\n \"enabled_features\": []\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.journeybee.io/v1/schema/objects/{key}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expected_schema_version\": 4503599627370495,\n \"enabled_features\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/schema/objects/{key}")
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 \"expected_schema_version\": 4503599627370495,\n \"enabled_features\": []\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"key": "<string>",
"singular_label": "<string>",
"plural_label": "<string>",
"schema_version": 4503599627370495,
"is_partner_type": true,
"archived": true,
"enabled_features": [
"notes"
]
}Authorizations
Body
The full set of record features switched on (notes, files, tasks, history, assigned_users, tags, stages). Duplicates are dropped. A partner type always keeps tags and stages.
28notes, files, tasks, history, assigned_users, tags, stages Response
Default Response