From 524156db795f876334eef76e2ff5dddae59eaf67 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 3 Apr 2024 17:15:48 -0300 Subject: [PATCH] Update API endpoint in async-api.mdx --- docs/docs/guidelines/async-api.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/guidelines/async-api.mdx b/docs/docs/guidelines/async-api.mdx index c5473812e..4b40f2c1d 100644 --- a/docs/docs/guidelines/async-api.mdx +++ b/docs/docs/guidelines/async-api.mdx @@ -14,17 +14,17 @@ This feature supports running tasks in a Celery worker queue and AnyIO task grou ## The _`sync`_ Flag -The _`sync`_ flag can be included in the payload of your POST request to the _`/api/v1/process/`_ endpoint. +The _`sync`_ flag can be included in the payload of your POST request to the _`/api/v1/run/`_ endpoint. When set to _`false`_, the API will initiate an asynchronous task instead of processing the flow synchronously. ### API Request with _`sync`_ flag ```bash curl -X POST \ - http://localhost:3000/api/v1/process/ \ + http://localhost:3000/api/v1/run/ \ -H 'Content-Type: application/json' \ -H 'x-api-key: ' \ - -d '{"inputs": {"text": ""}, "tweaks": {}, "sync": false}' + -d '{"input_value": "Message", "tweaks": {}, "sync": false}' ``` Response: