---
title: "create template script"
method: POST
path: "/w/{workspace}/postgres_triggers/create_template_script"
tags: ["postgres_trigger"]
---

# create template script

`POST /w/{workspace}/postgres_triggers/create_template_script`

## Path parameters

- `workspace` string, required

## Request body

- TemplateScript
  - `postgres_resource_path` string, required
  - `relations` Relations[], required
    - `schema_name` string, required
    - `table_to_track` object[], required
      - `table_name` string, required
      - `columns_name` string[]
      - `where_clause` string
  - `language` 'Typescript', required

## Response `200`

custom id to retrieve template script

---

[API](https://skmtc.dev/windmill/apis/windmill-api.md) · [All operations](https://skmtc.dev/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/7b281701c340/schema)
