Direct Message Channel Chat Messages

Add a Direct Message Channel Message

PUT /direct_message_channels/{channel_id}/chat_messages

Path Parameters

Body Parameters

Example Request Body

{
    "user_id" : "5b225b52-7a5f-4cf2-8869-fb97266e0ce8",
    "content" : "Hello ĀLO"
}

Success Response

A successful direct message channel chat message add response will have an HTTP status of 200. The payload of the response will contain the id of the message that was created.

Error Response

If there was a problem creating the message you will receive a response that contains status and message properties.

Example error response:

{
    "status": 422,
    "message": {
        "error": "Invalid Channel User",
        "invalid_user_id": "bogus-id"
    }
}

Last updated

Logo

© Copyright 2024 ALO.ai, Inc. • All Rights Reserved