WorkDocs / Client / create_labels

create_labels#

WorkDocs.Client.create_labels(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.create_labels(
    ResourceId='string',
    Labels=[
        'string',
    ],
    AuthenticationToken='string'
)
Parameters:
  • ResourceId (string) –

    [REQUIRED]

    The ID of the resource.

  • Labels (list) –

    [REQUIRED]

    List of labels to add to the resource.

    • (string) –

  • AuthenticationToken (string) – Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • WorkDocs.Client.exceptions.EntityNotExistsException

  • WorkDocs.Client.exceptions.UnauthorizedOperationException

  • WorkDocs.Client.exceptions.UnauthorizedResourceAccessException

  • WorkDocs.Client.exceptions.FailedDependencyException

  • WorkDocs.Client.exceptions.ServiceUnavailableException

  • WorkDocs.Client.exceptions.TooManyLabelsException