action formapi_add_fields_to_template { label: "Add new fields to a Template" provider: formapi method: PUT path: "/templates/{template_id}/add_fields" encoding: json input: { type: "object" properties: { fields: { type: "array" items: { type: "object" required: ["name", "page"] properties: { alignment: { type: "string" enum: ["left", "center", "right"] } autoCalculateMaxLength: { type: "boolean" } backgroundColor: { type: "string" } backgroundColorFieldName: { type: "string" } backgroundColorFieldRequired: { type: "boolean" } barcodeSymbology: { type: "string" } bold: { type: "boolean" } characterSpacing: { type: "number" } checkCharacter: { type: "string" enum: ["✓", "✔", "✖", "✗", "✘"] } checkColor: { type: "string" } checkColorFieldName: { type: "string" } checkColorFieldRequired: { type: "boolean" } color: { type: "string" } colorFieldName: { type: "string" } colorFieldRequired: { type: "boolean" } comb: { type: "boolean" } combNumberOfCells: { type: "number" } combValueOffset: { type: "number" } combinedFieldFormat: { type: "string" } combinedFieldNames: { type: "string" } combinedFieldSeparator: { type: "string" } combinedFieldType: { type: "string" } condition: { type: "string" } currency: { type: "boolean" } dateTimeFormat: { type: "string" } decimalPlaces: { type: "number" } default: { type: "string" } description: { type: "string" } displayType: { type: "string" enum: ["text", "check", "qrcode", "barcode", "image", "shape"] } exclusiveMaximum: { type: "boolean" } exclusiveMinimum: { type: "boolean" } falseText: { type: "string" } fontSize: { type: "number" } height: { type: "number" } hidden: { type: "boolean" } id: { type: "number" } imageGravity: { type: "string" enum: ["NorthWest", "North", "NorthEast", "West", "Center", "East", "SouthWest", "South", "SouthEast"] } imageScaleType: { type: "string" enum: ["fit", "fill", "stretch"] } includeTime: { type: "boolean" } integer: { type: "boolean" } invertBooleanCondition: { type: "boolean" } maxLength: { type: "number" } maximum: { type: "number" } metadata: { type: "string" } minLength: { type: "number" } minimum: { type: "number" } multiline: { type: "boolean" } multilineLines: { type: "number" } name: { type: "string" } numberConditionRangeExclusiveMax: { type: "boolean" } numberConditionRangeExclusiveMin: { type: "boolean" } numberConditionRangeMax: { type: "number" } numberConditionRangeMin: { type: "number" } numberConditionType: { type: "string" enum: ["equals", "range", "gte", "gt", "lte", "lt"] } opacity: { type: "number" } optionList: { type: "string" } overflow: { type: "string" enum: ["shrink_to_fit", "truncate"] } page: { type: "number" } placeholder: { type: "string" } qrcodeColor: { type: "string" } qrcodeColorFieldName: { type: "string" } qrcodeColorFieldRequired: { type: "boolean" } required: { type: "boolean" } rotation: { type: "number" } shapeBorderColor: { type: "string" } shapeBorderColorFieldName: { type: "string" } shapeBorderColorFieldRequired: { type: "boolean" } shapeBorderWidth: { type: "number" } shapeFillColor: { type: "string" } shapeFillColorFieldName: { type: "string" } shapeFillColorFieldRequired: { type: "boolean" } shapeType: { type: "string" enum: ["square", "rectangle", "circle", "ellipse"] } signatureAllowDraw: { type: "boolean" } signatureAllowType: { type: "boolean" } static: { type: "boolean" } strikethrough: { type: "boolean" } stringConditionType: { type: "string" enum: ["equals", "contains", "starts_with", "ends_with", "regex"] } title: { type: "string" } trueText: { type: "string" } type: { type: "string" enum: ["string", "number", "boolean", "date", "address", "country", "email", "url", "image", "signature", "barcode", "combined"] } typeface: { type: "string" } uppercase: { type: "boolean" } vAlignment: { type: "string" enum: ["bottom", "center", "top"] } width: { type: "number" } x: { type: "number" } y: { type: "number" } } additionalProperties: false } } template_id: { type: "string" } } required: ["fields", "template_id"] additionalProperties: false } output: { type: "object" required: ["status"] properties: { errors: { type: "array" items: { type: "string" } } new_field_ids: { type: "array" items: { type: "integer" } } status: { type: "string" enum: ["success", "error"] } } } }