def create_workspace(namespace, name, authorizationDomain="<STR_LIT>", attributes=None):
if not attributes:<EOL><INDENT>attributes = dict()<EOL><DEDENT>body = {<EOL>"<STR_LIT>": namespace,<EOL>"<STR_LIT:name>": name,<EOL>"<STR_LIT>": attributes<EOL>}<EOL>if authorizationDomain:<EOL><INDENT>authDomain = [{"<STR_LIT>": authorizationDomain}]<EOL><DEDENT>else:<EOL><INDENT>authDomain = []<EOL><DEDENT>body["<STR_LIT>"] = authDomain<EOL>return __post("<STR_LIT>", json=body)<EOL>
Create a new FireCloud Workspace.

    Args:
        namespace (str): project to which workspace belongs
        name (str): Workspace name
        protected (bool): If True, this workspace is protected by dbGaP
            credentials. This option is only available if your FireCloud
            account is linked to your NIH account.
        attributes (dict): Workspace attributes as key value pairs

    Swagger:
        https://api.firecloud.org/#!/Workspaces/createWorkspace