NAME
Twilio::Rest::Conversations::V2::Operation - The Operation resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $operation = $client->conversations->v2->operations($id)->fetch;
DESCRIPTION
This file holds OperationList, OperationContext and OperationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
OperationList
Returned by $client->conversations->v2->operations. See also Twilio::ListResource.
get_context
my $context = $client->conversations->v2->operations->get_context($id);
Returns a OperationContext, and makes no request.
OperationContext
Returned by $client->conversations->v2->operations($id). It makes no request until one of these methods is called.
fetch
my $operation = $client->conversations->v2->operations($id)->fetch;
Retrieve the current status of a long-running operation. Operations progress through: PENDING -> RUNNING -> COMPLETED or FAILED. Returns a OperationInstance.
OperationInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- completed_at
-
Timestamp when the operation completed. Only present for completed or failed operations. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- created_at
-
Timestamp when the operation was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- error
-
Error details if the operation failed. Follows RFC 9457 Problem Details.
- operation_id
-
Unique identifier for the long-running operation.
-
Named resource identifiers associated with this operation. Keys depend on the operation type: - config-create, config-update, config-delete: configurationId - conversation-delete: conversationId
- status
-
Current status of the operation. One of
PENDING,COMPLETEDorFAILED. - status_url
-
URL to poll for operation status.
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.