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

# POST /api/tenants/{tenantId}/regulations/{regulationId}/scripts

`POST /api/tenants/{tenantId}/regulations/{regulationId}/scripts`

## Path parameters

- `tenantId` integer, required
- `regulationId` integer, 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 `201`

Created

- 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

---

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