---
title: "Update Messagesession (Session Name)"
method: PUT
path: "/domains/{domain}/users/{user}/messagesessions/{messagesession}#1"
tags: ["Messages"]
---

# Update Messagesession (Session Name)

`PUT /domains/{domain}/users/{user}/messagesessions/{messagesession}#1`

This is how you change the chat session name. You cannot name or rename an MMS group session.

> Note: # and anything after is NOT needed, its just to allow multiple examples for the same path/method.

## Path parameters

- `domain` string, required — This is the main organization name. This is used to link resource to its group/tenant/organization/enterprise. Then using in path for GET you can set to "~" to use the domain name linked to your token/key instead of the domain name itself when reading for your own domain.
- `user` string, required — This is the main user extension for the user account. ~ can be used to mean "my account" which will extract the user from the token/key used for authentication.
- `messagesession` string, required

## Request body

- object
  - `session-name` string, required — This is the new name of the message session

## Response `202`

- object
  - `code` integer, required
  - `message` string, required

## Other responses

- `400`
- `401`
- `404`

---

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