---
title: "Creates a flow item that labels every datapoint of the dataset with the flow's blueprint; the dataset holds between 1 and 256 datapoints."
method: POST
path: "/flow/simple/{flowId}/item"
tags: ["SimpleFlowItem"]
---

# Creates a flow item that labels every datapoint of the dataset with the flow's blueprint; the dataset holds between 1 and 256 datapoints.

`POST /flow/simple/{flowId}/item`

## Path parameters

- `flowId` string, required

## Request body

- CreateSimpleFlowItemEndpointInput
  - `datasetId` string, required — The ID of the dataset to label with this flow item.
  - `timeToLiveInSeconds` integer, nullable — Optional time-to-live in seconds before the flow item expires. Must be between 45 seconds and 1 hour, and must exceed the drain duration by at least 30 seconds; defaults to the flow's default when omitted.
  - `drainDurationInSeconds` integer, nullable — Optional drain duration in seconds. When set, rapids are paused this many seconds before TTL expiry to allow in-flight responses to complete.

## Response `200`

OK

- CreateSimpleFlowItemEndpointOutput
  - `flowItemId` string, required — The ID of the created flow item.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

## Changes

- **2026-09-19** `0ed57e29d31d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rapidata/apis/rapidata-api/changes/flow/simple/:flowId/item/post.md)

---

[API](https://skmtc.dev/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.dev/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rapidata/apis/rapidata-api/revisions/0cbca856ba0f?raw)
