:doc:`DeadlineCloud <../../deadline>` / Client / update_task

***********
update_task
***********



.. py:method:: DeadlineCloud.Client.update_task(**kwargs)

  

  Updates a task.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/deadline-2023-10-12/UpdateTask>`_  


  **Request Syntax**
  ::

    response = client.update_task(
        clientToken='string',
        targetRunStatus='READY'|'FAILED'|'SUCCEEDED'|'CANCELED'|'SUSPENDED'|'PENDING',
        farmId='string',
        queueId='string',
        jobId='string',
        stepId='string',
        taskId='string'
    )
    
  :type clientToken: string
  :param clientToken: 

    The unique token which the server uses to recognize retries of the same request.

    This field is autopopulated if not provided.

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

    The run status with which to start the task.

    

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

    The farm ID to update.

    

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

    The queue ID to update.

    

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

    The job ID to update.

    

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

    The step ID to update.

    

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

    The task ID to update.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DeadlineCloud.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.InternalServerErrorException`

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

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

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ConflictException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ValidationException`

  