---
title: "Changes to Update a Function"
method: PUT
path: "/groups/{groupId}/apps/{appId}/functions/{functionId}"
---

# Changes to Update a Function

`PUT /groups/{groupId}/apps/{appId}/functions/{functionId}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 50 revisions.

- **2024-02-20** (v3) `e2240dd053bd` — 1 breaking
- **2023-09-05** (v3) `0d26ece81dcc` — 2 info

## Changes

- **2024-02-20** (v3) `e2240dd053bd` — 1 breaking
  - the response property `run_as_system` became optional for the status `200`
- **2023-09-05** (v3) `0d26ece81dcc` — 2 info
  - added the optional property `run_as_user_id` to the response with the `200` status
  - added the optional property `run_as_user_id_script_source` to the response with the `200` status

---

[Operation](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/docs/groups/:groupId/apps/:appId/functions/:functionId/put.md) · [API](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [Page](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/changes/groups/:groupId/apps/:appId/functions/:functionId/put)
