For the complete documentation index, see llms.txt. This page is also available as Markdown.

Global Functions

List global function scripts

get

Lists the module's global function scripts, in the name order they compile in

Autorisierungen
AuthorizationstringErforderlich

Enter your Workspace API key.

API keys can be generated and managed within the Workspace Integration settings in the Ninox app.

Pfadparameter
moduleNamestring · min: 1 · max: 100Erforderlich

Module name

Example: crmPattern: ^[a-z0-9_]+$
workspaceIdstring · min: 12 · max: 12Erforderlich

Workspace ID

Example: 5rdco4s18swuPattern: ^[a-z0-9]+$
Antworten
200

Scripts retrieved successfully

application/json
get/api/v1/workspace/{workspaceId}/modules/{moduleName}/functions
GET /api/v1/workspace/{workspaceId}/modules/{moduleName}/functions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "code": "text",
      "id": "text",
      "moduleName": "text",
      "name": "text"
    }
  ]
}

Create a global function script

post

Creates a script of global function definitions, callable from every script of the module. The code may only define functions and is compiled with the functions of the scripts before it by name. Needs schema:write plus records:write.

Autorisierungen
AuthorizationstringErforderlich

Enter your Workspace API key.

API keys can be generated and managed within the Workspace Integration settings in the Ninox app.

Pfadparameter
moduleNamestring · min: 1 · max: 100Erforderlich

Module name

Example: crmPattern: ^[a-z0-9_]+$
workspaceIdstring · min: 12 · max: 12Erforderlich

Workspace ID

Example: 5rdco4s18swuPattern: ^[a-z0-9]+$
Body
codestringErforderlich

Function definitions only, callable from every script of the module. Needs schema:write plus records:write

namestring · min: 1 · max: 100Erforderlich

Script name, scripts compile in name order

Antworten
201

Script created successfully

application/json
post/api/v1/workspace/{workspaceId}/modules/{moduleName}/functions
POST /api/v1/workspace/{workspaceId}/modules/{moduleName}/functions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "code": "text",
  "name": "text"
}
{
  "data": {
    "code": "text",
    "id": "text",
    "moduleName": "text",
    "name": "text"
  }
}

Get a global function script

get

Retrieves a global function script by name

Autorisierungen
AuthorizationstringErforderlich

Enter your Workspace API key.

API keys can be generated and managed within the Workspace Integration settings in the Ninox app.

Pfadparameter
moduleNamestring · min: 1 · max: 100Erforderlich

Module name

Example: crmPattern: ^[a-z0-9_]+$
workspaceIdstring · min: 12 · max: 12Erforderlich

Workspace ID

Example: 5rdco4s18swuPattern: ^[a-z0-9]+$
scriptNamestring · min: 1 · max: 100Erforderlich

Global function script name

Example: helpers
Antworten
200

Script retrieved successfully

application/json
get/api/v1/workspace/{workspaceId}/modules/{moduleName}/functions/{scriptName}
GET /api/v1/workspace/{workspaceId}/modules/{moduleName}/functions/{scriptName} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "code": "text",
    "id": "text",
    "moduleName": "text",
    "name": "text"
  }
}

Delete a global function script

delete

Deletes a global function script. Scripts after it that call its functions are not checked again. Needs records:write

Autorisierungen
AuthorizationstringErforderlich

Enter your Workspace API key.

API keys can be generated and managed within the Workspace Integration settings in the Ninox app.

Pfadparameter
moduleNamestring · min: 1 · max: 100Erforderlich

Module name

Example: crmPattern: ^[a-z0-9_]+$
workspaceIdstring · min: 12 · max: 12Erforderlich

Workspace ID

Example: 5rdco4s18swuPattern: ^[a-z0-9]+$
scriptNamestring · min: 1 · max: 100Erforderlich

Global function script name

Example: helpers
Antworten
200

Script deleted successfully

application/json
delete/api/v1/workspace/{workspaceId}/modules/{moduleName}/functions/{scriptName}
DELETE /api/v1/workspace/{workspaceId}/modules/{moduleName}/functions/{scriptName} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "id": "text"
  }
}

Update a global function script

patch

Updates or renames a global function script. The result is compiled again with the functions of the scripts before it by name. Scripts after it that call its functions are not checked again. Needs schema:write plus records:write.

Autorisierungen
AuthorizationstringErforderlich

Enter your Workspace API key.

API keys can be generated and managed within the Workspace Integration settings in the Ninox app.

Pfadparameter
moduleNamestring · min: 1 · max: 100Erforderlich

Module name

Example: crmPattern: ^[a-z0-9_]+$
workspaceIdstring · min: 12 · max: 12Erforderlich

Workspace ID

Example: 5rdco4s18swuPattern: ^[a-z0-9]+$
scriptNamestring · min: 1 · max: 100Erforderlich

Global function script name

Example: helpers
Body
codestringOptional

Function definitions only, callable from every script of the module. Needs schema:write plus records:write

namestring · min: 1 · max: 100Optional

Script name, scripts compile in name order

Antworten
200

Script updated successfully

application/json
patch/api/v1/workspace/{workspaceId}/modules/{moduleName}/functions/{scriptName}
PATCH /api/v1/workspace/{workspaceId}/modules/{moduleName}/functions/{scriptName} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "code": "text",
  "name": "text"
}
{
  "data": {
    "code": "text",
    "id": "text",
    "moduleName": "text",
    "name": "text"
  }
}

Zuletzt aktualisiert

War das hilfreich?