Skip to main content
POST
/
open
/
api
/
phone
/
setNetwork
Phone network settings
curl --request POST \
  --url https://user.pmock.com/api/open/api/phone/setNetwork \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "networkId": 123,
  "host": "<string>",
  "port": 123,
  "account": "<string>",
  "password": "<string>",
  "type": "<string>",
  "way": "<string>",
  "region": "<string>",
  "status": 123,
  "name": "<string>",
  "ip": "<string>",
  "countryName": "<string>",
  "countryCode": "<string>",
  "latitude": "<string>",
  "longitude": "<string>",
  "language": "<string>",
  "timezone": "<string>",
  "udp": 123,
  "tcp": 123,
  "remark": "<string>",
  "groupId": -1,
  "detectDataType": 123
}
'
{
  "traceId": "",
  "code": 0,
  "msg": "",
  "data": null,
  "status": ""
}

Body

application/json
id
integer<int64>
required

Phone ID, The Get phone list returns the ID contained in the data.

networkId
integer<int64>

Network ID, The Get network list returns the ID contained in the data.If set, use the data of networkId, If not filled in, then use the transmitted network data to generate or modify the network data.

host
string

Proxy host, If a networkId is set, then the data corresponding to the networkId will be the primary source.

port
integer

Proxy port, If a networkId is set, then the data corresponding to the networkId will be the primary source.

account
string

Proxy account, If a networkId is set, then the data corresponding to the networkId will be the primary source.

password
string

Proxy password, If a networkId is set, then the data corresponding to the networkId will be the primary source.

type
string

Proxy type: 1=socks5 2=https 3=http, If a networkId is set, then the data corresponding to the networkId will be the primary source.

way
string

Usage method: 1=Static IP 2=Dynamic IP, If a networkId is set, then the data corresponding to the networkId will be the primary source.

region
string

Proxy Region, If a networkId is set, then the data corresponding to the networkId will be the primary source.

status
integer

Proxy Check Status, If a networkId is set, then the data corresponding to the networkId will be the primary source.

name
string

Network name, If a networkId is set, then the data corresponding to the networkId will be the primary source.

ip
string

Actual IP address, If a networkId is set, then the data corresponding to the networkId will be the primary source.

countryName
string

Proxy city name, If a networkId is set, then the data corresponding to the networkId will be the primary source.

countryCode
string

Proxy city code, If a networkId is set, then the data corresponding to the networkId will be the primary source.

latitude
string

Proxy Latitude, If a networkId is set, then the data corresponding to the networkId will be the primary source.

longitude
string

Proxy Longitude, If a networkId is set, then the data corresponding to the networkId will be the primary source.

language
string

Language, If a networkId is set, then the data corresponding to the networkId will be the primary source.

timezone
string

Proxy Timezone, If a networkId is set, then the data corresponding to the networkId will be the primary source.

udp
integer

Whether UDP is enabled (1=enabled, 0=disabled)

tcp
integer

Whether TCP is enabled (1=enabled, 0=disabled)

remark
string

Remarks

groupId
integer<int64>
default:-1

Network group ID

detectDataType
integer

Detection data type: 1=Follow IP 2=Custom

Response

200 - application/json
traceId
string
required

Request link ID

code
integer
required

code

msg
string
required

Request return message

status
string
default:finish
required

Status, representing whether this is an instant completion or waiting state, finish or pending

data
null

Request return data