---
title: "Update message visibility"
method: PUT
path: "/messages/{messageId}"
tags: ["messages"]
---

# Update message visibility

`PUT /messages/{messageId}`

## Request

- Base URL: `https://api.lumahealth.io/api/v2`
- URL: `https://api.lumahealth.io/api/v2/messages/{messageId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lumahealth/apis/rest-service/docs/messages/:messageId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `messageId` string, required

## Query parameters

- `markMessageAs` 'public' | 'private' | 'internal'

## Request body

- MessagesUpdateVisibilityRequest
  - `markMessageAs` 'public' | 'private' | 'internal'

## Response `200`

Success updating message visibility

- object
  - `body` object
    - `message` string

## Other responses

- `400`: Bad params or the address are invalid
- `500`: An unexpected error occurred

---

[API](https://skmtc.dev/lumahealth/apis/rest-service.md) - [All operations](https://skmtc.dev/lumahealth/apis/rest-service/llms.txt) - [OpenAPI document](https://skmtc.dev/lumahealth/apis/rest-service/revisions/f19aeba84a26?raw)
