NAME

Twilio::Rest::Memory::V1::Revision - The Revision resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $revision ($client->memory->v1->revisions($store_id, $profile_id, $observation_id)->read({}, 20)) {
  ...
}

DESCRIPTION

This file holds RevisionList, RevisionPage and RevisionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

RevisionList

Returned by $client->memory->v1->revisions($store_id, $profile_id, $observation_id). See also Twilio::ListResource.

read

my @records = $client->memory->v1->revisions($store_id, $profile_id, $observation_id)->read(\%options, $limit, $page_size);

Retrieve a chronologically ordered list of all past revisions of a specific observation by its ID. Revisions represent the complete history of updates and modifications made to an observation, with each revision capturing the full state at the time of change. Revisions are sorted by update time in descending order (newest first), allowing you to track how an observation has evolved through updates over time. Returns the records as a list, fetching as many pages as it needs.

The options are:

accept_encoding

Compression algorithms supported by the client (e.g., gzip, deflate, br)

stream

my $stream = $client->memory->v1->revisions($store_id, $profile_id, $observation_id)->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->memory->v1->revisions($store_id, $profile_id, $observation_id)->page(\%options, $page_size, $page_token);

Fetches one page, and returns a Twilio::TokenPaginationPage. This API pages by token, so there is no page number.

get_page

my $page = $client->memory->v1->revisions($store_id, $profile_id, $observation_id)->get_page($url);

Fetches the page at a URL given by Twilio.

RevisionPage

A Twilio::Page of RevisionInstance objects.

records_key

build_instance

Used by Twilio::Page.

RevisionInstance

See also Twilio::InstanceResource.

Its fields are:

content

The main content of the observation.

conversation_ids

Array of conversation IDs associated with this observation.

created_at

The timestamp when the observation was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

id

No description in the specification.

occurred_at

The timestamp when the observation originally occurred. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

source

The source system that generated this observation. Allows letters, numbers, spaces, periods, underscores, hyphens, and forward slashes.

updated_at

The timestamp when the observation was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

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.