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

**********************
create_custom_metadata
**********************



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

  

  Adds one or more custom properties to the specified resource (a folder, document, or version).

  

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


  **Request Syntax**
  ::

    response = client.create_custom_metadata(
        AuthenticationToken='string',
        ResourceId='string',
        VersionId='string',
        CustomMetadata={
            'string': 'string'
        }
    )
    
  :type AuthenticationToken: string
  :param AuthenticationToken: 

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

    

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

    The ID of the resource.

    

  
  :type VersionId: string
  :param VersionId: 

    The ID of the version, if the custom metadata is being added to a document version.

    

  
  :type CustomMetadata: dict
  :param CustomMetadata: **[REQUIRED]** 

    Custom metadata in the form of name-value pairs.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :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.ProhibitedStateException`

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

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

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

  