Code
Overview of functions API methods
Execute Function
POST
https://api.codemash.io/:version/serverless/functions/:id/execute
Executes a function during a request.
Path Parameters
Name | Type | Description |
---|---|---|
version | string | The version of the API endpoint. Current latest v1. |
id | string | The ID of function to be executed. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Your project's secret key. |
x-cm-projectid | string | Your project's ID. Can be passed as a query parameter. |
Request Body
Name | Type | Description |
---|---|---|
Template | string | Parameter of JSON format to pass into the function. |
Qualifier | string | Version or alias of a function to execute. |
In order to execute the function method, you can use GET method instead of POST.
Last updated