---
title: "Managed Auth Connection Function Update"
method: PUT
path: "/managed-auth/connections/{connection_id}/functions/{role}"
tags: ["managed-auth"]
---

# Managed Auth Connection Function Update

`PUT /managed-auth/connections/{connection_id}/functions/{role}`

## Path parameters

- `connection_id` string, required
- `role` 'login' | 'verifier', required

## Headers

- `x-notte-request-origin` string, nullable
- `x-notte-sdk-version` string, nullable

## Request body

- ManagedAuthFunctionCodeUpdateRequest
  - `source` string, required

## Response `200`

Successful Response

- ManagedAuthFunctionCode
  - `role` 'login' | 'verifier', required
  - `source` string, required
  - `version` string, required
  - `source_function_id` string, nullable
  - `source_function_version` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/notte/apis/notte-api.md) · [All operations](https://skmtc.net/notte/apis/notte-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/notte/notte-api/versions/8dda4e3d49cc/schema)
