---
title: "Update Payment Medium"
method: PUT
path: "/admin/payment-mediums/update/{name}"
tags: ["provider", "admin", "payment-mediums"]
---

# Update Payment Medium

`PUT /admin/payment-mediums/update/{name}`

Update a custom settlement type. Updating the name will cascade to all existing payments.

## Path parameters

- `name` string, required

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Request body

- PaymentMediumUpdate — Schema for updating a custom settlement type.
  - `name` string, nullable — The name of the custom settlement type.
  - `isArchived` boolean, nullable — Whether to archive/unarchive the payment medium.

## Response `200`

Successful Response

- PaymentMediumDetail — Schema for reading payment medium records.
  - `name` string, required — The name/identifier of the payment medium (primary key).
  - `isSystem` boolean, required — Whether this is a system-defined payment medium (immutable).
  - `isArchived` boolean, required — Whether this payment medium is archived.
  - `createdDate` string, date-time, required — The date and time the payment medium was created.
  - `updatedDate` string, date-time, nullable — The date and time the payment medium was last updated.

## Other responses

- `422` — Validation Error

---

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