PATCH v1/core/Accounts/{accId}/devices/apndevices/{apnDevId}

Patches an existing apn device with a list of supplied properties

Request Information

Parameters

NameDescriptionAdditional information
accId
the account id

Define this parameter in the request URI.

apnDevId
the apn device id

Define this parameter in the request URI.

device
the properties to patch

Define this parameter in the request body.

Request body formats

application/json, text/json, text/javascript

Sample:
{}

application/xml, text/xml

Sample:
<DeltaOfAPNDeviceCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_delta" />

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 'Delta`1'.

application/bson

Sample:


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