Skip to content

Optional suspended Parameter Causes TypeError When Updating Organization #261

@geigerj0

Description

@geigerj0

Problem

Calling the organization update API without passing a suspended parameter raises a TypeError about a missing required positional argument, even though suspended is Optional:

Example

Using the client like so

cf_client.v3.organizations.update(org_guid, org_name, meta_labels={"foo": "bar"})

Results in

TypeError: OrganizationManager.update() missing 1 required positional argument: 'suspended'

Potential Solution

Could assign None to the optional be the fix of the problem?

suspended: Optional[bool] = None,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions