Update data field
curl --request PATCH \
--url https://api.example.com/data-field/{fieldId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"default": true,
"required": true,
"hidden": true,
"hideUntilChange": true,
"defaultValue": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"value": "<string>",
"pointValue": 123,
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"image": "<string>",
"icon": "<string>",
"minValue": 123,
"maxValue": 123
}
],
"min": 123,
"max": 123,
"showInfobox": true,
"infoboxText": "<string>",
"useMarkdown": false,
"requireSignatureOtp": false,
"contactOptions": {
"company": false,
"salutation": false,
"firstName": true,
"lastName": true,
"email": true,
"phone": true,
"mobile": false,
"birthdate": false,
"street": false,
"addressSupplement": false,
"zip": false,
"city": false,
"country": false,
"vatId": false
},
"helpText": "<string>",
"bankDetailsOptions": {
"showBic": true,
"showAccountHolder": true,
"showSignature": false
},
"licensePlateOptions": {
"countryFilter": "all"
},
"displayStyle": {},
"conditions": {},
"headingLevel": 123,
"name": "<string>",
"hubspotContactField": "<string>",
"hubspotCompanyField": "<string>",
"pipedriveContactField": "<string>",
"closeContactField": "<string>",
"salesforceContactField": "<string>",
"salesforceLeadField": "<string>",
"salesforceCaseField": "<string>",
"salesforceOpportunityField": "<string>",
"salesforceAccountField": "<string>",
"evalancheFieldId": "<string>",
"klicktippFieldId": "<string>",
"style": 123,
"defaultCountryCode": "<string>"
}
'import requests
url = "https://api.example.com/data-field/{fieldId}"
payload = {
"label": "<string>",
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"default": True,
"required": True,
"hidden": True,
"hideUntilChange": True,
"defaultValue": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"value": "<string>",
"pointValue": 123,
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"image": "<string>",
"icon": "<string>",
"minValue": 123,
"maxValue": 123
}
],
"min": 123,
"max": 123,
"showInfobox": True,
"infoboxText": "<string>",
"useMarkdown": False,
"requireSignatureOtp": False,
"contactOptions": {
"company": False,
"salutation": False,
"firstName": True,
"lastName": True,
"email": True,
"phone": True,
"mobile": False,
"birthdate": False,
"street": False,
"addressSupplement": False,
"zip": False,
"city": False,
"country": False,
"vatId": False
},
"helpText": "<string>",
"bankDetailsOptions": {
"showBic": True,
"showAccountHolder": True,
"showSignature": False
},
"licensePlateOptions": { "countryFilter": "all" },
"displayStyle": {},
"conditions": {},
"headingLevel": 123,
"name": "<string>",
"hubspotContactField": "<string>",
"hubspotCompanyField": "<string>",
"pipedriveContactField": "<string>",
"closeContactField": "<string>",
"salesforceContactField": "<string>",
"salesforceLeadField": "<string>",
"salesforceCaseField": "<string>",
"salesforceOpportunityField": "<string>",
"salesforceAccountField": "<string>",
"evalancheFieldId": "<string>",
"klicktippFieldId": "<string>",
"style": 123,
"defaultCountryCode": "<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>',
locales: [{locale: '<string>', label: '<string>', placeholder: '<string>'}],
default: true,
required: true,
hidden: true,
hideUntilChange: true,
defaultValue: '<string>',
placeholder: '<string>',
options: [
{
label: '<string>',
value: '<string>',
pointValue: 123,
locales: [{locale: '<string>', label: '<string>', placeholder: '<string>'}],
image: '<string>',
icon: '<string>',
minValue: 123,
maxValue: 123
}
],
min: 123,
max: 123,
showInfobox: true,
infoboxText: '<string>',
useMarkdown: false,
requireSignatureOtp: false,
contactOptions: {
company: false,
salutation: false,
firstName: true,
lastName: true,
email: true,
phone: true,
mobile: false,
birthdate: false,
street: false,
addressSupplement: false,
zip: false,
city: false,
country: false,
vatId: false
},
helpText: '<string>',
bankDetailsOptions: {showBic: true, showAccountHolder: true, showSignature: false},
licensePlateOptions: {countryFilter: 'all'},
displayStyle: {},
conditions: {},
headingLevel: 123,
name: '<string>',
hubspotContactField: '<string>',
hubspotCompanyField: '<string>',
pipedriveContactField: '<string>',
closeContactField: '<string>',
salesforceContactField: '<string>',
salesforceLeadField: '<string>',
salesforceCaseField: '<string>',
salesforceOpportunityField: '<string>',
salesforceAccountField: '<string>',
evalancheFieldId: '<string>',
klicktippFieldId: '<string>',
style: 123,
defaultCountryCode: '<string>'
})
};
fetch('https://api.example.com/data-field/{fieldId}', 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.example.com/data-field/{fieldId}",
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>',
'locales' => [
[
'locale' => '<string>',
'label' => '<string>',
'placeholder' => '<string>'
]
],
'default' => true,
'required' => true,
'hidden' => true,
'hideUntilChange' => true,
'defaultValue' => '<string>',
'placeholder' => '<string>',
'options' => [
[
'label' => '<string>',
'value' => '<string>',
'pointValue' => 123,
'locales' => [
[
'locale' => '<string>',
'label' => '<string>',
'placeholder' => '<string>'
]
],
'image' => '<string>',
'icon' => '<string>',
'minValue' => 123,
'maxValue' => 123
]
],
'min' => 123,
'max' => 123,
'showInfobox' => true,
'infoboxText' => '<string>',
'useMarkdown' => false,
'requireSignatureOtp' => false,
'contactOptions' => [
'company' => false,
'salutation' => false,
'firstName' => true,
'lastName' => true,
'email' => true,
'phone' => true,
'mobile' => false,
'birthdate' => false,
'street' => false,
'addressSupplement' => false,
'zip' => false,
'city' => false,
'country' => false,
'vatId' => false
],
'helpText' => '<string>',
'bankDetailsOptions' => [
'showBic' => true,
'showAccountHolder' => true,
'showSignature' => false
],
'licensePlateOptions' => [
'countryFilter' => 'all'
],
'displayStyle' => [
],
'conditions' => [
],
'headingLevel' => 123,
'name' => '<string>',
'hubspotContactField' => '<string>',
'hubspotCompanyField' => '<string>',
'pipedriveContactField' => '<string>',
'closeContactField' => '<string>',
'salesforceContactField' => '<string>',
'salesforceLeadField' => '<string>',
'salesforceCaseField' => '<string>',
'salesforceOpportunityField' => '<string>',
'salesforceAccountField' => '<string>',
'evalancheFieldId' => '<string>',
'klicktippFieldId' => '<string>',
'style' => 123,
'defaultCountryCode' => '<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.example.com/data-field/{fieldId}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"default\": true,\n \"required\": true,\n \"hidden\": true,\n \"hideUntilChange\": true,\n \"defaultValue\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"pointValue\": 123,\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"image\": \"<string>\",\n \"icon\": \"<string>\",\n \"minValue\": 123,\n \"maxValue\": 123\n }\n ],\n \"min\": 123,\n \"max\": 123,\n \"showInfobox\": true,\n \"infoboxText\": \"<string>\",\n \"useMarkdown\": false,\n \"requireSignatureOtp\": false,\n \"contactOptions\": {\n \"company\": false,\n \"salutation\": false,\n \"firstName\": true,\n \"lastName\": true,\n \"email\": true,\n \"phone\": true,\n \"mobile\": false,\n \"birthdate\": false,\n \"street\": false,\n \"addressSupplement\": false,\n \"zip\": false,\n \"city\": false,\n \"country\": false,\n \"vatId\": false\n },\n \"helpText\": \"<string>\",\n \"bankDetailsOptions\": {\n \"showBic\": true,\n \"showAccountHolder\": true,\n \"showSignature\": false\n },\n \"licensePlateOptions\": {\n \"countryFilter\": \"all\"\n },\n \"displayStyle\": {},\n \"conditions\": {},\n \"headingLevel\": 123,\n \"name\": \"<string>\",\n \"hubspotContactField\": \"<string>\",\n \"hubspotCompanyField\": \"<string>\",\n \"pipedriveContactField\": \"<string>\",\n \"closeContactField\": \"<string>\",\n \"salesforceContactField\": \"<string>\",\n \"salesforceLeadField\": \"<string>\",\n \"salesforceCaseField\": \"<string>\",\n \"salesforceOpportunityField\": \"<string>\",\n \"salesforceAccountField\": \"<string>\",\n \"evalancheFieldId\": \"<string>\",\n \"klicktippFieldId\": \"<string>\",\n \"style\": 123,\n \"defaultCountryCode\": \"<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.example.com/data-field/{fieldId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"default\": true,\n \"required\": true,\n \"hidden\": true,\n \"hideUntilChange\": true,\n \"defaultValue\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"pointValue\": 123,\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"image\": \"<string>\",\n \"icon\": \"<string>\",\n \"minValue\": 123,\n \"maxValue\": 123\n }\n ],\n \"min\": 123,\n \"max\": 123,\n \"showInfobox\": true,\n \"infoboxText\": \"<string>\",\n \"useMarkdown\": false,\n \"requireSignatureOtp\": false,\n \"contactOptions\": {\n \"company\": false,\n \"salutation\": false,\n \"firstName\": true,\n \"lastName\": true,\n \"email\": true,\n \"phone\": true,\n \"mobile\": false,\n \"birthdate\": false,\n \"street\": false,\n \"addressSupplement\": false,\n \"zip\": false,\n \"city\": false,\n \"country\": false,\n \"vatId\": false\n },\n \"helpText\": \"<string>\",\n \"bankDetailsOptions\": {\n \"showBic\": true,\n \"showAccountHolder\": true,\n \"showSignature\": false\n },\n \"licensePlateOptions\": {\n \"countryFilter\": \"all\"\n },\n \"displayStyle\": {},\n \"conditions\": {},\n \"headingLevel\": 123,\n \"name\": \"<string>\",\n \"hubspotContactField\": \"<string>\",\n \"hubspotCompanyField\": \"<string>\",\n \"pipedriveContactField\": \"<string>\",\n \"closeContactField\": \"<string>\",\n \"salesforceContactField\": \"<string>\",\n \"salesforceLeadField\": \"<string>\",\n \"salesforceCaseField\": \"<string>\",\n \"salesforceOpportunityField\": \"<string>\",\n \"salesforceAccountField\": \"<string>\",\n \"evalancheFieldId\": \"<string>\",\n \"klicktippFieldId\": \"<string>\",\n \"style\": 123,\n \"defaultCountryCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/data-field/{fieldId}")
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 \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"default\": true,\n \"required\": true,\n \"hidden\": true,\n \"hideUntilChange\": true,\n \"defaultValue\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"pointValue\": 123,\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"image\": \"<string>\",\n \"icon\": \"<string>\",\n \"minValue\": 123,\n \"maxValue\": 123\n }\n ],\n \"min\": 123,\n \"max\": 123,\n \"showInfobox\": true,\n \"infoboxText\": \"<string>\",\n \"useMarkdown\": false,\n \"requireSignatureOtp\": false,\n \"contactOptions\": {\n \"company\": false,\n \"salutation\": false,\n \"firstName\": true,\n \"lastName\": true,\n \"email\": true,\n \"phone\": true,\n \"mobile\": false,\n \"birthdate\": false,\n \"street\": false,\n \"addressSupplement\": false,\n \"zip\": false,\n \"city\": false,\n \"country\": false,\n \"vatId\": false\n },\n \"helpText\": \"<string>\",\n \"bankDetailsOptions\": {\n \"showBic\": true,\n \"showAccountHolder\": true,\n \"showSignature\": false\n },\n \"licensePlateOptions\": {\n \"countryFilter\": \"all\"\n },\n \"displayStyle\": {},\n \"conditions\": {},\n \"headingLevel\": 123,\n \"name\": \"<string>\",\n \"hubspotContactField\": \"<string>\",\n \"hubspotCompanyField\": \"<string>\",\n \"pipedriveContactField\": \"<string>\",\n \"closeContactField\": \"<string>\",\n \"salesforceContactField\": \"<string>\",\n \"salesforceLeadField\": \"<string>\",\n \"salesforceCaseField\": \"<string>\",\n \"salesforceOpportunityField\": \"<string>\",\n \"salesforceAccountField\": \"<string>\",\n \"evalancheFieldId\": \"<string>\",\n \"klicktippFieldId\": \"<string>\",\n \"style\": 123,\n \"defaultCountryCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}Authorizations
Bearer token: a Platform API Key (format: ak_live::) or a Personal Access Token (format: rgo-...). PATs always act as the token owner.
Path Parameters
Body
email, phone, text-single, text-multi, number, select, checkbox-single, checkbox-multi, radio, slide, url, file, date-of-birth, yes-no, rating, scale, signature, date, time, image, heading, separator, page-break, contact, bank-details, license-plate, info-text, info-image, info-video, currency, location, pdf-template, file-download email, firstname, lastname, fullname, phone, other Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Configuration for file upload fields. Required when fieldType is 'file'.
Show child attributes
Show child attributes
Used by number field
Used by number field
When true, field.label is rendered through markdown-it (html: false).
Allows bold, italic, code, and links in field labels.
Configuration for contact composite fields. Controls which sub-inputs (name, email, phone, address) are shown.
Show child attributes
Show child attributes
Optional help text shown below the field in the booking form.
Configuration for bank details composite fields. Controls which optional sub-inputs (BIC, account holder, signature) are shown.
Show child attributes
Show child attributes
Configuration for license plate fields. Controls country format validation.
Show child attributes
Show child attributes
Controls how options are displayed for radio/checkbox/select fields. 'default' - Standard list view 'card' - Card grid with optional icons
Conditional visibility expression. When set, the field is only shown when the expression evaluates to true against the current form values.
Heading level for heading fields (1–6). Defaults to 2 (
).
Configuration for PDF template fields. Holds the template PDF reference and pdfme schema JSON.
Show child attributes
Show child attributes
Configuration for file download display fields. Holds IDs of library files to offer for download.
Show child attributes
Show child attributes
For Phone Number field - default country code (e.g., "+1", "+49", "+44"). Used when style is WITH_COUNTRY_CODE_PICKER to set the initial country selection.
Response
curl --request PATCH \
--url https://api.example.com/data-field/{fieldId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"default": true,
"required": true,
"hidden": true,
"hideUntilChange": true,
"defaultValue": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"value": "<string>",
"pointValue": 123,
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"image": "<string>",
"icon": "<string>",
"minValue": 123,
"maxValue": 123
}
],
"min": 123,
"max": 123,
"showInfobox": true,
"infoboxText": "<string>",
"useMarkdown": false,
"requireSignatureOtp": false,
"contactOptions": {
"company": false,
"salutation": false,
"firstName": true,
"lastName": true,
"email": true,
"phone": true,
"mobile": false,
"birthdate": false,
"street": false,
"addressSupplement": false,
"zip": false,
"city": false,
"country": false,
"vatId": false
},
"helpText": "<string>",
"bankDetailsOptions": {
"showBic": true,
"showAccountHolder": true,
"showSignature": false
},
"licensePlateOptions": {
"countryFilter": "all"
},
"displayStyle": {},
"conditions": {},
"headingLevel": 123,
"name": "<string>",
"hubspotContactField": "<string>",
"hubspotCompanyField": "<string>",
"pipedriveContactField": "<string>",
"closeContactField": "<string>",
"salesforceContactField": "<string>",
"salesforceLeadField": "<string>",
"salesforceCaseField": "<string>",
"salesforceOpportunityField": "<string>",
"salesforceAccountField": "<string>",
"evalancheFieldId": "<string>",
"klicktippFieldId": "<string>",
"style": 123,
"defaultCountryCode": "<string>"
}
'import requests
url = "https://api.example.com/data-field/{fieldId}"
payload = {
"label": "<string>",
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"default": True,
"required": True,
"hidden": True,
"hideUntilChange": True,
"defaultValue": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"value": "<string>",
"pointValue": 123,
"locales": [
{
"locale": "<string>",
"label": "<string>",
"placeholder": "<string>"
}
],
"image": "<string>",
"icon": "<string>",
"minValue": 123,
"maxValue": 123
}
],
"min": 123,
"max": 123,
"showInfobox": True,
"infoboxText": "<string>",
"useMarkdown": False,
"requireSignatureOtp": False,
"contactOptions": {
"company": False,
"salutation": False,
"firstName": True,
"lastName": True,
"email": True,
"phone": True,
"mobile": False,
"birthdate": False,
"street": False,
"addressSupplement": False,
"zip": False,
"city": False,
"country": False,
"vatId": False
},
"helpText": "<string>",
"bankDetailsOptions": {
"showBic": True,
"showAccountHolder": True,
"showSignature": False
},
"licensePlateOptions": { "countryFilter": "all" },
"displayStyle": {},
"conditions": {},
"headingLevel": 123,
"name": "<string>",
"hubspotContactField": "<string>",
"hubspotCompanyField": "<string>",
"pipedriveContactField": "<string>",
"closeContactField": "<string>",
"salesforceContactField": "<string>",
"salesforceLeadField": "<string>",
"salesforceCaseField": "<string>",
"salesforceOpportunityField": "<string>",
"salesforceAccountField": "<string>",
"evalancheFieldId": "<string>",
"klicktippFieldId": "<string>",
"style": 123,
"defaultCountryCode": "<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>',
locales: [{locale: '<string>', label: '<string>', placeholder: '<string>'}],
default: true,
required: true,
hidden: true,
hideUntilChange: true,
defaultValue: '<string>',
placeholder: '<string>',
options: [
{
label: '<string>',
value: '<string>',
pointValue: 123,
locales: [{locale: '<string>', label: '<string>', placeholder: '<string>'}],
image: '<string>',
icon: '<string>',
minValue: 123,
maxValue: 123
}
],
min: 123,
max: 123,
showInfobox: true,
infoboxText: '<string>',
useMarkdown: false,
requireSignatureOtp: false,
contactOptions: {
company: false,
salutation: false,
firstName: true,
lastName: true,
email: true,
phone: true,
mobile: false,
birthdate: false,
street: false,
addressSupplement: false,
zip: false,
city: false,
country: false,
vatId: false
},
helpText: '<string>',
bankDetailsOptions: {showBic: true, showAccountHolder: true, showSignature: false},
licensePlateOptions: {countryFilter: 'all'},
displayStyle: {},
conditions: {},
headingLevel: 123,
name: '<string>',
hubspotContactField: '<string>',
hubspotCompanyField: '<string>',
pipedriveContactField: '<string>',
closeContactField: '<string>',
salesforceContactField: '<string>',
salesforceLeadField: '<string>',
salesforceCaseField: '<string>',
salesforceOpportunityField: '<string>',
salesforceAccountField: '<string>',
evalancheFieldId: '<string>',
klicktippFieldId: '<string>',
style: 123,
defaultCountryCode: '<string>'
})
};
fetch('https://api.example.com/data-field/{fieldId}', 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.example.com/data-field/{fieldId}",
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>',
'locales' => [
[
'locale' => '<string>',
'label' => '<string>',
'placeholder' => '<string>'
]
],
'default' => true,
'required' => true,
'hidden' => true,
'hideUntilChange' => true,
'defaultValue' => '<string>',
'placeholder' => '<string>',
'options' => [
[
'label' => '<string>',
'value' => '<string>',
'pointValue' => 123,
'locales' => [
[
'locale' => '<string>',
'label' => '<string>',
'placeholder' => '<string>'
]
],
'image' => '<string>',
'icon' => '<string>',
'minValue' => 123,
'maxValue' => 123
]
],
'min' => 123,
'max' => 123,
'showInfobox' => true,
'infoboxText' => '<string>',
'useMarkdown' => false,
'requireSignatureOtp' => false,
'contactOptions' => [
'company' => false,
'salutation' => false,
'firstName' => true,
'lastName' => true,
'email' => true,
'phone' => true,
'mobile' => false,
'birthdate' => false,
'street' => false,
'addressSupplement' => false,
'zip' => false,
'city' => false,
'country' => false,
'vatId' => false
],
'helpText' => '<string>',
'bankDetailsOptions' => [
'showBic' => true,
'showAccountHolder' => true,
'showSignature' => false
],
'licensePlateOptions' => [
'countryFilter' => 'all'
],
'displayStyle' => [
],
'conditions' => [
],
'headingLevel' => 123,
'name' => '<string>',
'hubspotContactField' => '<string>',
'hubspotCompanyField' => '<string>',
'pipedriveContactField' => '<string>',
'closeContactField' => '<string>',
'salesforceContactField' => '<string>',
'salesforceLeadField' => '<string>',
'salesforceCaseField' => '<string>',
'salesforceOpportunityField' => '<string>',
'salesforceAccountField' => '<string>',
'evalancheFieldId' => '<string>',
'klicktippFieldId' => '<string>',
'style' => 123,
'defaultCountryCode' => '<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.example.com/data-field/{fieldId}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"default\": true,\n \"required\": true,\n \"hidden\": true,\n \"hideUntilChange\": true,\n \"defaultValue\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"pointValue\": 123,\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"image\": \"<string>\",\n \"icon\": \"<string>\",\n \"minValue\": 123,\n \"maxValue\": 123\n }\n ],\n \"min\": 123,\n \"max\": 123,\n \"showInfobox\": true,\n \"infoboxText\": \"<string>\",\n \"useMarkdown\": false,\n \"requireSignatureOtp\": false,\n \"contactOptions\": {\n \"company\": false,\n \"salutation\": false,\n \"firstName\": true,\n \"lastName\": true,\n \"email\": true,\n \"phone\": true,\n \"mobile\": false,\n \"birthdate\": false,\n \"street\": false,\n \"addressSupplement\": false,\n \"zip\": false,\n \"city\": false,\n \"country\": false,\n \"vatId\": false\n },\n \"helpText\": \"<string>\",\n \"bankDetailsOptions\": {\n \"showBic\": true,\n \"showAccountHolder\": true,\n \"showSignature\": false\n },\n \"licensePlateOptions\": {\n \"countryFilter\": \"all\"\n },\n \"displayStyle\": {},\n \"conditions\": {},\n \"headingLevel\": 123,\n \"name\": \"<string>\",\n \"hubspotContactField\": \"<string>\",\n \"hubspotCompanyField\": \"<string>\",\n \"pipedriveContactField\": \"<string>\",\n \"closeContactField\": \"<string>\",\n \"salesforceContactField\": \"<string>\",\n \"salesforceLeadField\": \"<string>\",\n \"salesforceCaseField\": \"<string>\",\n \"salesforceOpportunityField\": \"<string>\",\n \"salesforceAccountField\": \"<string>\",\n \"evalancheFieldId\": \"<string>\",\n \"klicktippFieldId\": \"<string>\",\n \"style\": 123,\n \"defaultCountryCode\": \"<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.example.com/data-field/{fieldId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"default\": true,\n \"required\": true,\n \"hidden\": true,\n \"hideUntilChange\": true,\n \"defaultValue\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"pointValue\": 123,\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"image\": \"<string>\",\n \"icon\": \"<string>\",\n \"minValue\": 123,\n \"maxValue\": 123\n }\n ],\n \"min\": 123,\n \"max\": 123,\n \"showInfobox\": true,\n \"infoboxText\": \"<string>\",\n \"useMarkdown\": false,\n \"requireSignatureOtp\": false,\n \"contactOptions\": {\n \"company\": false,\n \"salutation\": false,\n \"firstName\": true,\n \"lastName\": true,\n \"email\": true,\n \"phone\": true,\n \"mobile\": false,\n \"birthdate\": false,\n \"street\": false,\n \"addressSupplement\": false,\n \"zip\": false,\n \"city\": false,\n \"country\": false,\n \"vatId\": false\n },\n \"helpText\": \"<string>\",\n \"bankDetailsOptions\": {\n \"showBic\": true,\n \"showAccountHolder\": true,\n \"showSignature\": false\n },\n \"licensePlateOptions\": {\n \"countryFilter\": \"all\"\n },\n \"displayStyle\": {},\n \"conditions\": {},\n \"headingLevel\": 123,\n \"name\": \"<string>\",\n \"hubspotContactField\": \"<string>\",\n \"hubspotCompanyField\": \"<string>\",\n \"pipedriveContactField\": \"<string>\",\n \"closeContactField\": \"<string>\",\n \"salesforceContactField\": \"<string>\",\n \"salesforceLeadField\": \"<string>\",\n \"salesforceCaseField\": \"<string>\",\n \"salesforceOpportunityField\": \"<string>\",\n \"salesforceAccountField\": \"<string>\",\n \"evalancheFieldId\": \"<string>\",\n \"klicktippFieldId\": \"<string>\",\n \"style\": 123,\n \"defaultCountryCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/data-field/{fieldId}")
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 \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"default\": true,\n \"required\": true,\n \"hidden\": true,\n \"hideUntilChange\": true,\n \"defaultValue\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"pointValue\": 123,\n \"locales\": [\n {\n \"locale\": \"<string>\",\n \"label\": \"<string>\",\n \"placeholder\": \"<string>\"\n }\n ],\n \"image\": \"<string>\",\n \"icon\": \"<string>\",\n \"minValue\": 123,\n \"maxValue\": 123\n }\n ],\n \"min\": 123,\n \"max\": 123,\n \"showInfobox\": true,\n \"infoboxText\": \"<string>\",\n \"useMarkdown\": false,\n \"requireSignatureOtp\": false,\n \"contactOptions\": {\n \"company\": false,\n \"salutation\": false,\n \"firstName\": true,\n \"lastName\": true,\n \"email\": true,\n \"phone\": true,\n \"mobile\": false,\n \"birthdate\": false,\n \"street\": false,\n \"addressSupplement\": false,\n \"zip\": false,\n \"city\": false,\n \"country\": false,\n \"vatId\": false\n },\n \"helpText\": \"<string>\",\n \"bankDetailsOptions\": {\n \"showBic\": true,\n \"showAccountHolder\": true,\n \"showSignature\": false\n },\n \"licensePlateOptions\": {\n \"countryFilter\": \"all\"\n },\n \"displayStyle\": {},\n \"conditions\": {},\n \"headingLevel\": 123,\n \"name\": \"<string>\",\n \"hubspotContactField\": \"<string>\",\n \"hubspotCompanyField\": \"<string>\",\n \"pipedriveContactField\": \"<string>\",\n \"closeContactField\": \"<string>\",\n \"salesforceContactField\": \"<string>\",\n \"salesforceLeadField\": \"<string>\",\n \"salesforceCaseField\": \"<string>\",\n \"salesforceOpportunityField\": \"<string>\",\n \"salesforceAccountField\": \"<string>\",\n \"evalancheFieldId\": \"<string>\",\n \"klicktippFieldId\": \"<string>\",\n \"style\": 123,\n \"defaultCountryCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "BadRequestException"
}