Creates a new form-logic rule in the rating engine revision’s config JSON
(rating_engine_revisions.config.policyFormLogicConfigs). Rules determine
which forms are attached to policies or quotes based on a shouldAdd
expression evaluated during rating.
The ratingEngineRevisionId must reference an existing, non-deleted
revision owned by this company.
The rating engine revision to add this rule to. Must reference an existing, non-deleted revision belonging to this company (otherwise the request returns 404).
How to handle the rating engine revision. UpdateExistingRevision modifies the specified revision in place. CreateNewRevision is not yet implemented and will return a 501 error.
Sort order for this rule relative to others on the same revision. Controls the position of attached forms in the output list (lower numbers appear first). Duplicates are permitted.
A conditional expression that evaluates to true or false during rating (of either a quote or a policy). Determines whether a form should be attached. Three variants are supported.
Tag controlling which form-selection contexts this rule's output appears in — "policies" (output appears during policy form selection), "quotes" (output appears during quote form selection), or an array of these values. If omitted, the rule's output only appears during policy form selection; specify "quotes" (or an array that includes it) to also participate in quote form selection.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AI Insurance","colors":{"primary":"#714CC5","light":"#D3BFFF","dark":"#A887F3"},"logo":{"light":"https://mintcdn.com/aiinsurance-1ef97d09/ls88CnBYSdncVsv-/logo/dark.jpg?fit=max\u0026auto=format\u0026n=ls88CnBYSdncVsv-\u0026q=85\u0026s=70f2fca24207981e78b1a1fd14e47a66","dark":"https://mintcdn.com/aiinsurance-1ef97d09/ls88CnBYSdncVsv-/logo/dark.jpg?fit=max\u0026auto=format\u0026n=ls88CnBYSdncVsv-\u0026q=85\u0026s=70f2fca24207981e78b1a1fd14e47a66","href":"https://app.aiinsurance.io"},"favicon":"https://mintcdn.com/aiinsurance-1ef97d09/ls88CnBYSdncVsv-/logo/dark.jpg?fit=max\u0026auto=format\u0026n=ls88CnBYSdncVsv-\u0026q=85\u0026s=70f2fca24207981e78b1a1fd14e47a66","navbar":{"links":[{"href":"mailto:support@aiinsurance.io","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.aiinsurance.io"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/a-i-insurance-inc"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aiinsurance-1ef97d09","hasAudioNarration":false,"actualSubdomain":"aiinsurance-1ef97d09","customDomains":["docs.aiinsurance.io"],"gitSource":{"type":"github","owner":"ai-insurance","repo":"app","deployBranch":"trunk","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ab6b1b4e840ec07c6292b3c","collectionId":"e659e479-d983-4936-b14f-1795bea33a08","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ab6b1b4e840ec07c6292b3c"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ab6b1b4e840ec07c6292b3c","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"API (Legacy)","count":139},{"language":"default","tag":"API (v1)","count":99},{"language":"default","tag":"Features","count":85},{"language":"default","tag":"Policies","count":46},{"language":"default","tag":"Platform","count":34},{"language":"default","tag":"Exposures","count":21},{"language":"default","tag":"Events","count":20},{"language":"default","tag":"Companies","count":20},{"language":"default","tag":"Submissions","count":17},{"language":"default","tag":"Quotes","count":15}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/configuration-rating-form-logic/create-rating-revision-form-logic","slug":"/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic","pageMetadata":{"title":"Create Rating Revision Form Logic","description":"Creates a new form-logic rule in the rating engine revision's config JSON\n(`rating_engine_revisions.config.policyFormLogicConfigs`). Rules determine\nwhich forms are attached to policies or quotes based on a `shouldAdd`\nexpression evaluated during rating.\n\nThe `ratingEngineRevisionId` must reference an existing, non-deleted\nrevision owned by this company.\n\n**Required permission:** `company:update`\n","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/rating/form-logic","href":"/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Creates a new form-logic rule in the rating engine revision’s config JSON\\n(\", _jsx(_components.code, {\n children: \"rating_engine_revisions.config.policyFormLogicConfigs\"\n }), \"). Rules determine\\nwhich forms are attached to policies or quotes based on a \", _jsx(_components.code, {\n children: \"shouldAdd\"\n }), \"\\nexpression evaluated during rating.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The \", _jsx(_components.code, {\n children: \"ratingEngineRevisionId\"\n }), \" must reference an existing, non-deleted\\nrevision owned by this company.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Required permission:\"\n }), \" \", _jsx(_components.code, {\n children: \"company:update\"\n })]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Rating Revision Form Logic","description":"Creates a new form-logic rule in the rating engine revision's config JSON\n(`rating_engine_revisions.config.policyFormLogicConfigs`). Rules determine\nwhich forms are attached to policies or quotes based on a `shouldAdd`\nexpression evaluated during rating.\n\nThe `ratingEngineRevisionId` must reference an existing, non-deleted\nrevision owned by this company.\n\n**Required permission:** `company:update`\n","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/rating/form-logic","href":"/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/aiinsurance-1ef97d09/4e1c246dd3af6ca5/getting-started/troubleshooting-and-support/faqs/faq-questions.js"],"openApiReferenceData":{"operation":{"operationId":"createRatingRevisionFormLogic","summary":"Create Rating Revision Form Logic","description":"Creates a new form-logic rule in the rating engine revision's config JSON\n(`rating_engine_revisions.config.policyFormLogicConfigs`). Rules determine\nwhich forms are attached to policies or quotes based on a `shouldAdd`\nexpression evaluated during rating.\n\nThe `ratingEngineRevisionId` must reference an existing, non-deleted\nrevision owned by this company.\n\n**Required permission:** `company:update`\n","tags":["Configuration Rating Form Logic"],"parameters":["e0a7872b-935a-42b1-ba7e-48e15ba9a327"],"requestBody":"245ad5eb-2c05-45f5-b797-cb0c22b1b7fd","responses":{"201":"2220b56b-13cb-41f5-b8ce-1463ad73af32","400":"fd5c20d2-6a67-4a53-a377-600987e6216e","401":"8e5dbd3f-5823-4777-9569-188990293db7","403":"efb597dc-e17e-42ce-a9c2-9392b1c4fdd2","404":"ec32d250-a77a-40e9-bfac-1653cf5a85a8","500":"736f7342-d4e7-4cde-a5b0-c8e0cf1fe3a9","501":"e4da7293-11e5-49fc-8dc5-2c9e7b18d736"},"method":"post","type":"path","servers":["2b61fdd4-788f-4748-ba4d-04ce900bb4a0"],"security":["7989fc0b-09e9-462b-a38b-64409e876087"],"path":"/api/external/companies/{companyId}/configuration/rating/form-logic","baseUrlOptions":["https://app.aiinsurance.io"],"title":"Create Rating Revision Form Logic","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e0a7872b-935a-42b1-ba7e-48e15ba9a327":{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"description":"Company identifier","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"Company identifier"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Request body for creating a form-logic rule in a rating engine revision's config JSON","required":["ratingEngineRevisionId","revisionStrategy","ruleName","rank","shouldAdd"],"properties":{"ratingEngineRevisionId":{"type":"string","format":"uuid","description":"The rating engine revision to add this rule to. Must reference an existing, non-deleted revision belonging to this company (otherwise the request returns 404).","isRequired":true,"uniqueKey":"ratingEngineRevisionId","typeLabel":"string\u003cuuid>"},"revisionStrategy":{"type":"string","enum":["UpdateExistingRevision","CreateNewRevision"],"description":"How to handle the rating engine revision. `UpdateExistingRevision` modifies the specified revision in place. `CreateNewRevision` is not yet implemented and will return a 501 error.","isRequired":true,"uniqueKey":"revisionStrategy","typeLabel":"enum\u003cstring>"},"ruleName":{"type":"string","minLength":1,"description":"Human-readable name for the rule (e.g. \"Attach Certificate of Insurance\").","isRequired":true,"uniqueKey":"ruleName","typeLabel":"string"},"rank":{"type":"number","description":"Sort order for this rule relative to others on the same revision. Controls the position of attached forms in the output list (lower numbers appear first). Duplicates are permitted.","isRequired":true,"uniqueKey":"rank","typeLabel":"number"},"shouldAdd":{"oneOf":[{"type":"object","title":"Branch Expression","description":"A conditional expression that evaluates to true or false during rating (of either a quote or a policy). Determines whether a form should be attached. Three variants are supported.\n","required":["operator","conditions"],"properties":{"operator":{"type":"string","enum":["AND","OR"],"isRequired":true,"uniqueKey":"shouldAdd.oneOf.0.operator","typeLabel":"enum\u003cstring>"},"conditions":{"type":"array","items":{"$circularRef":"e1cf830e-c694-4e0f-97e9-959ce43a36c0"},"isRequired":true,"uniqueKey":"shouldAdd.oneOf.0.conditions","typeLabel":"array"}},"isRequired":true,"uniqueKey":"shouldAdd.oneOf.0","typeLabel":"Branch Expression · object"},{"type":"object","title":"Leaf Expression","description":"A conditional expression that evaluates to true or false during rating (of either a quote or a policy). Determines whether a form should be attached. Three variants are supported.\n","required":["leftKey","operator","rightValue"],"properties":{"leftKey":{"type":"string","minLength":1,"description":"Dotted path to a value in the rating context. The context includes `policy`, `insured`/`insureds`, `coverage`/`coverages`, and `form` (e.g. `policy.data.state`, `form.number`, `coverage.coverageTypeId`).\n","isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.leftKey","typeLabel":"string"},"operator":{"type":"string","enum":["=","!=","\u003c","\u003c=",">",">=","IN","NOTIN","EXISTS","NOTEXISTS","SOME"],"isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.operator","typeLabel":"enum\u003cstring>"},"rightValue":{"oneOf":[{"type":"string","description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.rightValue.oneOf.0","typeLabel":"string"},{"type":"number","description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.rightValue.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.rightValue.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"shouldAdd.oneOf.1.rightValue.oneOf.3.items.[INDEX]","typeLabel":"any"},"description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.rightValue.oneOf.3","typeLabel":"any[]"},{"description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.rightValue.oneOf.4","typeLabel":"any"}],"isRequired":true,"uniqueKey":"shouldAdd.oneOf.1.rightValue","typeLabel":"string | number | boolean | any[] | any"}},"isRequired":true,"uniqueKey":"shouldAdd.oneOf.1","typeLabel":"Leaf Expression · object"},{"type":"object","title":"Inverted Leaf Expression","description":"A conditional expression that evaluates to true or false during rating (of either a quote or a policy). Determines whether a form should be attached. Three variants are supported.\n","required":["leftValue","operator","rightKey"],"properties":{"leftValue":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"shouldAdd.oneOf.2.leftValue.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"shouldAdd.oneOf.2.leftValue.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"shouldAdd.oneOf.2.leftValue.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"shouldAdd.oneOf.2.leftValue","typeLabel":"string | number | boolean"},"operator":{"type":"string","enum":["IN"],"isRequired":true,"uniqueKey":"shouldAdd.oneOf.2.operator","typeLabel":"enum\u003cstring>"},"rightKey":{"type":"string","minLength":1,"description":"Dotted path to the array (or string) that `leftValue` is checked against. Resolved against the same rating context as `leftKey`.\n","isRequired":true,"uniqueKey":"shouldAdd.oneOf.2.rightKey","typeLabel":"string"}},"isRequired":true,"uniqueKey":"shouldAdd.oneOf.2","typeLabel":"Inverted Leaf Expression · object"}],"isRequired":true,"uniqueKey":"shouldAdd","typeLabel":"Branch Expression · object | Leaf Expression · object | Inverted Leaf Expression · object"},"step":{"oneOf":[{"type":"string","description":"Tag controlling which form-selection contexts this rule's output appears in — `\"policies\"` (output appears during policy form selection), `\"quotes\"` (output appears during quote form selection), or an array of these values. If omitted, the rule's output only appears during policy form selection; specify `\"quotes\"` (or an array that includes it) to also participate in quote form selection.\n","enum":["policies","quotes"],"uniqueKey":"step.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"array","items":{"type":"string","enum":["policies","quotes"],"uniqueKey":"step.oneOf.1.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Tag controlling which form-selection contexts this rule's output appears in — `\"policies\"` (output appears during policy form selection), `\"quotes\"` (output appears during quote form selection), or an array of these values. If omitted, the rule's output only appears during policy form selection; specify `\"quotes\"` (or an array that includes it) to also participate in quote form selection.\n","uniqueKey":"step.oneOf.1","typeLabel":"enum\u003cstring>[]"}],"uniqueKey":"step","typeLabel":"enum\u003cstring> | enum\u003cstring>[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"simpleLeaf":{"title":"simpleLeaf","value":{"ratingEngineRevisionId":"e06153b8-53c8-4305-bc23-0b67450ec450","revisionStrategy":"UpdateExistingRevision","ruleName":"Attach Certificate of Insurance","rank":1,"step":"policies","shouldAdd":{"leftKey":"form.number","operator":"=","rightValue":"FM-0001"}}},"nested":{"title":"nested","value":{"ratingEngineRevisionId":"e06153b8-53c8-4305-bc23-0b67450ec450","revisionStrategy":"UpdateExistingRevision","ruleName":"Attach state-specific endorsement","rank":2,"step":["policies","quotes"],"shouldAdd":{"operator":"AND","conditions":[{"leftKey":"form.number","operator":"=","rightValue":"FM-0002"},{"operator":"OR","conditions":[{"leftKey":"policy.data.state","operator":"=","rightValue":"CA"},{"leftKey":"policy.data.state","operator":"=","rightValue":"NY"}]}]}}},"some":{"title":"some","value":{"ratingEngineRevisionId":"e06153b8-53c8-4305-bc23-0b67450ec450","revisionStrategy":"UpdateExistingRevision","ruleName":"Attach GL supplement when a GL coverage is present","rank":3,"shouldAdd":{"operator":"AND","conditions":[{"leftKey":"form.number","operator":"=","rightValue":"FM-0050"},{"leftKey":"coverages","operator":"SOME","rightValue":{"leftKey":"coverageTypeId","operator":"=","rightValue":"general_liability"}}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"2220b56b-13cb-41f5-b8ce-1463ad73af32":{"description":"Form-logic rule created successfully","content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The server-generated ID of the created rule","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"success":{"title":"success","value":{"id":"bc6a626e-7a96-49fd-b477-2b18cf189a0d"}}},"exampleType":"examples"}},"exampleType":"examples"},"fd5c20d2-6a67-4a53-a377-600987e6216e":{"description":"Bad Request - Validation error","content":{"application/json":{"schema":{"type":"object","description":"Standard error response for all external API endpoints","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","example":"submissionId: Required field is missing","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Additional details for validation errors (field-level errors)","items":{"type":"object","properties":{"field":{"type":"string","description":"The field that caused the error","example":"submissionId","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the field error","example":"Required field is missing","uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"emptyRuleName":{"title":"emptyRuleName","value":{"error":{"code":"InvalidProperties","message":"ruleName: The value is an empty string","details":[{"field":"ruleName","message":"The value is an empty string"}]}}},"invalidShouldAdd":{"title":"invalidShouldAdd","value":{"error":{"code":"InvalidProperties","message":"shouldAdd: The value did not match any of the expected validations","details":[{"field":"shouldAdd","message":"The value did not match any of the expected validations"}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"8e5dbd3f-5823-4777-9569-188990293db7":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","description":"Standard error response for all external API endpoints","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","example":"submissionId: Required field is missing","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Additional details for validation errors (field-level errors)","items":{"type":"object","properties":{"field":{"type":"string","description":"The field that caused the error","example":"submissionId","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the field error","example":"Required field is missing","uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missingApiKey":{"title":"missingApiKey","value":{"error":{"code":"UNAUTHORIZED","message":"Authorization header is required"}}},"bearerTokenNotAllowed":{"title":"bearerTokenNotAllowed","value":{"error":{"code":"UNAUTHORIZED","message":"External API endpoints require API key authentication"}}}},"exampleType":"examples"}},"exampleType":"examples"},"efb597dc-e17e-42ce-a9c2-9392b1c4fdd2":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"type":"object","description":"Standard error response for all external API endpoints","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","example":"submissionId: Required field is missing","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Additional details for validation errors (field-level errors)","items":{"type":"object","properties":{"field":{"type":"string","description":"The field that caused the error","example":"submissionId","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the field error","example":"Required field is missing","uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"insufficientPermissions":{"title":"insufficientPermissions","value":{"error":{"code":"FORBIDDEN","message":"Insufficient permissions to perform this action"}}}},"exampleType":"examples"}},"exampleType":"examples"},"ec32d250-a77a-40e9-bfac-1653cf5a85a8":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","description":"Standard error response for all external API endpoints","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","example":"submissionId: Required field is missing","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Additional details for validation errors (field-level errors)","items":{"type":"object","properties":{"field":{"type":"string","description":"The field that caused the error","example":"submissionId","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the field error","example":"Required field is missing","uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"revisionNotFound":{"title":"revisionNotFound","value":{"error":{"code":"NotFoundError","message":"Rating engine revision not found: e06153b8-53c8-4305-bc23-0b67450ec450"}}}},"exampleType":"examples"}},"exampleType":"examples"},"736f7342-d4e7-4cde-a5b0-c8e0cf1fe3a9":{"description":"Internal Server Error - Unexpected error occurred","content":{"application/json":{"schema":{"type":"object","description":"Standard error response for all external API endpoints","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","example":"submissionId: Required field is missing","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Additional details for validation errors (field-level errors)","items":{"type":"object","properties":{"field":{"type":"string","description":"The field that caused the error","example":"submissionId","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the field error","example":"Required field is missing","uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"internalError":{"title":"internalError","value":{"error":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred. Please try again later."}}}},"exampleType":"examples"}},"exampleType":"examples"},"e4da7293-11e5-49fc-8dc5-2c9e7b18d736":{"description":"Not Implemented","content":{"application/json":{"schema":{"type":"object","description":"Standard error response for all external API endpoints","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","example":"submissionId: Required field is missing","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Additional details for validation errors (field-level errors)","items":{"type":"object","properties":{"field":{"type":"string","description":"The field that caused the error","example":"submissionId","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the field error","example":"Required field is missing","uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"notImplemented":{"title":"notImplemented","value":{"error":{"code":"NotImplemented","message":"CreateNewRevision is not yet implemented"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"7989fc0b-09e9-462b-a38b-64409e876087":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"API key authentication. Include your API key in the Authorization header.","scopes":[]}}},"servers":{"2b61fdd4-788f-4748-ba4d-04ce900bb4a0":{"url":"https://app.aiinsurance.io","description":"Production"}},"schemas":{"e1cf830e-c694-4e0f-97e9-959ce43a36c0":{"oneOf":[{"type":"object","title":"Branch Expression","description":"A conditional expression that evaluates to true or false during rating (of either a quote or a policy). Determines whether a form should be attached. Three variants are supported.\n","required":["operator","conditions"],"properties":{"operator":{"type":"string","enum":["AND","OR"],"isRequired":true},"conditions":{"type":"array","items":{"$circularRef":"e1cf830e-c694-4e0f-97e9-959ce43a36c0"},"isRequired":true}}},{"type":"object","title":"Leaf Expression","description":"A conditional expression that evaluates to true or false during rating (of either a quote or a policy). Determines whether a form should be attached. Three variants are supported.\n","required":["leftKey","operator","rightValue"],"properties":{"leftKey":{"type":"string","minLength":1,"description":"Dotted path to a value in the rating context. The context includes `policy`, `insured`/`insureds`, `coverage`/`coverages`, and `form` (e.g. `policy.data.state`, `form.number`, `coverage.coverageTypeId`).\n","isRequired":true},"operator":{"type":"string","enum":["=","!=","\u003c","\u003c=",">",">=","IN","NOTIN","EXISTS","NOTEXISTS","SOME"],"isRequired":true},"rightValue":{"oneOf":[{"type":"string","description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true},{"type":"number","description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true},{"type":"boolean","description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true},{"type":"array","items":{"oneOf":[{}]},"description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true},{"description":"Primitive, array, `null`, or nested expression — a nested expression only makes sense with `SOME`. `null` is accepted by the runtime but cannot be expressed inside an OpenAPI 3.0 `oneOf`.\n","isRequired":true}],"isRequired":true}}},{"type":"object","title":"Inverted Leaf Expression","description":"A conditional expression that evaluates to true or false during rating (of either a quote or a policy). Determines whether a form should be attached. Three variants are supported.\n","required":["leftValue","operator","rightKey"],"properties":{"leftValue":{"oneOf":[{"type":"string","isRequired":true},{"type":"number","isRequired":true},{"type":"boolean","isRequired":true}],"isRequired":true},"operator":{"type":"string","enum":["IN"],"isRequired":true},"rightKey":{"type":"string","minLength":1,"description":"Dotted path to the array (or string) that `leftValue` is checked against. Resolved against the same rating context as `leftKey`.\n","isRequired":true}}}]}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"API key authentication. Include your API key in the Authorization header.","scopes":[]},"schema":{"title":"Authorization","type":"string","description":"API key authentication. Include your API key in the Authorization header.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi/generated-external-api.yaml"},"subdomain":"aiinsurance-1ef97d09","siteName":"AI Insurance","title":"Create Rating Revision Form Logic - AI Insurance","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-25T17:39:21.332Z","originalFileLocation":"api-reference/configuration-rating-form-logic/create-rating-revision-form-logic.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new form-logic rule in the rating engine revision\u0026#x27;s config JSON (rating_engine_revisions.config.policyFormLogicConfigs). Rules determine which forms are attached to policies or quotes based on a shouldAdd expression evaluated during rating. The ratingEngineRevisionId must reference an existing, non-deleted revision owned by this company. Required permission: company:update\">\u003cmeta data-mint-head name=\"application-name\" content=\"AI Insurance\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Rating Revision Form Logic - AI Insurance\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new form-logic rule in the rating engine revision\u0026#x27;s config JSON (rating_engine_revisions.config.policyFormLogicConfigs). Rules determine which forms are attached to policies or quotes based on a shouldAdd expression evaluated during rating. The ratingEngineRevisionId must reference an existing, non-deleted revision owned by this company. Required permission: company:update\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AI Insurance\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aiinsurance-1ef97d09.mintlify.app/_mintlify/api/og/v2?division=Configuration+Rating+Form+Logic\u0026amp;title=Create+Rating+Revision+Form+Logic\u0026amp;description=Creates+a+new+form-logic+rule+in+the+rating+engine+revision%27s+config+JSON%0A%28%60rating_engine_revisions.config.policyFormLogicConfigs%60%29.+Rules+determine%0Awhich+forms\u0026amp;theme=b4d4540f39105f1aa56a5b23\u0026amp;signature=749f0fa6d0e499086c26e4ea28ac4e6e463bce5abc9dc1b497c8fe6ec27ab1bc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Rating Revision Form Logic - AI Insurance\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new form-logic rule in the rating engine revision\u0026#x27;s config JSON (rating_engine_revisions.config.policyFormLogicConfigs). Rules determine which forms are attached to policies or quotes based on a shouldAdd expression evaluated during rating. The ratingEngineRevisionId must reference an existing, non-deleted revision owned by this company. Required permission: company:update\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aiinsurance-1ef97d09.mintlify.app/_mintlify/api/og/v2?division=Configuration+Rating+Form+Logic\u0026amp;title=Create+Rating+Revision+Form+Logic\u0026amp;description=Creates+a+new+form-logic+rule+in+the+rating+engine+revision%27s+config+JSON%0A%28%60rating_engine_revisions.config.policyFormLogicConfigs%60%29.+Rules+determine%0Awhich+forms\u0026amp;theme=b4d4540f39105f1aa56a5b23\u0026amp;signature=749f0fa6d0e499086c26e4ea28ac4e6e463bce5abc9dc1b497c8fe6ec27ab1bc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aiinsurance-1ef97d09/oQoqFFzWmBxGYA2D/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AI Insurance\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#714CC5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aiinsurance.io/#organization\",\"name\":\"AI Insurance\",\"url\":\"https://docs.aiinsurance.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aiinsurance-1ef97d09/ls88CnBYSdncVsv-/logo/dark.jpg?fit=max\u0026auto=format\u0026n=ls88CnBYSdncVsv-\u0026q=85\u0026s=70f2fca24207981e78b1a1fd14e47a66\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aiinsurance.io#website\",\"name\":\"AI Insurance\",\"url\":\"https://docs.aiinsurance.io\",\"publisher\":{\"@id\":\"https://docs.aiinsurance.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic#webpage\",\"url\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic\",\"name\":\"Create Rating Revision Form Logic\",\"description\":\"Creates a new form-logic rule in the rating engine revision's config JSON (rating_engine_revisions.config.policyFormLogicConfigs). Rules determine which forms are attached to policies or quotes based on a shouldAdd expression evaluated during rating. The ratingEngineRevisionId must reference an existing, non-deleted revision owned by this company. Required permission: company:update\",\"dateModified\":\"2026-09-25T17:39:21.332Z\",\"isPartOf\":{\"@id\":\"https://docs.aiinsurance.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Configuration Rating Form Logic\",\"item\":\"https://docs.aiinsurance.io/api-legacy-reference/configuration-rating-form-logic/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Rating Revision Form Logic\",\"item\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic#apireference\",\"headline\":\"Create Rating Revision Form Logic\",\"name\":\"Create Rating Revision Form Logic\",\"description\":\"Creates a new form-logic rule in the rating engine revision's config JSON (rating_engine_revisions.config.policyFormLogicConfigs). Rules determine which forms are attached to policies or quotes based on a shouldAdd expression evaluated during rating. The ratingEngineRevisionId must reference an existing, non-deleted revision owned by this company. Required permission: company:update\",\"url\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aiinsurance.io/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic#webpage\"},\"dateModified\":\"2026-09-25T17:39:21.332Z\",\"publisher\":{\"@id\":\"https://docs.aiinsurance.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aiinsurance.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AI Insurance\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"AI Insurance","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/homepage"}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/getting-started/intro-to-aiinsurance/what-is-aiinsurance"}]},{"tab":"Features","pages":[{"title":"Features","href":"/platform/platform-overview/key-components"}]},{"tab":"API (v1)","pages":[{"title":"API (v1)","href":"/api-v1-reference/overview"}]},{"tab":"API (Legacy)","groups":[{"group":"Getting Started","pages":[{"title":"Overview","href":"/api-legacy-reference/overview"},{"title":"Generating API Keys","href":"/api-legacy-reference/authentication"}]},{"group":"Submissions","pages":[{"title":"Overview","href":"/api-legacy-reference/submissions/overview"},{"title":"List Submissions","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/submissions","href":"/api-reference/submissions/list-submissions"},{"title":"Create Submission","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/submissions","href":"/api-reference/submissions/create-submission"},{"title":"Get Submission","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/submissions/{submissionId}","href":"/api-reference/submissions/get-submission"},{"title":"Update Submission","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/submissions/{submissionId}","href":"/api-reference/submissions/update-submission"},{"title":"Delete Submission","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/submissions/{submissionId}","href":"/api-reference/submissions/delete-submission"},{"title":"Attach Files to Submission","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/submissions/{submissionId}/files","href":"/api-reference/submissions/attach-files-to-submission"},{"title":"Get Submission Loss History","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/submissions/{submissionId}/loss-history","href":"/api-reference/submissions/get-submission-loss-history"},{"title":"Set Submission Loss History","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml put /api/external/companies/{companyId}/submissions/{submissionId}/loss-history","href":"/api-reference/submissions/set-submission-loss-history"},{"title":"Add Submission Loss History Entries","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/submissions/{submissionId}/loss-history","href":"/api-reference/submissions/add-submission-loss-history-entries"}]},{"group":"Quotes","pages":[{"title":"Overview","href":"/api-legacy-reference/quotes/overview"},{"title":"List Quotes","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/quotes","href":"/api-reference/quotes/list-quotes"},{"title":"Create Quote","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/quotes","href":"/api-reference/quotes/create-quote"},{"title":"List Quote Info","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/quotes-info","href":"/api-reference/quotes/list-quote-info"},{"title":"Get Quote","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/quotes/{quoteId}","href":"/api-reference/quotes/get-quote"},{"title":"Delete Quote","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/quotes/{quoteId}","href":"/api-reference/quotes/delete-quote"},{"title":"Get Quotes Configuration","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/quotes/configuration","href":"/api-reference/quotes/get-quotes-configuration"}]},{"group":"Assignees","pages":[{"title":"Overview","href":"/api-legacy-reference/assignees/overview"},{"title":"List Assignees","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/{entityType}/{entityId}/assignees","href":"/api-reference/assignees/list-assignees"},{"title":"Set Assignees","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml put /api/external/companies/{companyId}/{entityType}/{entityId}/assignees","href":"/api-reference/assignees/set-assignees"}]},{"group":"Notes","pages":[{"title":"Overview","href":"/api-legacy-reference/notes/overview"},{"title":"List Notes","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/{entityType}/{entityId}/notes","href":"/api-reference/notes/list-notes"},{"title":"Create Note","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/{entityType}/{entityId}/notes","href":"/api-reference/notes/create-note"},{"title":"Get Note","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/{entityType}/{entityId}/notes/{noteId}","href":"/api-reference/notes/get-note"},{"title":"Delete Note","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/{entityType}/{entityId}/notes/{noteId}","href":"/api-reference/notes/delete-note"}]},{"group":"Events","pages":[{"title":"Overview","href":"/api-legacy-reference/events/overview"},{"title":"List Events","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events","href":"/api-reference/events/list-events"},{"title":"Create Event","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/events","href":"/api-reference/events/create-event"},{"title":"Get Event","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}","href":"/api-reference/events/get-event"},{"title":"Update Event","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/events/{eventId}","href":"/api-reference/events/update-event"},{"title":"Delete Event","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/events/{eventId}","href":"/api-reference/events/delete-event"},{"title":"Get Events Configuration","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/configuration","href":"/api-reference/events/get-events-configuration"}]},{"group":"Brokerages","pages":[{"title":"Overview","href":"/api-legacy-reference/brokerages/overview"},{"title":"List Brokerages","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/brokerages","href":"/api-reference/brokerages/list-brokerages"},{"title":"Create Brokerage","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/brokerages","href":"/api-reference/brokerages/create-brokerage"},{"title":"Get Brokerage","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/brokerages/{brokerageId}","href":"/api-reference/brokerages/get-brokerage"},{"title":"Update Brokerage","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/brokerages/{brokerageId}","href":"/api-reference/brokerages/update-brokerage"},{"title":"Delete Brokerage","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/brokerages/{brokerageId}","href":"/api-reference/brokerages/delete-brokerage"}]},{"group":"Brokers","pages":[{"title":"Overview","href":"/api-legacy-reference/brokers/overview"},{"title":"List Brokers","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/brokers","href":"/api-reference/brokers/list-brokers"},{"title":"Create Broker","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/brokers","href":"/api-reference/brokers/create-broker"},{"title":"Get Broker","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/brokers/{brokerId}","href":"/api-reference/brokers/get-broker"},{"title":"Update Broker","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/brokers/{brokerId}","href":"/api-reference/brokers/update-broker"},{"title":"Delete Broker","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/brokers/{brokerId}","href":"/api-reference/brokers/delete-broker"}]},{"group":"Payees","pages":[{"title":"Overview","href":"/api-legacy-reference/payees/overview"},{"title":"List Payees","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/payees","href":"/api-reference/payees/list-payees"},{"title":"Create Payee","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/payees","href":"/api-reference/payees/create-payee"},{"title":"Get Payee","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/payees/{payeeId}","href":"/api-reference/payees/get-payee"},{"title":"Update Payee","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/payees/{payeeId}","href":"/api-reference/payees/update-payee"},{"title":"Delete Payee","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/payees/{payeeId}","href":"/api-reference/payees/delete-payee"}]},{"group":"Transaction Categories","pages":[{"title":"Overview","href":"/api-legacy-reference/transaction-categories/overview"},{"title":"List Transaction Categories","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/transaction-categories","href":"/api-reference/transaction-categories/list-transaction-categories"}]},{"group":"Export Presets","pages":[{"title":"Overview","href":"/api-legacy-reference/export-presets/overview"},{"title":"List Export Presets","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/export-presets","href":"/api-reference/export-presets/list-export-presets"}]},{"group":"Event Financials","pages":[{"title":"Overview","href":"/api-legacy-reference/event-financials/overview"},{"title":"List Event Transactions","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}/financials/transactions","href":"/api-reference/event-financials/list-event-transactions"},{"title":"Create Event Transaction","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/events/{eventId}/financials/transactions","href":"/api-reference/event-financials/create-event-transaction"},{"title":"Get Event Transaction","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}","href":"/api-reference/event-financials/get-event-transaction"},{"title":"Void Event Transaction","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}","href":"/api-reference/event-financials/void-event-transaction"},{"title":"Delete Event Transaction","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}","href":"/api-reference/event-financials/delete-event-transaction"},{"title":"Get Event Transaction Totals","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}/financials/transactions/totals","href":"/api-reference/event-financials/get-event-transaction-totals"},{"title":"Get Event Reserves","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}/financials/reserves","href":"/api-reference/event-financials/get-event-reserves"},{"title":"Update Expected Totals","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/events/{eventId}/financials/expected-totals","href":"/api-reference/event-financials/update-expected-totals"},{"title":"List Expected Total Timeline","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/financials/expected-totals/timeline","href":"/api-reference/event-financials/list-expected-total-timeline"},{"title":"List Event Financial Totals","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/financials/{transactionType}/totals","href":"/api-reference/event-financials/list-event-financial-totals"}]},{"group":"Policies","pages":[{"title":"Overview","href":"/api-legacy-reference/policies/overview"},{"title":"List Policies","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/policies","href":"/api-reference/policies/list-policies"},{"title":"Get Policy","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/policies/{policyId}","href":"/api-reference/policies/get-policy"},{"title":"List Policy Transactions","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/policies/{policyId}/transactions","href":"/api-reference/policies/list-policy-transactions"},{"title":"Create Policy","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/policies","href":"/api-reference/policies/create-policy"},{"title":"Delete Policy","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/policies/{policyId}","href":"/api-reference/policies/delete-policy"}]},{"group":"Exposures","pages":[{"title":"Overview","href":"/api-legacy-reference/exposure/overview"},{"title":"List Exposures","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/exposures","href":"/api-reference/exposures/list-exposures"},{"title":"Get Exposure","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/exposures/{exposureId}","href":"/api-reference/exposures/get-exposure"},{"title":"Create Exposure","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/exposures","href":"/api-reference/exposures/create-exposure"},{"title":"Update Exposure","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/exposures/{exposureId}","href":"/api-reference/exposures/update-exposure"},{"title":"Delete Exposure","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/exposures/{exposureId}","href":"/api-reference/exposures/delete-exposure"}]},{"group":"Attorneys","pages":[{"title":"Overview","href":"/api-legacy-reference/attorneys/overview"},{"title":"List Attorneys","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/attorneys","href":"/api-reference/attorneys/list-attorneys"},{"title":"Create Attorney","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/attorneys","href":"/api-reference/attorneys/create-attorney"},{"title":"Get Attorney","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/attorneys/{attorneyId}","href":"/api-reference/attorneys/get-attorney"},{"title":"Update Attorney","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/attorneys/{attorneyId}","href":"/api-reference/attorneys/update-attorney"},{"title":"Delete Attorney","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/attorneys/{attorneyId}","href":"/api-reference/attorneys/delete-attorney"}]},{"group":"Lawsuits","pages":[{"title":"Overview","href":"/api-legacy-reference/lawsuits/overview"},{"title":"Create Lawsuit","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/events/{eventId}/lawsuit","href":"/api-reference/lawsuits/create-lawsuit"},{"title":"Get Lawsuit","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}/lawsuit","href":"/api-reference/lawsuits/get-lawsuit"},{"title":"Update Lawsuit","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/events/{eventId}/lawsuit","href":"/api-reference/lawsuits/update-lawsuit"},{"title":"Delete Lawsuit","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/events/{eventId}/lawsuit","href":"/api-reference/lawsuits/delete-lawsuit"}]},{"group":"Defendants","pages":[{"title":"Overview","href":"/api-legacy-reference/defendants/overview"},{"title":"List Defendants","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants","href":"/api-reference/defendants/list-defendants"},{"title":"Create Defendant","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants","href":"/api-reference/defendants/create-defendant"},{"title":"Get Defendant","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants/{defendantId}","href":"/api-reference/defendants/get-defendant"},{"title":"Update Defendant","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml patch /api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants/{defendantId}","href":"/api-reference/defendants/update-defendant"},{"title":"Delete Defendant","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants/{defendantId}","href":"/api-reference/defendants/delete-defendant"}]},{"group":"Configuration Fields","pages":[{"title":"Overview","href":"/api-legacy-reference/configuration-fields/overview"},{"title":"List Configuration Fields","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/fields","href":"/api-reference/configuration-fields/list-configuration-fields"},{"title":"Create Configuration Field","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/fields","href":"/api-reference/configuration-fields/create-configuration-field"},{"title":"Delete Configuration Field","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/configuration/fields/{fieldId}","href":"/api-reference/configuration-fields/delete-configuration-field"}]},{"group":"Configuration Rating Fields","pages":[{"title":"Overview","href":"/api-legacy-reference/configuration-rating-fields/overview"},{"title":"List Configuration Rating Fields","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/rating/fields","href":"/api-reference/configuration-rating-fields/list-configuration-rating-fields"},{"title":"Create Configuration Rating Field","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/rating/fields","href":"/api-reference/configuration-rating-fields/create-configuration-rating-field"},{"title":"Delete Configuration Rating Field","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/configuration/rating/fields/{fieldId}","href":"/api-reference/configuration-rating-fields/delete-configuration-rating-field"},{"title":"Reorder Configuration Rating Fields","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml put /api/external/companies/{companyId}/configuration/rating/fields/rank","href":"/api-reference/configuration-rating-fields/reorder-configuration-rating-fields"}]},{"group":"Configuration Rating Outputs","pages":[{"title":"Overview","href":"/api-legacy-reference/configuration-rating-outputs/overview"},{"title":"List Configuration Rating Outputs","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/rating/outputs","href":"/api-reference/configuration-rating-outputs/list-configuration-rating-outputs"},{"title":"Create Configuration Rating Output","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/rating/outputs","href":"/api-reference/configuration-rating-outputs/create-configuration-rating-output"},{"title":"Delete Configuration Rating Output","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/configuration/rating/outputs/{fieldId}","href":"/api-reference/configuration-rating-outputs/delete-configuration-rating-output"}]},{"group":"Configuration Rating Presets","pages":[{"title":"Overview","href":"/api-legacy-reference/configuration-rating-presets/overview"},{"title":"List Rating Revision Presets","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/rating/presets","href":"/api-reference/configuration-rating-presets/list-rating-revision-presets"},{"title":"Create Rating Revision Preset","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/rating/presets","href":"/api-reference/configuration-rating-presets/create-rating-revision-preset"},{"title":"Delete Rating Revision Preset","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/configuration/rating/presets/{presetId}","href":"/api-reference/configuration-rating-presets/delete-rating-revision-preset"}]},{"group":"Configuration Rating Form Logic","pages":[{"title":"Overview","href":"/api-legacy-reference/configuration-rating-form-logic/overview"},{"title":"List Rating Revision Form Logic","description":"Returns all form-logic rules from a rating engine revision's config JSON\n(`config.policyFormLogicConfigs`). Rules are returned as a flat list with\nno pagination.\n\n**Filtering:**\n- `ruleName` - Filter by rule name (exact match, non-empty)\n- `id` - Filter by rule ID (single UUID or array)\n\n**Sorting:**\n- `ruleName` (default), `rank`\n- Default direction: ascending\n- Ties are broken by `id` ascending (or descending when `sortDirection=desc`)\n\n**Required permission:** `company:read`\n","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/rating/form-logic","href":"/api-reference/configuration-rating-form-logic/list-rating-revision-form-logic"},{"title":"Create Rating Revision Form Logic","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/rating/form-logic","href":"/api-reference/configuration-rating-form-logic/create-rating-revision-form-logic"},{"title":"Delete Rating Revision Form Logic","description":"Removes a form-logic rule from the rating engine revision's config JSON\nby ID. The rule is permanently removed from the `policyFormLogicConfigs`\narray in the revision's config.\n\nThe `ratingEngineRevisionId` must reference an existing, non-deleted\nrevision owned by this company.\n\n**Required permission:** `company:update`\n","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/configuration/rating/form-logic/{formLogicId}","href":"/api-reference/configuration-rating-form-logic/delete-rating-revision-form-logic"}]},{"group":"Configuration Presets","pages":[{"title":"Overview","href":"/api-legacy-reference/configuration-presets/overview"},{"title":"List Configuration Presets","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/presets","href":"/api-reference/configuration-presets/list-configuration-presets"},{"title":"Create Configuration Preset","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/configuration/presets","href":"/api-reference/configuration-presets/create-configuration-preset"},{"title":"Delete Configuration Preset","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/configuration/presets/{presetId}","href":"/api-reference/configuration-presets/delete-configuration-preset"}]},{"group":"Exposure Types","pages":[{"title":"Overview","href":"/api-legacy-reference/exposure-types/overview"},{"title":"List Exposure Types","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/exposure-types","href":"/api-reference/exposure-types/list-exposure-types"},{"title":"Create Exposure Type","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/exposure-types","href":"/api-reference/exposure-types/create-exposure-type"},{"title":"Delete Exposure Type","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/exposure-types/{exposureTypeId}","href":"/api-reference/exposure-types/delete-exposure-type"}]},{"group":"Coverage Types","pages":[{"title":"Overview","href":"/api-legacy-reference/coverage-types/overview"},{"title":"List Coverage Types","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/coverage-types","href":"/api-reference/coverage-types/list-coverage-types"},{"title":"Create Coverage Type","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/coverage-types","href":"/api-reference/coverage-types/create-coverage-type"},{"title":"Set Enabled Coverage Types","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml put /api/external/companies/{companyId}/coverage-types/enabled","href":"/api-reference/coverage-types/set-enabled-coverage-types"},{"title":"Delete Coverage Type","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml delete /api/external/companies/{companyId}/coverage-types/{coverageTypeId}","href":"/api-reference/coverage-types/delete-coverage-type"},{"title":"Get Coverage Type Fields","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/coverage-types/{coverageTypeId}/fields","href":"/api-reference/coverage-types/get-coverage-type-fields"},{"title":"Set Coverage Type Fields","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/coverage-types/{coverageTypeId}/fields","href":"/api-reference/coverage-types/set-coverage-type-fields"}]},{"group":"Smart Tags","pages":[{"title":"Overview","href":"/api-legacy-reference/smart-tags/overview"},{"title":"List Smart Tags","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/smart-tags","href":"/api-reference/smart-tags/list-smart-tags"},{"title":"Create Smart Tag","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml post /api/external/companies/{companyId}/smart-tags","href":"/api-reference/smart-tags/create-smart-tag"}]},{"group":"Address","pages":[{"title":"Resolve Address","deprecated":null,"version":null,"openapi":"/openapi/generated-external-api.yaml get /api/external/companies/{companyId}/resolve-address","href":"/api-reference/address/resolve-address"}]},{"group":"Reference","pages":[{"title":"Get Configuration","href":"/api-legacy-reference/configuration"},{"title":"Data Models","href":"/api-legacy-reference/data-models"},{"title":"API Changelog","href":"/api-legacy-reference/changelog"}]}]},{"tab":"FAQs","pages":[{"title":"FAQs","href":"/FAQs/FAQs"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/getting-started/glossary"}]}]},"title":"Create Rating Revision Form Logic - AI Insurance","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}