Skip to content

Commit 2eec40a

Browse files
authored
feat: update to new automate (#22)
1 parent c0fecb1 commit 2eec40a

File tree

5 files changed

+344
-333
lines changed

5 files changed

+344
-333
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"configurations": [
77
{
88
"name": "Speckle Automate function",
9-
"type": "python",
9+
"type": "debugpy",
1010
"request": "launch",
1111
"program": "main.py",
1212
"console": "integratedTerminal",

example.function_inputs.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"speckleToken": "YOUR SPEKCLE TOKEN",
33
"functionInputs": {
44
"whisperMessage": "you are doing something weird",
5-
"forbiddenSpeckleType": ""
5+
"forbiddenSpeckleType": "wall"
66
},
77
"automationRunData": {
88
"project_id": "project id",
9-
"model_id": "model id",
10-
"branch_name": "branch name",
11-
"version_id": "version id",
129
"speckle_server_url": "https://latest.speckle.systems",
1310
"automation_id": "automation id",
14-
"automation_revision_id": "automation revision id",
1511
"automation_run_id": "automation run id",
16-
"function_id": "function id",
17-
"function_name": "function name",
18-
"function_logo": null
12+
"function_run_id": "function run id",
13+
"triggers": [
14+
{
15+
"payload": { "modelId": "model id", "versionId": "version id" },
16+
"triggerType": "versionCreation"
17+
}
18+
]
1919
}
2020
}

0 commit comments

Comments
 (0)