ExecuteFunction
Execute the registered function.
Description
- Executes a function registered in the application.
- Please refer to Development Guide > Application for information on how to register functions.
Method
POST
Request URL Format
/api/v0/applications/:project-id/functions/:function-id
URL Params
project-id : Application ID or Display ID(display_id)
function-id : Function ID
Payload
All the json of the specified payload will be passed to the script's data.params.
{
"context": "update",
"profile": {
"tel": 00000000000,
"address1": "profile address1",
"address2": "profile address2"
}
}
Request Sample
POST https://api.xxx.com/api/v0/applications/app1/functions/validate
Response Sample
{
data: {}, // The value returned by the script is returned
erros: [] // If an error occurs in the script, the error message is returned
}