Path parameters

  • identifier string Required

Query parameters

  • iw-build-id string

    build id of the client

  • iw-package-id string

    package id of the client

application/json

Body Required

  • data object
    Hide data attributes Show data attributes object
    • id integer
    • message_text string
    • attachments array[object]
      Hide attachments attributes Show attachments attributes object
      • id integer
      • filename string
      • filesize string
      • mimetype string
      • created string(date-time)
    • reactions array[object]
      Hide reactions attributes Show reactions attributes object
      • id integer
      • emoji string
    • completed boolean

Responses

  • 200 application/json

    Update single ChatroomMessage

    Hide response attributes Show response attributes object
    • id integer
    • message_text string
    • attachments array[object]
      Hide attachments attributes Show attachments attributes object
      • id integer
      • filename string
      • filesize string
      • mimetype string
      • created string(date-time)
    • reactions array[object]
      Hide reactions attributes Show reactions attributes object
      • id integer
      • emoji string
    • completed boolean
PUT /api/cp/chat/chatroom_message/{identifier}
curl \
 --request PUT 'https://replace-with-own-host.iw-erp.de/api/cp/chat/chatroom_message/{identifier}' \
 --header "x-session-token: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"data":{"id":42,"message_text":"string","attachments":[{"id":42,"filename":"string","filesize":"string","mimetype":"string","created":"2025-05-04T09:42:00Z","googledownloadlink":"string"}],"reactions":[{"id":42,"emoji":"string"}],"completed":true}}'
Request examples
{
  "data": {
    "id": 42,
    "message_text": "string",
    "attachments": [
      {
        "id": 42,
        "filename": "string",
        "filesize": "string",
        "mimetype": "string",
        "created": "2025-05-04T09:42:00Z",
        "googledownloadlink": "string"
      }
    ],
    "reactions": [
      {
        "id": 42,
        "emoji": "string"
      }
    ],
    "completed": true
  }
}
Response examples (200)
{
  "id": 42,
  "message_text": "string",
  "attachments": [
    {
      "id": 42,
      "filename": "string",
      "filesize": "string",
      "mimetype": "string",
      "created": "2025-05-04T09:42:00Z",
      "googledownloadlink": "string"
    }
  ],
  "reactions": [
    {
      "id": 42,
      "emoji": "string"
    }
  ],
  "completed": true
}