Add Alarm contact
Description
This interface can be used for users to add new alarm contacts.Request Address
URL:
[Host Server]/api/v2/contact
Query Parameters
Field Type Description Host Server string See details Explanation of terms Method
PUT
Headers
Field Type Description Authorization string "Bearer " + Access Token obtained from the login interface Body
JSON serialization
Field Type Description email string Alarm Contact Email name string Alarm Contact Name cellphone string Alarm Contact Phone Number enabled Boolean Enable or not noticeType int 0: None, 1: SMS, 2: Voice, 3: SMS and Voice memo string Note Successful Response
NULL
Return Code
Code Description 401 Token Expired 404 Alarm Contact Does Not Exist 400 Error message in the HTTP header[X-FBox-Code], see Appendix Three for details. Postman example is as follows:
- Please see the example in the following image.