- API document for XProxy service
- Proxy Management
- Device Management
- Change IMEI for multiple donglesPOST
- Add or change device notePOST
- Change MAC address for donglesPOST
- Change APN for donglesPOST
- Change device labelPOST
- Connect dongle to networkPOST
- Enable/disable WiFi for multiple donglesPOST
- Disconnect dongle from networkPOST
- Reboot a specific donglePOST
- Reset bus donglePOST
- Get dongle information including phone numberPOST
- Set MTU value for a donglePOST
- Rotation (Change IP)
- Selling Platform
- SMS & USSD Utitlies
- System Management
Change APN for dongles
POST
{{BASE_URL}}/v2/change_apn
Device
This operation is supported for XProxy XH20/XH22 dongles model only.
Request
Body Params application/json
positions
array[integer]
required
Example:
[1,2,3]
apn
object
required
auto_apn
string
required
Example:
0
apn_name
string
optional
Example:
internet
ip_type
string
optional
Example:
0
auth_type
string
optional
Example:
NONE
auth_user
string
optional
Example:
user
auth_pass
string
optional
Example:
password
Example
{
"positions": [
1,
2,
3
],
"apn": {
"auto_apn": "0",
"apn_name": "internet",
"ip_type": "0",
"auth_type": "NONE",
"auth_user": "user",
"auth_pass": "password"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://localhost/v2/change_apn' \
--header 'Content-Type: application/json' \
--data-raw '{
"positions": [
1,
2,
3
],
"apn": {
"auto_apn": "0",
"apn_name": "internet",
"ip_type": "0",
"auth_type": "NONE",
"auth_user": "user",
"auth_pass": "password"
}
}'
Responses
🟢200OK
application/json
Body
status
boolean
optional
Example:
true
msg
string
optional
Example:
Sent change APN successfully! Please wait up to 15s to effect!
Example
{
"status": true,
"msg": "Sent change APN successfully! Please wait up to 15s to effect!"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
Modified at 2025-04-23 02:54:18