openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 75.2 kB
JSON
{"openapi":"3.0.1","servers":[{"url":"https://serverless.twilio.com"}],"info":{"contact":{"email":"support@twilio.com","name":"Twilio Support","url":"https://support.twilio.com"},"description":"This is the public Twilio REST API.","license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0.html"},"termsOfService":"https://www.twilio.com/legal/tos","title":"Twilio - Serverless","version":"1.55.0","x-apisguru-categories":["telecom","messaging"],"x-logo":{"url":"https://static1.twilio.com/marketing/bundles/marketing/img/logos/wordmark-red.svg"},"x-origin":[{"format":"openapi","url":"https://raw.githubusercontent.com/twilio/twilio-oai/main/spec/json/twilio_serverless_v1.json","version":"3.0"}],"x-providerName":"twilio.com","x-serviceName":"twilio_serverless_v1"},"tags":[{"name":"ServerlessV1Asset"},{"name":"ServerlessV1AssetVersion"},{"name":"ServerlessV1Build"},{"name":"ServerlessV1BuildStatus"},{"name":"ServerlessV1Deployment"},{"name":"ServerlessV1Environment"},{"name":"ServerlessV1Function"},{"name":"ServerlessV1FunctionVersion"},{"name":"ServerlessV1FunctionVersionContent"},{"name":"ServerlessV1Log"},{"name":"ServerlessV1Service"},{"name":"ServerlessV1Variable"}],"paths":{"/v1/Services":{"description":"The top-level resource for a Serverless application, which serves as a container for the application environments.","get":{"description":"Retrieve a list of all Services.","operationId":"ListService","parameters":[{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"services":{"items":{"$ref":"#/components/schemas/serverless.v1.service"},"type":"array"}},"title":"ListServiceResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Service"],"x-maturity":["Beta"]},"post":{"description":"Create a new Service resource.","operationId":"CreateService","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"FriendlyName":{"description":"A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters.","type":"string"},"IncludeCredentials":{"description":"Whether to inject Account credentials into a function invocation context. The default value is `true`.","type":"boolean"},"UiEditable":{"description":"Whether the Service's properties and subresources can be edited via the UI. The default value is `false`.","type":"boolean"},"UniqueName":{"description":"A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique.","type":"string"}},"required":["UniqueName","FriendlyName"],"title":"CreateServiceRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Service"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","unique_name","friendly_name"],"dependentProperties":{"assets":{"mapping":{"service_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Assets"},"builds":{"mapping":{"service_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Builds"},"environments":{"mapping":{"service_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Environments"},"functions":{"mapping":{"service_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Functions"}},"pathType":"list"}},"/v1/Services/{ServiceSid}/Assets":{"description":"A wrapper that represents a static file and groups the different Versions of the static file.","get":{"description":"Retrieve a list of all Assets.","operationId":"ListAsset","parameters":[{"description":"The SID of the Service to read the Asset resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"assets":{"items":{"$ref":"#/components/schemas/serverless.v1.service.asset"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListAssetResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Asset"],"x-maturity":["Beta"]},"post":{"description":"Create a new Asset resource.","operationId":"CreateAsset","parameters":[{"description":"The SID of the Service to create the Asset resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"FriendlyName":{"description":"A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.","type":"string"}},"required":["FriendlyName"],"title":"CreateAssetRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.asset"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Asset"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","date_created"],"dependentProperties":{"asset_versions":{"mapping":{"asset_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Assets/{asset_sid}/Versions"}},"parent":"/Services/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions":{"description":"The content of an Asset.","get":{"description":"Retrieve a list of all Asset Versions.","operationId":"ListAssetVersion","parameters":[{"description":"The SID of the Service to read the Asset Version resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Asset resource that is the parent of the Asset Version resources to read.","in":"path","name":"AssetSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"asset_versions":{"items":{"$ref":"#/components/schemas/serverless.v1.service.asset.asset_version"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListAssetVersionResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1AssetVersion"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","path","visibility","date_created"],"mountName":"asset_versions","parent":"/Services/{ServiceSid}/Assets/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}":{"description":"The content of an Asset.","get":{"description":"Retrieve a specific Asset Version.","operationId":"FetchAssetVersion","parameters":[{"description":"The SID of the Service to fetch the Asset Version resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Asset resource that is the parent of the Asset Version resource to fetch.","in":"path","name":"AssetSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the Asset Version resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZN[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.asset.asset_version"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1AssetVersion"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","path","visibility","date_created"],"mountName":"asset_versions","parent":"/Services/{ServiceSid}/Assets/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Assets/{Sid}":{"delete":{"description":"Delete an Asset resource.","operationId":"DeleteAsset","parameters":[{"description":"The SID of the Service to delete the Asset resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID that identifies the Asset resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Asset"],"x-maturity":["Beta"]},"description":"A wrapper that represents a static file and groups the different Versions of the static file.","get":{"description":"Retrieve a specific Asset resource.","operationId":"FetchAsset","parameters":[{"description":"The SID of the Service to fetch the Asset resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID that identifies the Asset resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.asset"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Asset"],"x-maturity":["Beta"]},"post":{"description":"Update a specific Asset resource.","operationId":"UpdateAsset","parameters":[{"description":"The SID of the Service to update the Asset resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID that identifies the Asset resource to update.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"FriendlyName":{"description":"A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.","type":"string"}},"required":["FriendlyName"],"title":"UpdateAssetRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.asset"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Asset"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","date_created"],"dependentProperties":{"asset_versions":{"mapping":{"asset_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Assets/{asset_sid}/Versions"}},"parent":"/Services/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Builds":{"description":"A collection of Function Versions, Asset Versions, Dependencies, and a Runtime that form a deployable unit.","get":{"description":"Retrieve a list of all Builds.","operationId":"ListBuild","parameters":[{"description":"The SID of the Service to read the Build resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"builds":{"items":{"$ref":"#/components/schemas/serverless.v1.service.build"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListBuildResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Build"],"x-maturity":["Beta"]},"post":{"description":"Create a new Build resource. At least one function version or asset version is required.","operationId":"CreateBuild","parameters":[{"description":"The SID of the Service to create the Build resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"AssetVersions":{"description":"The list of Asset Version resource SIDs to include in the Build.","items":{"maxLength":34,"minLength":34,"pattern":"^ZN[0-9a-fA-F]{32}$","type":"string"},"type":"array"},"Dependencies":{"description":"A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency.","type":"string"},"FunctionVersions":{"description":"The list of the Function Version resource SIDs to include in the Build.","items":{"maxLength":34,"minLength":34,"pattern":"^ZN[0-9a-fA-F]{32}$","type":"string"},"type":"array"},"Runtime":{"description":"The Runtime version that will be used to run the Build resource when it is deployed.","type":"string"}},"title":"CreateBuildRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.build"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Build"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","status","date_created"],"dependentProperties":{"build_status":{"mapping":{"service_sid":"service_sid","sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Builds/{sid}/Status"}},"parent":"/Services/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Builds/{Sid}":{"delete":{"description":"Delete a Build resource.","operationId":"DeleteBuild","parameters":[{"description":"The SID of the Service to delete the Build resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Build resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZB[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Build"],"x-maturity":["Beta"]},"description":"A collection of Function Versions, Asset Versions, Dependencies, and a Runtime that form a deployable unit.","get":{"description":"Retrieve a specific Build resource.","operationId":"FetchBuild","parameters":[{"description":"The SID of the Service to fetch the Build resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Build resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZB[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.build"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Build"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","status","date_created"],"dependentProperties":{"build_status":{"mapping":{"service_sid":"service_sid","sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Builds/{sid}/Status"}},"parent":"/Services/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Builds/{Sid}/Status":{"description":"The status of a Build resource.","get":{"description":"Retrieve a specific Build resource.","operationId":"FetchBuildStatus","parameters":[{"description":"The SID of the Service to fetch the Build resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Build resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZB[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.build.build_status"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1BuildStatus"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","status"],"mountName":"build_status","parent":"/Services/{ServiceSid}/Builds/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Environments":{"description":"Represents a deployed build of a given set of Functions and/or Assets at a specific URL.","get":{"description":"Retrieve a list of all environments.","operationId":"ListEnvironment","parameters":[{"description":"The SID of the Service to read the Environment resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"environments":{"items":{"$ref":"#/components/schemas/serverless.v1.service.environment"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListEnvironmentResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Environment"],"x-maturity":["Beta"]},"post":{"description":"Create a new environment.","operationId":"CreateEnvironment","parameters":[{"description":"The SID of the Service to create the Environment resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"DomainSuffix":{"description":"A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters.","type":"string"},"UniqueName":{"description":"A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters.","type":"string"}},"required":["UniqueName"],"title":"CreateEnvironmentRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Environment"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","unique_name","domain_name","build_sid"],"dependentProperties":{"deployments":{"mapping":{"environment_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Environments/{environment_sid}/Deployments"},"logs":{"mapping":{"environment_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Environments/{environment_sid}/Logs"},"variables":{"mapping":{"environment_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Environments/{environment_sid}/Variables"}},"parent":"/Services/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments":{"description":"An association of a Build with an Environment so that the Build is published in the Environment.","get":{"description":"Retrieve a list of all Deployments.","operationId":"ListDeployment","parameters":[{"description":"The SID of the Service to read the Deployment resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment used by the Deployment resources to read.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"deployments":{"items":{"$ref":"#/components/schemas/serverless.v1.service.environment.deployment"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListDeploymentResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Deployment"],"x-maturity":["Beta"]},"post":{"description":"Create a new Deployment.","operationId":"CreateDeployment","parameters":[{"description":"The SID of the Service to create the Deployment resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment for the Deployment.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"BuildSid":{"description":"The SID of the Build for the Deployment.","maxLength":34,"minLength":34,"pattern":"^ZB[0-9a-fA-F]{32}$","type":"string"}},"title":"CreateDeploymentRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment.deployment"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Deployment"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","build_sid","date_created"],"parent":"/Services/{ServiceSid}/Environments/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}":{"description":"An association of a Build with an Environment so that the Build is published in the Environment.","get":{"description":"Retrieve a specific Deployment.","operationId":"FetchDeployment","parameters":[{"description":"The SID of the Service to fetch the Deployment resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment used by the Deployment to fetch.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID that identifies the Deployment resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZD[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment.deployment"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Deployment"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","build_sid","date_created"],"parent":"/Services/{ServiceSid}/Environments/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs":{"description":"A record of an event that occurred related to a function invocation.","get":{"description":"Retrieve a list of all logs.","operationId":"ListLog","parameters":[{"description":"The SID of the Service to read the Log resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the environment with the Log resources to read.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the function whose invocation produced the Log resources to read.","in":"query","name":"FunctionSid","schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.","in":"query","name":"StartDate","schema":{"format":"date-time","type":"string"}},{"description":"The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.","in":"query","name":"EndDate","schema":{"format":"date-time","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/serverless.v1.service.environment.log"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListLogResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Log"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":[],"parent":"/Services/{ServiceSid}/Environments/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}":{"description":"A record of an event that occurred related to a function invocation.","get":{"description":"Retrieve a specific log.","operationId":"FetchLog","parameters":[{"description":"The SID of the Service to fetch the Log resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the environment with the Log resource to fetch.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the Log resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^NO[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment.log"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Log"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":[],"parent":"/Services/{ServiceSid}/Environments/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables":{"description":"A key and value pair that is specific to an Environment.","get":{"description":"Retrieve a list of all Variables.","operationId":"ListVariable","parameters":[{"description":"The SID of the Service to read the Variable resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment with the Variable resources to read.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"variables":{"items":{"$ref":"#/components/schemas/serverless.v1.service.environment.variable"},"type":"array"}},"title":"ListVariableResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Variable"],"x-maturity":["Beta"]},"post":{"description":"Create a new Variable.","operationId":"CreateVariable","parameters":[{"description":"The SID of the Service to create the Variable resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment in which the Variable resource exists.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Key":{"description":"A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.","type":"string"},"Value":{"description":"A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.","type":"string"}},"required":["Key","Value"],"title":"CreateVariableRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment.variable"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Variable"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","key","date_created"],"parent":"/Services/{ServiceSid}/Environments/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}":{"delete":{"description":"Delete a specific Variable.","operationId":"DeleteVariable","parameters":[{"description":"The SID of the Service to delete the Variable resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment with the Variables to delete.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the Variable resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZV[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Variable"],"x-maturity":["Beta"]},"description":"A key and value pair that is specific to an Environment.","get":{"description":"Retrieve a specific Variable.","operationId":"FetchVariable","parameters":[{"description":"The SID of the Service to fetch the Variable resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment with the Variable resource to fetch.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the Variable resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZV[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment.variable"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Variable"],"x-maturity":["Beta"]},"post":{"description":"Update a specific Variable.","operationId":"UpdateVariable","parameters":[{"description":"The SID of the Service to update the Variable resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment with the Variable resource to update.","in":"path","name":"EnvironmentSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the Variable resource to update.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZV[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Key":{"description":"A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.","type":"string"},"Value":{"description":"A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.","type":"string"}},"title":"UpdateVariableRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment.variable"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Variable"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","key","date_created"],"parent":"/Services/{ServiceSid}/Environments/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Environments/{Sid}":{"delete":{"description":"Delete a specific environment.","operationId":"DeleteEnvironment","parameters":[{"description":"The SID of the Service to delete the Environment resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Environment"],"x-maturity":["Beta"]},"description":"Represents a deployed build of a given set of Functions and/or Assets at a specific URL.","get":{"description":"Retrieve a specific environment.","operationId":"FetchEnvironment","parameters":[{"description":"The SID of the Service to fetch the Environment resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Environment resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZE[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.environment"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Environment"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","unique_name","domain_name","build_sid"],"dependentProperties":{"deployments":{"mapping":{"environment_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Environments/{environment_sid}/Deployments"},"logs":{"mapping":{"environment_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Environments/{environment_sid}/Logs"},"variables":{"mapping":{"environment_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Environments/{environment_sid}/Variables"}},"parent":"/Services/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Functions":{"description":"A wrapper that represents a Serverless JavaScript function and groups the different and groups the different Versions of this code.","get":{"description":"Retrieve a list of all Functions.","operationId":"ListFunction","parameters":[{"description":"The SID of the Service to read the Function resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"functions":{"items":{"$ref":"#/components/schemas/serverless.v1.service.function"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListFunctionResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Function"],"x-maturity":["Beta"]},"post":{"description":"Create a new Function resource.","operationId":"CreateFunction","parameters":[{"description":"The SID of the Service to create the Function resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"FriendlyName":{"description":"A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters.","type":"string"}},"required":["FriendlyName"],"title":"CreateFunctionRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.function"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Function"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","date_created"],"dependentProperties":{"function_versions":{"mapping":{"function_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Functions/{function_sid}/Versions"}},"parent":"/Services/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions":{"description":"The content of a Function.","get":{"description":"Retrieve a list of all Function Version resources.","operationId":"ListFunctionVersion","parameters":[{"description":"The SID of the Service to read the Function Version resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the function that is the parent of the Function Version resources to read.","in":"path","name":"FunctionSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"function_versions":{"items":{"$ref":"#/components/schemas/serverless.v1.service.function.function_version"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListFunctionVersionResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1FunctionVersion"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","path","visibility","date_created"],"dependentProperties":{"function_version_content":{"mapping":{"function_sid":"function_sid","service_sid":"service_sid","sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Functions/{function_sid}/Versions/{sid}/Content"}},"mountName":"function_versions","parent":"/Services/{ServiceSid}/Functions/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}":{"description":"The content of a Function.","get":{"description":"Retrieve a specific Function Version resource.","operationId":"FetchFunctionVersion","parameters":[{"description":"The SID of the Service to fetch the Function Version resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the function that is the parent of the Function Version resource to fetch.","in":"path","name":"FunctionSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the Function Version resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZN[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.function.function_version"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1FunctionVersion"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","path","visibility","date_created"],"dependentProperties":{"function_version_content":{"mapping":{"function_sid":"function_sid","service_sid":"service_sid","sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Functions/{function_sid}/Versions/{sid}/Content"}},"mountName":"function_versions","parent":"/Services/{ServiceSid}/Functions/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content":{"description":"The code of a Function Version.","get":{"description":"Retrieve a the content of a specific Function Version resource.","operationId":"FetchFunctionVersionContent","parameters":[{"description":"The SID of the Service to fetch the Function Version content from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Function that is the parent of the Function Version content to fetch.","in":"path","name":"FunctionSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the Function Version content to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZN[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.function.function_version.function_version_content"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1FunctionVersionContent"],"x-maturity":["Beta"]},"servers":[{"url":"https://serverless.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","content"],"mountName":"function_version_content","parent":"/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Functions/{Sid}":{"delete":{"description":"Delete a Function resource.","operationId":"DeleteFunction","parameters":[{"description":"The SID of the Service to delete the Function resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Function resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Function"],"x-maturity":["Beta"]},"description":"A wrapper that represents a Serverless JavaScript function and groups the different and groups the different Versions of this code.","get":{"description":"Retrieve a specific Function resource.","operationId":"FetchFunction","parameters":[{"description":"The SID of the Service to fetch the Function resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Function resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.function"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ServerlessV1Function"],"x-maturity":["Beta"]},"post":{"description":"Update a specific Function resource.","operationId":"UpdateFunction","parameters":[{"description":"The SID of the Service to update the Function resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"type":"string"}},{"description":"The SID of the Function resource to update.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^ZH[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"FriendlyName":{"description":"A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters.","type":"string"}},"required":["FriendlyName"],"title":"UpdateFunctionRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverless.v1.service.function"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["Serv