Rank 1: Thread
Hello everyone, Can someone help me on identifying what's wrong with my curl request? It works fine If I try through Console
{curl --request POST \ --url http://MY_MACHINE_IP_LOCALHOST:80/v1/functions/MY_FUNCTION_ID/executions \ --header 'Content-Type: application/json' \ --header 'X-Appwrite-Key: MY_APPWRITE_KEY' \ --header 'X-Appwrite-Project: MY_PROJECT_ID' \ --data '{ "data": "{\"sender\":\"valid@mail.com\",\"body\":\"<!DOCTYPE html><html><head><title>Mensagem HTML Simples</title></head><body><h1 style=\\\"color: blue;\\\">Mensagem HTML Simples</h1><p>Esta é uma mensagem HTML de exemplo.</p><p>Você pode personalizá-la como desejar.</p></body></html>\",\"subject\":\"Testing Email Sending with Functions\",\"recipients\":[{\"email\":\"valid@mail.com\",\"name\":\"William Cardoso\"}]}"}'My requests throws error since no data is recognized. How to properly execute it? I am using Insomnia