Last updated Jul 16, 2025

Deployment

The Deployment object type represents a deployment object. atlassian:deployment should be used to ingest deployment-specific fields.

Payload structure

1
2
  objects {}
  ├─ 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:deployment
  ├─ deploymentSequenceNumber (integer) [Required]
  ├─ label (string) [Optional]
  ├─ state (string) [Required]
  ├─ duration (integer) [Optional]
  ├─ pipeline (PipelineDetails) [Optional]
      ├─ id (string) [Required]
      ├─ displayName (string) [Required]
      └─ url (string) [Required]
  ├─ environment (EnvironmentDetails) [Required]
      ├─ id (string) [Required]
      ├─ displayName (string) [Required]
      └─ type (string) [Required]
  ├─ commands (List<Command>) [Optional]
      ├─ command (string) [Required]
  ├─ triggeredBy (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]
  └─ region (string) [Optional]

You may send related objects like builds or repositories as separate objects in the same payload or in separate requests.

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.
descriptionstringNoThe 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)

createdByuserNo

The user that created the object.

See User to learn more.

lastUpdatedAtstringYes

The date the object was last updated.

Format: Instant (ISO8601 / RFC3339)

lastUpdatedByuserNo

The user that last updated the object.

See User to learn more.

ownerslist<User>NoList 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.

containerKeyentityKeyNo

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.

Deployment properties

PropertyTypeRequiredDescription
deploymentSequenceNumber

integer

Yes

This is the identifier for the Deployment. It must be unique for the specified Pipeline and Environment. It must be a monotonically increasing number, as this is used to sequence the Deployments.

label

string

No

A descriptive label for the deployment.

state

string

Yes

The current state of the deployment.

Allowed values: pending, in_progress, successful, cancelled, failed, rolled_back, unknown

durationintegerNo

The duration of the deployment.

pipelinePipelineDetailsNo

The pipeline associated with this deployment.

pipeline.idstringYes

The unique identifier for the pipeline.

Maximum length: 255

pipeline.displayNamestringYes

The display name of the pipeline.

Maximum length: 255

pipeline.urlstringYes

The URL of the pipeline.

environmentEnvironmentDetailsYes

The environment where the deployment is happening.

environment.idstringYes

The unique identifier for the environment.

Maximum length: 255

environment.displayNamestringYes

The display name of the environment.

Maximum length: 255

environment.typestringYes

The type of environment.

Allowed values: production, staging, testing, development, unmapped

commandsList<Command>No

List of commands executed during the deployment.

commands.commandstringYes

The command that was executed.

triggeredByUserReferenceNo

The user who triggered the deployment.

regionstringNo

The region where the deployment is taking place.

Example payload

1
2
{
  "objects" : [ {
    "schemaVersion" : "2.0",
    "id" : "pipelineId/e9c906a7-451f-4fa6-ae1a-c389e2e2d87c/environmentId/8ec94d72-a4fc-4ac0-b31d-c5a595f373ba/deploymentSequenceNumber/100",
    "updateSequenceNumber" : 1,
    "displayName" : "Test Deployment",
    "description" : "A test deployment to staging",
    "url" : "https://entity.example.com/1",
    "createdAt" : "2024-07-01T05:00:45Z",
    "createdBy" : {
      "externalId" : "external-id-1"
    },
    "lastUpdatedAt" : "2024-07-09T14:27:37.000Z",
    "lastUpdatedBy" : {
      "externalId" : "external-id-1"
    },
    "containerKey" : {
      "type" : "atlassian:repository",
      "value" : {
        "repositoryId" : "my-repo-1"
      }
    },
    "permissions" : [ {
      "action" : "read",
      "accessControls" : [ {
        "principals" : [ {
          "type" : "EVERYONE"
        } ]
      } ]
    } ],
    "atlassian:deployment" : {
      "deploymentSequenceNumber" : 100,
      "pipeline" : {
        "id" : "e9c906a7-451f-4fa6-ae1a-c389e2e2d87c",
        "displayName" : "Test Deployment",
        "url" : "http://mydeployer.com/project1"
      },
      "environment" : {
        "id" : "8ec94d72-a4fc-4ac0-b31d-c5a595f373ba",
        "displayName" : "US East",
        "type" : "staging"
      },
      "label" : "Release 2018-01-20_08-47-bc2421a",
      "state" : "in_progress",
      "duration" : 47,
      "commands" : [ {
        "command" : "initiate_deployment_gating"
      } ],
      "triggeredBy" : {
        "accountId" : "5b10ac8d82e05b22cc7d4ef5",
        "email" : "author@example.com"
      }
    }
  } ],
  "operationType" : "NORMAL"
}

Rate this page: