Teamly API
  1. Messages
Teamly API
  • Introduction
  • Getting Started
    • Quick Start
    • API Versions
  • Permissions
    • Channel Permission Values
    • Team Global Permissions
  • Core Resources
    • Channels
      • Update Channel
        • Update Team Channel
        • Update Channel Role Permissions
      • Get Team Channels
      • Create Team Channel
      • Delete Team Channel
      • Duplicate a Channel on Team
      • Update Channel Priorities of Team
      • Get Channel By Id
    • Messages
      • Create Channel Message
        POST
      • Delete a Channel Message
        DELETE
      • Get Channel Messages
        GET
      • Update a Channel Message
        PATCH
      • React to Message
        POST
      • Delete Reaction from Message
        DELETE
      • Get a Channel Message by Id
        GET
    • Teams
      • Members
        • Add Role to Member
        • Remove Role from Member
        • Kick Member from Team
        • Get Member
      • Bans
        • Get Banned Users
        • Unban User
        • Ban User
      • Get a Team
      • Update a Team
    • Roles
      • Create a Role for Team
      • Get Team Roles
      • Delete a Role
      • Clone Role
      • Update Role Priorities of Team
      • Update a Team Role
    • Users
      • Get User By Id
      • Get Logged In User
    • Todos
      • Get Todo Items
      • Create Todo Item
      • Delete Todo Item
      • Clone Todo Item
      • Update Todo Item
    • Direct Messages
      • Create a Direct Message
    • Applications
      • Get Application Submissions
      • Update a Application Status
      • Update Team's Application Status
      • Update Team's Application Questions
      • Get Application By Id
    • Reactions
      • Get Team's Custom Reactions
      • Create New Custom Reaction for Team
      • Update a Custom Reaction
      • Delete a Custom Reaction
    • Attachments
      • Upload Attachment
    • Voice
      • Get Credentials for Join Voice Channel
      • Update Your Voice Metadata
      • Leave from Voice Channel
      • Move Member
      • Disconnect Member from Voice
    • Webhooks
      • Create Message With Webhook
      • Webhook for GitHub
    • Blog
      • Get Blog Posts
      • Create a Blog Post
      • Delete a Blog Post
    • Category
      • Create a Category
      • Update a Category
      • Update Category Role Permissions
      • Delete a Category
      • Add a Channel To Category
      • Delete a channel from category
      • Set channel priority of category
      • Set a team's category priority
    • Announcements
      • Get Announcements
      • Create Announcement
      • Delete Announcement
  • Schemas
    • Message
    • Message Embed
    • Channel
    • Direct Message
    • To-do Item
    • Application
    • Emoji
    • Team
    • User
    • Role
    • Webhook
    • Blog
    • Category
    • Announcement
  • Websockets
    • Example Bot
    • WebSocket event envelope
      • WebSocket event envelope
      • Keepalive
      • Welcome Message
      • Gateway Opcodes
      • Gateway Close Event Codes
    • Websocket events
      • CHANNEL_CREATED
      • CHANNEL_DELETED
      • CHANNEL_UPDATED
      • MESSAGE_SEND
      • MESSAGE_UPDATED
      • MESSAGE_DELETED
      • MESSAGE_REACTION_ADDED
      • MESSAGE_REACTION_REMOVED
      • PRESENCE_UPDATE
      • TEAM_ROLE_CREATED
      • TEAM_ROLE_DELETED
      • TEAM_ROLES_UPDATED
      • TEAM_UPDATED
      • TODO_ITEM_CREATED
      • TODO_ITEM_DELETED
      • TODO_ITEM_UPDATED
      • USER_JOINED_TEAM
      • USER_LEFT_TEAM
      • USER_JOINED_VOICE_CHANNEL
      • USER_LEFT_VOICE_CHANNEL
      • USER_PROFILE_UPDATED
      • USER_ROLE_ADDED
      • USER_ROLE_REMOVED
      • USER_UPDATED_VOICE_METADATA
      • BLOG_CREATED
      • BLOG_DELETED
      • CATEGORIES_PRIORITY_UPDATED
      • CATEGORY_UPDATED
      • CATEGORY_DELETED
      • CATEGORY_CREATED
      • CHANNELS_PRIORITY_UPDATED
      • ANNOUNCEMENT_CREATED
      • ANNOUNCEMENT_DELETED
      • APPLICATION_CREATED
      • APPLICATION_UPDATED
      • VOICE_CHANNEL_MOVE
    • Connecting via WebSocket
  1. Messages

Update a Channel Message

PATCH
https://api.teamly.one/api/v1/channels/{channelId}/messages/{messageId}

Request

Path Params

Header Params

Body Params application/json

Example
{
    "content": "string",
    "embeds": [
        {
            "title": "string",
            "description": "string",
            "url": "http://example.com",
            "color": 0,
            "author": {
                "name": "string",
                "icon_url": "http://example.com"
            },
            "thumbnail": {
                "url": "http://example.com"
            },
            "image": {
                "url": "http://example.com"
            },
            "footer": {
                "text": "string",
                "icon_url": "http://example.com"
            }
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.teamly.one/api/v1/channels//messages/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "content": "string",
    "embeds": [
        {
            "title": "string",
            "description": "string",
            "url": "http://example.com",
            "color": 0,
            "author": {
                "name": "string",
                "icon_url": "http://example.com"
            },
            "thumbnail": {
                "url": "http://example.com"
            },
            "image": {
                "url": "http://example.com"
            },
            "footer": {
                "text": "string",
                "icon_url": "http://example.com"
            }
        }
    ]
}'

Responses

🟢200OK
application/json
Body

Example
{
    "success": true,
    "message": {
        "id": "string",
        "channelId": "string",
        "type": "string",
        "content": "string",
        "attachments": [
            {
                "url": "string"
            }
        ],
        "createdBy": {
            "id": "string",
            "username": "string",
            "subdomain": "string",
            "profilePicture": null,
            "banner": null,
            "bot": false,
            "presence": 0,
            "flags": "string",
            "badges": [],
            "userStatus": {
                "content": null,
                "emojiId": null
            },
            "userRPC": {
                "type": null,
                "name": null,
                "id": null,
                "startedAt": null
            },
            "connections": [],
            "createdAt": "CURRENT_TIMESTAMP",
            "lastOnline": "CURRENT_TIMESTAMP",
            "system": false
        },
        "editedAt": "2019-08-24T14:15:22Z",
        "replyTo": "string",
        "embeds": [
            {
                "title": "string",
                "description": "string",
                "url": "http://example.com",
                "color": 0,
                "author": {
                    "name": "string",
                    "icon_url": "http://example.com"
                },
                "thumbnail": {
                    "url": "http://example.com"
                },
                "image": {
                    "url": "http://example.com"
                },
                "footer": {
                    "text": "string",
                    "icon_url": "http://example.com"
                }
            }
        ],
        "emojis": [
            {
                "emojiId": "string"
            }
        ],
        "reactions": [
            {
                "emojiId": "string",
                "count": 0,
                "users": [
                    {
                        "userId": "string",
                        "timestamp": "2019-08-24T14:15:22Z"
                    }
                ]
            }
        ],
        "nonce": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "mentions": {
            "users": [
                "string"
            ]
        }
    }
}
Modified at 2024-12-30 19:29:19
Previous
Get Channel Messages
Next
React to Message
Built with