Skip to content

Commit 6fa9e7a

Browse files
author
Josh Sager
committed
brk: Changed managed contacts phone to support envelope
ARB-500 #done * Primary, secondary managed contact phone numbers now in "phone" envelope * Fixed invalid JSON in example for PUT
1 parent 88bf061 commit 6fa9e7a

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

src/data/endpoints/managed.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,35 @@ endpoints:
2525
description: The contact's full name.
2626
type: String
2727
limit: 1-64 characters
28+
value: "John Q. Public"
2829
email:
2930
description: The email address for the contact.
3031
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
3742
group:
3843
description: Contacts can be associated with a monitored service by the group they belong to.
3944
type: String
45+
value: Support
4046
examples:
4147
curl: |
4248
curl -H "Content-Type: application/json" \
4349
-H "Authorization: Bearer $TOKEN" \
4450
-X POST -d '{
4551
"name": "John Q. Public",
4652
"email": "[email protected]",
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+
},
4957
"group": "Support",
5058
}' \
5159
https://$api_root/$version/managed/contacts
@@ -78,6 +86,7 @@ endpoints:
7886
"phone": {
7987
"primary": "215-555-4000",
8088
"secondary": "215-555-4001",
89+
},
8190
"group": "Developers"
8291
}' \
8392
https://$api_root/$version/managed/contact/$contact_id

0 commit comments

Comments
 (0)