createDeployment
This API operation and its parameters support the request to create a SAP Commerce Cloud deployment.
Command
POST https://portalapi.commerce.ondemand.com/v2/subscriptions/{subscriptionCode}/deployments
Parameters
| Name | Required | Description |
|---|---|---|
|
createDeploymentRequestDTO (body) |
Yes |
Example Value | Model {
"buildCode": "string",
"databaseUpdateMode": "NONE",
"environmentCode": "string",
"strategy": "ROLLING_UPDATE"
}
|
|
subscriptionCode string (path) |
Yes | The code of the subscription associated to the build that you want to deploy.
You can find the subscription code in the Cloud Portal URL. It appears after subscription/ in the URL. |
Responses
| Code | Description |
|---|---|
| 201 | Created
Example Value | Model {
"code": "string"
} |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |