From ddf2d4b875cf4afe093671b438ab26cea8bfd31d Mon Sep 17 00:00:00 2001 From: Kaushik Date: Tue, 30 Sep 2025 14:54:14 +0200 Subject: [PATCH] docs: adjusting the documentation based on the open api spec. (#10016) * adjusting the documentation based on the open api spec. * Update docs/docs/API-Reference/api-flows.mdx Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * Apply suggestion from @mendonk Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * Apply suggestion from @mendonk Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * Apply suggestion from @mendonk Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * Apply suggestion from @mendonk Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * Update api-flows.mdx * Update api-flows.mdx --------- Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> --- docs/docs/API-Reference/api-flows.mdx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/docs/API-Reference/api-flows.mdx b/docs/docs/API-Reference/api-flows.mdx index d60ab6bc47..ca4aff17b2 100644 --- a/docs/docs/API-Reference/api-flows.mdx +++ b/docs/docs/API-Reference/api-flows.mdx @@ -278,14 +278,14 @@ curl -X POST \ Imports flows by uploading a [Langflow-compatible JSON file](/concepts-flows-import#langflow-json-file-contents). -To specify a target project for the flow, include the query parameter `project_id`. -The target `project_id` must already exist before uploading a flow. Call the [/api/v1/projects/](/api-projects#read-projects) endpoint for a list of available projects. +To specify a target project for the flow, include the query parameter `folder_id`. +The target `folder_id` must already exist before uploading a flow. Call the [/api/v1/projects/](/api-projects#read-projects) endpoint for a list of available folders and projects. -This example uploads a local file named `agent-with-astra-db-tool.json` to a project specified by a `PROJECT_ID` variable: +This example uploads a local file named `agent-with-astra-db-tool.json` to a folder specified by a `FOLDER_ID` variable: ```bash curl -X POST \ - "$LANGFLOW_URL/api/v1/flows/upload/?project_id=$PROJECT_ID" \ + "$LANGFLOW_URL/api/v1/flows/upload/?folder_id=$FOLDER_ID" \ -H "accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "x-api-key: $LANGFLOW_API_KEY" \ @@ -308,5 +308,4 @@ curl -X POST \ } ] ``` - - \ No newline at end of file +