Plugin Version Resource
A Plugin Version contains all the information about a particular version of a Plugin. Some notable fields include the URL to the plugin package, the version number and what plugin is it the version of.
Providing a URL to the built package in the plugin version provides you the flexibility of hosting your package in the software of your choice.
PluginVersion properties
Resource Properties in REST API format | |
---|---|
sid
|
The unique string that we created to identify the Flex Plugin Version resource. |
plugin_sid
|
The SID of the Flex Plugin resource this Flex Plugin Version belongs to. |
account_sid
|
The SID of the Account that created the Flex Plugin Version resource and owns this resource. |
version
|
The unique version of this Flex Plugin Version. |
plugin_url
|
The URL of where the Flex Plugin Version JavaScript bundle is hosted on. |
changelog
|
A changelog that describes the changes this Flex Plugin Version brings. |
private
|
Whether to inject credentials while accessing this Plugin Version. The default value is false. |
archived
|
Whether the Flex Plugin Version is archived. The default value is false. |
date_created
|
The date and time in GMT when the Flex Plugin Version was created specified in ISO 8601 format. |
url
|
The absolute URL of the Flex Plugin Version resource. |
Create a PluginVersion resource
https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Parameters
Parameters in REST API format | |
---|---|
plugin_sid
Path
|
The SID of the Flex Plugin the resource to belongs to. |
version
Required
|
The Flex Plugin Version's version. |
plugin_url
Required
|
The URL of the Flex Plugin Version bundle |
changelog
Optional
|
The changelog of the Flex Plugin Version. |
private
Optional
|
Whether this Flex Plugin Version requires authorization. |
flex_metadata
Header
|
The Flex-Metadata HTTP request header |
Example 1
Fetch a PluginVersion resource
https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}
Parameters
Parameters in REST API format | |
---|---|
plugin_sid
Path
|
The SID of the Flex Plugin the resource to belongs to. |
sid
Path
|
The SID of the Flex Plugin Version resource to fetch. |
flex_metadata
Header
|
The Flex-Metadata HTTP request header |
Example 1
Read multiple PluginVersion resources
https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Parameters
Parameters in REST API format | |
---|---|
plugin_sid
Path
|
The SID of the Flex Plugin the resource to belongs to. |
flex_metadata
Header
|
The Flex-Metadata HTTP request header |
Example 1
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 by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.