Functions

Manually trigger a function

Invoke a function immediately, same as a cron tick. Lifecycle-gated and counted against demo function-invocation limits. Returns the function's response status and body. Updates schedule_meta if the function has a schedule.

post/projects/v1/admin/{project_id}/functions/{name}/trigger

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/admin/{project_id}/functions/{name}/trigger
  • Auth: HTTP bearer

Path parameters

project_idstring required

Run402 project ID. Public IDs are not UUIDs.

Example:prj_1741340000_0042
namestring required

Response

Function invocation result

statusinteger

HTTP status code from the function

bodystring

Response body from the function

Changes

No recorded changes to this operation across all 1 revision of this API.