Skip to main content

Get Scripts

info

All JSON array responses have been shortened for readability.

GET/<ApplicationID>/collections/<CollectionID>/scripts
Endpoint Requires Authentication
Example
https://api.weightron.cloud/641c1177ebc8b2f3c195b02c/collections/641c1177ebc8b2f3c195b033/scripts
Description

Returns an array of objects containing scripts linked to the given collection.

Returns
{
"timestamp": "2023-03-23T10:14:19.536Z",
"data": [
{
"_id": "641c2678ebc8b2f3c195b0dc",
"name": "area script",
"runtime": "C",
"type": "F",
"event": {
"trigger": []
},
"script": "// yes, I made this script just for the documentation.\n\nreturn 0;",
"dependencies": [],
"createdAt": "2023-03-23T10:14:16.409Z",
"updatedAt": "2023-03-23T10:14:16.409Z",
"__v": 0
}
]
}