From 4ac60db896f6ab24e2a6c047c8837a83e3576696 Mon Sep 17 00:00:00 2001 From: Shubham Palriwala Date: Tue, 23 Apr 2024 19:32:36 +0530 Subject: [PATCH] docs: (Client Action API) mention user should pre-exist when creating action (#2500) --- .../app/docs/api/client/actions/page.mdx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/formbricks-com/app/docs/api/client/actions/page.mdx b/apps/formbricks-com/app/docs/api/client/actions/page.mdx index 1172f67c33..a9511b50a6 100644 --- a/apps/formbricks-com/app/docs/api/client/actions/page.mdx +++ b/apps/formbricks-com/app/docs/api/client/actions/page.mdx @@ -30,6 +30,8 @@ Adds an Actions for a given User by their User ID The id of the user for whom the action is being created. + + Note: A user with this ID must exist in your environment in Formbricks. The name of the Action being created. @@ -63,7 +65,7 @@ Adds an Actions for a given User by their User ID ```json {{ title: '200 Success' }} { - "data": {} + "data": {} } ``` @@ -77,6 +79,13 @@ Adds an Actions for a given User by their User ID } ``` + ```json {{ title: '500 Internal Server Error' }} + { + "code": "internal_server_error", + "message": "Unable to handle the request: Database operation failed", + "details": {} + } + ```