functions

Execute a function

Execute a function for testing.

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

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
  • 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

servicestring

The service to use when calling this function.

namestring required

The name of the function you want to run.

argumentsstring[]

Any arguments that your function needs.

Response

Successfully executed.

errorobject
logsunknown
resultobject

Changes

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