The Document
object type represents a document object. atlassian:document
should be used to ingest document-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 └─ permissions └─ accessControls └─ principals └─type └─ associations [] [Optional] ├─ associationType (string) └─ values [] atlassian:document ├─ type (DocumentType) [Required] ├─ category (string) [Required] ├─ mimeType (string) [Required] ├─ iconUrl (string) [Optional] └─ fileExtension (string) [Optional] ├─ content (DocumentContent) [Required] ├─ mimeType (string) [Required] ├─ binary (string) [Optional] └─ text (string) [Optional] ├─ collaborators (List<UserReference>) [Optional] ├─ accountId (string) [Optional] ├─ email (string) [Optional] ├─ externalId (string) [Optional] ├─ ari (string) [Optional] ├─ name (string) [Optional] ├─ userName (string) [Optional] ├─ avatar (string) [Optional] └─ url (string) [Optional] ├─ byteSize (integer) [Optional] ├─ exportLinks (List<ExportLink>) [Optional] ├─ mimeType (string) [Optional] ├─ url (string) [Required] ├─ labels (List<string>) [Optional] └─ reactions (List<Reaction>) [Optional] ├─ reactionType (string) [Required] └─ total (integer) [Required]
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 | No |
The ID of the parent object. If null, it is a standalone object. See Entity key to learn more. |
containerKey | entityKey | No |
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. |
Property | Type | Required | Description |
---|---|---|---|
type |
| Yes |
The type information for the document. |
type.category | string | Yes |
The category of the document. Allowed values:
|
type.mimeType | string | Yes | The MIME type of the document. |
type.iconUrl | string | No | The URL for the document type's icon. |
type.fileExtension | string | No | The file extension for the document type. |
content |
| Yes | The content information for the document. |
content.mimeType | string | Yes | The MIME type of the document content. |
content.binary | string | No | The binary content of the document (base64 encoded). Either |
content.text | string | No | The text content of the document. Either |
collaborators |
| No | List of collaborators on the document. |
byteSize | integer | No | The size of the document in bytes. |
exportLinks |
| No | List of export links for the document. |
exportLinks.mimeType | string | No | The MIME type of the export link. |
exportLinks.url | string | Yes | The URL for the export link. |
labels |
| No | List of labels associated with the document. |
reactions |
| No | List of reactions to the document. |
reactions.reactionType | string | Yes |
The type of reaction. Allowed values: |
reactions.total | integer | Yes | The total number of this reaction type. |
1 2{ "objects" : [ { "schemaVersion" : "1.0", "id" : "my-document", "updateSequenceNumber" : 123, "displayName" : "My Document", "url" : "https://document.com", "thumbnail" : { "externalUrl" : "https://document-thumbnail.com" }, "createdAt" : "2024-04-16T09:01:32+00:00", "parentKey" : { "type" : "atlassian:document", "value" : { "entityId" : "another-document" } }, "permissions" : [ { "action" : "read", "accessControls" : [ { "principals" : [ { "type" : "EVERYONE" } ] } ] } ], "atlassian:document" : { "type" : { "category" : "document", "iconUrl" : "http://example-icon.com/icon/111" }, "content" : { "mimeType" : "text/plain", "text" : "Really large content here..." }, "byteSize" : 456, "labels" : [ "label1", "label2" ], "reactions" : [ { "type" : "LIKE", "total" : 1 } ], "exportLinks" : [ { "mimeType" : "text/plain", "url" : "http://localhost" } ] }, "containerKey" : { "type" : "atlassian:space", "value" : { "entityId" : "CFG3W7TKJ" } } } ], "operationType" : "NORMAL" }
Rate this page: