Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make name optional when updating an Organization #311

Merged
merged 5 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions tests/test_organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ def test_update_organization_with_domain_data(

updated_organization = self.organizations.update_organization(
organization="org_01EHT88Z8J8795GZNQ4ZP1J81T",
name="Example Organization",
domain_data=[{"domain": "example.io", "state": "verified"}],
allow_profiles_outside_organization=True,
)
Expand All @@ -275,7 +274,6 @@ def test_update_organization_with_domains(
):
updated_organization = self.organizations.update_organization(
organization="org_01EHT88Z8J8795GZNQ4ZP1J81T",
name="Example Organization",
domains=["example.io"],
allow_profiles_outside_organization=True,
)
Expand Down
4 changes: 2 additions & 2 deletions workos/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def create_organization(self, organization, idempotency_key=None):
def update_organization(
self,
organization,
name,
name=None,
allow_profiles_outside_organization=None,
domains=None,
domain_data=None,
Expand All @@ -243,7 +243,7 @@ def update_organization(

Args:
organization(str) - Organization's unique identifier.
name (str) - A unique, descriptive name for the organization.
name (str) - A unique, descriptive name for the organization. (Optional)
allow_profiles_outside_organization (boolean) - [Deprecated] Whether Connections
within the Organization allow profiles that are outside of the Organization's
configured User Email Domains. (Optional)
Expand Down
Loading