functions

Execute a function's source code for testing

Execute a function's source code for testing.

post/groups/{groupId}/apps/{appId}/debug/execute_function_source

Request

  • Base URL
    https://services.cloud.mongodb.com/api/admin/v3.0
  • URL
    https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/debug/execute_function_source
  • Auth
    HTTP bearer

Query parameters

user_idstring required

The user as which to execute the function. Either user_id or run_as_system is required. You cannot specify both.

run_as_systemboolean required

Determine whether or not to run as system user. Either run_as_system or user_id is required. You cannot specify both.

Request body

eval_sourcestring

This JSON expression must evaluate to true before the function may run. If this field is blank, it will evaluate to true.

sourcestring required

Response

Successfully executed.

errorobject
logsunknown
resultobject

Changes

No recorded changes to this operation across all 50 revisions of this API.