Was this article helpful?
Thanks for your feedback
Post this release, i.e., July 26, 2022, we will stop supporting the ability to add multiple content deployment servers while setting up a specific publishing environment in Contentstack. We recommend that you instead make use of Webhooks to trigger deployment to multiple web servers whenever you publish content to an environment.
Once this product update goes live, all Content Management API (CMA) requests related to environments will no longer return the deploy_content and servers keys in the response. Here's a sample of an updated response body that returns environment data when you run the Get all environments API request:
{
"environments": [{
"urls": [{
"url": "http://localhost.com",
"locale": "en-us"
}],
"name": "local",
"uid": "blta1212be1fcfdfad2",
"created_by": "blt12e12121d12d1f81212a1b2f",
"updated_by": "blt12e12121d12d1f81212a1b2f",
"created_at": "2017-06-13T12:28:59.488Z",
"updated_at": "2018-11-01T13:25:00.349Z",
"ACL": [
],
"_version": 2
},
{
"urls": [{
"url": "/staging",
"locale": "en-us"
}],
"name": "staging",
"uid": "bltf66ca6a66d66cecf",
"created_by": "blt6565a6b056fc5bc6",
"updated_by": "blt6565a6b056fc5bc6",
"created_at": "2019-05-03T08:11:12.583Z",
"updated_at": "2019-05-03T08:11:12.583Z",
"ACL": [
],
"_version": 1
},
{
"urls": [{
"url": "/production",
"locale": "en-us"
}],
"name": "production",
"uid": "bltfd8888c8bd8cb8cb",
"created_by": "blt22e22222d22d2f22222a2b2f",
"updated_by": "blt22e22222d22d2f22222a2b2f",
"created_at": "2018-08-09T13:39:37.117Z",
"updated_at": "2018-08-09T13:39:37.117Z",
"ACL": [
],
"_version": 1
}
]
}
Please consider these missing parameters to avoid breaking changes in your application.
Was this article helpful?
Thanks for your feedback