@@ -25,27 +25,35 @@ endpoints:
25
25
description : The contact's full name.
26
26
type : String
27
27
limit : 1-64 characters
28
+ value : " John Q. Public"
28
29
email :
29
30
description : The email address for the contact.
30
31
type : String
31
- phone_primary :
32
- description : A primary phone number for the contact.
33
- type : String
34
- phone_secondary :
35
- description : A secondary phone number for the contact.
36
- type : String
32
+
33
+ phone :
34
+ primary :
35
+ description : A primary phone number for the contact.
36
+ type : String
37
+ value : 215-555-3000
38
+ secondary :
39
+ description : A secondary phone number for the contact.
40
+ type : String
41
+ value : 215-555-3001
37
42
group :
38
43
description : Contacts can be associated with a monitored service by the group they belong to.
39
44
type : String
45
+ value : Support
40
46
examples :
41
47
curl : |
42
48
curl -H "Content-Type: application/json" \
43
49
-H "Authorization: Bearer $TOKEN" \
44
50
-X POST -d '{
45
51
"name": "John Q. Public",
46
52
47
- "phone_primary": "215-555-3000",
48
- "phone_secondary": "215-555-3001",
53
+ "phone": {
54
+ "primary": "215-555-3000",
55
+ "secondary": "215-555-3001",
56
+ },
49
57
"group": "Support",
50
58
}' \
51
59
https://$api_root/$version/managed/contacts
@@ -78,6 +86,7 @@ endpoints:
78
86
"phone": {
79
87
"primary": "215-555-4000",
80
88
"secondary": "215-555-4001",
89
+ },
81
90
"group": "Developers"
82
91
}' \
83
92
https://$api_root/$version/managed/contact/$contact_id
0 commit comments