Skip to content

Commit 5c15ac9

Browse files
committed
update links to swagger docs
1 parent 7d35392 commit 5c15ac9

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

auth0/v3/management/organizations.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def all_organizations(self, page=None, per_page=None):
4141
per_page (int, optional): The amount of entries per page. When not set,
4242
the default value is up to the server.
4343
44-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
44+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_organizations
4545
"""
4646
params = {}
4747
params['page'] = page
@@ -55,7 +55,7 @@ def get_organization_by_name(self, name=None):
5555
Args:
5656
name (str): The name of the organization to retrieve.
5757
58-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
58+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_name_by_name
5959
"""
6060
params = {}
6161
params['name'] = name
@@ -68,7 +68,7 @@ def get_organization(self, id):
6868
Args:
6969
id (str): Id of organization to retrieve.
7070
71-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
71+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_organizations_by_id
7272
"""
7373
params = {}
7474

@@ -80,7 +80,7 @@ def create_organization(self, body):
8080
Args:
8181
body (dict): Attributes for the new organization.
8282
83-
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
83+
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_organizations
8484
"""
8585

8686
return self.client.post(self._url(), data=body)
@@ -93,7 +93,7 @@ def update_organization(self, id, body):
9393
9494
body (dict): Attributes to modify.
9595
96-
See: https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id
96+
See: https://auth0.com/docs/api/management/v2#!/Organizations/patch_organizations_by_id
9797
"""
9898

9999
return self.client.patch(self._url(id), data=body)
@@ -104,7 +104,7 @@ def delete_organization(self, id):
104104
Args:
105105
id (str): Id of organization to delete.
106106
107-
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
107+
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_organizations_by_id
108108
"""
109109

110110
return self.client.delete(self._url(id))
@@ -123,7 +123,7 @@ def all_organization_connections(self, id, page=None, per_page=None):
123123
per_page (int, optional): The amount of entries per page. When not set,
124124
the default value is up to the server.
125125
126-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
126+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_enabled_connections
127127
"""
128128
params = {}
129129
params['page'] = page
@@ -139,7 +139,7 @@ def get_organization_connection(self, id, connection_id):
139139
140140
connection_id (str): the ID of the connection.
141141
142-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
142+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_enabled_connections_by_connectionId
143143
"""
144144
params = {}
145145

@@ -153,7 +153,7 @@ def create_organization_connection(self, id, body):
153153
154154
body (dict): Attributes for the connection to add.
155155
156-
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
156+
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_enabled_connections
157157
"""
158158

159159
return self.client.post(self._url(id, 'enabled_connections'), data=body)
@@ -168,7 +168,7 @@ def update_organization_connection(self, id, connection_id, body):
168168
169169
body (dict): Attributes to modify.
170170
171-
See: https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id
171+
See: https://auth0.com/docs/api/management/v2#!/Organizations/patch_enabled_connections_by_connectionId
172172
"""
173173

174174
return self.client.patch(self._url(id, 'enabled_connections', connection_id), data=body)
@@ -181,7 +181,7 @@ def delete_organization_connection(self, id, connection_id):
181181
182182
connection_id (str): the ID of the connection to delete.
183183
184-
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
184+
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_enabled_connections_by_connectionId
185185
"""
186186

187187
return self.client.delete(self._url(id, 'enabled_connections', connection_id))
@@ -199,7 +199,7 @@ def all_organization_members(self, id, page=None, per_page=None):
199199
per_page (int, optional): The amount of entries per page. When not set,
200200
the default value is up to the server.
201201
202-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
202+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_members
203203
"""
204204
params = {}
205205
params['page'] = page
@@ -215,7 +215,7 @@ def create_organization_members(self, id, body):
215215
216216
body (dict): Attributes from the members to add.
217217
218-
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
218+
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_members
219219
"""
220220

221221
return self.client.post(self._url(id, 'members'), data=body)
@@ -228,7 +228,7 @@ def delete_organization_members(self, id, body):
228228
229229
body (dict): Attributes from the members to delete
230230
231-
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
231+
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_members
232232
"""
233233

234234
return self.client.delete(self._url(id, 'members'), data=body)
@@ -248,7 +248,7 @@ def all_organization_member_roles(self, id, user_id, page=None, per_page=None):
248248
per_page (int, optional): The amount of entries per page. When not set,
249249
the default value is up to the server.
250250
251-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
251+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_organization_member_roles
252252
"""
253253
params = {}
254254
params['page'] = page
@@ -266,7 +266,7 @@ def create_organization_member_roles(self, id, user_id, body):
266266
267267
body (dict): Attributes from the members to add.
268268
269-
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
269+
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_organization_member_roles
270270
"""
271271

272272
return self.client.post(self._url(id, 'members', user_id, 'roles'), data=body)
@@ -281,7 +281,7 @@ def delete_organization_member_roles(self, id, user_id, body):
281281
282282
body (dict): Attributes from the members to delete
283283
284-
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
284+
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_organization_member_roles
285285
"""
286286

287287
return self.client.delete(self._url(id, 'members', user_id, 'roles'), data=body)
@@ -300,7 +300,7 @@ def all_organization_invitations(self, id, page=None, per_page=None):
300300
per_page (int, optional): The amount of entries per page. When not set,
301301
the default value is up to the server.
302302
303-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
303+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_invitations
304304
"""
305305
params = {}
306306
params['page'] = page
@@ -316,7 +316,7 @@ def get_organization_invitation(self, id, invitaton_id):
316316
317317
invitaton_id (str): the ID of the invitation.
318318
319-
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
319+
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_invitations_by_invitation_id
320320
"""
321321
params = {}
322322

@@ -330,7 +330,7 @@ def create_organization_invitation(self, id, body):
330330
331331
body (dict): Attributes for the invitation to create.
332332
333-
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
333+
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_invitations
334334
"""
335335

336336
return self.client.post(self._url(id, 'invitations'), data=body)
@@ -343,7 +343,7 @@ def delete_organization_invitation(self, id, invitation_id):
343343
344344
invitation_id (str): the ID of the invitation to delete.
345345
346-
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
346+
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_invitations_by_invitation_id
347347
"""
348348

349349
return self.client.delete(self._url(id, 'invitations', invitation_id))

auth0/v3/management/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def list_organizations(self, id, page=0, per_page=25, include_totals=True):
160160
include_totals (bool, optional): True if the query summary is
161161
to be included in the result, False otherwise. Defaults to True.
162162
163-
See https://auth0.com/docs/api/management/v2#!/Users/get_user_roles
163+
See https://auth0.com/docs/api/management/v2#!/Users/get_organizations
164164
"""
165165
params = {
166166
'per_page': per_page,

0 commit comments

Comments
 (0)