CommandRegister plug-and-play (push-module) camera

Register plug-and-play (push-module) camera

Registers a plug-and-play camera in 3dEye by its registration code (POST /v3/cameras/pnp/create) and persists the registration event.

curl -X POST "https://api.spkey.co/cameras/example_string/RegisterPnpCamera" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "cameraId": "example_string",
  "name": "John Doe",
  "registrationCode": "example_string",
  "orgId": "example_string",
  "ownerId": "example_string",
  "login": "example_string",
  "password": "example_string"
}'
{
  "success": true,
  "aggregateId": "example_string",
  "version": 3.14,
  "event": "null"
}
POST
/cameras/{id}/RegisterPnpCamera
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.
API Key (header: X-API-Key)
X-API-Keystring
Required

API key for B2B organization access. Provided during organization onboarding.

API key for B2B organization access. Provided during organization onboarding.
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Required

Camera name

Min length: 1
registrationCodestring
Required

Registration code of the plug-and-play camera (printed on the device / provided by its push module)

Min length: 1
orgIdstring
Required

Organization ID — opaque string, conventionally but not always a UUID

Min length: 1
loginstring
Required

Camera admin login name (required by 3dEye)

Min length: 1
passwordstring
Required

Camera admin password (required by 3dEye)

Min length: 1
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

header
X-API-Keystring
Required

API Key for authentication. API key for B2B organization access. Provided during organization onboarding.

Path Parameters

Body

application/json
registrationCodestring
Required

Registration code of the plug-and-play camera (printed on the device / provided by its push module)

orgIdstring
Required

Organization ID — opaque string, conventionally but not always a UUID

loginstring
Required

Camera admin login name (required by 3dEye)

passwordstring
Required

Camera admin password (required by 3dEye)

Responses

successboolean
Required
aggregateIdstring
Required
versionnumber
Required
eventobject,null
Required