curl --request PATCH \
--url https://api.journeybee.io/v1/custom-fields/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"shared": true,
"required": true,
"locked": true,
"supporting_partners_can_see": true,
"description": "<string>",
"link_url": "<string>",
"link_label": "<string>"
}
'import requests
url = "https://api.journeybee.io/v1/custom-fields/{uuid}"
payload = {
"label": "<string>",
"shared": True,
"required": True,
"locked": True,
"supporting_partners_can_see": True,
"description": "<string>",
"link_url": "<string>",
"link_label": "<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({
label: '<string>',
shared: true,
required: true,
locked: true,
supporting_partners_can_see: true,
description: '<string>',
link_url: '<string>',
link_label: '<string>'
})
};
fetch('https://api.journeybee.io/v1/custom-fields/{uuid}', 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/custom-fields/{uuid}",
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([
'label' => '<string>',
'shared' => true,
'required' => true,
'locked' => true,
'supporting_partners_can_see' => true,
'description' => '<string>',
'link_url' => '<string>',
'link_label' => '<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.journeybee.io/v1/custom-fields/{uuid}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"shared\": true,\n \"required\": true,\n \"locked\": true,\n \"supporting_partners_can_see\": true,\n \"description\": \"<string>\",\n \"link_url\": \"<string>\",\n \"link_label\": \"<string>\"\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/custom-fields/{uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"shared\": true,\n \"required\": true,\n \"locked\": true,\n \"supporting_partners_can_see\": true,\n \"description\": \"<string>\",\n \"link_url\": \"<string>\",\n \"link_label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/custom-fields/{uuid}")
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 \"label\": \"<string>\",\n \"shared\": true,\n \"required\": true,\n \"locked\": true,\n \"supporting_partners_can_see\": true,\n \"description\": \"<string>\",\n \"link_url\": \"<string>\",\n \"link_label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"label": "<string>",
"type": "text",
"category": "lead",
"partner_type": "referral",
"options": [
{
"id": 123,
"label": "<string>"
}
],
"description": "<string>",
"link_url": "<string>",
"link_label": "<string>",
"shared": true,
"required": true,
"locked": true,
"supporting_partners_can_see": true,
"created_at": "<string>",
"updated_at": "<string>"
}Update a custom field definition
curl --request PATCH \
--url https://api.journeybee.io/v1/custom-fields/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"shared": true,
"required": true,
"locked": true,
"supporting_partners_can_see": true,
"description": "<string>",
"link_url": "<string>",
"link_label": "<string>"
}
'import requests
url = "https://api.journeybee.io/v1/custom-fields/{uuid}"
payload = {
"label": "<string>",
"shared": True,
"required": True,
"locked": True,
"supporting_partners_can_see": True,
"description": "<string>",
"link_url": "<string>",
"link_label": "<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({
label: '<string>',
shared: true,
required: true,
locked: true,
supporting_partners_can_see: true,
description: '<string>',
link_url: '<string>',
link_label: '<string>'
})
};
fetch('https://api.journeybee.io/v1/custom-fields/{uuid}', 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/custom-fields/{uuid}",
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([
'label' => '<string>',
'shared' => true,
'required' => true,
'locked' => true,
'supporting_partners_can_see' => true,
'description' => '<string>',
'link_url' => '<string>',
'link_label' => '<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.journeybee.io/v1/custom-fields/{uuid}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"shared\": true,\n \"required\": true,\n \"locked\": true,\n \"supporting_partners_can_see\": true,\n \"description\": \"<string>\",\n \"link_url\": \"<string>\",\n \"link_label\": \"<string>\"\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/custom-fields/{uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"shared\": true,\n \"required\": true,\n \"locked\": true,\n \"supporting_partners_can_see\": true,\n \"description\": \"<string>\",\n \"link_url\": \"<string>\",\n \"link_label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/custom-fields/{uuid}")
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 \"label\": \"<string>\",\n \"shared\": true,\n \"required\": true,\n \"locked\": true,\n \"supporting_partners_can_see\": true,\n \"description\": \"<string>\",\n \"link_url\": \"<string>\",\n \"link_label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"label": "<string>",
"type": "text",
"category": "lead",
"partner_type": "referral",
"options": [
{
"id": 123,
"label": "<string>"
}
],
"description": "<string>",
"link_url": "<string>",
"link_label": "<string>",
"shared": true,
"required": true,
"locked": true,
"supporting_partners_can_see": true,
"created_at": "<string>",
"updated_at": "<string>"
}Authorizations
Path Parameters
Body
Whether an active supporting (co-sell) partner on a deal can see this field: its value, its files and writing it. Default true. When false, a supporting partner never receives the value (it is left out of deal reads and notifications), cannot download its files and is refused with 400 validation_error (not_accessible) when it sends one; the company, the deal's primary partner and a distributor see and write it as usual. Has an effect on lead_deal and lead fields only (a supporting partner sees a lead field's value only as deal rule context).
Response
Default Response
Entity the field belongs to: partner, lead, lead_deal or contact. lead_acceptance and lead_rejection are the forms filled in when a lead moves to Accepted (status converted) or Rejected; their values belong to the lead. Status-form fields are one form per company: partner_type does not apply to them.
lead, partner, lead_deal, contact, lead_acceptance, lead_rejection Whether only the company can set this field's value. A shared locked field is shown to partners read-only and is never on partner add or import forms, status forms or public forms; partner writes to it are refused. A locked field that is not shared stays internal. Only lead, lead_deal, lead_acceptance and lead_rejection fields can be locked; setting locked to true on any other category is refused with 400 validation_error.
Whether an active supporting (co-sell) partner on a deal can see this field: its value, its files and writing it. Default true. When false, a supporting partner never receives the value (it is left out of deal reads and notifications), cannot download its files and is refused with 400 validation_error (not_accessible) when it sends one; the company, the deal's primary partner and a distributor see and write it as usual. Has an effect on lead_deal and lead fields only (a supporting partner sees a lead field's value only as deal rule context).