NAME
Twilio::Rest::Studio::V2::Flow::FlowRevision - The FlowRevision resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $flow_revision ($client->studio->v2->flows($sid)->revisions->read({}, 20)) {
...
}
my $flow_revision = $client->studio->v2->flows($sid)->revisions($revision)->fetch;
DESCRIPTION
Studio flows revisions
This file holds FlowRevisionList, FlowRevisionPage, FlowRevisionContext and FlowRevisionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
FlowRevisionList
Returned by $client->studio->v2->flows($sid)->revisions. See also Twilio::ListResource.
read
my @records = $client->studio->v2->flows($sid)->revisions->read(\%options, $limit, $page_size);
Retrieve a list of all Flows revisions. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->studio->v2->flows($sid)->revisions->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->studio->v2->flows($sid)->revisions->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->studio->v2->flows($sid)->revisions->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->studio->v2->flows($sid)->revisions->get_context($revision);
Returns a FlowRevisionContext, and makes no request.
FlowRevisionPage
A Twilio::Page of FlowRevisionInstance objects.
records_key
build_instance
Used by Twilio::Page.
FlowRevisionContext
Returned by $client->studio->v2->flows($sid)->revisions($revision). It makes no request until one of these methods is called.
fetch
my $flow_revision = $client->studio->v2->flows($sid)->revisions($revision)->fetch;
Retrieve a specific Flow revision. Returns a FlowRevisionInstance.
FlowRevisionInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Flow resource.
-
The SID of the User that created or last updated the Flow.
- commit_message
-
Description of change made in the revision.
- date_created
-
The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- definition
-
JSON representation of flow definition.
- errors
-
List of error in the flow definition.
- friendly_name
-
The string that you assigned to describe the Flow.
- revision
-
The latest revision number of the Flow's definition.
- sid
-
The unique string that we created to identify the Flow resource.
- status
-
One of
draftorpublished. - url
-
The absolute URL of the resource.
- valid
-
Boolean if the flow definition is valid.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.