---
title: "POST /api/v1/scripts/default-variables"
method: POST
path: "/api/v1/scripts/default-variables"
tags: ["Scripts"]
---

# POST /api/v1/scripts/default-variables

`POST /api/v1/scripts/default-variables`

## Request

- Base URL: `https://api.immy.bot` (the document declares no server; this is the origin it was published from)
- URL: `https://api.immy.bot/api/v1/scripts/default-variables`
- Auth: none declared

## Request body

- GetScriptVariablesAndParametersRequest
  - `scriptExecutionContext` 'System' | 'CurrentUser' | 'Metascript' | 'CloudScript': The string or integer value may be used. System = 0, CurrentUser = 1, Metascript = 2, CloudScript = 4
  - `scriptCategory` 'SoftwareDetection' | 'SoftwareVersionAction' | 'MaintenanceTaskSetter' | 'MetascriptDeploymentTarget' | 'FilterScriptDeploymentTarget' | 'DeviceInventory' | 'Function' | 'ImmySystem' | 'DynamicVersions' | 'DownloadInstaller' | 'Module' | 'Preflight' | 'Integration': The string or integer value may be used. SoftwareDetection = 0, SoftwareVersionAction = 2, MaintenanceTaskSetter = 3, MetascriptDeploymentTarget = 4, FilterScriptDeploymentTarget = 5, DeviceInventory = 6, Function = 7, ImmySystem = 8, DynamicVersions = 9, DownloadInstaller = 10, Module = 11, Preflight = 12, Integration = 13
  - `computerId` integer, nullable
  - `tenantId` integer, nullable
  - `softwareId` integer, nullable
  - `softwareType` 'GlobalSoftware' | 'LocalSoftware' | 'WindowsUpdate' | 'Chocolatey' | 'Ninite': The string or integer value may be used. GlobalSoftware = 0, LocalSoftware = 1, WindowsUpdate = 2, Chocolatey = 3, Ninite = 4
  - `taskId` integer, nullable
  - `taskType` 'Global' | 'Local': The string or integer value may be used. Global = 0, Local = 1

## Response `200`

OK

- GetScriptVariablesAndParametersResponse
  - `variables` object, nullable
  - `parameters` object, nullable

---

[API](https://skmtc.dev/immy/apis/immy-bot-api.md) · [All operations](https://skmtc.dev/immy/apis/immy-bot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/immy/apis/immy-bot-api/revisions/559d0e4b39d3?raw)
