:doc:`WorkDocs <../../workdocs>` / Client / create_labels

*************
create_labels
*************



.. py:method:: WorkDocs.Client.create_labels(**kwargs)

  

  Adds the specified list of labels to the given resource (a document or folder)

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateLabels>`_  


  **Request Syntax**
  ::

    response = client.create_labels(
        ResourceId='string',
        Labels=[
            'string',
        ],
        AuthenticationToken='string'
    )
    
  :type ResourceId: string
  :param ResourceId: **[REQUIRED]** 

    The ID of the resource.

    

  
  :type Labels: list
  :param Labels: **[REQUIRED]** 

    List of labels to add to the resource.

    

  
    - *(string) --* 

    

  :type AuthenticationToken: string
  :param AuthenticationToken: 

    Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkDocs.Client.exceptions.EntityNotExistsException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedOperationException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedResourceAccessException`

  
  *   :py:class:`WorkDocs.Client.exceptions.FailedDependencyException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`WorkDocs.Client.exceptions.TooManyLabelsException`

  