CreateScenarioReq

Request body for POST /scenarios. Mirrors the ScenarioResp shape minus the audit timestamps.

  • metadata
    Type: object
    required

    Identity fields for a scenario โ€” key plus human-facing descriptors. Same shape as ResourceIdentity but without version (scenarios have no draft/published lifecycle).

    • key
      Type: string
      required

      Scenario key (snake_case, customer-supplied; stable across updates).

    • name
      Type: string
      required

      Display name.

    • description
      Type: string

      Optional description.

    • labels
      Type: object

      Free-form labels for filtering / organization.

  • spec
    Type: object
    required

    Scenario content โ€” the entity data this scenario carries.

    • entities
      Type: array object[] ยท ScenarioEntity[]
      required

      Scenario entity data โ€” keyed by entity key, holds the test data used when previewing or rendering this scenario.