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

Deployment

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

Additional required fields for Deployment:

  • description - Required

Other overrides:

  • containerKey - When provided, must be type atlassian:repository

You may send the container repository as a separate entity in the same payload or in a separate request.

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) [Optional]
      ├─ type (string) [Required]
      └─ value (jsonNode) [Required]
  └─ permissions [] [Required]
      └─ accessControls
         └─ principals
            └─type
  └─ associations [] [Optional]
      ├─ associationType (string)
      └─ values []
      
  atlassian:deployment
  ├─ deploymentSequenceNumber (integer) [Required]
  ├─ label (string) [Optional]
  ├─ state (string) [Required] — Allowed values: PENDING, IN_PROGRESS, SUCCESSFUL, CANCELLED, FAILED, ROLLED_BACK, UNKNOWN
  ├─ duration (integer) [Optional]
  ├─ pipeline (PipelineDetails) [Required]
      ├─ id (string) [Required]
      ├─ displayName (string) [Required]
      └─ url (string) [Required]
  ├─ environment (EnvironmentDetails) [Required]
      ├─ id (string) [Required]
      ├─ displayName (string) [Required]
      └─ type (string) [Required] — Allowed values: PRODUCTION, STAGING, TESTING, DEVELOPMENT, UNMAPPED
  ├─ commands (List<Command>) [Optional] — Only valid when state is PENDING
      └─ command (string) [Required] — Allowed values: initiate_deployment_gating
  ├─ triggeredBy (userReference) [Optional]
      ├─ accountId (string) [Optional]
      ├─ email (string) [Optional]
      └─ externalId (string) [Required]
  └─ region (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.

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.

pipelinePipelineDetailsYes

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 identifier of the environment. Must be unique for the provider.

Maximum length: 255

environment.displayNamestringYes

The display name of the environment.

Maximum length: 255

environment.typestringYes

The type of the environment.

Allowed values: PRODUCTION, STAGING, TESTING, DEVELOPMENT, UNMAPPED

commandsList<Command>No

List of commands for the deployment. Can only be used when state is PENDING.

commands.commandstringYes

The command to execute.

Allowed values: initiate_deployment_gating

triggeredByuserReferenceNo

A reference to 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" : [ {
      "accessControls" : [ {
        "principals" : [ {
          "type" : "ATLASSIAN_WORKSPACE"
        } ]
      } ]
    } ],
    "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,
      "triggeredBy" : {
        "accountId" : "5b10ac8d82e05b22cc7d4ef5",
        "email" : "author@example.com",
        "externalId" : "external-user-123"
      }
    }
  } ]
}

Rate this page: