Create a metadata definition
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/definitions/documents?token=' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"definition": {
"name": "d_default",
"backendHtmlRendering": true,
"barcode": "<string>",
"barcodeType": "qrcode",
"category": "Contracts",
"composePreview": true,
"contentFields": [
"D_DEFAULT_DESCRIPTION"
],
"contextAttachments": "bottom",
"contextFileChooser": true,
"defaultMode": "formMode",
"definitionSkin": "<string>",
"definitionType": [
"ext"
],
"description": "Standard contract for external partners.",
"detectSignFields": true,
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dualMode": true,
"embedDocIdOnSign": true,
"expertMode": true,
"fields": [
{
"allowGroups": true,
"barcodeType": "<string>",
"class": "<string>",
"defaultValue": "PENDING",
"description": "<string>",
"disabled": true,
"disabledCondition": "model.GF_STATUS === 'closed'",
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dynamic": true,
"formula": "{{ ('documents:' + form.name) | translate }} #{{id}}",
"formulaRefreshCondition": [
"edit",
"rework"
],
"groupFilter": "<string>",
"inline": true,
"inlineStyle": "{\"color\":\"#ff0000\",\"font-weight\":\"bold\"}",
"isContentDependent": true,
"isExportable": true,
"isFulltext": true,
"isGlobal": true,
"isIndex": true,
"isQuery": true,
"isRole": true,
"listKey": "priority",
"listName": "priorities",
"listTooltip": "description",
"maskRegex": "{\"selectedMask\":\"decimal\",\"alias\":\"decimal\",\"digits\":2}",
"maskResult": "unmasked",
"maxDate": "2026-12-31",
"maxValue": 123,
"minDate": "{{ sysdate }}",
"minValue": 123,
"multiselect": true,
"name": "D_DEFAULT_DESCRIPTION",
"options": [
"low",
"medium",
"high"
],
"order": 123,
"placeholder": "Document title",
"placeholder2": "Valid until",
"predefinedDateRanges": [
{
"endDate": "2025-12-31",
"name": "Fiscal year 2025",
"startDate": "2025-01-01"
}
],
"prefill": "<string>",
"prefilled": true,
"regex": "<string>",
"regexValue": "<string>",
"required": true,
"role": "<string>",
"searchType": "date",
"showInDetail": true,
"showInDetailCondition": "model.D_DEFAULT_DESCRIPTION",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showInQuery": true,
"showInQueryCondition": "<string>",
"showInTemplate": true,
"showLabel": true,
"showLabelInTemplate": true,
"type": "date",
"userFilter": "<string>",
"validation": [
{
"message": "required_standard",
"parameter": "^[A-Z]{2}[0-9]{6}$",
"type": "regexp"
}
]
}
],
"form": [
{
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"fields": [
{
"name": "D_DEFAULT_DESCRIPTION",
"size": 12
}
],
"inlineStyle": "{\"background-color\":\"#f5f5f5\",\"padding\":\"12px\"}",
"name": "d_default_section_0",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showLabel": true
}
],
"formMode": true,
"formulaFallback": true,
"hasStrictFolderPlacement": true,
"htmlFallback": true,
"inlineMode": true,
"inlineStyle": ".tpage-part { font-size: 12px; }",
"isPrivateByDefault": true,
"language": "en",
"mobileFriendly": true,
"organization": [
"acme_org"
],
"previewMode": "normal",
"sectionMode": true,
"showStepNumber": true,
"signType": "image",
"supportsBarcode": true,
"supportsSignature": true,
"system": true,
"template": {
"content": "<div class=\"tpage-part\"><div class=\"col-lg-12\"><strong>Title</strong>: <input type=\"text\" data-model=\"model.documentTitle\"/></div></div>",
"footer": "<string>",
"header": "<string>"
},
"templateFile": "5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4",
"workflow": "wf_archive"
},
"thumbnailHtml": "<string>"
}
EOFimport requests
url = "https://sandbox.circularo.com/api/v1/definitions/documents?token="
payload = {
"definition": {
"name": "d_default",
"backendHtmlRendering": True,
"barcode": "<string>",
"barcodeType": "qrcode",
"category": "Contracts",
"composePreview": True,
"contentFields": ["D_DEFAULT_DESCRIPTION"],
"contextAttachments": "bottom",
"contextFileChooser": True,
"defaultMode": "formMode",
"definitionSkin": "<string>",
"definitionType": ["ext"],
"description": "Standard contract for external partners.",
"detectSignFields": True,
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dualMode": True,
"embedDocIdOnSign": True,
"expertMode": True,
"fields": [
{
"allowGroups": True,
"barcodeType": "<string>",
"class": "<string>",
"defaultValue": "PENDING",
"description": "<string>",
"disabled": True,
"disabledCondition": "model.GF_STATUS === 'closed'",
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dynamic": True,
"formula": "{{ ('documents:' + form.name) | translate }} #{{id}}",
"formulaRefreshCondition": ["edit", "rework"],
"groupFilter": "<string>",
"inline": True,
"inlineStyle": "{\"color\":\"#ff0000\",\"font-weight\":\"bold\"}",
"isContentDependent": True,
"isExportable": True,
"isFulltext": True,
"isGlobal": True,
"isIndex": True,
"isQuery": True,
"isRole": True,
"listKey": "priority",
"listName": "priorities",
"listTooltip": "description",
"maskRegex": "{\"selectedMask\":\"decimal\",\"alias\":\"decimal\",\"digits\":2}",
"maskResult": "unmasked",
"maxDate": "2026-12-31",
"maxValue": 123,
"minDate": "{{ sysdate }}",
"minValue": 123,
"multiselect": True,
"name": "D_DEFAULT_DESCRIPTION",
"options": ["low", "medium", "high"],
"order": 123,
"placeholder": "Document title",
"placeholder2": "Valid until",
"predefinedDateRanges": [
{
"endDate": "2025-12-31",
"name": "Fiscal year 2025",
"startDate": "2025-01-01"
}
],
"prefill": "<string>",
"prefilled": True,
"regex": "<string>",
"regexValue": "<string>",
"required": True,
"role": "<string>",
"searchType": "date",
"showInDetail": True,
"showInDetailCondition": "model.D_DEFAULT_DESCRIPTION",
"showInIndex": True,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showInQuery": True,
"showInQueryCondition": "<string>",
"showInTemplate": True,
"showLabel": True,
"showLabelInTemplate": True,
"type": "date",
"userFilter": "<string>",
"validation": [
{
"message": "required_standard",
"parameter": "^[A-Z]{2}[0-9]{6}$",
"type": "regexp"
}
]
}
],
"form": [
{
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"fields": [
{
"name": "D_DEFAULT_DESCRIPTION",
"size": 12
}
],
"inlineStyle": "{\"background-color\":\"#f5f5f5\",\"padding\":\"12px\"}",
"name": "d_default_section_0",
"showInIndex": True,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showLabel": True
}
],
"formMode": True,
"formulaFallback": True,
"hasStrictFolderPlacement": True,
"htmlFallback": True,
"inlineMode": True,
"inlineStyle": ".tpage-part { font-size: 12px; }",
"isPrivateByDefault": True,
"language": "en",
"mobileFriendly": True,
"organization": ["acme_org"],
"previewMode": "normal",
"sectionMode": True,
"showStepNumber": True,
"signType": "image",
"supportsBarcode": True,
"supportsSignature": True,
"system": True,
"template": {
"content": "<div class=\"tpage-part\"><div class=\"col-lg-12\"><strong>Title</strong>: <input type=\"text\" data-model=\"model.documentTitle\"/></div></div>",
"footer": "<string>",
"header": "<string>"
},
"templateFile": "5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4",
"workflow": "wf_archive"
},
"thumbnailHtml": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
definition: {
name: 'd_default',
backendHtmlRendering: true,
barcode: '<string>',
barcodeType: 'qrcode',
category: 'Contracts',
composePreview: true,
contentFields: ['D_DEFAULT_DESCRIPTION'],
contextAttachments: 'bottom',
contextFileChooser: true,
defaultMode: 'formMode',
definitionSkin: '<string>',
definitionType: ['ext'],
description: 'Standard contract for external partners.',
detectSignFields: true,
displayName: [{language: 'en', value: 'Expiration date'}],
dualMode: true,
embedDocIdOnSign: true,
expertMode: true,
fields: [
{
allowGroups: true,
barcodeType: '<string>',
class: '<string>',
defaultValue: 'PENDING',
description: '<string>',
disabled: true,
disabledCondition: 'model.GF_STATUS === \'closed\'',
displayName: [{language: 'en', value: 'Expiration date'}],
dynamic: true,
formula: '{{ (\'documents:\' + form.name) | translate }} #{{id}}',
formulaRefreshCondition: ['edit', 'rework'],
groupFilter: '<string>',
inline: true,
inlineStyle: '{"color":"#ff0000","font-weight":"bold"}',
isContentDependent: true,
isExportable: true,
isFulltext: true,
isGlobal: true,
isIndex: true,
isQuery: true,
isRole: true,
listKey: 'priority',
listName: 'priorities',
listTooltip: 'description',
maskRegex: '{"selectedMask":"decimal","alias":"decimal","digits":2}',
maskResult: 'unmasked',
maxDate: '2026-12-31',
maxValue: 123,
minDate: '{{ sysdate }}',
minValue: 123,
multiselect: true,
name: 'D_DEFAULT_DESCRIPTION',
options: ['low', 'medium', 'high'],
order: 123,
placeholder: 'Document title',
placeholder2: 'Valid until',
predefinedDateRanges: [{endDate: '2025-12-31', name: 'Fiscal year 2025', startDate: '2025-01-01'}],
prefill: '<string>',
prefilled: true,
regex: '<string>',
regexValue: '<string>',
required: true,
role: '<string>',
searchType: 'date',
showInDetail: true,
showInDetailCondition: 'model.D_DEFAULT_DESCRIPTION',
showInIndex: true,
showInIndexCondition: 'model.D_DEFAULT_CATEGORY === \'invoice\'',
showInQuery: true,
showInQueryCondition: '<string>',
showInTemplate: true,
showLabel: true,
showLabelInTemplate: true,
type: 'date',
userFilter: '<string>',
validation: [
{message: 'required_standard', parameter: '^[A-Z]{2}[0-9]{6}$', type: 'regexp'}
]
}
],
form: [
{
displayName: [{language: 'en', value: 'Expiration date'}],
fields: [{name: 'D_DEFAULT_DESCRIPTION', size: 12}],
inlineStyle: '{"background-color":"#f5f5f5","padding":"12px"}',
name: 'd_default_section_0',
showInIndex: true,
showInIndexCondition: 'model.D_DEFAULT_CATEGORY === \'invoice\'',
showLabel: true
}
],
formMode: true,
formulaFallback: true,
hasStrictFolderPlacement: true,
htmlFallback: true,
inlineMode: true,
inlineStyle: '.tpage-part { font-size: 12px; }',
isPrivateByDefault: true,
language: 'en',
mobileFriendly: true,
organization: ['acme_org'],
previewMode: 'normal',
sectionMode: true,
showStepNumber: true,
signType: 'image',
supportsBarcode: true,
supportsSignature: true,
system: true,
template: {
content: '<div class="tpage-part"><div class="col-lg-12"><strong>Title</strong>: <input type="text" data-model="model.documentTitle"/></div></div>',
footer: '<string>',
header: '<string>'
},
templateFile: '5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4',
workflow: 'wf_archive'
},
thumbnailHtml: '<string>'
})
};
fetch('https://sandbox.circularo.com/api/v1/definitions/documents?token=', 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://sandbox.circularo.com/api/v1/definitions/documents?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'definition' => [
'name' => 'd_default',
'backendHtmlRendering' => true,
'barcode' => '<string>',
'barcodeType' => 'qrcode',
'category' => 'Contracts',
'composePreview' => true,
'contentFields' => [
'D_DEFAULT_DESCRIPTION'
],
'contextAttachments' => 'bottom',
'contextFileChooser' => true,
'defaultMode' => 'formMode',
'definitionSkin' => '<string>',
'definitionType' => [
'ext'
],
'description' => 'Standard contract for external partners.',
'detectSignFields' => true,
'displayName' => [
[
'language' => 'en',
'value' => 'Expiration date'
]
],
'dualMode' => true,
'embedDocIdOnSign' => true,
'expertMode' => true,
'fields' => [
[
'allowGroups' => true,
'barcodeType' => '<string>',
'class' => '<string>',
'defaultValue' => 'PENDING',
'description' => '<string>',
'disabled' => true,
'disabledCondition' => 'model.GF_STATUS === \'closed\'',
'displayName' => [
[
'language' => 'en',
'value' => 'Expiration date'
]
],
'dynamic' => true,
'formula' => '{{ (\'documents:\' + form.name) | translate }} #{{id}}',
'formulaRefreshCondition' => [
'edit',
'rework'
],
'groupFilter' => '<string>',
'inline' => true,
'inlineStyle' => '{"color":"#ff0000","font-weight":"bold"}',
'isContentDependent' => true,
'isExportable' => true,
'isFulltext' => true,
'isGlobal' => true,
'isIndex' => true,
'isQuery' => true,
'isRole' => true,
'listKey' => 'priority',
'listName' => 'priorities',
'listTooltip' => 'description',
'maskRegex' => '{"selectedMask":"decimal","alias":"decimal","digits":2}',
'maskResult' => 'unmasked',
'maxDate' => '2026-12-31',
'maxValue' => 123,
'minDate' => '{{ sysdate }}',
'minValue' => 123,
'multiselect' => true,
'name' => 'D_DEFAULT_DESCRIPTION',
'options' => [
'low',
'medium',
'high'
],
'order' => 123,
'placeholder' => 'Document title',
'placeholder2' => 'Valid until',
'predefinedDateRanges' => [
[
'endDate' => '2025-12-31',
'name' => 'Fiscal year 2025',
'startDate' => '2025-01-01'
]
],
'prefill' => '<string>',
'prefilled' => true,
'regex' => '<string>',
'regexValue' => '<string>',
'required' => true,
'role' => '<string>',
'searchType' => 'date',
'showInDetail' => true,
'showInDetailCondition' => 'model.D_DEFAULT_DESCRIPTION',
'showInIndex' => true,
'showInIndexCondition' => 'model.D_DEFAULT_CATEGORY === \'invoice\'',
'showInQuery' => true,
'showInQueryCondition' => '<string>',
'showInTemplate' => true,
'showLabel' => true,
'showLabelInTemplate' => true,
'type' => 'date',
'userFilter' => '<string>',
'validation' => [
[
'message' => 'required_standard',
'parameter' => '^[A-Z]{2}[0-9]{6}$',
'type' => 'regexp'
]
]
]
],
'form' => [
[
'displayName' => [
[
'language' => 'en',
'value' => 'Expiration date'
]
],
'fields' => [
[
'name' => 'D_DEFAULT_DESCRIPTION',
'size' => 12
]
],
'inlineStyle' => '{"background-color":"#f5f5f5","padding":"12px"}',
'name' => 'd_default_section_0',
'showInIndex' => true,
'showInIndexCondition' => 'model.D_DEFAULT_CATEGORY === \'invoice\'',
'showLabel' => true
]
],
'formMode' => true,
'formulaFallback' => true,
'hasStrictFolderPlacement' => true,
'htmlFallback' => true,
'inlineMode' => true,
'inlineStyle' => '.tpage-part { font-size: 12px; }',
'isPrivateByDefault' => true,
'language' => 'en',
'mobileFriendly' => true,
'organization' => [
'acme_org'
],
'previewMode' => 'normal',
'sectionMode' => true,
'showStepNumber' => true,
'signType' => 'image',
'supportsBarcode' => true,
'supportsSignature' => true,
'system' => true,
'template' => [
'content' => '<div class="tpage-part"><div class="col-lg-12"><strong>Title</strong>: <input type="text" data-model="model.documentTitle"/></div></div>',
'footer' => '<string>',
'header' => '<string>'
],
'templateFile' => '5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4',
'workflow' => 'wf_archive'
],
'thumbnailHtml' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/definitions/documents?token="
payload := strings.NewReader("{\n \"definition\": {\n \"name\": \"d_default\",\n \"backendHtmlRendering\": true,\n \"barcode\": \"<string>\",\n \"barcodeType\": \"qrcode\",\n \"category\": \"Contracts\",\n \"composePreview\": true,\n \"contentFields\": [\n \"D_DEFAULT_DESCRIPTION\"\n ],\n \"contextAttachments\": \"bottom\",\n \"contextFileChooser\": true,\n \"defaultMode\": \"formMode\",\n \"definitionSkin\": \"<string>\",\n \"definitionType\": [\n \"ext\"\n ],\n \"description\": \"Standard contract for external partners.\",\n \"detectSignFields\": true,\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dualMode\": true,\n \"embedDocIdOnSign\": true,\n \"expertMode\": true,\n \"fields\": [\n {\n \"allowGroups\": true,\n \"barcodeType\": \"<string>\",\n \"class\": \"<string>\",\n \"defaultValue\": \"PENDING\",\n \"description\": \"<string>\",\n \"disabled\": true,\n \"disabledCondition\": \"model.GF_STATUS === 'closed'\",\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dynamic\": true,\n \"formula\": \"{{ ('documents:' + form.name) | translate }} #{{id}}\",\n \"formulaRefreshCondition\": [\n \"edit\",\n \"rework\"\n ],\n \"groupFilter\": \"<string>\",\n \"inline\": true,\n \"inlineStyle\": \"{\\\"color\\\":\\\"#ff0000\\\",\\\"font-weight\\\":\\\"bold\\\"}\",\n \"isContentDependent\": true,\n \"isExportable\": true,\n \"isFulltext\": true,\n \"isGlobal\": true,\n \"isIndex\": true,\n \"isQuery\": true,\n \"isRole\": true,\n \"listKey\": \"priority\",\n \"listName\": \"priorities\",\n \"listTooltip\": \"description\",\n \"maskRegex\": \"{\\\"selectedMask\\\":\\\"decimal\\\",\\\"alias\\\":\\\"decimal\\\",\\\"digits\\\":2}\",\n \"maskResult\": \"unmasked\",\n \"maxDate\": \"2026-12-31\",\n \"maxValue\": 123,\n \"minDate\": \"{{ sysdate }}\",\n \"minValue\": 123,\n \"multiselect\": true,\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"options\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"order\": 123,\n \"placeholder\": \"Document title\",\n \"placeholder2\": \"Valid until\",\n \"predefinedDateRanges\": [\n {\n \"endDate\": \"2025-12-31\",\n \"name\": \"Fiscal year 2025\",\n \"startDate\": \"2025-01-01\"\n }\n ],\n \"prefill\": \"<string>\",\n \"prefilled\": true,\n \"regex\": \"<string>\",\n \"regexValue\": \"<string>\",\n \"required\": true,\n \"role\": \"<string>\",\n \"searchType\": \"date\",\n \"showInDetail\": true,\n \"showInDetailCondition\": \"model.D_DEFAULT_DESCRIPTION\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showInQuery\": true,\n \"showInQueryCondition\": \"<string>\",\n \"showInTemplate\": true,\n \"showLabel\": true,\n \"showLabelInTemplate\": true,\n \"type\": \"date\",\n \"userFilter\": \"<string>\",\n \"validation\": [\n {\n \"message\": \"required_standard\",\n \"parameter\": \"^[A-Z]{2}[0-9]{6}$\",\n \"type\": \"regexp\"\n }\n ]\n }\n ],\n \"form\": [\n {\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"fields\": [\n {\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"size\": 12\n }\n ],\n \"inlineStyle\": \"{\\\"background-color\\\":\\\"#f5f5f5\\\",\\\"padding\\\":\\\"12px\\\"}\",\n \"name\": \"d_default_section_0\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showLabel\": true\n }\n ],\n \"formMode\": true,\n \"formulaFallback\": true,\n \"hasStrictFolderPlacement\": true,\n \"htmlFallback\": true,\n \"inlineMode\": true,\n \"inlineStyle\": \".tpage-part { font-size: 12px; }\",\n \"isPrivateByDefault\": true,\n \"language\": \"en\",\n \"mobileFriendly\": true,\n \"organization\": [\n \"acme_org\"\n ],\n \"previewMode\": \"normal\",\n \"sectionMode\": true,\n \"showStepNumber\": true,\n \"signType\": \"image\",\n \"supportsBarcode\": true,\n \"supportsSignature\": true,\n \"system\": true,\n \"template\": {\n \"content\": \"<div class=\\\"tpage-part\\\"><div class=\\\"col-lg-12\\\"><strong>Title</strong>: <input type=\\\"text\\\" data-model=\\\"model.documentTitle\\\"/></div></div>\",\n \"footer\": \"<string>\",\n \"header\": \"<string>\"\n },\n \"templateFile\": \"5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4\",\n \"workflow\": \"wf_archive\"\n },\n \"thumbnailHtml\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://sandbox.circularo.com/api/v1/definitions/documents?token=")
.header("Content-Type", "application/json")
.body("{\n \"definition\": {\n \"name\": \"d_default\",\n \"backendHtmlRendering\": true,\n \"barcode\": \"<string>\",\n \"barcodeType\": \"qrcode\",\n \"category\": \"Contracts\",\n \"composePreview\": true,\n \"contentFields\": [\n \"D_DEFAULT_DESCRIPTION\"\n ],\n \"contextAttachments\": \"bottom\",\n \"contextFileChooser\": true,\n \"defaultMode\": \"formMode\",\n \"definitionSkin\": \"<string>\",\n \"definitionType\": [\n \"ext\"\n ],\n \"description\": \"Standard contract for external partners.\",\n \"detectSignFields\": true,\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dualMode\": true,\n \"embedDocIdOnSign\": true,\n \"expertMode\": true,\n \"fields\": [\n {\n \"allowGroups\": true,\n \"barcodeType\": \"<string>\",\n \"class\": \"<string>\",\n \"defaultValue\": \"PENDING\",\n \"description\": \"<string>\",\n \"disabled\": true,\n \"disabledCondition\": \"model.GF_STATUS === 'closed'\",\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dynamic\": true,\n \"formula\": \"{{ ('documents:' + form.name) | translate }} #{{id}}\",\n \"formulaRefreshCondition\": [\n \"edit\",\n \"rework\"\n ],\n \"groupFilter\": \"<string>\",\n \"inline\": true,\n \"inlineStyle\": \"{\\\"color\\\":\\\"#ff0000\\\",\\\"font-weight\\\":\\\"bold\\\"}\",\n \"isContentDependent\": true,\n \"isExportable\": true,\n \"isFulltext\": true,\n \"isGlobal\": true,\n \"isIndex\": true,\n \"isQuery\": true,\n \"isRole\": true,\n \"listKey\": \"priority\",\n \"listName\": \"priorities\",\n \"listTooltip\": \"description\",\n \"maskRegex\": \"{\\\"selectedMask\\\":\\\"decimal\\\",\\\"alias\\\":\\\"decimal\\\",\\\"digits\\\":2}\",\n \"maskResult\": \"unmasked\",\n \"maxDate\": \"2026-12-31\",\n \"maxValue\": 123,\n \"minDate\": \"{{ sysdate }}\",\n \"minValue\": 123,\n \"multiselect\": true,\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"options\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"order\": 123,\n \"placeholder\": \"Document title\",\n \"placeholder2\": \"Valid until\",\n \"predefinedDateRanges\": [\n {\n \"endDate\": \"2025-12-31\",\n \"name\": \"Fiscal year 2025\",\n \"startDate\": \"2025-01-01\"\n }\n ],\n \"prefill\": \"<string>\",\n \"prefilled\": true,\n \"regex\": \"<string>\",\n \"regexValue\": \"<string>\",\n \"required\": true,\n \"role\": \"<string>\",\n \"searchType\": \"date\",\n \"showInDetail\": true,\n \"showInDetailCondition\": \"model.D_DEFAULT_DESCRIPTION\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showInQuery\": true,\n \"showInQueryCondition\": \"<string>\",\n \"showInTemplate\": true,\n \"showLabel\": true,\n \"showLabelInTemplate\": true,\n \"type\": \"date\",\n \"userFilter\": \"<string>\",\n \"validation\": [\n {\n \"message\": \"required_standard\",\n \"parameter\": \"^[A-Z]{2}[0-9]{6}$\",\n \"type\": \"regexp\"\n }\n ]\n }\n ],\n \"form\": [\n {\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"fields\": [\n {\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"size\": 12\n }\n ],\n \"inlineStyle\": \"{\\\"background-color\\\":\\\"#f5f5f5\\\",\\\"padding\\\":\\\"12px\\\"}\",\n \"name\": \"d_default_section_0\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showLabel\": true\n }\n ],\n \"formMode\": true,\n \"formulaFallback\": true,\n \"hasStrictFolderPlacement\": true,\n \"htmlFallback\": true,\n \"inlineMode\": true,\n \"inlineStyle\": \".tpage-part { font-size: 12px; }\",\n \"isPrivateByDefault\": true,\n \"language\": \"en\",\n \"mobileFriendly\": true,\n \"organization\": [\n \"acme_org\"\n ],\n \"previewMode\": \"normal\",\n \"sectionMode\": true,\n \"showStepNumber\": true,\n \"signType\": \"image\",\n \"supportsBarcode\": true,\n \"supportsSignature\": true,\n \"system\": true,\n \"template\": {\n \"content\": \"<div class=\\\"tpage-part\\\"><div class=\\\"col-lg-12\\\"><strong>Title</strong>: <input type=\\\"text\\\" data-model=\\\"model.documentTitle\\\"/></div></div>\",\n \"footer\": \"<string>\",\n \"header\": \"<string>\"\n },\n \"templateFile\": \"5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4\",\n \"workflow\": \"wf_archive\"\n },\n \"thumbnailHtml\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/definitions/documents?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"definition\": {\n \"name\": \"d_default\",\n \"backendHtmlRendering\": true,\n \"barcode\": \"<string>\",\n \"barcodeType\": \"qrcode\",\n \"category\": \"Contracts\",\n \"composePreview\": true,\n \"contentFields\": [\n \"D_DEFAULT_DESCRIPTION\"\n ],\n \"contextAttachments\": \"bottom\",\n \"contextFileChooser\": true,\n \"defaultMode\": \"formMode\",\n \"definitionSkin\": \"<string>\",\n \"definitionType\": [\n \"ext\"\n ],\n \"description\": \"Standard contract for external partners.\",\n \"detectSignFields\": true,\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dualMode\": true,\n \"embedDocIdOnSign\": true,\n \"expertMode\": true,\n \"fields\": [\n {\n \"allowGroups\": true,\n \"barcodeType\": \"<string>\",\n \"class\": \"<string>\",\n \"defaultValue\": \"PENDING\",\n \"description\": \"<string>\",\n \"disabled\": true,\n \"disabledCondition\": \"model.GF_STATUS === 'closed'\",\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dynamic\": true,\n \"formula\": \"{{ ('documents:' + form.name) | translate }} #{{id}}\",\n \"formulaRefreshCondition\": [\n \"edit\",\n \"rework\"\n ],\n \"groupFilter\": \"<string>\",\n \"inline\": true,\n \"inlineStyle\": \"{\\\"color\\\":\\\"#ff0000\\\",\\\"font-weight\\\":\\\"bold\\\"}\",\n \"isContentDependent\": true,\n \"isExportable\": true,\n \"isFulltext\": true,\n \"isGlobal\": true,\n \"isIndex\": true,\n \"isQuery\": true,\n \"isRole\": true,\n \"listKey\": \"priority\",\n \"listName\": \"priorities\",\n \"listTooltip\": \"description\",\n \"maskRegex\": \"{\\\"selectedMask\\\":\\\"decimal\\\",\\\"alias\\\":\\\"decimal\\\",\\\"digits\\\":2}\",\n \"maskResult\": \"unmasked\",\n \"maxDate\": \"2026-12-31\",\n \"maxValue\": 123,\n \"minDate\": \"{{ sysdate }}\",\n \"minValue\": 123,\n \"multiselect\": true,\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"options\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"order\": 123,\n \"placeholder\": \"Document title\",\n \"placeholder2\": \"Valid until\",\n \"predefinedDateRanges\": [\n {\n \"endDate\": \"2025-12-31\",\n \"name\": \"Fiscal year 2025\",\n \"startDate\": \"2025-01-01\"\n }\n ],\n \"prefill\": \"<string>\",\n \"prefilled\": true,\n \"regex\": \"<string>\",\n \"regexValue\": \"<string>\",\n \"required\": true,\n \"role\": \"<string>\",\n \"searchType\": \"date\",\n \"showInDetail\": true,\n \"showInDetailCondition\": \"model.D_DEFAULT_DESCRIPTION\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showInQuery\": true,\n \"showInQueryCondition\": \"<string>\",\n \"showInTemplate\": true,\n \"showLabel\": true,\n \"showLabelInTemplate\": true,\n \"type\": \"date\",\n \"userFilter\": \"<string>\",\n \"validation\": [\n {\n \"message\": \"required_standard\",\n \"parameter\": \"^[A-Z]{2}[0-9]{6}$\",\n \"type\": \"regexp\"\n }\n ]\n }\n ],\n \"form\": [\n {\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"fields\": [\n {\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"size\": 12\n }\n ],\n \"inlineStyle\": \"{\\\"background-color\\\":\\\"#f5f5f5\\\",\\\"padding\\\":\\\"12px\\\"}\",\n \"name\": \"d_default_section_0\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showLabel\": true\n }\n ],\n \"formMode\": true,\n \"formulaFallback\": true,\n \"hasStrictFolderPlacement\": true,\n \"htmlFallback\": true,\n \"inlineMode\": true,\n \"inlineStyle\": \".tpage-part { font-size: 12px; }\",\n \"isPrivateByDefault\": true,\n \"language\": \"en\",\n \"mobileFriendly\": true,\n \"organization\": [\n \"acme_org\"\n ],\n \"previewMode\": \"normal\",\n \"sectionMode\": true,\n \"showStepNumber\": true,\n \"signType\": \"image\",\n \"supportsBarcode\": true,\n \"supportsSignature\": true,\n \"system\": true,\n \"template\": {\n \"content\": \"<div class=\\\"tpage-part\\\"><div class=\\\"col-lg-12\\\"><strong>Title</strong>: <input type=\\\"text\\\" data-model=\\\"model.documentTitle\\\"/></div></div>\",\n \"footer\": \"<string>\",\n \"header\": \"<string>\"\n },\n \"templateFile\": \"5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4\",\n \"workflow\": \"wf_archive\"\n },\n \"thumbnailHtml\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Definitions
Create a metadata definition
POST /definitions/documents
Defines a new document type: its fields, its form, the workflow it runs on and the preview image shown for it. Documents of the type can be created as soon as it exists.
Creating a definition also provisions the read and edit rights for the new type and the ACLs carrying them, so nobody has to seed those by hand. A templateFile on the definition must be a file uploaded beforehand and not attached to anything else.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user role: admin
Create a metadata definition
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/definitions/documents?token=' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"definition": {
"name": "d_default",
"backendHtmlRendering": true,
"barcode": "<string>",
"barcodeType": "qrcode",
"category": "Contracts",
"composePreview": true,
"contentFields": [
"D_DEFAULT_DESCRIPTION"
],
"contextAttachments": "bottom",
"contextFileChooser": true,
"defaultMode": "formMode",
"definitionSkin": "<string>",
"definitionType": [
"ext"
],
"description": "Standard contract for external partners.",
"detectSignFields": true,
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dualMode": true,
"embedDocIdOnSign": true,
"expertMode": true,
"fields": [
{
"allowGroups": true,
"barcodeType": "<string>",
"class": "<string>",
"defaultValue": "PENDING",
"description": "<string>",
"disabled": true,
"disabledCondition": "model.GF_STATUS === 'closed'",
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dynamic": true,
"formula": "{{ ('documents:' + form.name) | translate }} #{{id}}",
"formulaRefreshCondition": [
"edit",
"rework"
],
"groupFilter": "<string>",
"inline": true,
"inlineStyle": "{\"color\":\"#ff0000\",\"font-weight\":\"bold\"}",
"isContentDependent": true,
"isExportable": true,
"isFulltext": true,
"isGlobal": true,
"isIndex": true,
"isQuery": true,
"isRole": true,
"listKey": "priority",
"listName": "priorities",
"listTooltip": "description",
"maskRegex": "{\"selectedMask\":\"decimal\",\"alias\":\"decimal\",\"digits\":2}",
"maskResult": "unmasked",
"maxDate": "2026-12-31",
"maxValue": 123,
"minDate": "{{ sysdate }}",
"minValue": 123,
"multiselect": true,
"name": "D_DEFAULT_DESCRIPTION",
"options": [
"low",
"medium",
"high"
],
"order": 123,
"placeholder": "Document title",
"placeholder2": "Valid until",
"predefinedDateRanges": [
{
"endDate": "2025-12-31",
"name": "Fiscal year 2025",
"startDate": "2025-01-01"
}
],
"prefill": "<string>",
"prefilled": true,
"regex": "<string>",
"regexValue": "<string>",
"required": true,
"role": "<string>",
"searchType": "date",
"showInDetail": true,
"showInDetailCondition": "model.D_DEFAULT_DESCRIPTION",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showInQuery": true,
"showInQueryCondition": "<string>",
"showInTemplate": true,
"showLabel": true,
"showLabelInTemplate": true,
"type": "date",
"userFilter": "<string>",
"validation": [
{
"message": "required_standard",
"parameter": "^[A-Z]{2}[0-9]{6}$",
"type": "regexp"
}
]
}
],
"form": [
{
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"fields": [
{
"name": "D_DEFAULT_DESCRIPTION",
"size": 12
}
],
"inlineStyle": "{\"background-color\":\"#f5f5f5\",\"padding\":\"12px\"}",
"name": "d_default_section_0",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showLabel": true
}
],
"formMode": true,
"formulaFallback": true,
"hasStrictFolderPlacement": true,
"htmlFallback": true,
"inlineMode": true,
"inlineStyle": ".tpage-part { font-size: 12px; }",
"isPrivateByDefault": true,
"language": "en",
"mobileFriendly": true,
"organization": [
"acme_org"
],
"previewMode": "normal",
"sectionMode": true,
"showStepNumber": true,
"signType": "image",
"supportsBarcode": true,
"supportsSignature": true,
"system": true,
"template": {
"content": "<div class=\"tpage-part\"><div class=\"col-lg-12\"><strong>Title</strong>: <input type=\"text\" data-model=\"model.documentTitle\"/></div></div>",
"footer": "<string>",
"header": "<string>"
},
"templateFile": "5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4",
"workflow": "wf_archive"
},
"thumbnailHtml": "<string>"
}
EOFimport requests
url = "https://sandbox.circularo.com/api/v1/definitions/documents?token="
payload = {
"definition": {
"name": "d_default",
"backendHtmlRendering": True,
"barcode": "<string>",
"barcodeType": "qrcode",
"category": "Contracts",
"composePreview": True,
"contentFields": ["D_DEFAULT_DESCRIPTION"],
"contextAttachments": "bottom",
"contextFileChooser": True,
"defaultMode": "formMode",
"definitionSkin": "<string>",
"definitionType": ["ext"],
"description": "Standard contract for external partners.",
"detectSignFields": True,
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dualMode": True,
"embedDocIdOnSign": True,
"expertMode": True,
"fields": [
{
"allowGroups": True,
"barcodeType": "<string>",
"class": "<string>",
"defaultValue": "PENDING",
"description": "<string>",
"disabled": True,
"disabledCondition": "model.GF_STATUS === 'closed'",
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dynamic": True,
"formula": "{{ ('documents:' + form.name) | translate }} #{{id}}",
"formulaRefreshCondition": ["edit", "rework"],
"groupFilter": "<string>",
"inline": True,
"inlineStyle": "{\"color\":\"#ff0000\",\"font-weight\":\"bold\"}",
"isContentDependent": True,
"isExportable": True,
"isFulltext": True,
"isGlobal": True,
"isIndex": True,
"isQuery": True,
"isRole": True,
"listKey": "priority",
"listName": "priorities",
"listTooltip": "description",
"maskRegex": "{\"selectedMask\":\"decimal\",\"alias\":\"decimal\",\"digits\":2}",
"maskResult": "unmasked",
"maxDate": "2026-12-31",
"maxValue": 123,
"minDate": "{{ sysdate }}",
"minValue": 123,
"multiselect": True,
"name": "D_DEFAULT_DESCRIPTION",
"options": ["low", "medium", "high"],
"order": 123,
"placeholder": "Document title",
"placeholder2": "Valid until",
"predefinedDateRanges": [
{
"endDate": "2025-12-31",
"name": "Fiscal year 2025",
"startDate": "2025-01-01"
}
],
"prefill": "<string>",
"prefilled": True,
"regex": "<string>",
"regexValue": "<string>",
"required": True,
"role": "<string>",
"searchType": "date",
"showInDetail": True,
"showInDetailCondition": "model.D_DEFAULT_DESCRIPTION",
"showInIndex": True,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showInQuery": True,
"showInQueryCondition": "<string>",
"showInTemplate": True,
"showLabel": True,
"showLabelInTemplate": True,
"type": "date",
"userFilter": "<string>",
"validation": [
{
"message": "required_standard",
"parameter": "^[A-Z]{2}[0-9]{6}$",
"type": "regexp"
}
]
}
],
"form": [
{
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"fields": [
{
"name": "D_DEFAULT_DESCRIPTION",
"size": 12
}
],
"inlineStyle": "{\"background-color\":\"#f5f5f5\",\"padding\":\"12px\"}",
"name": "d_default_section_0",
"showInIndex": True,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showLabel": True
}
],
"formMode": True,
"formulaFallback": True,
"hasStrictFolderPlacement": True,
"htmlFallback": True,
"inlineMode": True,
"inlineStyle": ".tpage-part { font-size: 12px; }",
"isPrivateByDefault": True,
"language": "en",
"mobileFriendly": True,
"organization": ["acme_org"],
"previewMode": "normal",
"sectionMode": True,
"showStepNumber": True,
"signType": "image",
"supportsBarcode": True,
"supportsSignature": True,
"system": True,
"template": {
"content": "<div class=\"tpage-part\"><div class=\"col-lg-12\"><strong>Title</strong>: <input type=\"text\" data-model=\"model.documentTitle\"/></div></div>",
"footer": "<string>",
"header": "<string>"
},
"templateFile": "5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4",
"workflow": "wf_archive"
},
"thumbnailHtml": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
definition: {
name: 'd_default',
backendHtmlRendering: true,
barcode: '<string>',
barcodeType: 'qrcode',
category: 'Contracts',
composePreview: true,
contentFields: ['D_DEFAULT_DESCRIPTION'],
contextAttachments: 'bottom',
contextFileChooser: true,
defaultMode: 'formMode',
definitionSkin: '<string>',
definitionType: ['ext'],
description: 'Standard contract for external partners.',
detectSignFields: true,
displayName: [{language: 'en', value: 'Expiration date'}],
dualMode: true,
embedDocIdOnSign: true,
expertMode: true,
fields: [
{
allowGroups: true,
barcodeType: '<string>',
class: '<string>',
defaultValue: 'PENDING',
description: '<string>',
disabled: true,
disabledCondition: 'model.GF_STATUS === \'closed\'',
displayName: [{language: 'en', value: 'Expiration date'}],
dynamic: true,
formula: '{{ (\'documents:\' + form.name) | translate }} #{{id}}',
formulaRefreshCondition: ['edit', 'rework'],
groupFilter: '<string>',
inline: true,
inlineStyle: '{"color":"#ff0000","font-weight":"bold"}',
isContentDependent: true,
isExportable: true,
isFulltext: true,
isGlobal: true,
isIndex: true,
isQuery: true,
isRole: true,
listKey: 'priority',
listName: 'priorities',
listTooltip: 'description',
maskRegex: '{"selectedMask":"decimal","alias":"decimal","digits":2}',
maskResult: 'unmasked',
maxDate: '2026-12-31',
maxValue: 123,
minDate: '{{ sysdate }}',
minValue: 123,
multiselect: true,
name: 'D_DEFAULT_DESCRIPTION',
options: ['low', 'medium', 'high'],
order: 123,
placeholder: 'Document title',
placeholder2: 'Valid until',
predefinedDateRanges: [{endDate: '2025-12-31', name: 'Fiscal year 2025', startDate: '2025-01-01'}],
prefill: '<string>',
prefilled: true,
regex: '<string>',
regexValue: '<string>',
required: true,
role: '<string>',
searchType: 'date',
showInDetail: true,
showInDetailCondition: 'model.D_DEFAULT_DESCRIPTION',
showInIndex: true,
showInIndexCondition: 'model.D_DEFAULT_CATEGORY === \'invoice\'',
showInQuery: true,
showInQueryCondition: '<string>',
showInTemplate: true,
showLabel: true,
showLabelInTemplate: true,
type: 'date',
userFilter: '<string>',
validation: [
{message: 'required_standard', parameter: '^[A-Z]{2}[0-9]{6}$', type: 'regexp'}
]
}
],
form: [
{
displayName: [{language: 'en', value: 'Expiration date'}],
fields: [{name: 'D_DEFAULT_DESCRIPTION', size: 12}],
inlineStyle: '{"background-color":"#f5f5f5","padding":"12px"}',
name: 'd_default_section_0',
showInIndex: true,
showInIndexCondition: 'model.D_DEFAULT_CATEGORY === \'invoice\'',
showLabel: true
}
],
formMode: true,
formulaFallback: true,
hasStrictFolderPlacement: true,
htmlFallback: true,
inlineMode: true,
inlineStyle: '.tpage-part { font-size: 12px; }',
isPrivateByDefault: true,
language: 'en',
mobileFriendly: true,
organization: ['acme_org'],
previewMode: 'normal',
sectionMode: true,
showStepNumber: true,
signType: 'image',
supportsBarcode: true,
supportsSignature: true,
system: true,
template: {
content: '<div class="tpage-part"><div class="col-lg-12"><strong>Title</strong>: <input type="text" data-model="model.documentTitle"/></div></div>',
footer: '<string>',
header: '<string>'
},
templateFile: '5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4',
workflow: 'wf_archive'
},
thumbnailHtml: '<string>'
})
};
fetch('https://sandbox.circularo.com/api/v1/definitions/documents?token=', 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://sandbox.circularo.com/api/v1/definitions/documents?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'definition' => [
'name' => 'd_default',
'backendHtmlRendering' => true,
'barcode' => '<string>',
'barcodeType' => 'qrcode',
'category' => 'Contracts',
'composePreview' => true,
'contentFields' => [
'D_DEFAULT_DESCRIPTION'
],
'contextAttachments' => 'bottom',
'contextFileChooser' => true,
'defaultMode' => 'formMode',
'definitionSkin' => '<string>',
'definitionType' => [
'ext'
],
'description' => 'Standard contract for external partners.',
'detectSignFields' => true,
'displayName' => [
[
'language' => 'en',
'value' => 'Expiration date'
]
],
'dualMode' => true,
'embedDocIdOnSign' => true,
'expertMode' => true,
'fields' => [
[
'allowGroups' => true,
'barcodeType' => '<string>',
'class' => '<string>',
'defaultValue' => 'PENDING',
'description' => '<string>',
'disabled' => true,
'disabledCondition' => 'model.GF_STATUS === \'closed\'',
'displayName' => [
[
'language' => 'en',
'value' => 'Expiration date'
]
],
'dynamic' => true,
'formula' => '{{ (\'documents:\' + form.name) | translate }} #{{id}}',
'formulaRefreshCondition' => [
'edit',
'rework'
],
'groupFilter' => '<string>',
'inline' => true,
'inlineStyle' => '{"color":"#ff0000","font-weight":"bold"}',
'isContentDependent' => true,
'isExportable' => true,
'isFulltext' => true,
'isGlobal' => true,
'isIndex' => true,
'isQuery' => true,
'isRole' => true,
'listKey' => 'priority',
'listName' => 'priorities',
'listTooltip' => 'description',
'maskRegex' => '{"selectedMask":"decimal","alias":"decimal","digits":2}',
'maskResult' => 'unmasked',
'maxDate' => '2026-12-31',
'maxValue' => 123,
'minDate' => '{{ sysdate }}',
'minValue' => 123,
'multiselect' => true,
'name' => 'D_DEFAULT_DESCRIPTION',
'options' => [
'low',
'medium',
'high'
],
'order' => 123,
'placeholder' => 'Document title',
'placeholder2' => 'Valid until',
'predefinedDateRanges' => [
[
'endDate' => '2025-12-31',
'name' => 'Fiscal year 2025',
'startDate' => '2025-01-01'
]
],
'prefill' => '<string>',
'prefilled' => true,
'regex' => '<string>',
'regexValue' => '<string>',
'required' => true,
'role' => '<string>',
'searchType' => 'date',
'showInDetail' => true,
'showInDetailCondition' => 'model.D_DEFAULT_DESCRIPTION',
'showInIndex' => true,
'showInIndexCondition' => 'model.D_DEFAULT_CATEGORY === \'invoice\'',
'showInQuery' => true,
'showInQueryCondition' => '<string>',
'showInTemplate' => true,
'showLabel' => true,
'showLabelInTemplate' => true,
'type' => 'date',
'userFilter' => '<string>',
'validation' => [
[
'message' => 'required_standard',
'parameter' => '^[A-Z]{2}[0-9]{6}$',
'type' => 'regexp'
]
]
]
],
'form' => [
[
'displayName' => [
[
'language' => 'en',
'value' => 'Expiration date'
]
],
'fields' => [
[
'name' => 'D_DEFAULT_DESCRIPTION',
'size' => 12
]
],
'inlineStyle' => '{"background-color":"#f5f5f5","padding":"12px"}',
'name' => 'd_default_section_0',
'showInIndex' => true,
'showInIndexCondition' => 'model.D_DEFAULT_CATEGORY === \'invoice\'',
'showLabel' => true
]
],
'formMode' => true,
'formulaFallback' => true,
'hasStrictFolderPlacement' => true,
'htmlFallback' => true,
'inlineMode' => true,
'inlineStyle' => '.tpage-part { font-size: 12px; }',
'isPrivateByDefault' => true,
'language' => 'en',
'mobileFriendly' => true,
'organization' => [
'acme_org'
],
'previewMode' => 'normal',
'sectionMode' => true,
'showStepNumber' => true,
'signType' => 'image',
'supportsBarcode' => true,
'supportsSignature' => true,
'system' => true,
'template' => [
'content' => '<div class="tpage-part"><div class="col-lg-12"><strong>Title</strong>: <input type="text" data-model="model.documentTitle"/></div></div>',
'footer' => '<string>',
'header' => '<string>'
],
'templateFile' => '5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4',
'workflow' => 'wf_archive'
],
'thumbnailHtml' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/definitions/documents?token="
payload := strings.NewReader("{\n \"definition\": {\n \"name\": \"d_default\",\n \"backendHtmlRendering\": true,\n \"barcode\": \"<string>\",\n \"barcodeType\": \"qrcode\",\n \"category\": \"Contracts\",\n \"composePreview\": true,\n \"contentFields\": [\n \"D_DEFAULT_DESCRIPTION\"\n ],\n \"contextAttachments\": \"bottom\",\n \"contextFileChooser\": true,\n \"defaultMode\": \"formMode\",\n \"definitionSkin\": \"<string>\",\n \"definitionType\": [\n \"ext\"\n ],\n \"description\": \"Standard contract for external partners.\",\n \"detectSignFields\": true,\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dualMode\": true,\n \"embedDocIdOnSign\": true,\n \"expertMode\": true,\n \"fields\": [\n {\n \"allowGroups\": true,\n \"barcodeType\": \"<string>\",\n \"class\": \"<string>\",\n \"defaultValue\": \"PENDING\",\n \"description\": \"<string>\",\n \"disabled\": true,\n \"disabledCondition\": \"model.GF_STATUS === 'closed'\",\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dynamic\": true,\n \"formula\": \"{{ ('documents:' + form.name) | translate }} #{{id}}\",\n \"formulaRefreshCondition\": [\n \"edit\",\n \"rework\"\n ],\n \"groupFilter\": \"<string>\",\n \"inline\": true,\n \"inlineStyle\": \"{\\\"color\\\":\\\"#ff0000\\\",\\\"font-weight\\\":\\\"bold\\\"}\",\n \"isContentDependent\": true,\n \"isExportable\": true,\n \"isFulltext\": true,\n \"isGlobal\": true,\n \"isIndex\": true,\n \"isQuery\": true,\n \"isRole\": true,\n \"listKey\": \"priority\",\n \"listName\": \"priorities\",\n \"listTooltip\": \"description\",\n \"maskRegex\": \"{\\\"selectedMask\\\":\\\"decimal\\\",\\\"alias\\\":\\\"decimal\\\",\\\"digits\\\":2}\",\n \"maskResult\": \"unmasked\",\n \"maxDate\": \"2026-12-31\",\n \"maxValue\": 123,\n \"minDate\": \"{{ sysdate }}\",\n \"minValue\": 123,\n \"multiselect\": true,\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"options\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"order\": 123,\n \"placeholder\": \"Document title\",\n \"placeholder2\": \"Valid until\",\n \"predefinedDateRanges\": [\n {\n \"endDate\": \"2025-12-31\",\n \"name\": \"Fiscal year 2025\",\n \"startDate\": \"2025-01-01\"\n }\n ],\n \"prefill\": \"<string>\",\n \"prefilled\": true,\n \"regex\": \"<string>\",\n \"regexValue\": \"<string>\",\n \"required\": true,\n \"role\": \"<string>\",\n \"searchType\": \"date\",\n \"showInDetail\": true,\n \"showInDetailCondition\": \"model.D_DEFAULT_DESCRIPTION\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showInQuery\": true,\n \"showInQueryCondition\": \"<string>\",\n \"showInTemplate\": true,\n \"showLabel\": true,\n \"showLabelInTemplate\": true,\n \"type\": \"date\",\n \"userFilter\": \"<string>\",\n \"validation\": [\n {\n \"message\": \"required_standard\",\n \"parameter\": \"^[A-Z]{2}[0-9]{6}$\",\n \"type\": \"regexp\"\n }\n ]\n }\n ],\n \"form\": [\n {\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"fields\": [\n {\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"size\": 12\n }\n ],\n \"inlineStyle\": \"{\\\"background-color\\\":\\\"#f5f5f5\\\",\\\"padding\\\":\\\"12px\\\"}\",\n \"name\": \"d_default_section_0\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showLabel\": true\n }\n ],\n \"formMode\": true,\n \"formulaFallback\": true,\n \"hasStrictFolderPlacement\": true,\n \"htmlFallback\": true,\n \"inlineMode\": true,\n \"inlineStyle\": \".tpage-part { font-size: 12px; }\",\n \"isPrivateByDefault\": true,\n \"language\": \"en\",\n \"mobileFriendly\": true,\n \"organization\": [\n \"acme_org\"\n ],\n \"previewMode\": \"normal\",\n \"sectionMode\": true,\n \"showStepNumber\": true,\n \"signType\": \"image\",\n \"supportsBarcode\": true,\n \"supportsSignature\": true,\n \"system\": true,\n \"template\": {\n \"content\": \"<div class=\\\"tpage-part\\\"><div class=\\\"col-lg-12\\\"><strong>Title</strong>: <input type=\\\"text\\\" data-model=\\\"model.documentTitle\\\"/></div></div>\",\n \"footer\": \"<string>\",\n \"header\": \"<string>\"\n },\n \"templateFile\": \"5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4\",\n \"workflow\": \"wf_archive\"\n },\n \"thumbnailHtml\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://sandbox.circularo.com/api/v1/definitions/documents?token=")
.header("Content-Type", "application/json")
.body("{\n \"definition\": {\n \"name\": \"d_default\",\n \"backendHtmlRendering\": true,\n \"barcode\": \"<string>\",\n \"barcodeType\": \"qrcode\",\n \"category\": \"Contracts\",\n \"composePreview\": true,\n \"contentFields\": [\n \"D_DEFAULT_DESCRIPTION\"\n ],\n \"contextAttachments\": \"bottom\",\n \"contextFileChooser\": true,\n \"defaultMode\": \"formMode\",\n \"definitionSkin\": \"<string>\",\n \"definitionType\": [\n \"ext\"\n ],\n \"description\": \"Standard contract for external partners.\",\n \"detectSignFields\": true,\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dualMode\": true,\n \"embedDocIdOnSign\": true,\n \"expertMode\": true,\n \"fields\": [\n {\n \"allowGroups\": true,\n \"barcodeType\": \"<string>\",\n \"class\": \"<string>\",\n \"defaultValue\": \"PENDING\",\n \"description\": \"<string>\",\n \"disabled\": true,\n \"disabledCondition\": \"model.GF_STATUS === 'closed'\",\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dynamic\": true,\n \"formula\": \"{{ ('documents:' + form.name) | translate }} #{{id}}\",\n \"formulaRefreshCondition\": [\n \"edit\",\n \"rework\"\n ],\n \"groupFilter\": \"<string>\",\n \"inline\": true,\n \"inlineStyle\": \"{\\\"color\\\":\\\"#ff0000\\\",\\\"font-weight\\\":\\\"bold\\\"}\",\n \"isContentDependent\": true,\n \"isExportable\": true,\n \"isFulltext\": true,\n \"isGlobal\": true,\n \"isIndex\": true,\n \"isQuery\": true,\n \"isRole\": true,\n \"listKey\": \"priority\",\n \"listName\": \"priorities\",\n \"listTooltip\": \"description\",\n \"maskRegex\": \"{\\\"selectedMask\\\":\\\"decimal\\\",\\\"alias\\\":\\\"decimal\\\",\\\"digits\\\":2}\",\n \"maskResult\": \"unmasked\",\n \"maxDate\": \"2026-12-31\",\n \"maxValue\": 123,\n \"minDate\": \"{{ sysdate }}\",\n \"minValue\": 123,\n \"multiselect\": true,\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"options\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"order\": 123,\n \"placeholder\": \"Document title\",\n \"placeholder2\": \"Valid until\",\n \"predefinedDateRanges\": [\n {\n \"endDate\": \"2025-12-31\",\n \"name\": \"Fiscal year 2025\",\n \"startDate\": \"2025-01-01\"\n }\n ],\n \"prefill\": \"<string>\",\n \"prefilled\": true,\n \"regex\": \"<string>\",\n \"regexValue\": \"<string>\",\n \"required\": true,\n \"role\": \"<string>\",\n \"searchType\": \"date\",\n \"showInDetail\": true,\n \"showInDetailCondition\": \"model.D_DEFAULT_DESCRIPTION\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showInQuery\": true,\n \"showInQueryCondition\": \"<string>\",\n \"showInTemplate\": true,\n \"showLabel\": true,\n \"showLabelInTemplate\": true,\n \"type\": \"date\",\n \"userFilter\": \"<string>\",\n \"validation\": [\n {\n \"message\": \"required_standard\",\n \"parameter\": \"^[A-Z]{2}[0-9]{6}$\",\n \"type\": \"regexp\"\n }\n ]\n }\n ],\n \"form\": [\n {\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"fields\": [\n {\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"size\": 12\n }\n ],\n \"inlineStyle\": \"{\\\"background-color\\\":\\\"#f5f5f5\\\",\\\"padding\\\":\\\"12px\\\"}\",\n \"name\": \"d_default_section_0\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showLabel\": true\n }\n ],\n \"formMode\": true,\n \"formulaFallback\": true,\n \"hasStrictFolderPlacement\": true,\n \"htmlFallback\": true,\n \"inlineMode\": true,\n \"inlineStyle\": \".tpage-part { font-size: 12px; }\",\n \"isPrivateByDefault\": true,\n \"language\": \"en\",\n \"mobileFriendly\": true,\n \"organization\": [\n \"acme_org\"\n ],\n \"previewMode\": \"normal\",\n \"sectionMode\": true,\n \"showStepNumber\": true,\n \"signType\": \"image\",\n \"supportsBarcode\": true,\n \"supportsSignature\": true,\n \"system\": true,\n \"template\": {\n \"content\": \"<div class=\\\"tpage-part\\\"><div class=\\\"col-lg-12\\\"><strong>Title</strong>: <input type=\\\"text\\\" data-model=\\\"model.documentTitle\\\"/></div></div>\",\n \"footer\": \"<string>\",\n \"header\": \"<string>\"\n },\n \"templateFile\": \"5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4\",\n \"workflow\": \"wf_archive\"\n },\n \"thumbnailHtml\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/definitions/documents?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"definition\": {\n \"name\": \"d_default\",\n \"backendHtmlRendering\": true,\n \"barcode\": \"<string>\",\n \"barcodeType\": \"qrcode\",\n \"category\": \"Contracts\",\n \"composePreview\": true,\n \"contentFields\": [\n \"D_DEFAULT_DESCRIPTION\"\n ],\n \"contextAttachments\": \"bottom\",\n \"contextFileChooser\": true,\n \"defaultMode\": \"formMode\",\n \"definitionSkin\": \"<string>\",\n \"definitionType\": [\n \"ext\"\n ],\n \"description\": \"Standard contract for external partners.\",\n \"detectSignFields\": true,\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dualMode\": true,\n \"embedDocIdOnSign\": true,\n \"expertMode\": true,\n \"fields\": [\n {\n \"allowGroups\": true,\n \"barcodeType\": \"<string>\",\n \"class\": \"<string>\",\n \"defaultValue\": \"PENDING\",\n \"description\": \"<string>\",\n \"disabled\": true,\n \"disabledCondition\": \"model.GF_STATUS === 'closed'\",\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"dynamic\": true,\n \"formula\": \"{{ ('documents:' + form.name) | translate }} #{{id}}\",\n \"formulaRefreshCondition\": [\n \"edit\",\n \"rework\"\n ],\n \"groupFilter\": \"<string>\",\n \"inline\": true,\n \"inlineStyle\": \"{\\\"color\\\":\\\"#ff0000\\\",\\\"font-weight\\\":\\\"bold\\\"}\",\n \"isContentDependent\": true,\n \"isExportable\": true,\n \"isFulltext\": true,\n \"isGlobal\": true,\n \"isIndex\": true,\n \"isQuery\": true,\n \"isRole\": true,\n \"listKey\": \"priority\",\n \"listName\": \"priorities\",\n \"listTooltip\": \"description\",\n \"maskRegex\": \"{\\\"selectedMask\\\":\\\"decimal\\\",\\\"alias\\\":\\\"decimal\\\",\\\"digits\\\":2}\",\n \"maskResult\": \"unmasked\",\n \"maxDate\": \"2026-12-31\",\n \"maxValue\": 123,\n \"minDate\": \"{{ sysdate }}\",\n \"minValue\": 123,\n \"multiselect\": true,\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"options\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"order\": 123,\n \"placeholder\": \"Document title\",\n \"placeholder2\": \"Valid until\",\n \"predefinedDateRanges\": [\n {\n \"endDate\": \"2025-12-31\",\n \"name\": \"Fiscal year 2025\",\n \"startDate\": \"2025-01-01\"\n }\n ],\n \"prefill\": \"<string>\",\n \"prefilled\": true,\n \"regex\": \"<string>\",\n \"regexValue\": \"<string>\",\n \"required\": true,\n \"role\": \"<string>\",\n \"searchType\": \"date\",\n \"showInDetail\": true,\n \"showInDetailCondition\": \"model.D_DEFAULT_DESCRIPTION\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showInQuery\": true,\n \"showInQueryCondition\": \"<string>\",\n \"showInTemplate\": true,\n \"showLabel\": true,\n \"showLabelInTemplate\": true,\n \"type\": \"date\",\n \"userFilter\": \"<string>\",\n \"validation\": [\n {\n \"message\": \"required_standard\",\n \"parameter\": \"^[A-Z]{2}[0-9]{6}$\",\n \"type\": \"regexp\"\n }\n ]\n }\n ],\n \"form\": [\n {\n \"displayName\": [\n {\n \"language\": \"en\",\n \"value\": \"Expiration date\"\n }\n ],\n \"fields\": [\n {\n \"name\": \"D_DEFAULT_DESCRIPTION\",\n \"size\": 12\n }\n ],\n \"inlineStyle\": \"{\\\"background-color\\\":\\\"#f5f5f5\\\",\\\"padding\\\":\\\"12px\\\"}\",\n \"name\": \"d_default_section_0\",\n \"showInIndex\": true,\n \"showInIndexCondition\": \"model.D_DEFAULT_CATEGORY === 'invoice'\",\n \"showLabel\": true\n }\n ],\n \"formMode\": true,\n \"formulaFallback\": true,\n \"hasStrictFolderPlacement\": true,\n \"htmlFallback\": true,\n \"inlineMode\": true,\n \"inlineStyle\": \".tpage-part { font-size: 12px; }\",\n \"isPrivateByDefault\": true,\n \"language\": \"en\",\n \"mobileFriendly\": true,\n \"organization\": [\n \"acme_org\"\n ],\n \"previewMode\": \"normal\",\n \"sectionMode\": true,\n \"showStepNumber\": true,\n \"signType\": \"image\",\n \"supportsBarcode\": true,\n \"supportsSignature\": true,\n \"system\": true,\n \"template\": {\n \"content\": \"<div class=\\\"tpage-part\\\"><div class=\\\"col-lg-12\\\"><strong>Title</strong>: <input type=\\\"text\\\" data-model=\\\"model.documentTitle\\\"/></div></div>\",\n \"footer\": \"<string>\",\n \"header\": \"<string>\"\n },\n \"templateFile\": \"5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4\",\n \"workflow\": \"wf_archive\"\n },\n \"thumbnailHtml\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
application/json