Create a new Bucket for a Rate Limit
TODO: Resource-level docs
Create a new Bucket for a Rate Limit
Path parameters
-
The SID of the Service the resource is associated with.
-
The Twilio-provided string that uniquely identifies the Rate Limit resource.
POST /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets
curl \
-X POST https://verify.twilio.com/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Interval=42&Max=42'
Request example
{
"Interval": 42,
"Max": 42
}
Request examples
{
"Interval": 42,
"Max": 42
}
Response examples (201)
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"interval": 42,
"max": 42,
"rate_limit_sid": "string",
"service_sid": "string",
"sid": "string",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"interval": 42,
"max": 42,
"rate_limit_sid": "string",
"service_sid": "string",
"sid": "string",
"url": "https://example.com"
}