Skip to content

Commit 6ea991c

Browse files
authored
Make name optional when updating an Organization (#311)
* Make name optional when updating an Organization
1 parent 52e95a3 commit 6ea991c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/test_organizations.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ def test_update_organization_with_domain_data(
248248

249249
updated_organization = self.organizations.update_organization(
250250
organization="org_01EHT88Z8J8795GZNQ4ZP1J81T",
251-
name="Example Organization",
252251
domain_data=[{"domain": "example.io", "state": "verified"}],
253252
allow_profiles_outside_organization=True,
254253
)
@@ -275,7 +274,6 @@ def test_update_organization_with_domains(
275274
):
276275
updated_organization = self.organizations.update_organization(
277276
organization="org_01EHT88Z8J8795GZNQ4ZP1J81T",
278-
name="Example Organization",
279277
domains=["example.io"],
280278
allow_profiles_outside_organization=True,
281279
)

workos/organizations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def create_organization(self, organization, idempotency_key=None):
233233
def update_organization(
234234
self,
235235
organization,
236-
name,
236+
name=None,
237237
allow_profiles_outside_organization=None,
238238
domains=None,
239239
domain_data=None,
@@ -243,7 +243,7 @@ def update_organization(
243243
244244
Args:
245245
organization(str) - Organization's unique identifier.
246-
name (str) - A unique, descriptive name for the organization.
246+
name (str) - A unique, descriptive name for the organization. (Optional)
247247
allow_profiles_outside_organization (boolean) - [Deprecated] Whether Connections
248248
within the Organization allow profiles that are outside of the Organization's
249249
configured User Email Domains. (Optional)

0 commit comments

Comments
 (0)