---
title: "POST /api/v1/scripts/run-adhoc-metascript"
method: POST
path: "/api/v1/scripts/run-adhoc-metascript"
tags: ["Scripts"]
---

# POST /api/v1/scripts/run-adhoc-metascript

`POST /api/v1/scripts/run-adhoc-metascript`

## 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/run-adhoc-metascript`
- Auth: none declared

## Request body

- RunAdHocMetascriptRequestBody
  - `scriptName` string, nullable
  - `scriptBody` string, nullable, required
  - `computerId` integer, nullable
  - `tenantId` integer, nullable
  - `invalidateFunctionScriptCache` boolean
  - `terminalId` string, uuid, nullable
  - `cancellationId` string, uuid, nullable
  - `scriptExecutionTimeoutSeconds` integer, nullable
  - `agentConnectionWaitTimeoutSeconds` integer, nullable

## Response `200`

OK

---

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