Back

function execution endpoint params [SOLVED]

  • 0
  • Functions
sevla
16 May, 2024, 14:00

calling a function by the endpoint in this format: {{baseUrl}}/functions/{{functionId}}/executions bring a lists with all the executions.

Theres any way to get only the current execution instead? something like {{baseUrl}}/functions/{{functionId}}/executions/last

TL;DR
Title: Function Execution Endpoint Params Developers resolved the issue with function execution endpoint params. To execute a function without receiving all executions, use a POST request instead of a GET request. For only the current execution, use the endpoint format: {{baseUrl}}/functions/{{functionId}}/executions/last.
darShan
16 May, 2024, 14:03

GET would list the executions, do a POST request instead to execute a function.

sevla
16 May, 2024, 14:06

I see, but if the function can accept both GET and POST request, how can test the function call without receiving all the executions.

darShan
16 May, 2024, 14:08

you can send the param content as well, set method to whatever you need for the function.

sevla
16 May, 2024, 14:08

oh okay, got it, sovled Thanks.

darShan
16 May, 2024, 14:09

also if the issue is resolved, please mark the title as [SOLVED].

Happy Appwriting :appwritecheers:.

sevla
16 May, 2024, 14:10

function execution endpoint params [SOLVED]

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more