Add FGate
Description
This functionality is used for users to add FGates.
Note:
Can only be added by the owner. An FGate can only have one owner at a timeRequest URL (Choose one)
URL1:
[Host Server]/api/client/box/reg
URL2:
[Host Server]/api/client/v2/box/register
Query Parameters
Field Type Description Host Server string See Explanation of terms Method
POST
Headers
Field Type Description Authorization string "Bearer " + Access Token obtained from the login interface Body
Field Type Description alias string FGate Alias boxNo string FGate Serial No boxPassword string FGate Password groupId string FGate group UID or Group Name, choose one groupName string FGate group UID or Group Name, choose one. If it does not exist, a new group will be created Successful Response
Return FGate's regId (return as string, not in JSON format).
Return Code
Field Description 304 The FGate has already been added. 401 Access Token Expired 404 The FGate does not exist. 406 The FGate has already been added by someone else. 403 FGate's password is incorrect. 414 The FGate serial number is not valid. 417 FGate is in your device list. Please see the example in the following image.