SDK Apps > Functions

List App Functions

get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
Query parameters
allbooleanOptionalExample: true
Responses
200

Successful response

application/json
get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions
GET /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successful response

{
  "appFunctions": [
    {
      "name": "myFunction",
      "args": "()"
    }
  ]
}

Create Function

post
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
Body
namestringOptional
Responses
200

Successful response

application/json
post
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions
POST /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "name": "parseTime3"
}
200

Successful response

{
  "appFunction": {
    "name": "parseTime"
  }
}

Get Function

get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
SDK_functionNamestringRequired
Responses
200

Successful response

application/json
get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}
GET /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successful response

{
  "appFunction": {
    "name": "parseTime",
    "code": "function parseTime() {}",
    "changes": {}
  }
}

Delete Function

delete
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
SDK_functionNamestringRequired
Responses
200

Successful response

application/json
delete
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}
DELETE /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successful response

{
  "appFunction": {
    "name": "parseTime"
  }
}

Get Function Code

get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/code
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
SDK_functionNamestringRequired
Responses
200

Successful response

application/javascript
Responsestring
get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/code
GET /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/code HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successful response

function parseTime() {

}

Set Function Code

put
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/code
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
SDK_functionNamestringRequired
Body
stringOptionalExample: function parseTime() { const a = "Hello There" }
Responses
200

Successful response

application/json
put
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/code
PUT /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/code HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/javascript
Accept: */*
Content-Length: 56

"function parseTime() {\n\tconst a = \"Hello There\"\n}"
200

Successful response

{
  "change": {
    "id": 123456,
    "group": "function",
    "item": "parseTime",
    "code": "code"
  }
}

Get Function Test

get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/test
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
SDK_functionNamestringRequired
Responses
200

Successful response

application/javascript
Responsestring
get
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/test
GET /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/test HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successful response

console.log('This is a test');

Set Function Test

put
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/test
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
SDK_appNamestringRequired
SDK_appVersionstringRequired
SDK_functionNamestringRequired
Body
stringOptionalExample: console.log('This is a new test');
Responses
200

Successful response

application/json
put
/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/test
PUT /api/v2/sdk/apps/{SDK_appName}/{SDK_appVersion}/functions/{SDK_functionName}/test HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/javascript
Accept: */*
Content-Length: 36

"console.log('This is a new test');"
200

Successful response

{
  "changed": true
}

Last updated