:doc:`Connect <../../connect>` / Client / update_workspace_visibility

***************************
update_workspace_visibility
***************************



.. py:method:: Connect.Client.update_workspace_visibility(**kwargs)

  

  Updates the visibility setting of a workspace, controlling whether it is available to all users, assigned users only, or none.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateWorkspaceVisibility>`_  


  **Request Syntax**
  ::

    response = client.update_workspace_visibility(
        InstanceId='string',
        WorkspaceId='string',
        Visibility='ALL'|'ASSIGNED'|'NONE'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  :type WorkspaceId: string
  :param WorkspaceId: **[REQUIRED]** 

    The identifier of the workspace.

    

  
  :type Visibility: string
  :param Visibility: **[REQUIRED]** 

    The visibility setting for the workspace. Valid values are: ``ALL`` (available to all users), ``ASSIGNED`` (available only to assigned users and routing profiles), and ``NONE`` (not visible to any users).

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Connect.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  