Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

Menu

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Deployment

Deployments let you set a particular Build to be live on a particular Environment.

Deployment properties

Names in PHP format
sid
sid<ZD> Not PII

The unique SID identifier of this Deployment.

accountSid
sid<AC> Not PII

The unique SID identifier of the Account that owns this Deployment.

serviceSid
sid<ZS> Not PII

The unique SID identifier of the Service for this Deployment.

environmentSid
sid<ZE> Not PII

The unique SID identifier of the Environment for this Deployment.

buildSid
sid<ZB> Not PII

The unique SID identifier of the Build for this Deployment.

dateCreated
date_time<iso8601> Not PII

The date that this Deployment was created, given in ISO 8601 format.

dateUpdated
date_time<iso8601> Not PII

The date that this Deployment was updated, given in ISO 8601 format.

url
url Not PII

The URL of this Deployment.

Create a Deployment resource

post
https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
Parameters
Names in None format
service_sid
Required
post sid_like<ZS> Not PII

The unique SID identifier of the Service for this Deployment.

environment_sid
Required
post sid<ZE> Not PII

The unique SID identifier of the Environment for this Deployment.

build_sid
Required
post sid<ZB> Not PII

The unique SID identifier of the Build to be deployed for this Deployment. Required.

Example
        
        
        
        

        Fetch a Deployment resource

        get
        https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}
        Parameters
        Names in None format
        service_sid
        Required
        get sid_like<ZS> Not PII

        The unique SID identifier of the Service for this Deployment.

        environment_sid
        Required
        get sid<ZE> Not PII

        The unique SID identifier of the Environment for this Deployment.

        sid
        Required
        get sid<ZD> Not PII

        The unique SID identifier of this Deployment.

        Example
              
              
              
              

              Read multiple Deployment resources

              get
              https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
              Parameters
              Names in None format
              service_sid
              Required
              get sid_like<ZS> Not PII

              The unique SID identifier of the Service for these Deployments.

              environment_sid
              Required
              get sid<ZE> Not PII

              The unique SID identifier of the Environment for these Deployments.

              Example
                    
                    
                    
                    
                    Rate this page:

                    Need some help?

                    We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.