action contract_p_post_formats_resource { label: "Create format" description: "Create an new format\n\n**Deprecated**: display_name\n**Deprecated**: default_format\n\n**Permission required:** edit_format_settings" provider: contract_p method: POST path: "/formats" encoding: json input: { type: "object" required: ["labels", "name"] properties: { display_name: { type: "string" } document_types: { type: "array" items: { type: "object" required: ["field_name"] properties: { display_name: { type: "string" } field_name: { type: "string" } } } } labels: { type: "array" items: { type: "object" required: ["field_name"] properties: { category: { type: "string" enum: ["annotation", "tag", "separator", "computed"] } count_in_evaluation: { type: "boolean" description: "A flag that determines whether to count this field for evaluation" } description: { type: "string" description: "A description of this field" } display_name: { type: "string" } field_name: { type: "string" } formula: { type: "string" description: "An excel-like formula for conditional logic" } initialized: { type: "boolean" } is_library: { type: "boolean" } mandatory: { type: "boolean" } mandatory_if: { type: "object" description: "A value to decide if mandatory based on other field" } multiple: { type: "boolean" } options: { type: "array" items: { type: "object" required: ["active", "name"] properties: { active: { type: "boolean" } display_name: { type: "string" } name: { type: "string" } } } } scope: { type: "string" enum: ["document", "page", "section"] } type: { type: "string" enum: ["string", "date", "integer", "float", "currency", "alphanumeric", "national_identification_number_be", "boolean", "datetime", "address"] } visible: { type: "boolean" } visible_if: { type: "object" description: "A value to decide if shown in UI" } } } } name: { type: "string" } separators: { type: "array" items: { type: "object" required: ["name", "page"] properties: { name: { type: "string" } page: { type: "integer" } } } } table_types: { type: "array" items: { type: "object" properties: { collapsed: { type: "boolean" } columns: { type: "array" items: { type: "object" additionalProperties: true } } contains_line_items: { type: "boolean" } initialized: { type: "boolean" } label: { type: "string" } scope: { type: "string" enum: ["document", "page", "section"] } } } } } } output: { type: "object" additionalProperties: true } }