PageSourceSearch

https://beeceptor.com/docs/assets/js/b56e9a76.f8de6d4a.js

js beeceptor.com collected 2026-10-02 10:48:38 UTC 93,847 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbeeceptor_docs=self.webpackChunkbeeceptor_docs||[]).push([["4355"],{45403(e,t,r){r.r(t),r.d(t,{metadata:()=>i,default:()=>v,frontMatter:()=>g,contentTitle:()=>b,toc:()=>f,assets:()=>x});var i=JSON.parse('{"id":"api/update-a-rule-full-replacement","title":"Update a rule (full replacement)","description":"Performs a **complete replacement** of an existing mock rule. All fields must be provided","source":"@site/docs/api/update-a-rule-full-replacement.api.mdx","sourceDirName":"api","slug":"/api/update-a-rule-full-replacement","permalink":"/docs/api/update-a-rule-full-replacement","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"update-a-rule-full-replacement","title":"Update a rule (full replacement)","description":"Performs a **complete replacement** of an existing mock rule. All fields must be provided","sidebar_label":"Update a rule (full replacement)","hide_title":true,"hide_table_of_contents":true,"api":"eJztfWtzGzeW6F/B9n6QxGpSspNMzXJq616NH4nu2LFGkidzK3TZUDdIYtwNdAC0JI5KX/cH7E/cX3LrnAOgu0nq5SRz7QRJVSI2m3gcnPcL11kpbGFk46RW2TQ7FmauTW0ZZ6NRoeumEk4wI5qKF6IWyo1GTM8ZV0xcSeukWrBaFx+ZaSsxYYdVxeZSVKVldWsdOxesMfpClqJkMyUVc0sY7KdWwJe6XOWMW+aW0jJpmdKOcdZw4ySvWNuU3InJTMG/o9F3+pIdOfaDNh/tdDSaqScTNhq9bKuKnfRXN2VnS8GEctIIXBXT5/8QhYMJ/DZKdindEteixCUrtJrLRWs4gGCmnsK4R8/ZsRFWmAt8GobF8Y6eMyNqLpVlrSqWXC1EyXZtIwo5l6JkfptvT16xhrvl3kx9BUMeaythrNsHhjEdjiudZU14348nrkTR4gNtSmFm6msY9W+8kuVgKNgSDjfYF2z/gt4VJTsXc20GxzpTzP8DwH4la+nwdwTrMXvGFRx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7s6IyhzL23s04JJ8sBhw6bwhLBC2GWvqQMXgEtyIv7OoqPdc86fR/kgdiiCvTVczzdyC4KX5oEvnYKCjydHEwOsjy7GhtRCW7FOERGMu9wxS9DINvnD+ZZo62rueqK1DMqewh28S7eV2REU/ECN7O3Ho+47rIF+vd5j0Z0Rlj9GX89GvkqLkw1wMv+OqsV9C26KZmF2LLX7ks2U1tuCM7JqUYFvOilBCMNa/iJlSNSAVqBl+rIsR+0+WingElPJmw0egl7O+mvjsS5T+BEAPgiCtQP8EXPoGAtSlwOXYcz9RTGPXrOjuFMzYUndRoWxzt6zgxEIdEHBLo8qIS7nR7ltxn8Onsz9RUMeazplsvbBw6oYn1HFf++H6/zOHq389cw6t9i6kEYCraEww2LYaWN7t0yJBT3jhUSDOkfAPYrICpiqVMvZrkiH8SFGFxuxFkp52iWu27Fuy2ojALXGSUihhUAQXrZEt4Rh0bzrsX7ha1fvHcn7JHi1kcJQpRod9FsWA9LRsHw5T1Cn6hi+P14GulcmtEyjn0yOqnPHYffvCZlsH8VVHCAAdCBcYVoD/qHniFuxPuY0GT05TpIM//zX/8dAiV7vTVtCoquqYMMOlLwo+F2QosqOBjatr81CvGcR6IkluNDsWDe7DcVxyyAUAFNORk/ZhdPMRXH6zJZnk3DB8gbhlODZ5SaAck0S20d/O76GsD31lQ3N/AYrbts+uM7CNzShaYY2i2l9ekPlEV9Oz/aPfFJynusf1Fqp7l118y+QMhCPrZd6rYqWSOLj+xDvRqHdz6Qzwivp+0HHJDbA71+CFHJ3o8mWCo7TC/5sHcbHEOiiFr1gtUxVSACEcLqnwyEzXzr4KfxROlZ56et0R/qzbtYEfoJ0XjYH/3iEGsU73z3XT//BavbQ9FIjUlimeGXgHb8ktZJTknM0sFn11nF1aLFdKcsNOTJM76Ru0M5Yv6PXs7MEBLDNJ4AFvhvLxli+JPra8oMurmJ79NXt/5iLdtGUtL+zf8DdCTsZA==","sidebar_class_name":"put api-method","info_path":"api/beeceptor-api","custom_edit_url":null},"sidebar":"tutorialSidebar","previous":{"title":"Get a single rule","permalink":"/docs/api/get-a-single-rule"},"next":{"title":"Update a rule (partial)","permalink":"/docs/api/update-a-rule-partial"}}
1'),a=r(74848),n=r(28453),s=r(73094),o=r.n(s),p=r(15866),l=r.n(p),d=r(18192),m=r.n(d),u=r(11258),c=r.n(u);r(63795),r(29694);var y=r(72072),h=r(30568);let g={id:"update-a-rule-full-replacement",title:"Update a rule (full replacement)",description:"Performs a **complete replacement** of an existing mock rule. All fields must be provided",sidebar_label:"Update a rule (full replacement)",hide_title:!0,hide_table_of_contents:!0,api:"eJztfWtzGzeW6F/B9n6QxGpSspNMzXJq616NH4nu2LFGkidzK3TZUDdIYtwNdAC0JI5KX/cH7E/cX3LrnAOgu0nq5SRz7QRJVSI2m3gcnPcL11kpbGFk46RW2TQ7FmauTW0ZZ6NRoeumEk4wI5qKF6IWyo1GTM8ZV0xcSeukWrBaFx+ZaSsxYYdVxeZSVKVldWsdOxesMfpClqJkMyUVc0sY7KdWwJe6XOWMW+aW0jJpmdKOcdZw4ySvWNuU3InJTMG/o9F3+pIdOfaDNh/tdDSaqScTNhq9bKuKnfRXN2VnS8GEctIIXBXT5/8QhYMJ/DZKdindEteixCUrtJrLRWs4gGCmnsK4R8/ZsRFWmAt8GobF8Y6eMyNqLpVlrSqWXC1EyXZtIwo5l6JkfptvT16xhrvl3kx9BUMeaythrNsHhjEdjiudZU14348nrkTR4gNtSmFm6msY9W+8kuVgKNgSDjfYF2z/gt4VJTsXc20GxzpTzP8DwH4la+nwdwTrMXvGFRxPrS8EHSLM4DTjrJTzuTBCuW7Fu62FwXGdTKiy0VK5PRgGEOQiLhlHsYw3TbViu5bXAtCBFm8EvoK/Oh6gBCGKbZtGG9gMznZ8ePbsOzbXZg1/7B6hz1sr2DNuRdjPW/yWGWEbraxgTtRNhYOfcytKpgHBnTCKV6zkjsNvXutSzlcA1xL3aQEANXfFEoF+eHwE3znDC2cRZogbjBe4V7dqhGW7YrKY5EQz//Nf/80KXlW6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IsR+0+WingElPJmw0egl7O+mvjsS5T+BEAPgiCtQP8EXPoGAtSlwOXYcz9RTGPXrOjuFMzYUndRoWxzt6zgxEIdEHBLo8qIS7nR7ltxn8Onsz9RUMeazplsvbBw6oYn1HFf++H6/zOHq389cw6t9i6kEYCraEww2LYaWN7t0yJBT3jhUSDOkfAPYrICpiqVMvZrkiH8SFGFxuxFkp52iWu27Fuy2ojALXGSUihhUAQXrZEt4Rh0bzrsX7ha1fvHcn7JHi1kcJQpRod9FsWA9LRsHw5T1Cn6hi+P14GulcmtEyjn0yOqnPHYffvCZlsH8VVHCAAdCBcYVoD/qHniFuxPuY0GT05TpIM//zX/8dAiV7vTVtCoquqYMMOlLwo+F2QosqOBjatr81CvGcR6IkluNDsWDe7DcVxyyAUAFNORk/ZhdPMRXH6zJZnk3DB8gbhlODZ5SaAck0S20d/O76GsD31lQ3N/AYrbts+uM7CNzShaYY2i2l9ekPlEV9Oz/aPfFJynusf1Fqp7l118y+QMhCPrZd6rYqWSOLj+xDvRqHdz6Qzwivp+0HHJDbA71+CFHJ3o8mWCo7TC/5sHcbHEOiiFr1gtUxVSACEcLqnwyEzXzr4KfxROlZ56et0R/qzbtYEfoJ0XjYH/3iEGsU73z3XT//BavbQ9FIjUlimeGXgHb8ktZJTknM0sFn11nF1aLFdKcsNOTJM76Ru0M5Yv6PXs7MEBLDNJ4AFvhvLxli+JPra8oMurmJ79NXt/5iLdtGUtL+zf8DdCTsZA==",sidebar_class_name:"put api-method",info_path:"api/beeceptor-api",custom_edit_url:null},b,x={},f=[];function q(e){let t={li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.default,{as:"h1",className:"openapi__heading",children:"Update a rule (full replacement)"}),"\n",(0,a.jsx)(o(),{method:"put",path:"/v2/endpoints/{endpoint}/rules/{ruleId}",context:"endpoint"}),"\n",(0,a.jsxs)(t.p,{children:["Performs a ",(0,a.jsx)(t.strong,{children:"complete replacement"})," of an existing mock rule. All fields must be provided\nin the request body, as this is not a partial update."]}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.strong,{children:"How It Works:"})}),"\n",(0,a.jsxs)(t.ol,{children:["\n",(0,a.jsxs)(t.li,{children:[(0,a.jsx)(t.strong,{children:"Full Replacement"}),": The entire rule object is replaced with the new configuration"]}),"\n",(0,a.jsxs)(t.li,{children:[(0,a.jsx)(t.strong,{children:"ID Preservation"}),": The rule ID remains unchanged (specified in the URL path)"]}),"\n",(0,a.jsxs)(t.li,{children:[(0,a.jsx)(t.strong,{children:"Position Preservation"}),": The rule maintains its position in the execution order"]}),"\n",(0,a.jsxs)(t.li,{children:[(0,a.jsx)(t.strong,{children:"Validation"}),": The new rule configuration is validated before replacement"]}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.strong,{children:"Limitations:"})}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Cannot move the rule to a different position (use reorder endpoint)"}),"\n",(0,a.jsx)(t.li,{children:"All validation rules apply (same as rule creation)"}
1),"\n",(0,a.jsx)(t.li,{children:"Partial updates not supported (use PATCH for partial updates)"}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.strong,{children:"Use Cases:"})}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Update response templates based on external data"}),"\n",(0,a.jsx)(t.li,{children:"Modify conditions to match new API contracts"}),"\n",(0,a.jsx)(t.li,{children:"Change action types (e.g., mock \u2192 callout)"}),"\n",(0,a.jsx)(t.li,{children:"Update weighted response probabilities"}),"\n"]}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"Response:"}),"\nReturns the updated rule with all fields."]}),"\n",(0,a.jsx)(y.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:(0,a.jsx)(h.default,{id:"theme.openapi.request.title",children:"Request"})}),"\n",(0,a.jsx)(l(),{...r(22982)}),"\n",(0,a.jsx)(m(),{...r(6212)}),"\n",(0,a.jsx)(c(),{...r(56350)})]})}function v(e={}){let{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(q,{...e})}):q(e)}},22982(e){e.exports=JSON.parse('{"parameters":[{"name":"endpoint","description":"The name of Beeceptor endpoint. E.g., you should pick `my-endpoint` from your mock server base URL `https://my-endpoint.proxy.beeceptor.com`)","in":"path","required":true,"schema":{"type":"string","default":"{{endpoint}}"},"example":"order-service"},{"in":"path","name":"ruleId","required":true,"schema":{"type":"string"},"description":"The unique identifier of the rule to update.","example":"vshn31wteh"}]}')},6212(e){e.exports=JSON.parse('{"title":"Body","body":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"A Rule defines the behavior for an incoming request. It consists of a set of conditions\\nand a resulting action. Beeceptor matches requests against rules in the order they are defined.\\n","required":["enabled","conditions","action"],"properties":{"enabled":{"type":"boolean","description":"Toggle rule on/off. Disabled rules are ignored during matching.","example":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","OPTIONS","TRACE","*"],"description":"The HTTP method to match. Use \'*\' to match any method.\\nNote: For CRUD and gRPC rules, this is typically set to \'*\'.\\n","example":"POST"},"description":{"type":"string","description":"Optional human-readable description for managing rules.","example":"My simple mock rule"},"conditions":{"type":"array","minItems":1,"maxItems":5,"items":{"oneOf":[{"allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["path"],"example":"path"},"operator":{"type":"string","enum":["equals","starts_with","contains","regex","template"],"description":"Matching operator. \'template\' allows Express.js-style path syntax \\n(e.g., /users/:id) to capture variables.\\n","example":"equals"},"value":{"type":"string","description":"The path string or pattern to match against.","example":"/api/login"}},"required":["operator","value"]}],"title":"PathCondition"},{"description":"Inspects the value of a specific HTTP header in the incoming request.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["header"],"example":"header"},"key":{"type":"string","description":"The name of the HTTP header (e.g., \'User-Agent\', \'X-Custom-Header\').","example":"Content-Type"},"operator":{"type":"string","enum":["equals","contains","regex"],"description":"Matching operator for the header value.","example":"equals"},"value":{"type":"string","description":"The expected string, substring, or regular expression pattern.","example":"application/json"}},"required":["key","operator","value"]}],"title":"HeaderCondition"},{"description":"Performs a search or pattern match against the raw HTTP request body.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body"],"example":"body"},"operator":{"type":"string","enum":["contains","regex"],"description":"Matching operator for the raw body content.","example":"contains"},"value":{"type":"string","description":"The text or regex pattern to look for in the body.","example":"username"}},"required":["operator","value"]}],"title":"BodyCondition"},{"description":"Matches against parsed body parameters. This is applicable for JSON payloads, \\nXML, or Form-Data where Beeceptor can extract named fields.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body_param"],"example":"body_param"},"key":{"type":"string","description":"The key or path to the field in the request body (e.g., \'user.id\').","example":"user.email"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","is_null","is_not_null"],"example":"equals"},"value":{"type":"string","description":"The value to compare against. Not required for \'is_null\' or \'is_not_null\'.","example":"[email protected]"}},"required":["key","operator","value"]}],"title":"BodyParamCondition"},{"description":"Matches a query parameter by its decoded name and value. It can be used alone or with other\\nconditions; all conditions in a rule must match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["query_param"],"example":"query_param"},"key":{"type":"string","minLength":1,"maxLength":100,"description":"Decoded query parameter name.","example":"id"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","regex","is_null","is_not_null"],"description":"For repeated parameters, equals, contains, and regex match if any value matches.\\nnot_equals and not_contains match only if none of the values match.\\n","example":"equals"},"value":{"type":"string","maxLength":1000,"description":"Decoded value to match. Omit the value for is_null or is_not_null operators.","example":"123"}},"required":["key","operator"]}],"title":"QueryParamCondition"},{"description":"Matches against persistent state variables (Counters, Data Stores, or Lists)\\nstored 
1in your endpoint. This allows for stateful mock transitions.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["state"],"example":"state"},"key":{"type":"string","description":"The name of the state variable.","example":"login_attempts"},"stateType":{"type":"string","enum":["string","counter","list"],"description":"\'string\': General key-value store.\\n\'counter\': Numeric value supporting math operations.\\n\'list\': Collection of values supporting LIFO/FIFO operations.\\n","example":"counter"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","greater_than","less_than","greater_than_equal","less_than_equal"],"example":"greater_than"},"value":{"type":"string","description":"The value to compare the current state against.","example":"3"}},"required":["key","stateType","operator","value"]}],"title":"StateCondition"},{"description":"Matches against incoming GraphQL queries. Beeceptor parses the GraphQL operation \\nname or query structure to determine a match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["graphql"],"example":"graphql"},"operator":{"type":"string","enum":["equals","contains","regex"],"example":"equals"},"value":{"type":"string","description":"The GraphQL operation name or query snippet to match.","example":"GetUserEmail"}},"required":["operator","value"]}],"title":"GraphQLCondition"},{"description":"Targets SOAP-based web services by matching against the \'SOAPAction\' header.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["soap_action"],"example":"soap_action"},"operator":{"type":"string","enum":["equals"],"example":"equals"},"value":{"type":"string","description":"The exact SOAPAction URI or string to match.","example":"http://www.example.org/GetUser"}},"required":["operator","value"]}],"title":"SoapActionCondition"},{"description":"Primary condition for gRPC rules. Matches the full gRPC method path \\n(e.g., \'package.Service/MethodName\').\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["grpc_method"],"example":"grpc_method"},"value":{"type":"string","description":"The fully qualified gRPC method name.","example":"user.UserService/GetUser"}},"required":["value"]}],"title":"GrpcMethodCondition"}],"discriminator":{"propertyName":"type","mapping":{"path":{"allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["path"],"example":"path"},"operator":{"type":"string","enum":["equals","starts_with","contains","regex","template"],"description":"Matching operator. \'template\' allows Express.js-style path syntax \\n(e.g., /users/:id) to capture variables.\\n","example":"equals"},"value":{"type":"string","description":"The path string or pattern to match against.","example":"/api/login"}},"required":["operator","value"]}],"title":"PathCondition"},"header":{"description":"Inspects the value of a specific HTTP header in the incoming request.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["header"],"example":"header"},"key":{"type":"string","description":"The name of the HTTP header (e.g., \'User-Agent\', \'X-Custom-Header\').","example":"Content-Type"},"operator":{"type":"string","enum":["equals","contains","regex"],"description":"Matching operator for the header value.","example":"equals"},"value":{"type":"string","description":"The expected string, substring, or regular expression pattern.","example":"application/json"}},"required":["key","operator","value"]}],"title":"HeaderCondition"},"body":{"description":"Performs a search or pattern match against the raw HTTP request body.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body"],"example":"body"},"operator":{"type":"string","enum":["contains","regex"],"description":"Matching operator for the raw body content.","example":"contains"},"value":{"type":"string","description":"The text or regex pattern to look for in the body.","example":"username"}},"required":["operator","value"]}],"title":"BodyCondition"},"body_param":{"description":"Matches against parsed body parameters. This is applicable for JSON payloads, \\nXML, or Form-Data where Beeceptor can extract named fields.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body_param"],"example":"body_param"},"key":{"type":"string","description":"The key or path to the field in the request body (e.g., \'user.id\').","example":"user.email"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","is_null","is_not_null"],"example":"equals"},"value":{"type":"string","description":"The value to compare against. Not required for \'is_null\' or \'is_not_null\'.","example":"[email protected]"}},"required":["key","operator","value"]}],"title":"BodyParamCondition"},"query_param":{"description":"Matches a query parameter by its decoded name and value. It can be used alone or with other\\nconditions; all conditions in a rule must match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["query_param"],"example":"query_param"},"key":{"type":"string","minLength":1,"maxLength":100,"description":"Decoded query parameter name.","example":"id"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","regex","is_null","is_not_null"],"description":"For repeated parameters, equals, contains, and regex match if any value matches.\\nnot_equals and not_contains match only if none of the values match.\\n","example":"equals"},"value":{"type":"string","maxLength":1000,"description":"Decoded value to match. Omit the value for is_null or is_not_null operators.","example":"123"}},"required":["key","operator"]}],"title":"QueryParamCondition"},"state":{"description":"Matches against persistent state variables (Counters, Data Stores, or Lists)\\nstored 
1in your endpoint. This allows for stateful mock transitions.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["state"],"example":"state"},"key":{"type":"string","description":"The name of the state variable.","example":"login_attempts"},"stateType":{"type":"string","enum":["string","counter","list"],"description":"\'string\': General key-value store.\\n\'counter\': Numeric value supporting math operations.\\n\'list\': Collection of values supporting LIFO/FIFO operations.\\n","example":"counter"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","greater_than","less_than","greater_than_equal","less_than_equal"],"example":"greater_than"},"value":{"type":"string","description":"The value to compare the current state against.","example":"3"}},"required":["key","stateType","operator","value"]}],"title":"StateCondition"},"graphql":{"description":"Matches against incoming GraphQL queries. Beeceptor parses the GraphQL operation \\nname or query structure to determine a match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["graphql"],"example":"graphql"},"operator":{"type":"string","enum":["equals","contains","regex"],"example":"equals"},"value":{"type":"string","description":"The GraphQL operation name or query snippet to match.","example":"GetUserEmail"}},"required":["operator","value"]}],"title":"GraphQLCondition"},"soap_action":{"description":"Targets SOAP-based web services by matching against the \'SOAPAction\' header.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["soap_action"],"example":"soap_action"},"operator":{"type":"string","enum":["equals"],"example":"equals"},"value":{"type":"string","description":"The exact SOAPAction URI or string to match.","example":"http://www.example.org/GetUser"}},"required":["operator","value"]}],"title":"SoapActionCondition"},"grpc_method":{"description":"Primary condition for gRPC rules. Matches the full gRPC method path \\n(e.g., \'package.Service/MethodName\').\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["grpc_method"],"example":"grpc_method"},"value":{"type":"string","description":"The fully qualified gRPC method name.","example":"user.UserService/GetUser"}},"required":["value"]}],"title":"GrpcMethodCondition"}}},"title":"Condition"},"description":"An array of conditions that must all match (AND logic) for the rule to trigger.\\nRules are evaluated in order; the first fully matched rule executes.\\n"},"action":{"description":"The action to perform (e.g., Mock, Proxy, CRUD) when conditions match.","allOf":[{"oneOf":[{"type":"object","description":"Returns a predefined HTTP response to the caller.","properties":{"type":{"type":"string","enum":["mock"],"example":"mock"},"delay":{"type":"number","description":"Response delay in milliseconds (0-600,000).","minimum":0,"maximum":600000,"example":200},"status":{"type":"number","description":"HTTP status code to return.","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","description":"Custom HTTP headers to include in the response.","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","description":"Enable template engine for this header value.","example":false}}}},"templated":{"type":"boolean","description":"If enabled, Beeceptor processes the body using its powerful template engine, \\nallowing for dynamic response generation and data injection.\\n","example":true}},"oneOf":[{"title":"BodyResponse","required":["body"],"properties":{"body":{"type":"string","description":"The response body. Can include Handlebars templates if \'templated\' is true.\\nUse this to generate dynamic data like \'{{faker \\"person.firstName\\"}}\'.\\n","example":"{\\"status\\": \\"success\\", \\"user\\": \\"{{faker \\\\\\"person.firstName\\\\\\"}}\\"}"}}},{"title":"BlobPathResponse","required":["blobPath"],"properties":{"blobPath":{"type":"string","description":"Reference to a file stored in Beeceptor\'s storage.\\nUse the `POST /v2/endpoints/{endpoint}/blobs` API to upload files\\nand retrieve this path.\\n","example":"res-body-20260121042538-e53mertosm.json"}}}],"required":["type","status","headers"],"title":"MockAction"},{"type":"object","description":"Distributes incoming requests across multiple responses based on assigned weights.\\nThe combined weights of all responses must equal exactly 100.\\n","properties":{"type":{"type":"string","enum":["weighted"],"example":"weighted"},"responses":{"type":"array","description":"A list of potential responses and their probability weights.","items":{"type":"object","properties":{"name":{"type":"string","description":"A label for identifying this response in logs.","example":"Success Response"},"weight":{"type":"number","description":"Percentage probability (0-100). Total must sum to 100 per action.","example":80},"delay":{"type":"number","example":0},"status":{"type":"number","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"status\\": \\"ok\\"}"},"templated":{"type":"boolean","example":false}},"required":["name","weight","status","headers","body"],"title":"WeightedResponse"}}},"required":["type","responses"],"title":"WeightedAction"},{"type":"object","description":"Triggers an external HTTP request (Callout) when the rule matches.\\nThis is useful for proxying traffic, transforming payloads, or notifying webhooks.\\n","properties":{"type":{"type":"string","enum":["callout"],"example":"callout"},"behavior":{"type":"string","enum":["sync","async"],"description":"\'sync\': The original request waits for the target service\'s response 
1(Proxy behavior).\\n\'async\': Beeceptor sends an immediate response to the client and triggers \\nthe callout as a background process (Webhook behavior).\\n","example":"sync"},"callout":{"type":"object","description":"Detailed configuration for the outgoing request.","properties":{"url":{"type":"string","description":"The destination URL (Target) for the callout.","example":"https://echo.beeceptor.com"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","OPTIONS","TRACE","*"],"example":"POST"},"transform":{"type":"string","enum":["forward","custom"],"description":"\'forward\': Pass the target\'s response back to the client as-is.\\n\'custom\': Return a pre-defined mock response to the client instead of the target\'s response.\\n","example":"forward"},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"X-Forwarded-For"},"value":{"type":"string","example":"beeceptor"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"action\\": \\"proxy\\"}"},"templated":{"type":"boolean","example":false},"connectionId":{"type":"string","description":"Reference ID of an API Connection (configured in Beeceptor) to handle\\nOAuth 2.0 or other authentication methods automatically.\\n","example":"conn_12345"},"delay":{"type":"object","properties":{"min":{"type":"number","example":100},"max":{"type":"number","example":500}}}}},"status":{"type":"number","description":"HTTP status for the immediate mock response (async behavior only).","minimum":100,"maximum":599,"example":202},"headers":{"type":"array","description":"HTTP headers for the immediate mock response (async behavior only).","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","description":"HTTP body for the immediate mock response (async behavior only).","example":"{\\"status\\": \\"accepted\\"}"},"templated":{"type":"boolean","example":false}},"required":["type","behavior","callout"],"title":"CalloutAction"},{"type":"object","description":"Enables stateful CRUD behavior for a resource path. Beeceptor will automatically\\nhandle POST (Create), GET (Read), PUT (Update), and DELETE operations for JSON objects.\\n","properties":{"type":{"type":"string","enum":["crud"],"example":"crud"},"idField":{"type":"string","description":"The field name in the JSON object used as a unique identifier (e.g., \'id\' or \'uuid\').","example":"id"}},"required":["type","idField"],"title":"CrudAction"},{"type":"object","description":"Defines the mock behavior for gRPC calls, supporting unary and streaming communication.","properties":{"type":{"type":"string","enum":["grpc"],"example":"grpc"},"callType":{"type":"string","enum":["unary","server_streaming","client_streaming","bidirectional_streaming"],"description":"gRPC communication pattern.","example":"unary"},"status":{"type":"number","minimum":0,"description":"Standard gRPC status code (0 for OK, 1-16 for errors).","example":0},"statusMessage":{"type":"string","description":"Human-readable status message for gRPC errors, only applicable for non-zero status codes.","example":"something went wrong"},"delay":{"type":"number","minimum":0,"maximum":600000,"description":"Delay before sending the first response in milliseconds.","example":0},"responses":{"type":"array","minItems":1,"maxItems":4,"description":"A list of responses to send back. For streaming calls, these are sent sequentially.\\nIf \'singleResponseRepeated\' is true, only the first response is used for all streams.\\n","items":{"type":"object","properties":{"body":{"type":"string","example":"{\\"message\\": \\"Hello from Beeceptor\\"}"},"metadata":{"type":"string","example":"{\\"some-key\\": \\"some-value\\"}"}},"title":"GrpcResponse"}},"streamCount":{"type":"object","description":"For server_streaming or bidirectional patterns, controls how many times \\nthe server will push messages before finishing.\\n","properties":{"min":{"type":"number","minimum":1,"description":"Minimum number of stream messages to send.","example":1},"max":{"type":"number","minimum":1,"description":"Maximum number of stream messages to send.","example":5}}},"singleResponseRepeated":{"type":"boolean","description":"If true, the server repeats the first response item for the entire duration \\nof the stream. If false, you must provide a list of unique responses.\\n","example":true}},"required":["type","callType","responses"],"title":"GrpcAction"}],"discriminator":{"propertyName":"type","mapping":{"mock":{"type":"object","description":"Returns a predefined HTTP response to the caller.","properties":{"type":{"type":"string","enum":["mock"],"example":"mock"},"delay":{"type":"number","description":"Response delay in milliseconds (0-600,000).","minimum":0,"maximum":600000,"example":200},"status":{"type":"number","description":"HTTP status code to return.","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","description":"Custom HTTP headers to include in the response.","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","description":"Enable template engine for this header value.","example":false}}}},"templated":{"type":"boolean","description":"If enabled, Beeceptor processes the body using its powerful template engine, \\nallowing for dynamic response generation and data injection.\\n","example":true}},"oneOf":[{"title":"BodyResponse","required":["body"],"properties":{"body":{"type":"string","description":"The response body. Can include Handlebars templates if \'templated\' is true.\\nUse this to generate dynamic data like \'{{faker \\"person.firstName\\"}}\'.\\n","example":"{\\"status\\": \\"success\\", \\"user\\": \\"{{faker \\\\\\"person.firstName\\\\\\"}}\\"}"}}},{"title":"BlobPathResponse","required":["blobPath"],"properties":{"blobPath":{"type":"string","description":"Reference to a file stored in Beeceptor\'s storage.\\nUse the `POST /v2/endpoints/{endpoint}/blobs` API to upload files\\nand retrieve this path.\\n","example":"res-body-20260121042538-e53mertosm.json"}}}],"required":["type","status","headers"],"title":"MockAction"},"weighted":{"type":"object","description":"Distributes incoming requests across multiple responses based on assigned weights.\\nThe combined weights of all responses must equal exactly 100.\\n","properties":{"type":{"type":"string","enum":["weighted"],"example":"weighted"},"responses":{"type":"array","description":"A list of potential responses and their probability weights.","items":{"type":"object","properties":{"name":{"type":"string","description":"A label for identifying this response in logs.","example":"Success Response"},"weight":{"type":"number","description":"Percentage probability (0-100). Total must sum to 100 per action.","example":80},"delay":{"type":"number","example":0},"status":{"type":"number","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"status\\": \\"ok\\"}"},"templated":{"type":"boolean","example":false}},"required":["name","weight","status","headers","body"],"title":"WeightedResponse"}}},"required":["type","responses"],"title":"WeightedAction"},"callout":{"type":"object","description":"Triggers an external HTTP request (Callout) when the rule matches.\\nThis is useful for proxying traffic, transforming payloads, or notifying webhooks.\\n","properties":{"type":{"type":"string","enum":["callout"],"example":"callout"},"behavior":{"type":"string","enum":["sync","async"],"description":"\'sync\': The original request waits for the target service\'s response 
1(Proxy behavior).\\n\'async\': Beeceptor sends an immediate response to the client and triggers \\nthe callout as a background process (Webhook behavior).\\n","example":"sync"},"callout":{"type":"object","description":"Detailed configuration for the outgoing request.","properties":{"url":{"type":"string","description":"The destination URL (Target) for the callout.","example":"https://echo.beeceptor.com"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","OPTIONS","TRACE","*"],"example":"POST"},"transform":{"type":"string","enum":["forward","custom"],"description":"\'forward\': Pass the target\'s response back to the client as-is.\\n\'custom\': Return a pre-defined mock response to the client instead of the target\'s response.\\n","example":"forward"},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"X-Forwarded-For"},"value":{"type":"string","example":"beeceptor"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"action\\": \\"proxy\\"}"},"templated":{"type":"boolean","example":false},"connectionId":{"type":"string","description":"Reference ID of an API Connection (configured in Beeceptor) to handle\\nOAuth 2.0 or other authentication methods automatically.\\n","example":"conn_12345"},"delay":{"type":"object","properties":{"min":{"type":"number","example":100},"max":{"type":"number","example":500}}}}},"status":{"type":"number","description":"HTTP status for the immediate mock response (async behavior only).","minimum":100,"maximum":599,"example":202},"headers":{"type":"array","description":"HTTP headers for the immediate mock response (async behavior only).","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","description":"HTTP body for the immediate mock response (async behavior only).","example":"{\\"status\\": \\"accepted\\"}"},"templated":{"type":"boolean","example":false}},"required":["type","behavior","callout"],"title":"CalloutAction"},"crud":{"type":"object","description":"Enables stateful CRUD behavior for a resource path. Beeceptor will automatically\\nhandle POST (Create), GET (Read), PUT (Update), and DELETE operations for JSON objects.\\n","properties":{"type":{"type":"string","enum":["crud"],"example":"crud"},"idField":{"type":"string","description":"The field name in the JSON object used as a unique identifier (e.g., \'id\' or \'uuid\').","example":"id"}},"required":["type","idField"],"title":"CrudAction"},"grpc":{"type":"object","description":"Defines the mock behavior for gRPC calls, supporting unary and streaming communication.","properties":{"type":{"type":"string","enum":["grpc"],"example":"grpc"},"callType":{"type":"string","enum":["unary","server_streaming","client_streaming","bidirectional_streaming"],"description":"gRPC communication pattern.","example":"unary"},"status":{"type":"number","minimum":0,"description":"Standard gRPC status code (0 for OK, 1-16 for errors).","example":0},"statusMessage":{"type":"string","description":"Human-readable status message for gRPC errors, only applicable for non-zero status codes.","example":"something went wrong"},"delay":{"type":"number","minimum":0,"maximum":600000,"description":"Delay before sending the first response in milliseconds.","example":0},"responses":{"type":"array","minItems":1,"maxItems":4,"description":"A list of responses to send back. For streaming calls, these are sent sequentially.\\nIf \'singleResponseRepeated\' is true, only the first response is used for all streams.\\n","items":{"type":"object","properties":{"body":{"type":"string","example":"{\\"message\\": \\"Hello from Beeceptor\\"}"},"metadata":{"type":"string","example":"{\\"some-key\\": \\"some-value\\"}"}},"title":"GrpcResponse"}},"streamCount":{"type":"object","description":"For server_streaming or bidirectional patterns, controls how many times \\nthe server will push messages before finishing.\\n","properties":{"min":{"type":"number","minimum":1,"description":"Minimum number of stream messages to send.","example":1},"max":{"type":"number","minimum":1,"description":"Maximum number of stream messages to send.","example":5}}},"singleResponseRepeated":{"type":"boolean","description":"If true, the server repeats the first response item for the entire duration \\nof the stream. If false, you must provide a list of unique responses.\\n","example":true}},"required":["type","callType","responses"],"title":"GrpcAction"}}},"title":"Action"}]}},"title":"Rule"}}}}}')},56350(e){e.exports=JSON.parse('{"responses":{"200":{"description":"Rule updated","content":{"application/json":{"schema":{"description":"A Rule object that includes a unique identifier, typically returned in responses.\\n","allOf":[{"type":"object","description":"A Rule defines the behavior for an incoming request. It consists of a set of conditions\\nand a resulting action. Beeceptor matches requests against rules in the order they are defined.\\n","required":["enabled","conditions","action"],"properties":{"enabled":{"type":"boolean","description":"Toggle rule on/off. Disabled rules are ignored during matching.","example":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","OPTIONS","TRACE","*"],"description":"The HTTP method to match. Use \'*\' to match any method.\\nNote: For CRUD and gRPC rules, this is typically set to \'*\'.\\n","example":"POST"},"description":{"type":"string","description":"Optional human-readable description for managing rules.","example":"My simple mock rule"}
1,"conditions":{"type":"array","minItems":1,"maxItems":5,"items":{"oneOf":[{"allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["path"],"example":"path"},"operator":{"type":"string","enum":["equals","starts_with","contains","regex","template"],"description":"Matching operator. \'template\' allows Express.js-style path syntax \\n(e.g., /users/:id) to capture variables.\\n","example":"equals"},"value":{"type":"string","description":"The path string or pattern to match against.","example":"/api/login"}},"required":["operator","value"]}],"title":"PathCondition"},{"description":"Inspects the value of a specific HTTP header in the incoming request.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["header"],"example":"header"},"key":{"type":"string","description":"The name of the HTTP header (e.g., \'User-Agent\', \'X-Custom-Header\').","example":"Content-Type"},"operator":{"type":"string","enum":["equals","contains","regex"],"description":"Matching operator for the header value.","example":"equals"},"value":{"type":"string","description":"The expected string, substring, or regular expression pattern.","example":"application/json"}},"required":["key","operator","value"]}],"title":"HeaderCondition"},{"description":"Performs a search or pattern match against the raw HTTP request body.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body"],"example":"body"},"operator":{"type":"string","enum":["contains","regex"],"description":"Matching operator for the raw body content.","example":"contains"},"value":{"type":"string","description":"The text or regex pattern to look for in the body.","example":"username"}},"required":["operator","value"]}],"title":"BodyCondition"},{"description":"Matches against parsed body parameters. This is applicable for JSON payloads, \\nXML, or Form-Data where Beeceptor can extract named fields.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body_param"],"example":"body_param"},"key":{"type":"string","description":"The key or path to the field in the request body (e.g., \'user.id\').","example":"user.email"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","is_null","is_not_null"],"example":"equals"},"value":{"type":"string","description":"The value to compare against. Not required for \'is_null\' or \'is_not_null\'.","example":"[email protected]"}},"required":["key","operator","value"]}],"title":"BodyParamCondition"},{"description":"Matches a query parameter by its decoded name and value. It can be used alone or with other\\nconditions; all conditions in a rule must match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["query_param"],"example":"query_param"},"key":{"type":"string","minLength":1,"maxLength":100,"description":"Decoded query parameter name.","example":"id"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","regex","is_null","is_not_null"],"description":"For repeated parameters, equals, contains, and regex match if any value matches.\\nnot_equals and not_contains match only if none of the values match.\\n","example":"equals"},"value":{"type":"string","maxLength":1000,"description":"Decoded value to match. Omit the value for is_null or is_not_null operators.","example":"123"}},"required":["key","operator"]}],"title":"QueryParamCondition"},{"description":"Matches against persistent state variables (Counters, Data Stores, or Lists)\\nstored in your endpoint. This allows for stateful mock transitions.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["state"],"example":"state"},"key":{"type":"string","description":"The name of the state variable.","example":"login_attempts"},"stateType":{"type":"string","enum":["string","counter","list"],"description":"\'string\': General key-value store.\\n\'counter\': Numeric value supporting math operations.\\n\'list\': Collection of values supporting LIFO/FIFO operations.\\n","example":"counter"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","greater_than","less_than","greater_than_equal","less_than_equal"],"example":"greater_than"},"value":{"type":"string","description":"The value to compare the current state against.","example":"3"}},"required":["key","stateType","operator","value"]}],"title":"StateCondition"},{"description":"Matches against incoming GraphQL queries. Beeceptor parses the GraphQL operation \\nname or query structure to determine a match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["graphql"],"example":"graphql"},"operator":{"type":"string","enum":["equals","contains","regex"],"example":"equals"},"value":{"type":"string","description":"The GraphQL operation name or query snippet to match.","example":"GetUserEmail"}},"required":["operator","value"]}],"title":"GraphQLCondition"},{"description":"Targets SOAP-based web services by matching against the \'SOAPAction\' header.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["soap_action"],"example":"soap_action"},"operator":{"type":"string","enum":["equals"],"example":"equals"},"value":{"type":"string","description":"The exact SOAPAction URI or string to match.","example":"http://www.example.org/Get
1User"}},"required":["operator","value"]}],"title":"SoapActionCondition"},{"description":"Primary condition for gRPC rules. Matches the full gRPC method path \\n(e.g., \'package.Service/MethodName\').\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["grpc_method"],"example":"grpc_method"},"value":{"type":"string","description":"The fully qualified gRPC method name.","example":"user.UserService/GetUser"}},"required":["value"]}],"title":"GrpcMethodCondition"}],"discriminator":{"propertyName":"type","mapping":{"path":{"allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["path"],"example":"path"},"operator":{"type":"string","enum":["equals","starts_with","contains","regex","template"],"description":"Matching operator. \'template\' allows Express.js-style path syntax \\n(e.g., /users/:id) to capture variables.\\n","example":"equals"},"value":{"type":"string","description":"The path string or pattern to match against.","example":"/api/login"}},"required":["operator","value"]}],"title":"PathCondition"},"header":{"description":"Inspects the value of a specific HTTP header in the incoming request.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["header"],"example":"header"},"key":{"type":"string","description":"The name of the HTTP header (e.g., \'User-Agent\', \'X-Custom-Header\').","example":"Content-Type"},"operator":{"type":"string","enum":["equals","contains","regex"],"description":"Matching operator for the header value.","example":"equals"},"value":{"type":"string","description":"The expected string, substring, or regular expression pattern.","example":"application/json"}},"required":["key","operator","value"]}],"title":"HeaderCondition"},"body":{"description":"Performs a search or pattern match against the raw HTTP request body.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body"],"example":"body"},"operator":{"type":"string","enum":["contains","regex"],"description":"Matching operator for the raw body content.","example":"contains"},"value":{"type":"string","description":"The text or regex pattern to look for in the body.","example":"username"}},"required":["operator","value"]}],"title":"BodyCondition"},"body_param":{"description":"Matches against parsed body parameters. This is applicable for JSON payloads, \\nXML, or Form-Data where Beeceptor can extract named fields.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["body_param"],"example":"body_param"},"key":{"type":"string","description":"The key or path to the field in the request body (e.g., \'user.id\').","example":"user.email"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","is_null","is_not_null"],"example":"equals"},"value":{"type":"string","description":"The value to compare against. Not required for \'is_null\' or \'is_not_null\'.","example":"[email protected]"}},"required":["key","operator","value"]}],"title":"BodyParamCondition"},"query_param":{"description":"Matches a query parameter by its decoded name and value. It can be used alone or with other\\nconditions; all conditions in a rule must match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["query_param"],"example":"query_param"},"key":{"type":"string","minLength":1,"maxLength":100,"description":"Decoded query parameter name.","example":"id"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","regex","is_null","is_not_null"],"description":"For repeated parameters, equals, contains, and regex match if any value matches.\\nnot_equals and not_contains match only if none of the values match.\\n","example":"equals"},"value":{"type":"string","maxLength":1000,"description":"Decoded value to match. Omit the value for is_null or is_not_null operators.","example":"123"}},"required":["key","operator"]}],"title":"QueryParamCondition"},"state":{"description":"Matches against persistent state variables (Counters, Data Stores, or Lists)\\nstored 
1in your endpoint. This allows for stateful mock transitions.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["state"],"example":"state"},"key":{"type":"string","description":"The name of the state variable.","example":"login_attempts"},"stateType":{"type":"string","enum":["string","counter","list"],"description":"\'string\': General key-value store.\\n\'counter\': Numeric value supporting math operations.\\n\'list\': Collection of values supporting LIFO/FIFO operations.\\n","example":"counter"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","greater_than","less_than","greater_than_equal","less_than_equal"],"example":"greater_than"},"value":{"type":"string","description":"The value to compare the current state against.","example":"3"}},"required":["key","stateType","operator","value"]}],"title":"StateCondition"},"graphql":{"description":"Matches against incoming GraphQL queries. Beeceptor parses the GraphQL operation \\nname or query structure to determine a match.\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["graphql"],"example":"graphql"},"operator":{"type":"string","enum":["equals","contains","regex"],"example":"equals"},"value":{"type":"string","description":"The GraphQL operation name or query snippet to match.","example":"GetUserEmail"}},"required":["operator","value"]}],"title":"GraphQLCondition"},"soap_action":{"description":"Targets SOAP-based web services by matching against the \'SOAPAction\' header.","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["soap_action"],"example":"soap_action"},"operator":{"type":"string","enum":["equals"],"example":"equals"},"value":{"type":"string","description":"The exact SOAPAction URI or string to match.","example":"http://www.example.org/GetUser"}},"required":["operator","value"]}],"title":"SoapActionCondition"},"grpc_method":{"description":"Primary condition for gRPC rules. Matches the full gRPC method path \\n(e.g., \'package.Service/MethodName\').\\n","allOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string"}},"title":"BaseCondition"},{"type":"object","properties":{"type":{"type":"string","enum":["grpc_method"],"example":"grpc_method"},"value":{"type":"string","description":"The fully qualified gRPC method name.","example":"user.UserService/GetUser"}},"required":["value"]}],"title":"GrpcMethodCondition"}}},"title":"Condition"},"description":"An array of conditions that must all match (AND logic) for the rule to trigger.\\nRules are evaluated in order; the first fully matched rule executes.\\n"},"action":{"description":"The action to perform (e.g., Mock, Proxy, CRUD) when conditions match.","allOf":[{"oneOf":[{"type":"object","description":"Returns a predefined HTTP response to the caller.","properties":{"type":{"type":"string","enum":["mock"],"example":"mock"},"delay":{"type":"number","description":"Response delay in milliseconds (0-600,000).","minimum":0,"maximum":600000,"example":200},"status":{"type":"number","description":"HTTP status code to return.","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","description":"Custom HTTP headers to include in the response.","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","description":"Enable template engine for this header value.","example":false}}}},"templated":{"type":"boolean","description":"If enabled, Beeceptor processes the body using its powerful template engine, \\nallowing for dynamic response generation and data injection.\\n","example":true}},"oneOf":[{"title":"BodyResponse","required":["body"],"properties":{"body":{"type":"string","description":"The response body. Can include Handlebars templates if \'templated\' is true.\\nUse this to generate dynamic data like \'{{faker \\"person.firstName\\"}}\'.\\n","example":"{\\"status\\": \\"success\\", \\"user\\": \\"{{faker \\\\\\"person.firstName\\\\\\"}}\\"}"}}},{"title":"BlobPathResponse","required":["blobPath"],"properties":{"blobPath":{"type":"string","description":"Reference to a file stored in Beeceptor\'s storage.\\nUse the `POST /v2/endpoints/{endpoint}/blobs` API to upload files\\nand retrieve this path.\\n","example":"res-body-20260121042538-e53mertosm.json"}}}],"required":["type","status","headers"],"title":"MockAction"},{"type":"object","description":"Distributes incoming requests across multiple responses based on assigned weights.\\nThe combined weights of all responses must equal exactly 100.\\n","properties":{"type":{"type":"string","enum":["weighted"],"example":"weighted"},"responses":{"type":"array","description":"A list of potential responses and their probability weights.","items":{"type":"object","properties":{"name":{"type":"string","description":"A label for identifying this response in logs.","example":"Success Response"},"weight":{"type":"number","description":"Percentage probability (0-100). Total must sum to 100 per action.","example":80},"delay":{"type":"number","example":0},"status":{"type":"number","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"status\\": \\"ok\\"}"},"templated":{"type":"boolean","example":false}},"required":["name","weight","status","headers","body"],"title":"WeightedResponse"}}},"required":["type","responses"],"title":"WeightedAction"},{"type":"object","description":"Triggers an external HTTP request (Callout) when the rule matches.\\nThis is useful for proxying traffic, transforming payloads, or notifying webhooks.\\n","properties":{"type":{"type":"string","enum":["callout"],"example":"callout"},"behavior":{"type":"string","enum":["sync","async"],"description":"\'sync\': The original request waits for the target service\'s response 
1(Proxy behavior).\\n\'async\': Beeceptor sends an immediate response to the client and triggers \\nthe callout as a background process (Webhook behavior).\\n","example":"sync"},"callout":{"type":"object","description":"Detailed configuration for the outgoing request.","properties":{"url":{"type":"string","description":"The destination URL (Target) for the callout.","example":"https://echo.beeceptor.com"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","OPTIONS","TRACE","*"],"example":"POST"},"transform":{"type":"string","enum":["forward","custom"],"description":"\'forward\': Pass the target\'s response back to the client as-is.\\n\'custom\': Return a pre-defined mock response to the client instead of the target\'s response.\\n","example":"forward"},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"X-Forwarded-For"},"value":{"type":"string","example":"beeceptor"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"action\\": \\"proxy\\"}"},"templated":{"type":"boolean","example":false},"connectionId":{"type":"string","description":"Reference ID of an API Connection (configured in Beeceptor) to handle\\nOAuth 2.0 or other authentication methods automatically.\\n","example":"conn_12345"},"delay":{"type":"object","properties":{"min":{"type":"number","example":100},"max":{"type":"number","example":500}}}}},"status":{"type":"number","description":"HTTP status for the immediate mock response (async behavior only).","minimum":100,"maximum":599,"example":202},"headers":{"type":"array","description":"HTTP headers for the immediate mock response (async behavior only).","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","description":"HTTP body for the immediate mock response (async behavior only).","example":"{\\"status\\": \\"accepted\\"}"},"templated":{"type":"boolean","example":false}},"required":["type","behavior","callout"],"title":"CalloutAction"},{"type":"object","description":"Enables stateful CRUD behavior for a resource path. Beeceptor will automatically\\nhandle POST (Create), GET (Read), PUT (Update), and DELETE operations for JSON objects.\\n","properties":{"type":{"type":"string","enum":["crud"],"example":"crud"},"idField":{"type":"string","description":"The field name in the JSON object used as a unique identifier (e.g., \'id\' or \'uuid\').","example":"id"}},"required":["type","idField"],"title":"CrudAction"},{"type":"object","description":"Defines the mock behavior for gRPC calls, supporting unary and streaming communication.","properties":{"type":{"type":"string","enum":["grpc"],"example":"grpc"},"callType":{"type":"string","enum":["unary","server_streaming","client_streaming","bidirectional_streaming"],"description":"gRPC communication pattern.","example":"unary"},"status":{"type":"number","minimum":0,"description":"Standard gRPC status code (0 for OK, 1-16 for errors).","example":0},"statusMessage":{"type":"string","description":"Human-readable status message for gRPC errors, only applicable for non-zero status codes.","example":"something went wrong"},"delay":{"type":"number","minimum":0,"maximum":600000,"description":"Delay before sending the first response in milliseconds.","example":0},"responses":{"type":"array","minItems":1,"maxItems":4,"description":"A list of responses to send back. For streaming calls, these are sent sequentially.\\nIf \'singleResponseRepeated\' is true, only the first response is used for all streams.\\n","items":{"type":"object","properties":{"body":{"type":"string","example":"{\\"message\\": \\"Hello from Beeceptor\\"}"},"metadata":{"type":"string","example":"{\\"some-key\\": \\"some-value\\"}"}},"title":"GrpcResponse"}},"streamCount":{"type":"object","description":"For server_streaming or bidirectional patterns, controls how many times \\nthe server will push messages before finishing.\\n","properties":{"min":{"type":"number","minimum":1,"description":"Minimum number of stream messages to send.","example":1},"max":{"type":"number","minimum":1,"description":"Maximum number of stream messages to send.","example":5}}},"singleResponseRepeated":{"type":"boolean","description":"If true, the server repeats the first response item for the entire duration \\nof the stream. If false, you must provide a list of unique responses.\\n","example":true}},"required":["type","callType","responses"],"title":"GrpcAction"}],"discriminator":{"propertyName":"type","mapping":{"mock":{"type":"object","description":"Returns a predefined HTTP response to the caller.","properties":{"type":{"type":"string","enum":["mock"],"example":"mock"},"delay":{"type":"number","description":"Response delay in milliseconds (0-600,000).","minimum":0,"maximum":600000,"example":200},"status":{"type":"number","description":"HTTP status code to return.","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","description":"Custom HTTP headers to include in the response.","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","description":"Enable template engine for this header value.","example":false}}}},"templated":{"type":"boolean","description":"If enabled, Beeceptor processes the body using its powerful template engine, \\nallowing for dynamic response generation and data injection.\\n","example":true}},"oneOf":[{"title":"BodyResponse","required":["body"],"properties":{"body":{"type":"string","description":"The response body. Can include Handlebars templates if \'templated\' is true.\\nUse this to generate dynamic data like \'{{faker \\"person.firstName\\"}}\'.\\n","example":"{\\"status\\": \\"success\\", \\"user\\": \\"{{faker \\\\\\"person.firstName\\\\\\"}}\\"}"}}},{"title":"BlobPathResponse","required":["blobPath"],"properties":{"blobPath":{"type":"string","description":"Reference to a file stored in Beeceptor\'s storage.\\nUse the `POST /v2/endpoints/{endpoint}/blobs` API to upload files\\nand retrieve this path.\\n","example":"res-body-20260121042538-e53mertosm.json"}}}],"required":["type","status","headers"],"title":"MockAction"},"weighted":{"type":"object","description":"Distributes incoming requests across multiple responses based on assigned weights.\\nThe combined weights of all responses must equal exactly 100.\\n","properties":{"type":{"type":"string","enum":["weighted"],"example":"weighted"},"responses":{"type":"array","description":"A list of potential responses and their probability weights.","items":{"type":"object","properties":{"name":{"type":"string","description":"A label for identifying this response in logs.","example":"Success Response"},"weight":{"type":"number","description":"Percentage probability (0-100). Total must sum to 100 per action.","example":80},"delay":{"type":"number","example":0},"status":{"type":"number","minimum":100,"maximum":599,"example":200},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"status\\": \\"ok\\"}"},"templated":{"type":"boolean","example":false}},"required":["name","weight","status","headers","body"],"title":"WeightedResponse"}}},"required":["type","responses"],"title":"WeightedAction"},"callout":{"type":"object","description":"Triggers an external HTTP request (Callout) when the rule matches.\\nThis is useful for proxying traffic, transforming payloads, or notifying webhooks.\\n","properties":{"type":{"type":"string","enum":["callout"],"example":"callout"},"behavior":{"type":"string","enum":["sync","async"],"description":"\'sync\': The original request waits for the target service\'s response 
1(Proxy behavior).\\n\'async\': Beeceptor sends an immediate response to the client and triggers \\nthe callout as a background process (Webhook behavior).\\n","example":"sync"},"callout":{"type":"object","description":"Detailed configuration for the outgoing request.","properties":{"url":{"type":"string","description":"The destination URL (Target) for the callout.","example":"https://echo.beeceptor.com"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","OPTIONS","TRACE","*"],"example":"POST"},"transform":{"type":"string","enum":["forward","custom"],"description":"\'forward\': Pass the target\'s response back to the client as-is.\\n\'custom\': Return a pre-defined mock response to the client instead of the target\'s response.\\n","example":"forward"},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"X-Forwarded-For"},"value":{"type":"string","example":"beeceptor"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","example":"{\\"action\\": \\"proxy\\"}"},"templated":{"type":"boolean","example":false},"connectionId":{"type":"string","description":"Reference ID of an API Connection (configured in Beeceptor) to handle\\nOAuth 2.0 or other authentication methods automatically.\\n","example":"conn_12345"},"delay":{"type":"object","properties":{"min":{"type":"number","example":100},"max":{"type":"number","example":500}}}}},"status":{"type":"number","description":"HTTP status for the immediate mock response (async behavior only).","minimum":100,"maximum":599,"example":202},"headers":{"type":"array","description":"HTTP headers for the immediate mock response (async behavior only).","items":{"type":"object","properties":{"key":{"type":"string","example":"Content-Type"},"value":{"type":"string","example":"application/json"},"templated":{"type":"boolean","example":false}}}},"body":{"type":"string","description":"HTTP body for the immediate mock response (async behavior only).","example":"{\\"status\\": \\"accepted\\"}"},"templated":{"type":"boolean","example":false}},"required":["type","behavior","callout"],"title":"CalloutAction"},"crud":{"type":"object","description":"Enables stateful CRUD behavior for a resource path. Beeceptor will automatically\\nhandle POST (Create), GET (Read), PUT (Update), and DELETE operations for JSON objects.\\n","properties":{"type":{"type":"string","enum":["crud"],"example":"crud"},"idField":{"type":"string","description":"The field name in the JSON object used as a unique identifier (e.g., \'id\' or \'uuid\').","example":"id"}},"required":["type","idField"],"title":"CrudAction"},"grpc":{"type":"object","description":"Defines the mock behavior for gRPC calls, supporting unary and streaming communication.","properties":{"type":{"type":"string","enum":["grpc"],"example":"grpc"},"callType":{"type":"string","enum":["unary","server_streaming","client_streaming","bidirectional_streaming"],"description":"gRPC communication pattern.","example":"unary"},"status":{"type":"number","minimum":0,"description":"Standard gRPC status code (0 for OK, 1-16 for errors).","example":0},"statusMessage":{"type":"string","description":"Human-readable status message for gRPC errors, only applicable for non-zero status codes.","example":"something went wrong"},"delay":{"type":"number","minimum":0,"maximum":600000,"description":"Delay before sending the first response in milliseconds.","example":0},"responses":{"type":"array","minItems":1,"maxItems":4,"description":"A list of responses to send back. For streaming calls, these are sent sequentially.\\nIf \'singleResponseRepeated\' is true, only the first response is used for all streams.\\n","items":{"type":"object","properties":{"body":{"type":"string","example":"{\\"message\\": \\"Hello from Beeceptor\\"}"},"metadata":{"type":"string","example":"{\\"some-key\\": \\"some-value\\"}"}},"title":"GrpcResponse"}},"streamCount":{"type":"object","description":"For server_streaming or bidirectional patterns, controls how many times \\nthe server will push messages before finishing.\\n","properties":{"min":{"type":"number","minimum":1,"description":"Minimum number of stream messages to send.","example":1},"max":{"type":"number","minimum":1,"description":"Maximum number of stream messages to send.","example":5}}},"singleResponseRepeated":{"type":"boolean","description":"If true, the server repeats the first response item for the entire duration \\nof the stream. If false, you must provide a list of unique responses.\\n","example":true}},"required":["type","callType","responses"],"title":"GrpcAction"}}},"title":"Action"}]}},"title":"Rule"},{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The unique identifier for the rule."}}}],"title":"RuleWithId"},"example":{"id":"vshn31wteh","enabled":true,"method":"GET","description":"my simple rule","conditions":[{"type":"path","operator":"equals","value":"/simple-rule"}],"action":{"type":"mock","delay":0,"status":200,"headers":[{"key":"Content-Type","value":"application/json;charset=utf-8"}],"body":"{\\n  \\"status\\": \\"Awesome!\\"\\n}","templated":false}}}}},"400":{"description":"Bad Request - Payload validation failed.","content":{"application/json":{"schema":{"type":"object","description":"Standard error response structure.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error","not_found","unauthorized_api_key","missing_authentication","internal_error"],"example":"validation_error"},"message":{"type":"string","example":"Request validation failed"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","example":"/rules[0]/action/status"},"message":{"type":"string","example":"must be greater than or equal to 100"},"received":{"type":"string","example":"50"}}}}}}},"title":"Error"}}}},"401":{"description":"Unauthenticated - API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","description":"Standard error response structure.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error","not_found","unauthorized_api_key","missing_authentication","internal_error"],"example":"validation_error"},"message":{"type":"string","example":"Request validation failed"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","example":"/rules[0]/action/status"},"message":{"type":"string","example":"must be greater than or equal to 100"},"received":{"type":"string","example":"50"}}}}}}},"title":"Error"}}}},"404":{"description":"Not Found - The requested resource does not exist.","content":{"application/json":{"schema":{"type":"object","description":"Standard error response structure.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error","not_found","unauthorized_api_key","missing_authentication","internal_error"],"example":"validation_error"},"message":{"type":"string","example":"Request validation failed"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","example":"/rules[0]/action/status"},"message":{"type":"string","example":"must be greater than or equal to 100"},"received":{"type":"string","example":"50"}}}}}}},"title":"Error"}}}}}}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.