Deployment revisions represent previous configurations of a Deployment.
Deployment revisions are created automatically for every successful Deployment and can be used to inspect earlier configurations or roll back a Deployment to a previous version.
Get DeploymentRevision
Get DeploymentRevision by Deployment ID
manage_project:{projectKey}manage_connectors_deployments:{projectKey}view_connectors_deployments:{projectKey}projectKeyString ​ | The commercetools Project key. |
idString ​ | id of the Deployment |
revisionInt64 ​ | revisionNumber of the DeploymentRevision.Minimum: 1​ |
regionString ​ | Region in which the Project is hosted. |
application/jsoncurl --get https://connect.{region}.commercetools.com/{projectKey}/deployments/{id}/revisions/{revision} -i \
--header "Authorization: Bearer ${BEARER_TOKEN}"{
"revisionNumber": 7,
"currentRevision": false,
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
},
"globalConfiguration": {
"standardConfiguration": [
{
"key": "GLOBAL_CONFIG_KEY",
"value": "global config key value"
}
],
"securedConfiguration": []
},
"applications": [
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
]
}
],
"createdAt": "2026-09-25T09:12:44.512Z"
}Get DeploymentRevision by Deployment Key
manage_project:{projectKey}manage_connectors_deployments:{projectKey}view_connectors_deployments:{projectKey}projectKeyString ​ | The commercetools Project key. |
keyString ​ | key of the Deployment |
revisionInt64 ​ | revisionNumber of the DeploymentRevision.Minimum: 1​ |
regionString ​ | Region in which the Project is hosted. |
application/jsoncurl --get https://connect.{region}.commercetools.com/{projectKey}/deployments/key={key}/revisions/{revision} -i \
--header "Authorization: Bearer ${BEARER_TOKEN}"{
"revisionNumber": 7,
"currentRevision": false,
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
},
"globalConfiguration": {
"standardConfiguration": [
{
"key": "GLOBAL_CONFIG_KEY",
"value": "global config key value"
}
],
"securedConfiguration": []
},
"applications": [
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
]
}
],
"createdAt": "2026-09-25T09:12:44.512Z"
}Query DeploymentRevisions
Returns the revisions of a Deployment, most recent first. Only versions that were deployed successfully are returned, so every result is a valid rollback target.
Query DeploymentRevisions by Deployment ID
Retrieves the revisions of a Deployment, most recent first.
Only versions that were deployed successfully are returned, so every result is a valid rollback target. At most 20 revisions are returned.
manage_project:{projectKey}manage_connectors_deployments:{projectKey}view_connectors_deployments:{projectKey}projectKeyString ​ | The commercetools Project key. |
idString ​ | id of the Deployment |
regionString ​ | Region in which the Project is hosted. |
application/jsoncurl --get https://connect.{region}.commercetools.com/{projectKey}/deployments/{id}/revisions -i \
--header "Authorization: Bearer ${BEARER_TOKEN}"[
{
"revisionNumber": 8,
"currentRevision": true,
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
},
"globalConfiguration": {
"standardConfiguration": [
{
"key": "GLOBAL_CONFIG_KEY",
"value": "global config key value"
}
],
"securedConfiguration": []
},
"applications": [
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
]
}
],
"rollbackRevision": 7,
"createdAt": "2026-09-25T09:12:44.512Z"
},
{
"revisionNumber": 7,
"currentRevision": false,
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
},
"globalConfiguration": {
"standardConfiguration": [
{
"key": "GLOBAL_CONFIG_KEY",
"value": "global config key value"
}
],
"securedConfiguration": []
},
"applications": [
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
]
}
],
"createdAt": "2026-09-25T09:12:44.512Z"
}
]Query DeploymentRevisions by Deployment Key
Retrieves the revisions of a Deployment, most recent first.
Only versions that were deployed successfully are returned, so every result is a valid rollback target. At most 20 revisions are returned.
manage_project:{projectKey}manage_connectors_deployments:{projectKey}view_connectors_deployments:{projectKey}projectKeyString ​ | The commercetools Project key. |
keyString ​ | key of the Deployment |
regionString ​ | Region in which the Project is hosted. |
application/jsoncurl --get https://connect.{region}.commercetools.com/{projectKey}/deployments/key={key}/revisions -i \
--header "Authorization: Bearer ${BEARER_TOKEN}"[
{
"revisionNumber": 8,
"currentRevision": true,
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
},
"globalConfiguration": {
"standardConfiguration": [
{
"key": "GLOBAL_CONFIG_KEY",
"value": "global config key value"
}
],
"securedConfiguration": []
},
"applications": [
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
]
}
],
"rollbackRevision": 7,
"createdAt": "2026-09-25T09:12:44.512Z"
},
{
"revisionNumber": 7,
"currentRevision": false,
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
},
"globalConfiguration": {
"standardConfiguration": [
{
"key": "GLOBAL_CONFIG_KEY",
"value": "global config key value"
}
],
"securedConfiguration": []
},
"applications": [
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
]
}
],
"createdAt": "2026-09-25T09:12:44.512Z"
}
]Rollback DeploymentRevision
The rollback creates a new Deployment version rather than removing the current one, so the current Deployment remains available as a revision.
Rollback DeploymentRevision by Deployment ID
Restores the configuration of the revision onto the Deployment. A new Deployment version is created from the revision and deployed.
manage_api_clients:{projectKey} scope is required if the connector version uses commercetools managed API Client credentials.Specific Error Codes:
manage_project:{projectKey}manage_connectors_deployments:{projectKey}projectKeyString ​ | The commercetools Project key. |
idString ​ | id of the Deployment |
revisionInt64 ​ | revisionNumber of the DeploymentRevision.Minimum: 1​ |
regionString ​ | Region in which the Project is hosted. |
application/jsonapplication/jsoncurl https://connect.{region}.commercetools.com/{projectKey}/deployments/{id}/revisions/{revision}/rollback -i \
--header "Authorization: Bearer ${BEARER_TOKEN}" \
--header 'Content-Type: application/json' \
--data-binary @- << DATA
{
"version" : 8
}
DATA{
"id": "13c72c44-7a8e-44f2-a570-b5e991f7021a",
"key": "deployment-key",
"version": 1,
"type": "preview",
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"key": "connector-key",
"version": 1,
"name": "Connectors name",
"description": "Connectors description",
"integrationTypes": ["other"],
"creator": {
"title": "Mr",
"name": "John Doe",
"email": "john.doe@example.com",
"company": "commercetools",
"noOfContributors": 200
},
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
},
"certified": true
},
"details": {
"build": {
"id": "a317ce94-5149-45ec-8717-d1c05b49005a",
"report": {
"entries": [
{
"type": "Warning",
"application": "service",
"title": "Failed during the execution of 'postDeploy' script",
"createdAt": "2023-08-08T17:00:59.327Z"
}
]
}
}
},
"applications": [
{
"id": "c9c3b342-c2ca-11ed-afa1-0242ac120002",
"applicationName": "app-1",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config-key-value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET_KEY",
"value": "config-secret-key-value"
}
],
"url": "app1.commercetools.app"
}
],
"deployedRegion": "europe-west1.gcp",
"preview": true,
"status": "Deployed"
}Rollback DeploymentRevision by Deployment Key
Restores the configuration of the revision onto the Deployment. A new Deployment version is created from the revision and deployed.
manage_api_clients:{projectKey} scope is required if the connector version uses commercetools managed API Client credentials.Specific Error Codes:
manage_project:{projectKey}manage_connectors_deployments:{projectKey}projectKeyString ​ | The commercetools Project key. |
keyString ​ | key of the Deployment |
revisionInt64 ​ | revisionNumber of the DeploymentRevision.Minimum: 1​ |
regionString ​ | Region in which the Project is hosted. |
application/jsonapplication/jsoncurl https://connect.{region}.commercetools.com/{projectKey}/deployments/key={key}/revisions/{revision}/rollback -i \
--header "Authorization: Bearer ${BEARER_TOKEN}" \
--header 'Content-Type: application/json' \
--data-binary @- << DATA
{
"version" : 8
}
DATA{
"id": "13c72c44-7a8e-44f2-a570-b5e991f7021a",
"key": "deployment-key",
"version": 1,
"type": "preview",
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"key": "connector-key",
"version": 1,
"name": "Connectors name",
"description": "Connectors description",
"integrationTypes": ["other"],
"creator": {
"title": "Mr",
"name": "John Doe",
"email": "john.doe@example.com",
"company": "commercetools",
"noOfContributors": 200
},
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
},
"certified": true
},
"details": {
"build": {
"id": "a317ce94-5149-45ec-8717-d1c05b49005a",
"report": {
"entries": [
{
"type": "Warning",
"application": "service",
"title": "Failed during the execution of 'postDeploy' script",
"createdAt": "2023-08-08T17:00:59.327Z"
}
]
}
}
},
"applications": [
{
"id": "c9c3b342-c2ca-11ed-afa1-0242ac120002",
"applicationName": "app-1",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config-key-value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET_KEY",
"value": "config-secret-key-value"
}
],
"url": "app1.commercetools.app"
}
],
"deployedRegion": "europe-west1.gcp",
"preview": true,
"status": "Deployed"
}Representations
DeploymentRevision
revisionNumber​Int64​ | Version of the Deployment this revision was taken from. |
currentRevision​Boolean​ | Whether this revision is the current version of the Deployment. |
connector​ | Identity, version, and source repository of the Connector that was deployed. |
globalConfiguration​ | Global configuration applied to all applications at this revision. |
applications​Array of DeploymentRevisionApplication​ | Configuration of each application at this revision. |
rollbackRevision​Int64​ | The revision this one restored. Only present when the revision was itself produced by a rollback. |
createdAt​DateTime​ | Date and time (UTC) the revision was created. |
{
"revisionNumber": 7,
"currentRevision": false,
"connector": {
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
},
"globalConfiguration": {
"standardConfiguration": [
{
"key": "GLOBAL_CONFIG_KEY",
"value": "global config key value"
}
],
"securedConfiguration": []
},
"applications": [
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
]
}
],
"createdAt": "2026-09-25T09:12:44.512Z"
}DeploymentRevisionConnector
id​String​ | id of the Connector. |
version​Int​ | Version of the Connector. |
repository​Repository​ | Details of the GitHub repository that contains the Connect applications. |
{
"id": "a49aa2c5-15b6-41c4-88af-4b7afdcc07a5",
"version": 1,
"repository": {
"url": "git@github.com:commercetools/connect-application-kit.git",
"tag": "0.0.0"
}
}DeploymentRevisionApplication
applicationName​String​ | Name of the application. MinLength:Â2​MaxLength: 256​Pattern: ^[A-Za-z0-9_-]+$​ |
standardConfiguration​Array of ConfigurationValue​ | Contains values of keys that are saved in plain text. |
securedConfiguration​Array of ConfigurationValue​ | Contains keys of secret values. The values themselves are masked. |
topic​String​ | Google Cloud Pub/Sub Topic when application type is event. |
schedule​String​ | Cron schedule for when application type is job. |
retryPolicy​RetryPolicy​ | Retry policy applied when application type is event. |
{
"applicationName": "event-application",
"standardConfiguration": [
{
"key": "CONFIG_KEY",
"value": "config key value"
}
],
"securedConfiguration": [
{
"key": "CONFIG_SECRET",
"value": "********"
}
],
"retryPolicy": {
"strategy": "exponential-backoff",
"minBackoffSeconds": 10,
"maxBackoffSeconds": 120,
"maxAttempts": 10
}
}DeploymentRollback
Body of a rollback request. The revision to restore is given in the request path, so the body only carries the concurrency check.
version​Int64​ | Expected version of the Deployment on which the changes apply. |
{
"version": 8
}