--- id: PLAY-2 family: RT-PLAY level: core profiles: [runtime, editor-client] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-play/play-2 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # PLAY-2 — Creating a session answers the same row the list publishes *RT-PLAY (Part II) · level: core · profiles: runtime, editor-client · added in 1.0* A client can insert a creation response straight into its list without re-fetching, which is what makes one shared row shape load-bearing rather than tidy. ## The rule > **Normative.** This is the rule. > > 1. Creating a session MUST answer `201`. > > 2. Reading a session MUST answer `200`. > > 3. Both MUST answer under `{success, data}`, and in both cases `data` MUST be the same row the session list publishes in its `data[]`. > > 4. That row MUST carry `id`, `workflowId`, `name`, `status`, `createdAt`, `updatedAt`, `metadata`, `executions` and `owner`. > > 5. `owner` MUST carry `id` and `name`. > > 6. `createdAt` and `updatedAt` MUST be ISO 8601 strings, not numeric timestamps. > > 7. `executions` MUST be an empty array, not null, for a session that has never run. ## Why Recorded under [OPEN-22](https://flowdrop.io/spec/rulings/open-22), [OPEN-23](https://flowdrop.io/spec/rulings/open-23), [OPEN-25](https://flowdrop.io/spec/rulings/open-25). ## Related rules - Names: PLAY-1 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.