---
title: "POST /api/v1/inventory-tasks/local/{id}/scripts"
method: POST
path: "/api/v1/inventory-tasks/local/{id}/scripts"
tags: ["InventoryTasks"]
---

# POST /api/v1/inventory-tasks/local/{id}/scripts

`POST /api/v1/inventory-tasks/local/{id}/scripts`

## 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/inventory-tasks/local/{id}/scripts`
- Auth: none declared

## Path parameters

- `id` integer, required

## Request body

- InventoryTaskScriptPayload
  - `inventoryTaskId` integer
  - `inventoryKey` string, nullable
  - `scriptId` integer

## Response `200`

OK

- InventoryTaskScriptResource
  - `inventoryKey` string, nullable
  - `scriptId` integer
  - `fromProvider` boolean

---

[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)
