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.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZE[0-9a-fA-F]{32}$
.
POST
/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
curl \
--request POST 'https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'BuildSid=ZB00000000000000000000000000000000&IsPlugin=false'
Request example
{"BuildSid"=>"ZB00000000000000000000000000000000", "IsPlugin"=>false}
Response examples (201)
{
"sid": "ZD00000000000000000000000000000000",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Deployments/ZD00000000000000000000000000000000",
"build_sid": "ZB00000000000000000000000000000000",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ZS00000000000000000000000000000000",
"date_created": "2018-11-10T20:00:00Z",
"date_updated": "2018-11-10T20:00:00Z",
"environment_sid": "ZE00000000000000000000000000000000"
}