Scripts API¶
Note
The Scripts API is used to implement Socotra plugins. See the Plugins topic for information about how to use this API.
Deploy scripts¶
POST /scripts/upload
Request:
Name
Position
Type
Required
file
formdata
file
required
tenantLocator
query
string
optional
Response:
void
This endpoint takes a zip
file with a structure like this:
Branch Name 1/
underwriter.js
Branch Name 2/
underwriter.js
Query scripting logs¶
POST /scripts/queryLogs
Request:
Name
Position
Type
Required
query
body
required
tenantLocator
query
string
optional
Response:
QueryResponse
QueryRequest¶
{// Optionallimit : integermaxTimestamp : timestampminTimestamp : timestampoldestComeFirst : booleanposition : stringrequestId : stringsearchPhrase : string}
LogEvent¶
{// Requiredmessage : stringrequestId : stringtimestamp : timestamp}