POST /api/functionlibrary/functions/import-bulk
Import multiple functions with optional overwrite of existing ones (matched by UUID). Temporarily placed here instead of FunctionLibraryAdminController due to auth scope constraints.
Request body
{
"functions":
[{
"uuid": "string",
"name": "string",
"description": "string",
"version": "string",
"customRequiredParameters": "array",
"customReturnedData": "array",
"parameterMappings": "array",
"labels": "array",
"tasks": "array"
}]
,
"overwriteExisting":"boolean"
}Responses
| Code | Returns | Type |
|---|---|---|
| 200 | OK | Acos.WebSak.Pluss.Services.FunctionLibrary.Models.BulkImportResult |
| 401 | Unauthorized - Missing or invalid access token | |
| 403 | Forbidden - Provided access token does not permit usage of this API or data |
Response Example
{
"results":
[{
"success": "boolean",
"functionUuid": "string",
"functionName": "string",
"issues": "array",
"hasErrors": "boolean",
"hasWarnings": "boolean"
}]
,
"successCount":"integer",
"totalCount":"integer"
}