diff --git a/src/routes/docs/products/functions/execute/+page.markdoc b/src/routes/docs/products/functions/execute/+page.markdoc index b1042488b7..151038c620 100644 --- a/src/routes/docs/products/functions/execute/+page.markdoc +++ b/src/routes/docs/products/functions/execute/+page.markdoc @@ -29,7 +29,7 @@ curl -X POST https://64d4d22db370ae41a32e.appwrite.global \ -H "X-Custom-Header: 123" \ -H "x-appwrite-user-jwt: " \ -H "Content-Type: application/json" \ --d '{"data":"this is json data"}' +-d '{"body":"this is json data"}' ``` Notice how a `x-appwrite-user-jwt` header is passed in the request, you will use this to authenticate users. @@ -969,4 +969,4 @@ let execution = try await functions.createExecution( Appwrite Functions can be executed using Client or Server SDKs. Client SDKs must be authenticated with an account that has been granted execution [permissions](/docs/advanced/platform/permissions) on the function's settings page. Server SDKs require an API key with the correct scopes. -If your function has a generated or custom domain, executions are not authenticated. Anyone visiting the configured domains will be considered a guest, so make sure to give `Any` execute permission in order for domain executions to work. If you need to enforce permissions for functions with a domain, use authentication methods like JWT. \ No newline at end of file +If your function has a generated or custom domain, executions are not authenticated. Anyone visiting the configured domains will be considered a guest, so make sure to give `Any` execute permission in order for domain executions to work. If you need to enforce permissions for functions with a domain, use authentication methods like JWT.