---
title: "Add Flows to Project (Deprecated)"
method: PUT
path: "/projects/{project_id}/data_flows"
tags: ["Projects"]
---

# Add Flows to Project (Deprecated)

`PUT /projects/{project_id}/data_flows`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/projects/{project_id}/data_flows`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/projects/:project_id/data_flows/put.ts> (a function with typed inputs; its response is checked against the schema)

Adds a list of flows to a project. The existing flow list is retained and merged with the new flow list.

> **Note**: This version of the endpoint has been deprecated. The request body and response does not reference flows with new unique flow_ids, instead references composite data flow ids of the type `{resource_type}/{resource_id}`. See add_project_flows for a new version of this endpoint that references unique `flow_id`.

## Path parameters

- `project_id` integer, required

## Request body

- ProjectFlowList
  - `data_flows` ProjectFlowIdentifier[]
    - union
      - object
        - `data_source_id` integer: The ID of the data source which is the root node of this flow chain. Unless the flow chain has been created from a shared Nexset, flow definitions start from the source as the root node. This property reflects the source that is the root node of this flow.
      - object
        - `data_set_id` integer: The ID of the Nexset which is the root node of this flow chain. This property is not null only if the flow was created from a shared Nexset. In that case, this value reflects the ID of the derived dataset created from the shared Nexset.

## Response `200`

Success

- ProjectDataFlow[]
  - `id` integer: Unique identifier of this flow.
  - `project_id` integer: Unique identifier of the project this flow belongs to.
  - `data_source_id` integer: The ID of the data source which is the root node of this flow chain. Unless the flow chain has been created from a shared Nexset, flow definitions start from the source as the root node. This property reflects the source that is the root node of this flow.
  - `data_set_id` integer: The ID of the Nexset which is the root node of this flow chain. This property is not null only if the flow was created from a shared Nexset. In that case, this value reflects the ID of the derived dataset created from the shared Nexset.
  - `updated_at` string
  - `created_at` string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/nexla/apis/nexla-rest-api.md) - [All operations](https://skmtc.dev/nexla/apis/nexla-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexla/apis/nexla-rest-api/revisions/ef02be92fe7b?raw)
