Update a message. Designed for use with ideas and tasks.

Note: you cannot update the same message at the same time from different pages. For example, after you update the message in page A, you cannot update the message again in page B. If you attempt to do so, the server returns error 400.

URL Parameters

NameDescriptionLocationRequiredDefault Value
messageIdUnique identifier of the message.PathYes

Body Parameters

NameDescriptionJSON typeRequiredDefault Value
_idUnique identifier of the message.stringYes
contentMessage content to update.
  • bodyText: Message text.
  • description
ObjectNo

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator, ServiceAppAuthenticator

Authorization

OAuthAuthorizer and PERM_TOPIC_UPDATE

Example Request

URL

For Production: POST or PATCH https://spacesapis.avayacloud.com/api/messages/{messageId}
For Staging: POST or PATCH https://loganstagingapis.esna.com/api/messages/{messageId}

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Or

Authorization: "service_app eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Body

{
  "_id": "5f325b4e0656c90a722a3c87",
  "content": {
    "bodyText": "you can change this ",
    "description": "<p> you can change it too</p>"
  }
}

Example Response

{
    "_id": "5f325b4e0656c90a722a3c87",
    "category": "chat",
    "chatCount": 0,
    "content": {
        "bodyText": "you can change this ",
        "data": [
        ],
        "description": "<p> you can change it too</p>",
        "endTime": null,
        "mediaMode": "audio",
        "meetingStatus": "active",
        "recordings": [
        ],
        "startTime": "2020-08-11T09:04:05.335Z",
        "virtualEndTime": null
    },
    "created": "2020-08-11T08:48:14.478Z",
    "likeCount": 0,
    "modified": "2020-08-11T09:04:05.320Z",
    "sender": {
        "_id": "5f04251caa4a347af9946e06",
        "displayname": "Test User",
        "picture_url": "https://storage.googleapis.com/onesna/pictures/pfpic_test_34cb97bd-0151-449d-84b0-25107853b...",
        "type": "user",
        "username": "test@avaya.com"
    },
    "status": 0,
    "topicId": "5f06c25e574ca36b54cb4cdf"
}