NAME
Twilio::Rest::Knowledge::V2::Operation - The Operation resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $operation = $client->knowledge->v2->operations($operation_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->knowledge->v2->operations. See also Twilio::ListResource.
get_context
my $context = $client->knowledge->v2->operations->get_context($operation_id);
Returns a OperationContext, and makes no request.
OperationContext
Returned by $client->knowledge->v2->operations($operation_id). It makes no request until one of these methods is called.
fetch
my $operation = $client->knowledge->v2->operations($operation_id)->fetch;
Retrieve the status and result of an asynchronous operation. Returns a OperationInstance.
OperationInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- completed_at
-
When the operation completed or failed. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- created_at
-
When the operation was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- error
-
No description in the specification.
- operation_id
-
The unique identifier for this operation.
- result
-
No description in the specification.
- result_url
-
URL to fetch the resulting resource.
- status
-
The current status of the operation. One of
PENDING,RUNNING,CANCELLED,COMPLETEDorFAILED. - status_url
-
URI to check 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.