POST v1/core/accounts/{accId}/apnzones
Creates an new apn zone in the account
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| accId | the account id |
Define this parameter in the request URI. |
| value | the new APN zone object |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"AccountID": 1,
"ID": 2,
"Name": "sample string 3",
"Networks": [
{
"MCC": "sample string 1",
"MNC": "sample string 2"
},
{
"MCC": "sample string 1",
"MNC": "sample string 2"
},
{
"MCC": "sample string 1",
"MNC": "sample string 2"
}
]
}
text/javascript
Sample:
{"AccountID":1,"ID":2,"Name":"sample string 3","Networks":[{"MCC":"sample string 1","MNC":"sample string 2"},{"MCC":"sample string 1","MNC":"sample string 2"},{"MCC":"sample string 1","MNC":"sample string 2"}]}
application/xml, text/xml
Sample:
<APNZone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
<AccountID>1</AccountID>
<ID>2</ID>
<Name>sample string 3</Name>
<Networks>
<APNZoneNetworks>
<MCC>sample string 1</MCC>
<MNC>sample string 2</MNC>
</APNZoneNetworks>
<APNZoneNetworks>
<MCC>sample string 1</MCC>
<MNC>sample string 2</MNC>
</APNZoneNetworks>
<APNZoneNetworks>
<MCC>sample string 1</MCC>
<MNC>sample string 2</MNC>
</APNZoneNetworks>
</Networks>
</APNZone>
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
� AccountID ID Name sample string 3 Networks � 0 7 MCC sample string 1 MNC sample string 2 1 7 MCC sample string 1 MNC sample string 2 2 7 MCC sample string 1 MNC sample string 2
Response Information
Response body formats
application/json, text/json
Sample:
{
"Success": true,
"Data": {
"AccountID": 1,
"ID": 2,
"Name": "sample string 3",
"Networks": [
{
"MCC": "sample string 1",
"MNC": "sample string 2"
},
{
"MCC": "sample string 1",
"MNC": "sample string 2"
},
{
"MCC": "sample string 1",
"MNC": "sample string 2"
}
]
},
"ErrorCode": 2,
"ErrorDescription": "sample string 3",
"Meta": "sample string 4"
}
text/javascript
Sample:
{"Success":true,"Data":{"AccountID":1,"ID":2,"Name":"sample string 3","Networks":[{"MCC":"sample string 1","MNC":"sample string 2"},{"MCC":"sample string 1","MNC":"sample string 2"},{"MCC":"sample string 1","MNC":"sample string 2"}]},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}
application/xml, text/xml
Sample:
<PBNBReturnOfAPNZoneCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
<Data>
<AccountID>1</AccountID>
<ID>2</ID>
<Name>sample string 3</Name>
<Networks>
<APNZoneNetworks>
<MCC>sample string 1</MCC>
<MNC>sample string 2</MNC>
</APNZoneNetworks>
<APNZoneNetworks>
<MCC>sample string 1</MCC>
<MNC>sample string 2</MNC>
</APNZoneNetworks>
<APNZoneNetworks>
<MCC>sample string 1</MCC>
<MNC>sample string 2</MNC>
</APNZoneNetworks>
</Networks>
</Data>
<ErrorCode>2</ErrorCode>
<ErrorDescription>sample string 3</ErrorDescription>
<Meta>sample string 4</Meta>
<Success>true</Success>
</PBNBReturnOfAPNZoneCA1DLPoZ>
application/bson
Sample:
W Success Data � AccountID ID Name sample string 3 Networks � 0 7 MCC sample string 1 MNC sample string 2 1 7 MCC sample string 1 MNC sample string 2 2 7 MCC sample string 1 MNC sample string 2 ErrorCode ErrorDescription sample string 3 Meta sample string 4