Skip to content

Update Cloud Phone Config ​

Update cloud phone config. When customizing country, timezone, and language, none can be empty; when not customizing, all must be empty.

Interface Address:

text
/papi/container/operate/startGps

Request Method:

text
POST

Content-Type:

text
application/json

Header Parameters:

ParameterTypeRequiredDescription
X-Access-KeystringYesAPI access key ID, see API Rules
X-SignaturestringYesSignature value, Base64-encoded HMAC-SHA256 result
X-TimestampstringYesMillisecond-level Unix timestamp (13 digits)
X-NoncestringYesRandom string, 10~32 lowercase letters + digits

Body Parameters:

ParameterTypeRequiredDescription
ctrIdListarray[string]YesList of container IDs
languagestringNoDevice language (not empty when custom, empty otherwise)
altintegerNoAltitude
autoFlagbooleanNoWhether latitude/longitude is auto-set by IP (default true)
countrystringNoCountry code (not empty when custom, empty otherwise)
timezonestringNoTimezone (not empty when custom, empty otherwise)
latitudenumberNoLatitude
longitudenumberNoLongitude
mccintegerNoMobile country code
mncintegerNoMobile network code

Request Example:

json
{
  "ctrIdList": [
    "cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f"
  ],
  "autoFlag": true
}

Response Parameters:

ParameterTypeDescription
codeintegerError code. See Error Codes
dataarray[ContainerApiResult]Response data
├─ successbooleanWhether the operation succeeded
├─ taskIdstringTask ID of the operation
├─ dataobjectData
├─ msgstringOperation message
├─ ctrIdstringContainer CtrId
├─ ctrAliasstringContainer alias
├─ ctrSlotintegerCloud phone slot
msgstringError message

Response Example:

json
{
  "code": 0,
  "data": [
    {
      "success": true,
      "taskId": "",
      "data": {},
      "msg": "",
      "ctrId": "cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f",
      "ctrAlias": "",
      "ctrSlot": 0
    }
  ],
  "msg": ""
}

OpenAPI Docs