Skip to content

Commit 790830d

Browse files
committed
Updated API from documentation release
1 parent 010dd0b commit 790830d

File tree

7 files changed

+154
-66
lines changed

7 files changed

+154
-66
lines changed

api-specs/api/resources/as-associate.raml

Lines changed: 68 additions & 29 deletions
Large diffs are not rendered by default.

api-specs/api/resources/associate-roles.raml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ type:
1010
(createable): AssociateRoleDraft
1111
description: An Associate Role enables permissions over a Business Unit to an Associate.
1212
get:
13+
displayName: Query AssociateRoles
1314
securedBy: [oauth_2_0: { scopes: ['view_associate_roles:{projectKey}'] }]
1415
responses:
1516
200:
1617
body:
1718
application/json:
1819
example: !include ../examples/associate-roles.example.json
1920
head:
21+
displayName: Check if AssociateRole exists by Query Predicate
2022
securedBy: [oauth_2_0: { scopes: ['view_associate_roles:{projectKey}'] }]
2123
description: Checks if one or more AssociateRoles exist for the provided query predicate. Returns a `200 OK` status if any AssociateRole match the query predicate, or a `404 Not Found` otherwise.
2224
queryParameters:
2325
where?:
2426
type: QueryPredicate[]
2527
post:
28+
displayName: Create AssociateRole
2629
securedBy: [oauth_2_0: { scopes: ['manage_associate_roles:{projectKey}'] }]
2730
description: |
2831
Creating a Associate Role generates the [AssociateRoleCreated](ctp:api:type:AssociateRoleCreatedMessage) Message.
@@ -42,16 +45,19 @@ post:
4245
resourceType: AssociateRole
4346
resourceUpdateType: AssociateRoleUpdate
4447
get:
48+
displayName: Get AssociateRole by Key
4549
securedBy: [oauth_2_0: { scopes: ['view_associate_roles:{projectKey}'] }]
4650
responses:
4751
200:
4852
body:
4953
application/json:
5054
example: !include ../examples/associate-role.example.json
5155
head:
56+
displayName: Check if AssociateRole exists by Key
5257
securedBy: [oauth_2_0: { scopes: ['view_associate_roles:{projectKey}'] }]
5358
description: Checks if an AssociateRole exists with the provided `key`. Returns a `200 OK` status if the AssociateRole exists or a `404 Not Found` otherwise.
5459
post:
60+
displayName: Update AssociateRole by Key
5561
securedBy: [oauth_2_0: { scopes: ['manage_associate_roles:{projectKey}'] }]
5662
body:
5763
application/json:
@@ -62,6 +68,7 @@ post:
6268
application/json:
6369
example: !include ../examples/associate-role.example.json
6470
delete:
71+
displayName: Delete AssociateRole by Key
6572
securedBy: [oauth_2_0: { scopes: ['manage_associate_roles:{projectKey}'] }]
6673
description: |
6774
Deleting an AssociateRole generates the [AssociateRoleDeleted](ctp:api:type:AssociateRoleDeletedMessage) Message. An AssociateRole can only be deleted if it is not assigned to any [Associates](ctp:api:type:Associate).
@@ -78,16 +85,19 @@ post:
7885
resourceType: AssociateRole
7986
resourceUpdateType: AssociateRoleUpdate
8087
get:
88+
displayName: Get AssociateRole by ID
8189
securedBy: [oauth_2_0: { scopes: ['view_associate_roles:{projectKey}'] }]
8290
responses:
8391
200:
8492
body:
8593
application/json:
8694
example: !include ../examples/associate-role.example.json
8795
head:
96+
displayName: Check if AssociateRole exists by ID
8897
securedBy: [oauth_2_0: { scopes: ['view_associate_roles:{projectKey}'] }]
8998
description: Checks if an AssociateRole exists with the provided `id`. Returns a `200 OK` status if the AssociateRole exists or a `404 Not Found` otherwise.
9099
post:
100+
displayName: Update AssociateRole by ID
91101
securedBy: [oauth_2_0: { scopes: ['manage_associate_roles:{projectKey}'] }]
92102
body:
93103
application/json:
@@ -98,6 +108,7 @@ post:
98108
application/json:
99109
example: !include ../examples/associate-role.example.json
100110
delete:
111+
displayName: Delete AssociateRole by ID
101112
securedBy: [oauth_2_0: { scopes: ['manage_associate_roles:{projectKey}'] }]
102113
responses:
103114
200:

api-specs/api/resources/business-units.raml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ type:
1010
(createable): BusinessUnitDraft
1111
description: A Business Unit can represent a Company or a Division.
1212
get:
13+
displayName: Query BusinessUnits
1314
securedBy: [oauth_2_0: { scopes: ['view_business_units:{projectKey}'] }]
1415
responses:
1516
200:
1617
body:
1718
application/json:
1819
example: !include ../examples/business-units.example.json
1920
head:
21+
displayName: Check if BusinessUnit exists by Query Predicate
2022
securedBy: [oauth_2_0: { scopes: ['view_business_units:{projectKey}'] }]
2123
description: Checks if one or more BusinessUnits exist for the provided query predicate. Returns a `200 OK` status if any BusinessUnits match the query predicate, or a `404 Not Found` otherwise.
2224
queryParameters:
2325
where?:
2426
type: QueryPredicate[]
2527
post:
28+
displayName: Create BusinessUnit
2629
securedBy: [oauth_2_0: { scopes: ['manage_business_units:{projectKey}'] }]
2730
body:
2831
application/json:
@@ -40,16 +43,19 @@ post:
4043
resourceType: BusinessUnit
4144
resourceUpdateType: BusinessUnitUpdate
4245
get:
46+
displayName: Get BusinessUnit by Key
4347
securedBy: [oauth_2_0: { scopes: ['view_business_units:{projectKey}'] }]
4448
responses:
4549
200:
4650
body:
4751
application/json:
4852
example: !include ../examples/business-unit.example.json
4953
head:
54+
displayName: Check if BusinessUnit exists by Key
5055
securedBy: [oauth_2_0: { scopes: ['view_business_units:{projectKey}'] }]
5156
description: Checks if a BusinessUnit exists with the provided `key`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
5257
post:
58+
displayName: Update BusinessUnit by Key
5359
securedBy: [oauth_2_0: { scopes: ['manage_business_units:{projectKey}'] }]
5460
body:
5561
application/json:
@@ -60,6 +66,7 @@ post:
6066
application/json:
6167
example: !include ../examples/business-unit.example.json
6268
delete:
69+
displayName: Delete BusinessUnit by Key
6370
securedBy: [oauth_2_0: { scopes: ['manage_business_units:{projectKey}'] }]
6471
responses:
6572
200:
@@ -74,16 +81,19 @@ post:
7481
resourceType: BusinessUnit
7582
resourceUpdateType: BusinessUnitUpdate
7683
get:
84+
displayName: Get BusinessUnit by ID
7785
securedBy: [oauth_2_0: { scopes: ['view_business_units:{projectKey}'] }]
7886
responses:
7987
200:
8088
body:
8189
application/json:
8290
example: !include ../examples/business-unit.example.json
8391
head:
92+
displayName: Check if BusinessUnit exists by ID
8493
securedBy: [oauth_2_0: { scopes: ['view_business_units:{projectKey}'] }]
8594
description: Checks if a BusinessUnit exists with the provided `id`. Returns a `200 OK` status if the BusinessUnit exists or a `404 Not Found` otherwise.
8695
post:
96+
displayName: Update BusinessUnit by ID
8797
securedBy: [oauth_2_0: { scopes: ['manage_business_units:{projectKey}'] }]
8898
body:
8999
application/json:
@@ -94,6 +104,7 @@ post:
94104
application/json:
95105
example: !include ../examples/business-unit.example.json
96106
delete:
107+
displayName: Delete BusinessUnit by ID
97108
securedBy: [oauth_2_0: { scopes: ['manage_business_units:{projectKey}'] }]
98109
responses:
99110
200:
@@ -142,7 +153,6 @@ post:
142153
example: !include ../examples/BusinessUnit/BusinessUnitAssociateResponseExample.json
143154
/search:
144155
type: base
145-
displayName: Business Unit Search
146156
description: |
147157
This endpoint provides high-performance search queries over Business Units.
148158
post:
@@ -159,6 +169,7 @@ post:
159169
application/json:
160170
type: BusinessUnitPagedSearchResponse
161171
head:
172+
displayName: Check if Business Unit Search index exists
162173
securedBy: [oauth_2_0: { scopes: ['view_business_units:{projectKey}'] }]
163174
description: |
164175
Checks whether a search index of Business Units exists for a Project.
@@ -170,9 +181,8 @@ post:
170181
description: A search index does not exist and the [Search Business Units](ctp:api:endpoint:/{projectKey}/business-units/search:POST) endpoint returns a 409 error.
171182
/search/indexing-status:
172183
type: base
173-
displayName: Business Unit Search Status
174184
get:
175-
displayName: Business Unit Search Status
185+
displayName: Get indexing status of Business Unit Search
176186
description: |
177187
Returns the indexing status of the Business Unit Search for a Project.
178188
securedBy: [oauth_2_0: { scopes: ['view_project_settings:{projectKey}'] }]

api-specs/api/resources/customer-groups.raml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type:
1010
(createable): CustomerGroupDraft
1111
description: customer-groups are used to evaluate products and channels.
1212
get:
13+
displayName: Query CustomerGroups
1314
queryParameters:
1415
where:
1516
description: |-
@@ -31,6 +32,7 @@ get:
3132
application/json:
3233
example: !include ../examples/customer-groups.example.json
3334
head:
35+
displayName: Check if CustomerGroup exists by Query Predicate
3436
securedBy:
3537
[
3638
oauth_2_0:
@@ -47,6 +49,7 @@ head:
4749
where?:
4850
type: QueryPredicate[]
4951
post:
52+
displayName: Create CustomerGroup
5053
securedBy:
5154
[
5255
oauth_2_0:
@@ -74,6 +77,7 @@ post:
7477
resourceType: CustomerGroup
7578
resourceUpdateType: CustomerGroupUpdate
7679
get:
80+
displayName: Get CustomerGroup by Key
7781
securedBy:
7882
[
7983
oauth_2_0:
@@ -91,6 +95,7 @@ post:
9195
application/json:
9296
example: !include ../examples/customer-group.example.json
9397
head:
98+
displayName: Check if CustomerGroup exists by Key
9499
securedBy:
95100
[
96101
oauth_2_0:
@@ -104,6 +109,7 @@ post:
104109
]
105110
description: Checks if a CustomerGroup exists with the provided `key`. Returns a `200 OK` status if the CustomerGroup exists or a `404 Not Found` otherwise.
106111
post:
112+
displayName: Update CustomerGroup by Key
107113
securedBy:
108114
[
109115
oauth_2_0:
@@ -125,6 +131,7 @@ post:
125131
application/json:
126132
example: !include ../examples/customer-group.example.json
127133
delete:
134+
displayName: Delete CustomerGroup by Key
128135
securedBy:
129136
[
130137
oauth_2_0:
@@ -149,6 +156,7 @@ post:
149156
resourceType: CustomerGroup
150157
resourceUpdateType: CustomerGroupUpdate
151158
get:
159+
displayName: Get CustomerGroup by ID
152160
securedBy:
153161
[
154162
oauth_2_0:
@@ -166,6 +174,7 @@ post:
166174
application/json:
167175
example: !include ../examples/customer-group.example.json
168176
head:
177+
displayName: Check if CustomerGroup exists by ID
169178
securedBy:
170179
[
171180
oauth_2_0:
@@ -179,6 +188,7 @@ post:
179188
]
180189
description: Checks if a CustomerGroup exists with the provided `id`. Returns a `200 OK` status if the CustomerGroup exists or a `404 Not Found` otherwise.
181190
post:
191+
displayName: Update CustomerGroup by ID
182192
securedBy:
183193
[
184194
oauth_2_0:
@@ -199,6 +209,7 @@ post:
199209
application/json:
200210
example: !include ../examples/customer-group.example.json
201211
delete:
212+
displayName: Delete CustomerGroup by ID
202213
securedBy:
203214
[
204215
oauth_2_0:

0 commit comments

Comments
 (0)