Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
  • API reference
    • Public conventions
    • Development specification
    • accessToken: Get administrator token
    • API request example
    • Return codes
    • Interface call limits
    • Account docking
    • Device APIs
    • Device live broadcast
      • batchModifyLivePlan
      • bindDeviceLive
      • createDeviceFlvLive
      • createDeviceRecordHls
      • createDeviceRtmpLive
      • deleteDeviceFlvLive
      • deleteDeviceRtmpLive
      • getLiveStreamInfo
      • liveList
      • modifyLivePlan
      • modifyLivePlanStatus
      • queryDeviceFlvLive
      • queryDeviceRtmpLive
      • queryLiveStatus
      • unbindLive
    • Push configuration
    • Cloud storage service
    • Resource pool quota
    • Legacy APIs (deprecated)
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Function details
Request address
Request format
Incoming parameter description
Sample input
Return data field description
Sample output
Error codes
Related

modifyLivePlanStatus (modifyLivePlanStatus: Set the live broadcast plan switch)

modifyLivePlanStatus: modifyLivePlanStatus: Set the live broadcast plan switch

Function details

Enable or disable the currently set live broadcast plan.

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/modifyLivePlanStatus

Request format

HTTP POST. JSON body layout: Request conventions. Sign with Signature.

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
tokenStringYesAdministrator accessToken
liveTokenStringYeslive token
statusStringYesstatus, on: on, off: off

Sample input

{
 "system":{
 "ver":"1.0",
 "appId":"lcdxxxxxxxxx",
 "sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
 "time":1603367735,
 "nonce":"79b55638-5e05-4b33-bb0c-ffd57b3fe566"
 },
 "id":"47aef44c-592c-4a21-9ad0-132626cf826a",
 "params":{
 "liveToken":"57877dd6774f4cbeb657568be0b7a621",
 "token":"At_00000ad9e6e87f0142eb92e207aec46a",
 "status":"on"
 }
}

Return data field description

No data returned

Sample output

{
 "id":"47aef44c-592c-4a21-9ad0-132626cf826a",
 "result":{
 "code":"0",
 "msg":"The operation was successful"
 }
}

Error codes

This method may return the codes below. See Return codes and Capability errors for the full catalog.

Gateway and auth (SN / TK / OP)

CodeMeaningNext step
SN1001Signature errorCheck sign per Development specification
TK1002Token invalid or expiredRefresh accessToken
OP1002Missing required parameterAdd required fields
OP1003Invalid parameterMatch this page’s parameter table
OP1009Permission deniedCheck token and device bind/share grants
OP1013Total call limit exceededReduce call rate
OP1014Daily per-interface limit exceededSee Interface call limits
DV1007Device offlineWait until the device is online

See Return codes · OP/SN/TK for the full catalog.

Sub-accounts (SUB)

CodeMeaningNext step
SUB1001–SUB1002Sub-account lacks API permissionUpdate policy via addPolicy
SUB1005Sub-account token expiredRefresh subAccountToken
SUB1006No device grant for sub-accountCheck Resource and device serial
SUB1008Sub-account not bound to appCreate and bind the sub-account first

See Return codes · SUB.

Device access and channels (DV10xx)

CodeMeaningNext step
DV1007Device offline or timeoutWait for the device to come online
DV1009Device busyRetry later
DV1012Insufficient share/grant permissionCheck sub-account Permission / Resource
DV1019Capability not supportedConfirm model and capability list
DV1020Channel offlineCheck channel status
DV1026Function not supportedUse another API or upgrade firmware
DV1028Not bound or channel missingVerify deviceId / channelId

See Return codes · DV.

Live binding (LV)

CodeMeaningNext step
LV1001Live already existsUnbind via unbindLive or use another source
:---:---:---
LV1002Live does not existCreate the live plan first
:---:---:---
LV1005Live info does not existVerify live id
:---:---:---
LV1006Same RTSP source can bind only once per dayRetry the next day
:---:---:---
LV1008Real-name verification requiredComplete profile in the Open Platform console
:---:---:---
LV1020Live is bound and cannot be deletedUnbind first
:---:---:---
OP1021Failed to get playback URLCheck live status and plan
:---:---:---
OP1022Cloud decode authorization requiredAuthorize in the app as described in the response

See Return codes · catalog.

Related

  • Development specification
  • API conventions
  • Module index
modifyLivePlan
queryDeviceFlvLive