Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Object types
Object operations
User operations
Group operations
Last updated Jul 16, 2025

Commit

The Commit object type represents a commit object within a repository. atlassian:commit should be used to ingest commit-specific fields.

Additional required fields for Commit:

  • description - Required
  • containerKey - Required with type atlassian:repository

You must send the container repository as a separate entity in the same payload.

Payload structure

1
2
  objects {}
  ├─ schemaVersion (string) [Required]
  ├─ id (string) [Required]
  ├─ updateSequenceNumber (long) [Required]
  ├─ displayName (string) [Required]
  ├─ description (string) [Required]
  ├─ url (string) [Required]
  ├─ createdAt (Instant (ISO8601 / RFC3339)) [Required]
  └─ createdBy (userReference) [Optional]
      ├─ accountId (string) [Optional]
      ├─ email (string) [Optional]
      └─ externalId (string) [Required]
  └─ lastUpdatedAt (Instant (ISO8601 / RFC3339)) [Required]
  └─ lastUpdatedBy (userReference) [Optional]
      ├─ accountId (string) [Optional]
      ├─ email (string) [Optional]
      └─ externalId (string) [Required]
  └─ containerKey (EntityKey) [Required]
      ├─ type (string) [Required]
      └─ value (jsonNode) [Required]
  └─ permissions [] [Required] 
      └─ accessControls
         └─ principals
            └─type
  └─ associations [] [Optional]
      ├─ associationType (string)
      └─ values []

  atlassian:commit
  ├─ hash (string) [Optional]
  ├─ displayId (string) [Optional]
  ├─ message (string) [Optional]
  ├─ author (userReference) [Optional]
      ├─ accountId (string) [Optional]
      ├─ email (string) [Optional]
      └─ externalId (string) [Required]
  ├─ flags (List<string>) [Required] — Allowed values: MERGE_COMMIT. Maximum 1 element.
  ├─ fileCount (integer) [Required]
  ├─ files (List<FileInfo>) [Required]
      ├─ path (string) [Required]
      ├─ url (string) [Required]
      ├─ changeType (string) [Required] — Allowed values: ADDED, COPIED, DELETED, MODIFIED, MOVED, UNKNOWN
      ├─ linesAdded (Integer) [Required]
      └─ linesRemoved (Integer) [Required]
  └─ authorTimestamp (string) [Optional]

Common properties

PropertyTypeRequiredDescription
schemaVersion

string

YesThe schema version of the object.
id

string

YesThe ID of the object in the source system.
updateSequenceNumberlongYesA 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.
displayNamestringYesThe display name of the object.
descriptionstringYesThe description of the object.
urlstringYesThe URL from the provider which the object is accessible from.
createdAtstringYes

The date the object was created.

Format: Instant (ISO8601 / RFC3339)

createdByuserReferenceNo

A reference to the user that created the object.

See userReference to learn more.

lastUpdatedAtstringYes

The date the object was last updated.

Format: Instant (ISO8601 / RFC3339)

lastUpdatedByuserReferenceNo

A reference to the user that last updated the object.

See userReference to learn more.

ownerslist<userReference>NoList of references of users that own the object.
thumbnailthumbnailNo

The thumbnail of the object.

See Thumbnail to learn more.

parentKeyentityKeyNo

The ID of the parent object. If null, it is a standalone object.

See Entity key to learn more.

containerKeyentityKeyYes

The container identifier that this object belongs to.

See Entity key to learn more.

permissionslist<Permissions>Yes

The permissions configuration of the object.

See Permissions to learn more.

associationsassociationNo

List of objects associated with the object. Generally used to link an external object to a Atlassian object.

See Association to learn more.

Commit properties

PropertyTypeRequiredDescription
hash

string

No

The unique hash identifier for the commit.

displayId

string

No

The display identifier for the commit (typically a shortened hash).

message

string

No

The commit message.

authoruserReferenceNo

A reference to the user who is the author of the commit.

flagsList<string>Yes

List of flags associated with the commit.

Allowed values: MERGE_COMMIT

Maximum elements: 1

fileCountintegerYes

The total number of files changed in this commit.

filesList<FileInfo>Yes

List of files changed in this commit.

files.pathstringYes

The file path relative to repository root.

files.urlstringYes

The URL to view the file.

files.changeTypestringYes

The type of change made to the file.

Allowed values: ADDED, COPIED, DELETED, MODIFIED, MOVED, UNKNOWN

files.linesAddedintegerYes

The number of lines added in the file.

files.linesRemovedintegerYes

The number of lines removed from the file.

authorTimestampstringNo

The timestamp when the commit was authored.

Format: Instant (ISO8601 / RFC3339)

Example payload

1
2
{
  "objects" : [ {
    "id" : "repo-1",
    "updateSequenceNumber" : 1,
    "displayName" : "My repository",
    "description" : "My test repo",
    "url" : "https://bitbucket.org/my-project/my-repo/src/master/",
    "lastUpdatedAt" : "2023-07-19T15:27:37.000Z",
    "atlassian:repository" : {
      "forkOf" : "repo-2",
      "avatar" : "avatar.png",
      "avatarDescription" : "test icon"
    }
  }, {
    "id" : "commit-1",
    "updateSequenceNumber" : 1,
    "displayName" : "Fixed bug 111",
    "description" : "SAI-123 A commit that fixes things",
    "url" : "https://bitbucket.org/my-project/my-repo/src/master/",
    "lastUpdatedAt" : "2023-07-19T15:27:37.000Z",
    "containerKey" : {
      "type" : "atlassian:repository",
      "value" : {
        "repositoryId" : "repo-1"
      }
    },
    "owners" : [ {
      "externalId" : "external-id-1",
      "email" : "user2@example.com"
    } ],
    "atlassian:commit" : {
      "flags" : [ "MERGE_COMMIT" ],
      "fileCount" : 34,
      "files" : [ {
        "path" : "a/b/c",
        "url" : "https://url.com/a/b/c",
        "changeType" : "ADDED",
        "linesAdded" : 23,
        "linesRemoved" : 0
      } ]
    }
  } ]
}

Rate this page: