Skip to content
GitmoapAPIBeta
Schema

DeploymentDriftRow

How far a service's current deployment to one environment is behind its repository's default branch. A service spanning several repositories has one of these per repository.

Shape

  • default_branchstring
  • deployed_shastring
  • environmentEnvironmentSummary
    • The EnvironmentSummary schema
    • archivedboolean
    • environment_idEnvironmentId (string · uuid)
    • slugEnvironmentSlug (string)
    • tierEnvironmentTierdevelopmenttestingstagingproductionWhat kind of environment this is, whatever it is called: development, testing, staging or production. A production environment is protected by default.
    • display_namestring or nulloptional
    • urlstring or nulloptional
  • repository_idRepositoryId (string · uuid)
  • repository_pathstring
  • commitsarray of DriftCommitoptionalThe commits the deployment is missing, at most 100. When there are more, truncated is true and commits_behind still gives the full count.
  • commits_behindinteger · int32 or nulloptional0–∞How many commits the default branch has that the deployed commit does not. Absent when the deployed commit can no longer be read, for example after a force-push.
  • truncatedbooleanoptional

Example

Synthesized example
{
"default_branch": "main",
"deployed_sha": "d80aaa73c88f6abf531b59c0c5ae8086b9fd875b",
"environment": {
"archived": false,
"environment_id": "bbbccab4-f744-4f93-a75f-96d675cde9d9",
"scope": {
"group": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69"
},
"slug": "slug-e697",
"tier": "development",
"display_name": "Lin Park",
"url": "https://gitmoap.example/acme/76a55bc4"
},
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"repository_path": "repository-path-eab3",
"commits": [
{
"authored_at": "2026-10-10T18:23:25Z",
"message": "Label every synthesized example",
"sha": "16532029e894b1be1a599e00aa80e2cd3b0e734e"
}
],
"commits_behind": 7,
"truncated": false
}

Graph

Used by

Sent by 0 operations

No operation takes it as a request body.