:doc:`Personalize <../../personalize>` / Client / update_dataset

**************
update_dataset
**************



.. py:method:: Personalize.Client.update_dataset(**kwargs)

  

  Update a dataset to replace its schema with a new or existing one. For more information, see `Replacing a dataset's schema <https://docs.aws.amazon.com/personalize/latest/dg/updating-dataset-schema.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateDataset>`_  


  **Request Syntax**
  ::

    response = client.update_dataset(
        datasetArn='string',
        schemaArn='string'
    )
    
  :type datasetArn: string
  :param datasetArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the dataset that you want to update.

    

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

    The Amazon Resource Name (ARN) of the new schema you want use.

    

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

    
    ::

      {
          'datasetArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **datasetArn** *(string) --* 

        The Amazon Resource Name (ARN) of the dataset you updated.

        
  
  **Exceptions**
  
  *   :py:class:`Personalize.Client.exceptions.InvalidInputException`

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

  
  *   :py:class:`Personalize.Client.exceptions.ResourceInUseException`

  