Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

create_labels

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