---
title: "PUT /api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}"
method: PUT
path: "/api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}"
tags: ["Scripts"]
---

# PUT /api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}

`PUT /api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}`

## Path parameters

- `tenantId` integer, required
- `regulationId` integer, required
- `scriptId` string, required

## Request body

- Script
  - `id` integer
  - `status` 'Active' | 'Inactive'
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `functionTypes` FunctionType[], nullable
  - `value` string, required
  - `overrideType` 'Active' | 'Inactive'

## Response `200`

OK

- Script
  - `id` integer
  - `status` 'Active' | 'Inactive'
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `functionTypes` FunctionType[], nullable
  - `value` string, required
  - `overrideType` 'Active' | 'Inactive'

## Other responses

- `404` — Not Found
- `422` — Unprocessable Content

## Changes

- **2026-07-17** `34e260deaa2c` — 4 info
  - added the new optional request property `overrideType` (media type: application/json)
  - added the new optional request property `overrideType` (media type: text/json)
  - added the new optional request property `overrideType` (media type: application/*+json)
  - added the optional property `overrideType` to the response with the `200` status
- **2026-03-09** `642427b60b7a` — 76 warning
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/addMethod/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/raiseMethod/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/removeMethod/methodImplementationFlags` response property for the response status `422`
  - …72 more
- …earlier changes not shown

[Full history](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/changes/api/tenants/:tenantId/regulations/:regulationId/scripts/:scriptId/put.md)

---

[API](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1.md) · [All operations](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/payroll-engine/payroll-engine-backend-api-v1/revisions/34e260deaa2c/schema)
