Skip to main content

ExecuteFunction

Execute the registered function.

Description

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
}