The Message
object type represents a message object within conversations or channels. atlassian:message
should be used to ingest Message-specific fields.
1 2objects {} ├─ schemaVersion (string) [Required] ├─ id (string) [Required] ├─ updateSequenceNumber (long) [Required] ├─ displayName (string) [Required] ├─ description (string) [Optional] ├─ url (string) [Required] ├─ createdAt (Instant (ISO8601 / RFC3339)) [Required] └─ createdBy [] [Optional] ├─ accountId (string) └─ ari (string) └─ lastUpdatedAt (Instant (ISO8601 / RFC3339)) [Required] └─ lastUpdatedBy [] [Required] ├─accountId (string) └─ ari └─ parentKey ()[Required] ├─ type └─ value └─ permissions └─ accessControls └─ principals └─type └─ associations [] [Optional] ├─ associationType (string) └─ values [] atlassian:message ├─ hidden (boolean) [Optional] ├─ isPinned (boolean) [Optional] ├─ attachments (List<Attachment>) [Optional] ├─ url (string) [Required] ├─ thumbnailUrl (string) [Optional] ├─ title (string) [Optional] ├─ mimeType (string) [Optional] └─ byteSize (long) [Optional] └─ lastActive (string) [Optional]
Description to go here about what common properties are.
Property | Type | Required | Description |
---|---|---|---|
schemaVersion |
| Yes | The schema version of the object. |
id |
| Yes | The ID of the object in the source system. |
updateSequenceNumber | long | Yes | A sequence number to compare when writing to the database. Objects are written following
a last write wins strategy, therefore an object with a greater UpdateSequenceNumber
is considered a more recently updated object. |
displayName | string | Yes | The display name of the object. |
description | string | No | The description of the object. |
url | string | Yes | The URL from the provider which the object is accessible from. |
createdAt | string | Yes |
The date the object was created. Format: Instant (ISO8601 / RFC3339) |
createdBy | user | No |
The user that created the object. See User to learn more. |
lastUpdatedAt | string | Yes |
The date the object was last updated. Format: Instant (ISO8601 / RFC3339) |
lastUpdatedBy | user | No |
The user that last updated the object. See User to learn more. |
owners | list<User> | No | List of users that own the object. |
thumbnail | thumbnail | No |
The thumbnail of the object. See Thumbnail to learn more. |
parentKey | entityKey | Yes |
The ID of the parent object. If null, it is a standalone object. See Entity key to learn more. |
containerKey | entityKey | Yes |
The container identifier that this object belongs to. See Entity key to learn more. |
permissions | list<Permissions> | Yes |
The permissions configuration of the object. See Permissions to learn more. |
associations | association | No |
List of objects associated with the object. Generally used to link an external object to a Atlassian object. See Association to learn more. |
Description here about these properties being specific to message.
Property | Type | Required | Description |
---|---|---|---|
hidden |
| No | Whether the message is hidden from view. |
isPinned |
| No | Whether the message is pinned in the conversation. |
attachments | List<Attachment> | No | List of file attachments included with the message. |
attachments.url | string | Yes | The URL to access the attached file. |
attachments.thumbnailUrl | string | No | The URL for the thumbnail of the attachment. |
attachments.title | string | No | The title or name of the attachment. |
attachments.mimeType | string | No | The MIME type of the attached file. |
attachments.byteSize | long | No | The size of the attachment in bytes. |
lastActive | string | No | The timestamp of the last activity on the message. Format: Instant (ISO8601 / RFC3339) |
1 2{ "objects" : [ { "id" : "message-1", "updateSequenceNumber" : 1, "description" : "Hello everyone !", "url" : "https://example-conversation.com/p1722400000000000", "lastUpdatedAt" : "2024-07-09T14:27:37.000Z", "lastActive" : "2024-07-09T15:27:37.000Z", "permissions" : [ { "action" : "read", "accessControls" : [ { "principals" : [ { "type" : "EVERYONE" } ] } ] } ], "containerKey" : { "type" : "atlassian:conversation", "value" : { "entityId" : "CFG3W7TKJ" } }, "atlassian:message" : { "attachments" : [ { "url" : "https://example-conversation.com/attachements/CFG3W7TKJ", "mimeType" : "image/png", "byteSize" : 140288 } ] } } ], "operationType" : "NORMAL" }
Rate this page: