
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
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
