---
title: "Create Custom Function"
method: POST
path: "/misc/custom_functions"
---

# Create Custom Function

`POST /misc/custom_functions`

## Request

- Base URL: `https://dc-region.zuperpro.com/api`
- URL: `https://dc-region.zuperpro.com/api/misc/custom_functions`
- Auth: API key in header `x-api-key`

## Request body

- object
  - `custom_function` object, required
    - `function_name` string, required
    - `function_module` ''JOB'' | ''CUSTOMER'' | ''EMPLOYEE'' | ''ESTIMATE'' | ''INVOICE'' | ''PRODUCT'' | ''JOB_PRODUCT'' | ''PURCHASE_ORDER'' | ''SERVICE_CONTRACT'' | ''ASSET'' | ''PROPERTY'' | ''ORGANIZATION'' | ''REQUEST'' | ''PROJECT'', required
    - `function_description` string
    - `function_code` string

## Response `200`

200

- object
  - `type` string
  - `message` string
  - `data` object
    - `function_uid` string

## Other responses

- `400`: 400
- `409`: 409

## Changes

- **2026-11-03** `3c21bc232e16`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zuper/apis/zuper-pro-api/changes/misc/custom_functions/post.md)

---

[API](https://skmtc.dev/zuper/apis/zuper-pro-api.md) - [All operations](https://skmtc.dev/zuper/apis/zuper-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zuper/apis/zuper-pro-api/revisions/3c21bc232e16?raw)
