NAME

Twilio::Rest::Bulkexports::V1::Export::ExportCustomJob - The ExportCustomJob resource

SYNOPSIS

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

my $export_custom_job = $client->bulkexports->v1->exports($resource_type)->export_custom_jobs->create($start_day, $end_day, $friendly_name, \%options);
for my $export_custom_job ($client->bulkexports->v1->exports($resource_type)->export_custom_jobs->read({}, 20)) {
  ...
}

DESCRIPTION

This file holds ExportCustomJobList, ExportCustomJobPage and ExportCustomJobInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ExportCustomJobList

Returned by $client->bulkexports->v1->exports($resource_type)->export_custom_jobs. See also Twilio::ListResource.

create

my $export_custom_job = $client->bulkexports->v1->exports($resource_type)->export_custom_jobs->create($start_day, $end_day, $friendly_name, \%options);

Returns a ExportCustomJobInstance.

The required values are:

$start_day

The start day for the custom export specified as a string in the format of yyyy-mm-dd

$end_day

The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day.

$friendly_name

The friendly name specified when creating the job

The options are:

email

The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status.

webhook_method

This is the method used to call the webhook on completion of the job. If this is supplied, WebhookUrl must also be supplied.

webhook_url

The optional webhook url called on completion of the job. If this is supplied, WebhookMethod must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually.

read

my @records = $client->bulkexports->v1->exports($resource_type)->export_custom_jobs->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->bulkexports->v1->exports($resource_type)->export_custom_jobs->stream(\%options, $limit, $page_size);

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

page

my $page = $client->bulkexports->v1->exports($resource_type)->export_custom_jobs->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->bulkexports->v1->exports($resource_type)->export_custom_jobs->get_page($url);

Fetches the page at a URL given by Twilio.

ExportCustomJobPage

A Twilio::Page of ExportCustomJobInstance objects.

records_key

build_instance

Used by Twilio::Page.

ExportCustomJobInstance

See also Twilio::InstanceResource.

Its fields are:

details

The details of a job which is an object that contains an array of status grouped by status state. Each status object has a status string, a count which is the number of days in that status, and list of days in that status. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a status object for SUBMITTED each with its own count and list of days.

email

The optional email to send the completion notification to

end_day

The end day for the export specified when creating the job

estimated_completion_time

this is the time estimated until your job is complete. This is calculated each time you request the job list. The time is calculated based on the current rate of job completion (which may vary) and your job queue position

friendly_name

The friendly name specified when creating the job

job_queue_position

This is the job position from the 1st in line. Your queue position will never increase. As jobs ahead of yours in the queue are processed, the queue position number will decrease

job_sid

The unique job_sid returned when the custom export was created

resource_type

The type of communication – Messages, Calls, Conferences, and Participants

start_day

The start day for the custom export specified when creating the job

webhook_method

This is the method used to call the webhook on completion of the job. If this is supplied, WebhookUrl must also be supplied.

webhook_url

The optional webhook url called on completion of the job. If this is supplied, WebhookMethod must also be supplied.

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.