UpdateScenarioReq

Request body for PUT /scenarios/{key}. Send the full metadata + spec envelope (same shape as CreateScenarioReq). The path key is the source of truth — metadata.key is required for shape parity but is ignored on the server.

  • 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.