NAME
Twilio::Rest::Content::V1::Content::ApprovalCreate - The ApprovalCreate resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $approval_create = $client->content->v1->contents($content_sid)->approval_create->create(\%body);
my $approval_create = $client->content->v1->contents($content_sid)->approval_create->update(\%body);
DESCRIPTION
This file holds ApprovalCreateList and ApprovalCreateInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ApprovalCreateList
Returned by $client->content->v1->contents($content_sid)->approval_create. See also Twilio::ListResource.
create
my $approval_create = $client->content->v1->contents($content_sid)->approval_create->create(\%body);
Create a ContentApprovalRequest for a content item. Returns a ApprovalCreateInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
bid_amount-
Maximum price per 1,000 message deliveries, expressed in the WABA currency's smallest unit (cents for USD). Only valid for MARKETING templates onboarded to Max Pricing.
category-
Required. A WhatsApp recognized template category.
name-
Required. Name of the template.
send_ttl_seconds-
Time-to-live in seconds for attempting to send a message with this Content
update
my $approval_create = $client->content->v1->contents($content_sid)->approval_create->update(\%body);
Update the optimization spec (bid amount) of a ContentApprovalRequest for a content item. Returns a ApprovalCreateInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
bid_amount-
Required. Maximum price per 1,000 message deliveries, expressed in the WABA currency's smallest unit (cents for USD). Only valid for MARKETING templates onboarded to Max Pricing.
ApprovalCreateInstance
See also Twilio::InstanceResource.
Its fields are:
- allow_category_change
-
No description in the specification.
- bid_amount
-
Maximum price per 1,000 message deliveries, expressed in the WABA currency's smallest unit (cents for USD). Only set for MARKETING templates onboarded to Max Pricing.
- category
-
No description in the specification.
- content_type
-
No description in the specification.
- name
-
No description in the specification.
- rejection_reason
-
No description in the specification.
- send_ttl_seconds
-
Time-to-live in seconds for attempting to send a message with this Content
- status
-
No description in the specification.
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.