Hi, I'm trying to execute a function using CURL, which is working fine, but I can't figure out how to pass req.payload data.
I have tried with -d '{"payload": {"Key":"Value"}}' but then my function can't find Key. I have already tested my function manually using the webui and it's working, so it should be something with the format I need when passing data using curl.
Please see https://appwrite.io/docs/client/functions?sdk=rest-default#functionsCreateExecution
create execution has a data parameter that expects a string
Thank you, that worked!
[SOLVED] REST API curl example
[SOLVED] REST API curl example for Function Create Execution
Recommended threads
- RealtimeResponseEvent Typescript Bug
Hello, could you please fix RealtimeResposneEvent, the one in realtime.ts have timestamp: string, but the one in client.ts have timestamp: number, and it causes...
- Appwrite freezes when deploying function...
I have two VPS servers, one for development and one for production, and when pushing a function to GitHub all functions should rebuild on both prod and dev but ...
- Invalid `functionId` param when creating...
Upgraded to Appwrite 1.8.0 and new functions can't be created with a "-" character in the function id. This worked fine previously. The docs mention: "Valid cha...