Allocate a resource
rig.resource.createAllocate one more resource on an active run beyond what the suite declared: an inbox, a callback URL (optionally forwarded to a connector route), a mock with rules, or a route label. Public Internet effect as for rig.run.create, and each interaction it accepts counts one rig.interaction; lives until the run ends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique within the run; how expectations, faults and events refer to it. | |
| type | Yes | ||
| route | No | For connector_route: the label. | |
| rules | No | For mock_http: rules {match:{method,path,headers,json}, respond:{status,headers,body|json,delay,template} or sequence:[...] with repeat} in order; first match answers. Exclusive with openapi. | |
| run_id | Yes | ||
| openapi | No | For mock_http: an OpenAPI 3 document to stand in for instead of rules; one rule per operation, at most 32. | |
| connector | No | For callback: forward what arrives to this route label on the connector. |