---
title: "Update a message"
url: "https://docs.unified.to/messaging/message/Update_a_message"
description: "API reference for Update a message. Launch multiple pre-built Message integrations today with zero maintenance — all through a single API."
generated_at: "2026-05-20T23:12:57.668Z"
---
# Update a message

 PUT/messaging/{connection\_id}/message/{id}

## Parameters

**fields**string array 

id

created\_at

updated\_at

channel\_id

channel\_ids

channels

parent\_id

root\_message\_id

message\_thread\_identifier

author\_member

destination\_members

hidden\_members

mentioned\_members

reactions

subject

message

message\_html

message\_markdown

attachments

web\_url

reference

has\_children

is\_unread

buttons

raw

Fields to return

**raw**string 

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

**connection\_id**string  required 

ID of the connection

**id**string  required 

ID of the Message

## Payload

**id**string 

**created\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**updated\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**channel\_id**string 

@deprecated (reference to MessagingChannel)

**channel\_ids**string array 

@deprecated; use channels instead

**channels** array 

Represents the names of all channels to which the message is sent. Identifies the channels where the message is posted.

**parent\_id**string 

Represents the ID of the immediate predecessor message in the thread. Identifies a specific message to which the current message directly replies.

**root\_message\_id**string 

@deprecated

**message\_thread\_identifier**string 

the opaque identifier for the first message in a thread 

**author\_member**object 

for email systems, this field represents the From value

**destination\_members** array 

for email systems, this field represents the To value

**hidden\_members** array 

for email systems, this field represents the BCC value

**mentioned\_members** array 

for email systems, this field represents the CC value

**reactions** array 

**subject**string 

**message**string 

**message\_html**string 

**message\_markdown**string 

**attachments** array 

**web\_url**string 

**reference**string 

eg. RFC822 MessageID

**has\_children**boolean 

**is\_unread**boolean 

**buttons** array 

**raw**any 

## Returns

[MessagingMessage](/messaging/message/model)

**id**string 

**created\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**updated\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**channel\_id**string 

@deprecated (reference to MessagingChannel)

**channel\_ids**string array 

@deprecated; use channels instead

**channels** array 

Represents the names of all channels to which the message is sent. Identifies the channels where the message is posted.

**parent\_id**string 

Represents the ID of the immediate predecessor message in the thread. Identifies a specific message to which the current message directly replies.

**root\_message\_id**string 

@deprecated

**message\_thread\_identifier**string 

the opaque identifier for the first message in a thread 

**author\_member**object 

for email systems, this field represents the From value

**destination\_members** array 

for email systems, this field represents the To value

**hidden\_members** array 

for email systems, this field represents the BCC value

**mentioned\_members** array 

for email systems, this field represents the CC value

**reactions** array 

**subject**string 

**message**string 

**message\_html**string 

**message\_markdown**string 

**attachments** array 

**web\_url**string 

**reference**string 

eg. RFC822 MessageID

**has\_children**boolean 

**is\_unread**boolean 

**buttons** array 

**raw**any 

## Code Samples

### Node.js SDK

```
import { UnifiedTo } from '@unified-api/typescript-sdk';

const sdk = new UnifiedTo({
    security: {
        jwt: '<YOUR_API_KEY_HERE>',
    },
});

const connectionId = '5de520f96e439b002043d8dc';

const id = '1234';

const results = await sdk.messaging.updateMessagingMessage({ connectionId, id, messagingMessage: { }, 
    fields: '',
    raw: '',
 });
```

### Node.js (axios)

```
const options = {
  method: 'PUT',
  url: 'https://api.unified.to/messaging/5de520f96e439b002043d8dc/message/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
```

### Java

```
AsyncHttpClient client = new DefaultAsyncHttpClient();

client.prepare("PUT", "https://api.unified.to/messaging/5de520f96e439b002043d8dc/message/5de520f96e439b002043d8d8?fields=&raw=")
  .setHeader("accept", "application/json")
  .setHeader("authorization", ".....")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
```

### Go

```
import (
	"fmt"
	"net/http"
	"io/ioutil"
)

url := `https://api.unified.to/messaging/5de520f96e439b002043d8dc/message/5de520f96e439b002043d8d8?fields=&raw=

req, _ := http.NewRequest("PUT", url, nil)

req.Header.Add("accept", "application/json")
req.Header.Add("authorization", ".....")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
```

### Python

```
import requests

url = "https://api.unified.to/messaging/5de520f96e439b002043d8dc/message/5de520f96e439b002043d8d8?fields=&raw="

headers = {
    "accept": "application/json",
    "authorization": "....."
}

response = requests.put(url, headers=headers)
```

### PHP

```
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.unified.to/messaging/5de520f96e439b002043d8dc/message/5de520f96e439b002043d8d8?fields=&raw=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: ....."
  ],
]);
```

### Ruby

```
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.unified.to/messaging/5de520f96e439b002043d8dc/message/5de520f96e439b002043d8d8?fields=&raw=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["accept"] = 'application/json'
request["authorization"] = '....'

response = http.request(request)
puts response.read_body
```

### cURL

```
curl --request PUT \
  --url 'https://api.unified.to/messaging/5de520f96e439b002043d8dc/message/5de520f96e439b002043d8d8?fields=&raw=' \
  --header 'accept: application/json' \
  --header 'authorization: .....'
```
