POST v1/core/Accounts/{accId}/devices/apndevices?allocateRoutedModeAddress={allocateRoutedModeAddress}

Create a new APN Device for a specified user

Request Information

Parameters

NameDescriptionAdditional information
accId
the account id

Define this parameter in the request URI.

value
the new apn device object

Define this parameter in the request body.

allocateRoutedModeAddress
True if an IP address will be allocated, otherwise an IP address will not be allocated

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "UserID": 1,
  "Description": "sample string 2",
  "MSisdn": "sample string 3",
  "Imsi": "sample string 4",
  "LockIMEI": true,
  "IMEI": "sample string 6",
  "AuthType": "CLI",
  "Status": "Enabled",
  "OperatorName": "sample string 7",
  "OperatorCountry": "sample string 8",
  "APNName": "sample string 9",
  "RateLimits": {
    "Downstream": 1,
    "Upstream": 1
  }
}

text/javascript

Sample:
{"ID":1,"UserID":1,"Description":"sample string 2","MSisdn":"sample string 3","Imsi":"sample string 4","LockIMEI":true,"IMEI":"sample string 6","AuthType":0,"Status":0,"OperatorName":"sample string 7","OperatorCountry":"sample string 8","APNName":"sample string 9","RateLimits":{"Downstream":1,"Upstream":1}}

application/xml, text/xml

Sample:
<APNDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <APNName>sample string 9</APNName>
  <AuthType>CLI</AuthType>
  <Description>sample string 2</Description>
  <ID>1</ID>
  <IMEI>sample string 6</IMEI>
  <Imsi>sample string 4</Imsi>
  <LockIMEI>true</LockIMEI>
  <MSisdn>sample string 3</MSisdn>
  <OperatorCountry>sample string 8</OperatorCountry>
  <OperatorName>sample string 7</OperatorName>
  <RateLimits>
    <Downstream>1</Downstream>
    <Upstream>1</Upstream>
  </RateLimits>
  <Status>Enabled</Status>
  <UserID>1</UserID>
</APNDevice>

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 'APNDevice'.

application/bson

Sample:
BIDUserIDDescriptionsample string 2MSisdnsample string 3Imsisample string 4LockIMEIIMEIsample string 6AuthTypeStatusOperatorNamesample string 7OperatorCountrysample string 8APNNamesample string 9RateLimits#DownstreamUpstream

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "ID": 1,
    "UserID": 1,
    "Description": "sample string 2",
    "MSisdn": "sample string 3",
    "Imsi": "sample string 4",
    "LockIMEI": true,
    "IMEI": "sample string 6",
    "AuthType": "CLI",
    "Status": "Enabled",
    "OperatorName": "sample string 7",
    "OperatorCountry": "sample string 8",
    "APNName": "sample string 9",
    "RateLimits": {
      "Downstream": 1,
      "Upstream": 1
    }
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"ID":1,"UserID":1,"Description":"sample string 2","MSisdn":"sample string 3","Imsi":"sample string 4","LockIMEI":true,"IMEI":"sample string 6","AuthType":0,"Status":0,"OperatorName":"sample string 7","OperatorCountry":"sample string 8","APNName":"sample string 9","RateLimits":{"Downstream":1,"Upstream":1}},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfAPNDeviceCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>
    <APNName>sample string 9</APNName>
    <AuthType>CLI</AuthType>
    <Description>sample string 2</Description>
    <ID>1</ID>
    <IMEI>sample string 6</IMEI>
    <Imsi>sample string 4</Imsi>
    <LockIMEI>true</LockIMEI>
    <MSisdn>sample string 3</MSisdn>
    <OperatorCountry>sample string 8</OperatorCountry>
    <OperatorName>sample string 7</OperatorName>
    <RateLimits>
      <Downstream>1</Downstream>
      <Upstream>1</Upstream>
    </RateLimits>
    <Status>Enabled</Status>
    <UserID>1</UserID>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfAPNDeviceCA1DLPoZ>

application/bson

Sample:
�SuccessDataBIDUserIDDescriptionsample string 2MSisdnsample string 3Imsisample string 4LockIMEIIMEIsample string 6AuthTypeStatusOperatorNamesample string 7OperatorCountrysample string 8APNNamesample string 9RateLimits#DownstreamUpstreamErrorCodeErrorDescriptionsample string 3Metasample string 4