Create LRN Prefix
This request creates an LRN Prefix object.
post | /phonenumber/lrn_prefixes |
Sample
A sample POST request to create an LRN prefix:
curl -X POST \
'https://api.carrierx.com/core/v2/phonenumber/lrn_prefixes \
-H 'Content-Type: application/json' \
--data-binary '{"prefix":"1520"}' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with a serialized copy of the LRN Prefix object:
{
"attributes": {},
"callback_url": null,
"lrn_prefix_sid": "cea69d91-8db6-27b5-a3b2-d6a4d8b62573",
"lrn_sid": null,
"name": "N/A",
"partner_sid": "cea69d91-8db6-27b5-a3b2-d6a4d8b62573",
"prefix": "1520",
"source_trunk_group_sid": null,
"string_key_1": null,
"string_key_2": null,
"transformations": [],
"trunk_group_sid": null
}
Required Scopes
To create an LRN Prefix object, the partner must have one of the following scopes enabled:
phonenumber.manage
phonenumber.create
Body Arguments
JSON representation of the fields and values of the LRN Prefix object to be created.
A required field to create an LRN prefix is prefix
.
Refer to this table to view all fields that appear in the LRN Prefix object.