NAME
Twilio::Rest::Intelligence::V2::OperatorAttachment - The OperatorAttachment resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $operator_attachment = $client->intelligence->v2->operator_attachment($service_sid, $operator_sid)->create();
$client->intelligence->v2->operator_attachment($service_sid, $operator_sid)->delete;
DESCRIPTION
This file holds OperatorAttachmentList, OperatorAttachmentContext and OperatorAttachmentInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
OperatorAttachmentList
Returned by $client->intelligence->v2->operator_attachment($service_sid). See also Twilio::ListResource.
get_context
my $context = $client->intelligence->v2->operator_attachment($service_sid)->get_context($operator_sid);
Returns a OperatorAttachmentContext, and makes no request.
OperatorAttachmentContext
Returned by $client->intelligence->v2->operator_attachment($service_sid, $operator_sid). It makes no request until one of these methods is called.
create
my $operator_attachment = $client->intelligence->v2->operator_attachment($service_sid, $operator_sid)->create();
Attach an Operator to a Service. Returns a OperatorAttachmentInstance.
delete
$client->intelligence->v2->operator_attachment($service_sid, $operator_sid)->delete;
Detach an Operator from a Service. Returns true.
OperatorAttachmentInstance
See also Twilio::InstanceResource.
It has create and delete, which work as they do on the context.
Its fields are:
- operator_sid
-
The unique SID identifier of the Operator.
- service_sid
-
The unique SID identifier of the Service.
- 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.