# Compute module - How to expose a function with optional parameters?

**URL:** <https://community.palantir.com/t/compute-module-how-to-expose-a-function-with-optional-parameters/3874>\
**Category:** Ask the Community\
**Tags:** compute-modules\
**Created:** [May 15, 2025, 10:53am UTC](https://community.palantir.com/t/compute-module-how-to-expose-a-function-with-optional-parameters/3874 "2025-05-15T10:53:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VincentF](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@VincentF](https://community.palantir.com/u/VincentF)\
**Post date:** [May 15, 2025, 10:53am UTC](https://community.palantir.com/t/compute-module-how-to-expose-a-function-with-optional-parameters/3874/1 "2025-05-15T10:53:32Z")

</div>

In compute module, one can expose a python function with some parameters.  
Those parameters can be “nullable” but it seems they are still required for the execution of the function. Does this means they can only be filled with nulls but the key needs to always be present in the payload ?

 ![image](https://canada1.discourse-cdn.com/palantir/original/2X/3/3eb13df1ee3c6bf404ae33b2658a38564e290eee.png)

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [July 14, 2025, 10:53am UTC](https://community.palantir.com/t/compute-module-how-to-expose-a-function-with-optional-parameters/3874/2 "2025-07-14T10:53:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
