NAME
Twilio::Rest::Events::V1::Schema - The Schema resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $schema = $client->events->v1->schemas($id)->fetch;
DESCRIPTION
Versioned Schema definitions for Event Types
This file holds SchemaList, SchemaContext and SchemaInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
SchemaList
Returned by $client->events->v1->schemas. See also Twilio::ListResource.
get_context
my $context = $client->events->v1->schemas->get_context($id);
Returns a SchemaContext, and makes no request.
SchemaContext
Returned by $client->events->v1->schemas($id). It makes no request until one of these methods is called.
fetch
my $schema = $client->events->v1->schemas($id)->fetch;
Fetch a specific schema with its nested versions. Returns a SchemaInstance.
versions
my $list = $object->versions;
my $context = $object->versions($schema_version);
See Twilio::Rest::Events::V1::Schema::SchemaVersion.
SchemaInstance
See also Twilio::InstanceResource.
It has fetch and versions, which work as they do on the context.
Its fields are:
- id
-
The unique identifier of the schema. Each schema can have multiple versions, that share the same id.
- latest_version
-
The latest version published of this schema.
- latest_version_date_created
-
The date that the latest schema version was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- links
-
Contains a dictionary of URL links to nested resources of this schema.
- url
-
The URL of this resource.
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.