POST v1/core/accounts/{accId}/apnzones

Creates an new apn zone in the account

Request Information

Parameters

NameDescriptionAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'APNZone'.

application/bson

Sample:
�AccountIDIDNamesample string 3Networks�07MCCsample string 1MNCsample string 217MCCsample string 1MNCsample string 227MCCsample string 1MNCsample 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:
WSuccessData�AccountIDIDNamesample string 3Networks�07MCCsample string 1MNCsample string 217MCCsample string 1MNCsample string 227MCCsample string 1MNCsample string 2ErrorCodeErrorDescriptionsample string 3Metasample string 4