Save a draft with optimistic version check
Requires forms:write and administrator rights. A stale version returns 409. Saving share_mode applies generic-link access immediately; definition expiry/single-use settings apply when published.
curl --request PATCH \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"version": 2,
"definition": {
"questions": [
{
"id": "<string>",
"title": "<string>",
"required": true,
"options": [
"<string>"
],
"rows": [
"<string>"
],
"columns": [
"<string>"
],
"min": 123,
"max": 123,
"score": {},
"description": "<string>",
"placeholder": "<string>",
"images": [
"<string>"
],
"mediaUrl": "<string>",
"randomize": true,
"currency": "<string>",
"amount": 5000000,
"redirectUrl": "<string>",
"notes": [
"<string>"
]
}
],
"branding": {
"name": "<string>",
"logo_url": "<string>",
"logo_alt": "<string>",
"show_logo": true,
"show_name": true
},
"cdp_mapping": [
{
"question_id": "<string>",
"fill_policy": "fill_empty",
"subfield": "<string>",
"prefill_from_cdp": true
}
],
"advancedLogic": {
"allowedUrlParams": [
"<string>"
],
"variables": [
{
"name": "<string>",
"initial": 0
}
],
"startRules": [
{
"when": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
},
"destination": {
"questionId": "<string>"
}
}
],
"questionRules": [
{
"questionId": "<string>",
"hideWhen": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
},
"branches": [
{
"when": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
},
"destination": {
"questionId": "<string>"
}
}
],
"calculations": [
{
"target": "<string>",
"operand": {
"value": "<string>"
},
"when": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
}
}
]
}
]
},
"logic": {},
"description": "<string>",
"domain": "<string>",
"accent": "<string>",
"thankYou": "<string>",
"share": {
"expires_at": "2023-11-07T05:31:56Z",
"single_use": true,
"title": "<string>",
"description": "<string>",
"image_url": "<string>"
},
"controls": {
"responseCap": 0
},
"create_contacts": false
}
}
'import requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}"
payload = {
"title": "<string>",
"version": 2,
"definition": {
"questions": [
{
"id": "<string>",
"title": "<string>",
"required": True,
"options": ["<string>"],
"rows": ["<string>"],
"columns": ["<string>"],
"min": 123,
"max": 123,
"score": {},
"description": "<string>",
"placeholder": "<string>",
"images": ["<string>"],
"mediaUrl": "<string>",
"randomize": True,
"currency": "<string>",
"amount": 5000000,
"redirectUrl": "<string>",
"notes": ["<string>"]
}
],
"branding": {
"name": "<string>",
"logo_url": "<string>",
"logo_alt": "<string>",
"show_logo": True,
"show_name": True
},
"cdp_mapping": [
{
"question_id": "<string>",
"fill_policy": "fill_empty",
"subfield": "<string>",
"prefill_from_cdp": True
}
],
"advancedLogic": {
"allowedUrlParams": ["<string>"],
"variables": [
{
"name": "<string>",
"initial": 0
}
],
"startRules": [
{
"when": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] },
"destination": { "questionId": "<string>" }
}
],
"questionRules": [
{
"questionId": "<string>",
"hideWhen": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] },
"branches": [
{
"when": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] },
"destination": { "questionId": "<string>" }
}
],
"calculations": [
{
"target": "<string>",
"operand": { "value": "<string>" },
"when": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] }
}
]
}
]
},
"logic": {},
"description": "<string>",
"domain": "<string>",
"accent": "<string>",
"thankYou": "<string>",
"share": {
"expires_at": "2023-11-07T05:31:56Z",
"single_use": True,
"title": "<string>",
"description": "<string>",
"image_url": "<string>"
},
"controls": { "responseCap": 0 },
"create_contacts": False
}
}
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({
title: '<string>',
version: 2,
definition: {
questions: [
{
id: '<string>',
title: '<string>',
required: true,
options: ['<string>'],
rows: ['<string>'],
columns: ['<string>'],
min: 123,
max: 123,
score: {},
description: '<string>',
placeholder: '<string>',
images: ['<string>'],
mediaUrl: '<string>',
randomize: true,
currency: '<string>',
amount: 5000000,
redirectUrl: '<string>',
notes: ['<string>']
}
],
branding: {
name: '<string>',
logo_url: '<string>',
logo_alt: '<string>',
show_logo: true,
show_name: true
},
cdp_mapping: [
{
question_id: '<string>',
fill_policy: 'fill_empty',
subfield: '<string>',
prefill_from_cdp: true
}
],
advancedLogic: {
allowedUrlParams: ['<string>'],
variables: [{name: '<string>', initial: 0}],
startRules: [
{
when: {conditions: [{source: {key: '<string>'}, value: '<string>'}]},
destination: {questionId: '<string>'}
}
],
questionRules: [
{
questionId: '<string>',
hideWhen: {conditions: [{source: {key: '<string>'}, value: '<string>'}]},
branches: [
{
when: {conditions: [{source: {key: '<string>'}, value: '<string>'}]},
destination: {questionId: '<string>'}
}
],
calculations: [
{
target: '<string>',
operand: {value: '<string>'},
when: {conditions: [{source: {key: '<string>'}, value: '<string>'}]}
}
]
}
]
},
logic: {},
description: '<string>',
domain: '<string>',
accent: '<string>',
thankYou: '<string>',
share: {
expires_at: '2023-11-07T05:31:56Z',
single_use: true,
title: '<string>',
description: '<string>',
image_url: '<string>'
},
controls: {responseCap: 0},
create_contacts: false
}
})
};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}', 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://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}",
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([
'title' => '<string>',
'version' => 2,
'definition' => [
'questions' => [
[
'id' => '<string>',
'title' => '<string>',
'required' => true,
'options' => [
'<string>'
],
'rows' => [
'<string>'
],
'columns' => [
'<string>'
],
'min' => 123,
'max' => 123,
'score' => [
],
'description' => '<string>',
'placeholder' => '<string>',
'images' => [
'<string>'
],
'mediaUrl' => '<string>',
'randomize' => true,
'currency' => '<string>',
'amount' => 5000000,
'redirectUrl' => '<string>',
'notes' => [
'<string>'
]
]
],
'branding' => [
'name' => '<string>',
'logo_url' => '<string>',
'logo_alt' => '<string>',
'show_logo' => true,
'show_name' => true
],
'cdp_mapping' => [
[
'question_id' => '<string>',
'fill_policy' => 'fill_empty',
'subfield' => '<string>',
'prefill_from_cdp' => true
]
],
'advancedLogic' => [
'allowedUrlParams' => [
'<string>'
],
'variables' => [
[
'name' => '<string>',
'initial' => 0
]
],
'startRules' => [
[
'when' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
],
'destination' => [
'questionId' => '<string>'
]
]
],
'questionRules' => [
[
'questionId' => '<string>',
'hideWhen' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
],
'branches' => [
[
'when' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
],
'destination' => [
'questionId' => '<string>'
]
]
],
'calculations' => [
[
'target' => '<string>',
'operand' => [
'value' => '<string>'
],
'when' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
]
]
]
]
]
],
'logic' => [
],
'description' => '<string>',
'domain' => '<string>',
'accent' => '<string>',
'thankYou' => '<string>',
'share' => [
'expires_at' => '2023-11-07T05:31:56Z',
'single_use' => true,
'title' => '<string>',
'description' => '<string>',
'image_url' => '<string>'
],
'controls' => [
'responseCap' => 0
],
'create_contacts' => false
]
]),
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://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"version\": 2,\n \"definition\": {\n \"questions\": [\n {\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"options\": [\n \"<string>\"\n ],\n \"rows\": [\n \"<string>\"\n ],\n \"columns\": [\n \"<string>\"\n ],\n \"min\": 123,\n \"max\": 123,\n \"score\": {},\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"mediaUrl\": \"<string>\",\n \"randomize\": true,\n \"currency\": \"<string>\",\n \"amount\": 5000000,\n \"redirectUrl\": \"<string>\",\n \"notes\": [\n \"<string>\"\n ]\n }\n ],\n \"branding\": {\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"logo_alt\": \"<string>\",\n \"show_logo\": true,\n \"show_name\": true\n },\n \"cdp_mapping\": [\n {\n \"question_id\": \"<string>\",\n \"fill_policy\": \"fill_empty\",\n \"subfield\": \"<string>\",\n \"prefill_from_cdp\": true\n }\n ],\n \"advancedLogic\": {\n \"allowedUrlParams\": [\n \"<string>\"\n ],\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"initial\": 0\n }\n ],\n \"startRules\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"questionRules\": [\n {\n \"questionId\": \"<string>\",\n \"hideWhen\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"branches\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"calculations\": [\n {\n \"target\": \"<string>\",\n \"operand\": {\n \"value\": \"<string>\"\n },\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ]\n }\n ]\n },\n \"logic\": {},\n \"description\": \"<string>\",\n \"domain\": \"<string>\",\n \"accent\": \"<string>\",\n \"thankYou\": \"<string>\",\n \"share\": {\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"single_use\": true,\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\"\n },\n \"controls\": {\n \"responseCap\": 0\n },\n \"create_contacts\": false\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://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"version\": 2,\n \"definition\": {\n \"questions\": [\n {\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"options\": [\n \"<string>\"\n ],\n \"rows\": [\n \"<string>\"\n ],\n \"columns\": [\n \"<string>\"\n ],\n \"min\": 123,\n \"max\": 123,\n \"score\": {},\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"mediaUrl\": \"<string>\",\n \"randomize\": true,\n \"currency\": \"<string>\",\n \"amount\": 5000000,\n \"redirectUrl\": \"<string>\",\n \"notes\": [\n \"<string>\"\n ]\n }\n ],\n \"branding\": {\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"logo_alt\": \"<string>\",\n \"show_logo\": true,\n \"show_name\": true\n },\n \"cdp_mapping\": [\n {\n \"question_id\": \"<string>\",\n \"fill_policy\": \"fill_empty\",\n \"subfield\": \"<string>\",\n \"prefill_from_cdp\": true\n }\n ],\n \"advancedLogic\": {\n \"allowedUrlParams\": [\n \"<string>\"\n ],\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"initial\": 0\n }\n ],\n \"startRules\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"questionRules\": [\n {\n \"questionId\": \"<string>\",\n \"hideWhen\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"branches\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"calculations\": [\n {\n \"target\": \"<string>\",\n \"operand\": {\n \"value\": \"<string>\"\n },\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ]\n }\n ]\n },\n \"logic\": {},\n \"description\": \"<string>\",\n \"domain\": \"<string>\",\n \"accent\": \"<string>\",\n \"thankYou\": \"<string>\",\n \"share\": {\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"single_use\": true,\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\"\n },\n \"controls\": {\n \"responseCap\": 0\n },\n \"create_contacts\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}")
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 \"title\": \"<string>\",\n \"version\": 2,\n \"definition\": {\n \"questions\": [\n {\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"options\": [\n \"<string>\"\n ],\n \"rows\": [\n \"<string>\"\n ],\n \"columns\": [\n \"<string>\"\n ],\n \"min\": 123,\n \"max\": 123,\n \"score\": {},\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"mediaUrl\": \"<string>\",\n \"randomize\": true,\n \"currency\": \"<string>\",\n \"amount\": 5000000,\n \"redirectUrl\": \"<string>\",\n \"notes\": [\n \"<string>\"\n ]\n }\n ],\n \"branding\": {\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"logo_alt\": \"<string>\",\n \"show_logo\": true,\n \"show_name\": true\n },\n \"cdp_mapping\": [\n {\n \"question_id\": \"<string>\",\n \"fill_policy\": \"fill_empty\",\n \"subfield\": \"<string>\",\n \"prefill_from_cdp\": true\n }\n ],\n \"advancedLogic\": {\n \"allowedUrlParams\": [\n \"<string>\"\n ],\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"initial\": 0\n }\n ],\n \"startRules\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"questionRules\": [\n {\n \"questionId\": \"<string>\",\n \"hideWhen\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"branches\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"calculations\": [\n {\n \"target\": \"<string>\",\n \"operand\": {\n \"value\": \"<string>\"\n },\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ]\n }\n ]\n },\n \"logic\": {},\n \"description\": \"<string>\",\n \"domain\": \"<string>\",\n \"accent\": \"<string>\",\n \"thankYou\": \"<string>\",\n \"share\": {\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"single_use\": true,\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\"\n },\n \"controls\": {\n \"responseCap\": 0\n },\n \"create_contacts\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "draft",
"public_code": "<string>",
"public_url": "<string>",
"definition": {
"language": "en",
"questions": [
{
"id": "<string>",
"type": "welcome",
"title": "<string>",
"required": true,
"options": [
"<string>"
],
"rows": [
"<string>"
],
"columns": [
"<string>"
],
"min": 123,
"max": 123,
"score": {},
"description": "<string>",
"placeholder": "<string>",
"titleDelta": {
"ops": [
{
"insert": "<string>",
"attributes": {
"bold": true,
"italic": true,
"underline": true
}
}
]
},
"descriptionDelta": {
"ops": [
{
"insert": "<string>",
"attributes": {
"bold": true,
"italic": true,
"underline": true
}
}
]
},
"images": [
"<string>"
],
"mediaUrl": "<string>",
"mediaKind": "image",
"presentation": "text",
"randomize": true,
"currency": "<string>",
"amount": 5000000,
"redirectUrl": "<string>",
"notes": [
"<string>"
],
"schedule": {
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"ai": {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"max_turns": 2,
"instructions": "<string>",
"knowledge": "<string>"
}
}
],
"branding": {
"name": "<string>",
"logo_url": "<string>",
"logo_alt": "<string>",
"show_logo": true,
"show_name": true
},
"cdp_mapping": [
{
"question_id": "<string>",
"target": "name",
"fill_policy": "fill_empty",
"subfield": "<string>",
"prefill_from_cdp": true
}
],
"advancedLogic": {
"allowedUrlParams": [
"<string>"
],
"variables": [
{
"name": "<string>",
"initial": 0
}
],
"startRules": [
{
"when": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
},
"destination": {
"kind": "next",
"questionId": "<string>"
}
}
],
"questionRules": [
{
"questionId": "<string>",
"hideWhen": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
},
"branches": [
{
"when": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
},
"destination": {
"kind": "next",
"questionId": "<string>"
}
}
],
"fallback": {
"kind": "next",
"questionId": "<string>"
},
"calculations": [
{
"operation": "set",
"target": "<string>",
"operand": {
"kind": "constant",
"value": "<string>"
},
"when": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
}
}
]
}
]
},
"logic": {},
"description": "<string>",
"domain": "<string>",
"mode": "universal",
"accent": "<string>",
"thankYou": "<string>",
"share": {
"expires_at": "2023-11-07T05:31:56Z",
"single_use": true,
"title": "<string>",
"description": "<string>",
"image_url": "<string>"
},
"controls": {
"responseCap": 0
},
"translations": {
"schemaVersion": 1,
"languages": {},
"updatedAt": "<string>"
},
"create_contacts": false
},
"published_version": 123,
"version": 123,
"share_mode": "public_link",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"responses": 1,
"completed": 1,
"views": 1,
"starts": 1,
"published_available": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"code": "plan_disabled",
"feature": "forms"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Your personal access token where supported, or a scoped API key (hc_…) created inside HueChat at Account → Developer API. Send it as Authorization: Bearer <token>.
Body
1 - 160x >= 1Owner editable definition, maximum serialized size 256 KiB. PublicDefinition strips notes and private AI configuration.
Show child attributes
Show child attributes
public_link, invitation_only Response
Saved form
draft, published, closed, archived Built by the server from trusted FRONTEND_URL, never a fixed tenant subdomain.
Owner editable definition, maximum serialized size 256 KiB. PublicDefinition strips notes and private AI configuration.
Show child attributes
Show child attributes
public_link, invitation_only x >= 0x >= 0x >= 0x >= 0Server-derived availability of the immutable published definition at the time of this response, including its respondent expiry. False for unpublished or expired definitions.
curl --request PATCH \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"version": 2,
"definition": {
"questions": [
{
"id": "<string>",
"title": "<string>",
"required": true,
"options": [
"<string>"
],
"rows": [
"<string>"
],
"columns": [
"<string>"
],
"min": 123,
"max": 123,
"score": {},
"description": "<string>",
"placeholder": "<string>",
"images": [
"<string>"
],
"mediaUrl": "<string>",
"randomize": true,
"currency": "<string>",
"amount": 5000000,
"redirectUrl": "<string>",
"notes": [
"<string>"
]
}
],
"branding": {
"name": "<string>",
"logo_url": "<string>",
"logo_alt": "<string>",
"show_logo": true,
"show_name": true
},
"cdp_mapping": [
{
"question_id": "<string>",
"fill_policy": "fill_empty",
"subfield": "<string>",
"prefill_from_cdp": true
}
],
"advancedLogic": {
"allowedUrlParams": [
"<string>"
],
"variables": [
{
"name": "<string>",
"initial": 0
}
],
"startRules": [
{
"when": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
},
"destination": {
"questionId": "<string>"
}
}
],
"questionRules": [
{
"questionId": "<string>",
"hideWhen": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
},
"branches": [
{
"when": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
},
"destination": {
"questionId": "<string>"
}
}
],
"calculations": [
{
"target": "<string>",
"operand": {
"value": "<string>"
},
"when": {
"conditions": [
{
"source": {
"key": "<string>"
},
"value": "<string>"
}
]
}
}
]
}
]
},
"logic": {},
"description": "<string>",
"domain": "<string>",
"accent": "<string>",
"thankYou": "<string>",
"share": {
"expires_at": "2023-11-07T05:31:56Z",
"single_use": true,
"title": "<string>",
"description": "<string>",
"image_url": "<string>"
},
"controls": {
"responseCap": 0
},
"create_contacts": false
}
}
'import requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}"
payload = {
"title": "<string>",
"version": 2,
"definition": {
"questions": [
{
"id": "<string>",
"title": "<string>",
"required": True,
"options": ["<string>"],
"rows": ["<string>"],
"columns": ["<string>"],
"min": 123,
"max": 123,
"score": {},
"description": "<string>",
"placeholder": "<string>",
"images": ["<string>"],
"mediaUrl": "<string>",
"randomize": True,
"currency": "<string>",
"amount": 5000000,
"redirectUrl": "<string>",
"notes": ["<string>"]
}
],
"branding": {
"name": "<string>",
"logo_url": "<string>",
"logo_alt": "<string>",
"show_logo": True,
"show_name": True
},
"cdp_mapping": [
{
"question_id": "<string>",
"fill_policy": "fill_empty",
"subfield": "<string>",
"prefill_from_cdp": True
}
],
"advancedLogic": {
"allowedUrlParams": ["<string>"],
"variables": [
{
"name": "<string>",
"initial": 0
}
],
"startRules": [
{
"when": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] },
"destination": { "questionId": "<string>" }
}
],
"questionRules": [
{
"questionId": "<string>",
"hideWhen": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] },
"branches": [
{
"when": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] },
"destination": { "questionId": "<string>" }
}
],
"calculations": [
{
"target": "<string>",
"operand": { "value": "<string>" },
"when": { "conditions": [
{
"source": { "key": "<string>" },
"value": "<string>"
}
] }
}
]
}
]
},
"logic": {},
"description": "<string>",
"domain": "<string>",
"accent": "<string>",
"thankYou": "<string>",
"share": {
"expires_at": "2023-11-07T05:31:56Z",
"single_use": True,
"title": "<string>",
"description": "<string>",
"image_url": "<string>"
},
"controls": { "responseCap": 0 },
"create_contacts": False
}
}
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({
title: '<string>',
version: 2,
definition: {
questions: [
{
id: '<string>',
title: '<string>',
required: true,
options: ['<string>'],
rows: ['<string>'],
columns: ['<string>'],
min: 123,
max: 123,
score: {},
description: '<string>',
placeholder: '<string>',
images: ['<string>'],
mediaUrl: '<string>',
randomize: true,
currency: '<string>',
amount: 5000000,
redirectUrl: '<string>',
notes: ['<string>']
}
],
branding: {
name: '<string>',
logo_url: '<string>',
logo_alt: '<string>',
show_logo: true,
show_name: true
},
cdp_mapping: [
{
question_id: '<string>',
fill_policy: 'fill_empty',
subfield: '<string>',
prefill_from_cdp: true
}
],
advancedLogic: {
allowedUrlParams: ['<string>'],
variables: [{name: '<string>', initial: 0}],
startRules: [
{
when: {conditions: [{source: {key: '<string>'}, value: '<string>'}]},
destination: {questionId: '<string>'}
}
],
questionRules: [
{
questionId: '<string>',
hideWhen: {conditions: [{source: {key: '<string>'}, value: '<string>'}]},
branches: [
{
when: {conditions: [{source: {key: '<string>'}, value: '<string>'}]},
destination: {questionId: '<string>'}
}
],
calculations: [
{
target: '<string>',
operand: {value: '<string>'},
when: {conditions: [{source: {key: '<string>'}, value: '<string>'}]}
}
]
}
]
},
logic: {},
description: '<string>',
domain: '<string>',
accent: '<string>',
thankYou: '<string>',
share: {
expires_at: '2023-11-07T05:31:56Z',
single_use: true,
title: '<string>',
description: '<string>',
image_url: '<string>'
},
controls: {responseCap: 0},
create_contacts: false
}
})
};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}', 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://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}",
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([
'title' => '<string>',
'version' => 2,
'definition' => [
'questions' => [
[
'id' => '<string>',
'title' => '<string>',
'required' => true,
'options' => [
'<string>'
],
'rows' => [
'<string>'
],
'columns' => [
'<string>'
],
'min' => 123,
'max' => 123,
'score' => [
],
'description' => '<string>',
'placeholder' => '<string>',
'images' => [
'<string>'
],
'mediaUrl' => '<string>',
'randomize' => true,
'currency' => '<string>',
'amount' => 5000000,
'redirectUrl' => '<string>',
'notes' => [
'<string>'
]
]
],
'branding' => [
'name' => '<string>',
'logo_url' => '<string>',
'logo_alt' => '<string>',
'show_logo' => true,
'show_name' => true
],
'cdp_mapping' => [
[
'question_id' => '<string>',
'fill_policy' => 'fill_empty',
'subfield' => '<string>',
'prefill_from_cdp' => true
]
],
'advancedLogic' => [
'allowedUrlParams' => [
'<string>'
],
'variables' => [
[
'name' => '<string>',
'initial' => 0
]
],
'startRules' => [
[
'when' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
],
'destination' => [
'questionId' => '<string>'
]
]
],
'questionRules' => [
[
'questionId' => '<string>',
'hideWhen' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
],
'branches' => [
[
'when' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
],
'destination' => [
'questionId' => '<string>'
]
]
],
'calculations' => [
[
'target' => '<string>',
'operand' => [
'value' => '<string>'
],
'when' => [
'conditions' => [
[
'source' => [
'key' => '<string>'
],
'value' => '<string>'
]
]
]
]
]
]
]
],
'logic' => [
],
'description' => '<string>',
'domain' => '<string>',
'accent' => '<string>',
'thankYou' => '<string>',
'share' => [
'expires_at' => '2023-11-07T05:31:56Z',
'single_use' => true,
'title' => '<string>',
'description' => '<string>',
'image_url' => '<string>'
],
'controls' => [
'responseCap' => 0
],
'create_contacts' => false
]
]),
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://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"version\": 2,\n \"definition\": {\n \"questions\": [\n {\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"options\": [\n \"<string>\"\n ],\n \"rows\": [\n \"<string>\"\n ],\n \"columns\": [\n \"<string>\"\n ],\n \"min\": 123,\n \"max\": 123,\n \"score\": {},\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"mediaUrl\": \"<string>\",\n \"randomize\": true,\n \"currency\": \"<string>\",\n \"amount\": 5000000,\n \"redirectUrl\": \"<string>\",\n \"notes\": [\n \"<string>\"\n ]\n }\n ],\n \"branding\": {\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"logo_alt\": \"<string>\",\n \"show_logo\": true,\n \"show_name\": true\n },\n \"cdp_mapping\": [\n {\n \"question_id\": \"<string>\",\n \"fill_policy\": \"fill_empty\",\n \"subfield\": \"<string>\",\n \"prefill_from_cdp\": true\n }\n ],\n \"advancedLogic\": {\n \"allowedUrlParams\": [\n \"<string>\"\n ],\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"initial\": 0\n }\n ],\n \"startRules\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"questionRules\": [\n {\n \"questionId\": \"<string>\",\n \"hideWhen\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"branches\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"calculations\": [\n {\n \"target\": \"<string>\",\n \"operand\": {\n \"value\": \"<string>\"\n },\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ]\n }\n ]\n },\n \"logic\": {},\n \"description\": \"<string>\",\n \"domain\": \"<string>\",\n \"accent\": \"<string>\",\n \"thankYou\": \"<string>\",\n \"share\": {\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"single_use\": true,\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\"\n },\n \"controls\": {\n \"responseCap\": 0\n },\n \"create_contacts\": false\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://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"version\": 2,\n \"definition\": {\n \"questions\": [\n {\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"options\": [\n \"<string>\"\n ],\n \"rows\": [\n \"<string>\"\n ],\n \"columns\": [\n \"<string>\"\n ],\n \"min\": 123,\n \"max\": 123,\n \"score\": {},\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"mediaUrl\": \"<string>\",\n \"randomize\": true,\n \"currency\": \"<string>\",\n \"amount\": 5000000,\n \"redirectUrl\": \"<string>\",\n \"notes\": [\n \"<string>\"\n ]\n }\n ],\n \"branding\": {\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"logo_alt\": \"<string>\",\n \"show_logo\": true,\n \"show_name\": true\n },\n \"cdp_mapping\": [\n {\n \"question_id\": \"<string>\",\n \"fill_policy\": \"fill_empty\",\n \"subfield\": \"<string>\",\n \"prefill_from_cdp\": true\n }\n ],\n \"advancedLogic\": {\n \"allowedUrlParams\": [\n \"<string>\"\n ],\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"initial\": 0\n }\n ],\n \"startRules\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"questionRules\": [\n {\n \"questionId\": \"<string>\",\n \"hideWhen\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"branches\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"calculations\": [\n {\n \"target\": \"<string>\",\n \"operand\": {\n \"value\": \"<string>\"\n },\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ]\n }\n ]\n },\n \"logic\": {},\n \"description\": \"<string>\",\n \"domain\": \"<string>\",\n \"accent\": \"<string>\",\n \"thankYou\": \"<string>\",\n \"share\": {\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"single_use\": true,\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\"\n },\n \"controls\": {\n \"responseCap\": 0\n },\n \"create_contacts\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/forms/{formId}")
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 \"title\": \"<string>\",\n \"version\": 2,\n \"definition\": {\n \"questions\": [\n {\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"options\": [\n \"<string>\"\n ],\n \"rows\": [\n \"<string>\"\n ],\n \"columns\": [\n \"<string>\"\n ],\n \"min\": 123,\n \"max\": 123,\n \"score\": {},\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"mediaUrl\": \"<string>\",\n \"randomize\": true,\n \"currency\": \"<string>\",\n \"amount\": 5000000,\n \"redirectUrl\": \"<string>\",\n \"notes\": [\n \"<string>\"\n ]\n }\n ],\n \"branding\": {\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"logo_alt\": \"<string>\",\n \"show_logo\": true,\n \"show_name\": true\n },\n \"cdp_mapping\": [\n {\n \"question_id\": \"<string>\",\n \"fill_policy\": \"fill_empty\",\n \"subfield\": \"<string>\",\n \"prefill_from_cdp\": true\n }\n ],\n \"advancedLogic\": {\n \"allowedUrlParams\": [\n \"<string>\"\n ],\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"initial\": 0\n }\n ],\n \"startRules\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"questionRules\": [\n {\n \"questionId\": \"<string>\",\n \"hideWhen\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"branches\": [\n {\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n },\n \"destination\": {\n \"questionId\": \"<string>\"\n }\n }\n ],\n \"calculations\": [\n {\n \"target\": \"<string>\",\n \"operand\": {\n \"value\": \"<string>\"\n },\n \"when\": {\n \"conditions\": [\n {\n \"source\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ]\n }\n ]\n },\n \"logic\": {},\n \"description\": \"<string>\",\n \"domain\": \"<string>\",\n \"accent\": \"<string>\",\n \"thankYou\": \"<string>\",\n \"share\": {\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"single_use\": true,\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\"\n },\n \"controls\": {\n \"responseCap\": 0\n },\n \"create_contacts\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "draft",
"public_code": "<string>",
"public_url": "<string>",
"definition": {
"language": "en",
"questions": [
{
"id": "<string>",
"type": "welcome",
"title": "<string>",
"required": true,
"options": [
"<string>"
],
"rows": [
"<string>"
],
"columns": [
"<string>"
],
"min": 123,
"max": 123,
"score": {},
"description": "<string>",
"placeholder": "<string>",
"titleDelta": {
"ops": [
{
"insert": "<string>",
"attributes": {
"bold": true,
"italic": true,
"underline": true
}
}
]
},
"descriptionDelta": {
"ops": [
{
"insert": "<string>",
"attributes": {
"bold": true,
"italic": true,
"underline": true
}
}
]
},
"images": [
"<string>"
],
"mediaUrl": "<string>",
"mediaKind": "image",
"presentation": "text",
"randomize": true,
"currency": "<string>",
"amount": 5000000,
"redirectUrl": "<string>",
"notes": [
"<string>"
],
"schedule": {
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"ai": {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"max_turns": 2,
"instructions": "<string>",
"knowledge": "<string>"
}
}
],
"branding": {
"name": "<string>",
"logo_url": "<string>",
"logo_alt": "<string>",
"show_logo": true,
"show_name": true
},
"cdp_mapping": [
{
"question_id": "<string>",
"target": "name",
"fill_policy": "fill_empty",
"subfield": "<string>",
"prefill_from_cdp": true
}
],
"advancedLogic": {
"allowedUrlParams": [
"<string>"
],
"variables": [
{
"name": "<string>",
"initial": 0
}
],
"startRules": [
{
"when": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
},
"destination": {
"kind": "next",
"questionId": "<string>"
}
}
],
"questionRules": [
{
"questionId": "<string>",
"hideWhen": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
},
"branches": [
{
"when": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
},
"destination": {
"kind": "next",
"questionId": "<string>"
}
}
],
"fallback": {
"kind": "next",
"questionId": "<string>"
},
"calculations": [
{
"operation": "set",
"target": "<string>",
"operand": {
"kind": "constant",
"value": "<string>"
},
"when": {
"mode": "all",
"conditions": [
{
"source": {
"kind": "answer",
"key": "<string>"
},
"operator": "equals",
"value": "<string>"
}
]
}
}
]
}
]
},
"logic": {},
"description": "<string>",
"domain": "<string>",
"mode": "universal",
"accent": "<string>",
"thankYou": "<string>",
"share": {
"expires_at": "2023-11-07T05:31:56Z",
"single_use": true,
"title": "<string>",
"description": "<string>",
"image_url": "<string>"
},
"controls": {
"responseCap": 0
},
"translations": {
"schemaVersion": 1,
"languages": {},
"updatedAt": "<string>"
},
"create_contacts": false
},
"published_version": 123,
"version": 123,
"share_mode": "public_link",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"responses": 1,
"completed": 1,
"views": 1,
"starts": 1,
"published_available": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"code": "plan_disabled",
"feature": "forms"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}
