Skip to main content
POST
/
camera
/
add
Add Camera
curl --request POST \
  --url https://apigw.bienport.com/api/camera/add \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'OrganizationId: <organizationid>' \
  --data '{
  "brand": "IMOU",
  "deviceSerial": "6C0511EPAJC9B32",
  "name": "My Camera",
  "organizationId": 128001,
  "securityCode": "A877B022",
  "ncCode": "012",
  "subscriptionId": 12
}'
{
  "resourceId": 254,
  "networkId": "6C0511EPAJC9B32",
  "organizationId": 128001,
  "name": "My Camera",
  "brand": "IMOU",
  "deviceType": "IPC",
  "httpPort": "80",
  "rtspPort": "554",
  "deviceModelName": "Cube 4MP",
  "channelNum": "1",
  "privateMediaPort": "554",
  "port": "37777",
  "deviceModel": "IPC-K42",
  "ability": "SMDH,OSD,2560x1440,mp4,MDMD,VC,WDRV2,AudioTalk,AlarmSound",
  "bindStatus": "bind",
  "status": "online",
  "sdCardStatus": "empty",
  "permission": "DevControl",
  "version": "Eng_P_V2.800.0000000.12.R.20201105",
  "ncCode": "018",
  "securityCode": "L267B022"
}

Headers

Authorization
string
required

Access Token

OrganizationId
string
required

Organization ID

Body

application/json

addCameraRequest

Add Camera Request Api Model

brand
string

Camera brand.

Example:

"IMOU"

deviceSerial
string

Camera serial no

Example:

"6C0511EPAJC9B32"

name
string

Camera name

Example:

"My Camera"

organizationId
integer

The organization to which the camera will be attached.

Example:

128001

securityCode
string

Camera security code.

Example:

"A877B022"

ncCode
string

Camera ncCode

Example:

"012"

subscriptionId
integer

Subscription Id

Example:

12

Response

Camera response.

resourceId
integer
Example:

254

networkId
string
Example:

"6C0511EPAJC9B32"

organizationId
integer
Example:

128001

name
string
Example:

"My Camera"

brand
string
Example:

"IMOU"

deviceType
string
Example:

"IPC"

httpPort
string
Example:

"80"

rtspPort
string
Example:

"554"

deviceModelName
string
Example:

"Cube 4MP"

channelNum
string
Example:

"1"

privateMediaPort
string
Example:

"554"

port
string
Example:

"37777"

deviceModel
string
Example:

"IPC-K42"

ability
string
Example:

"SMDH,OSD,2560x1440,mp4,MDMD,VC,WDRV2,AudioTalk,AlarmSound"

bindStatus
string
Example:

"bind"

status
string
Example:

"online"

sdCardStatus
string
Example:

"empty"

permission
string
Example:

"DevControl"

version
string
Example:

"Eng_P_V2.800.0000000.12.R.20201105"

ncCode
string
Example:

"018"

securityCode
string
Example:

"L267B022"