Create a new Deployment
An association of a Build with an Environment so that the Build is published in the Environment.
Create a new Deployment.
Path parameters
-
The SID of the Service to create the Deployment resource under.
-
The SID of the Environment for the Deployment.
POST /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
curl \
-X POST https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'BuildSid=string'
Request example
{
"BuildSid": "string"
}
Request examples
{
"BuildSid": "string"
}
Response examples (201)
{
"account_sid": "string",
"build_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"environment_sid": "string",
"service_sid": "string",
"sid": "string",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"build_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"environment_sid": "string",
"service_sid": "string",
"sid": "string",
"url": "https://example.com"
}