Create a new Deployment

POST /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments

An association of a Build with an Environment so that the Build is published in the Environment.

Create a new Deployment.

Path parameters

  • ServiceSid string Required

    The SID of the Service to create the Deployment resource under.

  • EnvironmentSid string Required

    The SID of the Environment for the Deployment.

application/x-www-form-urlencoded

Body

  • BuildSid string

    The SID of the Build for the Deployment.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZB[0-9a-fA-F]{32}$.

Responses

  • 201

    Created

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the Deployment resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • build_sid string | null

      The SID of the Build for the deployment

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZB[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null

      The ISO 8601 date and time in GMT when the Deployment resource was created

    • date_updated string(date-time) | null

      The ISO 8601 date and time in GMT when the Deployment resource was last updated

    • environment_sid string | null

      The SID of the Environment for the Deployment

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZE[0-9a-fA-F]{32}$.

    • service_sid string | null

      The SID of the Service that the Deployment resource is associated with

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZS[0-9a-fA-F]{32}$.

    • sid string | null

      The unique string that identifies the Deployment resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZD[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the Deployment resource

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"
}
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"
}