Skip to content

Commit a1ba25d

Browse files
committed
Made corrections
1 parent 832d4b7 commit a1ba25d

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

src/data/endpoints/managed.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ endpoints:
2828
email:
2929
description: The email address for the contact.
3030
type: String
31-
phone1:
31+
phone_primary:
3232
description: A primary phone number for the contact.
3333
type: String
34-
phone2:
35-
description: A primary phone number for the contact.
34+
phone_secondary:
35+
description: A secondary phone number for the contact.
3636
type: String
3737
group:
3838
description: Contacts can be associated with a monitored service by the group they belong to.
@@ -44,8 +44,8 @@ endpoints:
4444
-X POST -d '{
4545
"name": "John Q. Public",
4646
"email": "[email protected]",
47-
"phone1": "215-555-3000",
48-
"phone2": "215-555-3001",
47+
"phone_primary": "215-555-3000",
48+
"phoen_secondary": "215-555-3001",
4949
"group": "Support",
5050
}' \
5151
https://$api_root/$version/managed/contacts
@@ -75,9 +75,9 @@ endpoints:
7575
-X PUT -d '{
7676
"name": "John Q. Public, Jr.",
7777
"email": "[email protected]",
78-
"phone1": "215-555-4000",
79-
"phone2": "215-555-4001",
78+
"phone": {
79+
"primary": "215-555-4000",
80+
"secondary": "215-555-4001",
8081
"group": "Developers"
8182
}' \
8283
https://$api_root/$version/account/oauth-clients/$client_id
83-

src/data/objects/managedcontact.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ schema:
1414
type: String
1515
description: >
1616
The email address of the contact person.
17-
phone1:
18-
value: 215-555-3000
19-
type: String
20-
description: >
21-
If we need further information regarding a service, we may call this contact if a phone number is provided.
22-
phone2:
23-
value: 215-555-3001
24-
type: String
25-
description: >
26-
The secondary phone number of the contact person.
17+
phone:
18+
primary:
19+
value: 215-555-3000
20+
type: String
21+
description: >
22+
If we need further information regarding a service, we may call this contact if a phone number is provided.
23+
secondary:
24+
value: 215-555-3001
25+
type: String
26+
description: >
27+
The secondary phone number of the contact person.
2728
group:
2829
value: Support
2930
type: String

0 commit comments

Comments
 (0)