Skip to main content
PATCH
/
messages
/
{messageId}
JavaScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});

const message = await client.messages.update('imsg_01kabn43yqyxn2bx4ve84mczd3');

console.log(message.id);
{
  "data": {
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Path Parameters

messageId
string
required

The id of the message

Example:

"imsg_01kabn43yqyxn2bx4ve84mczd3"

Body

application/json

Labels to add or remove.

addLabels
string[]

Labels to add to the message.

A label name.

Minimum string length: 1
removeLabels
string[]

Labels to remove from the message.

A label name.

Minimum string length: 1

Response

Successful response.

data
object
required