create_folder(**kwargs)¶Creates a folder with the specified name and parent folder.
See also: AWS API Documentation
Request Syntax
response = client.create_folder(
    AuthenticationToken='string',
    Name='string',
    ParentFolderId='string'
)
[REQUIRED]
The ID of the parent folder.
dict
Response Syntax
{
    'Metadata': {
        'Id': 'string',
        'Name': 'string',
        'CreatorId': 'string',
        'ParentFolderId': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'ResourceState': 'ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED',
        'Signature': 'string',
        'Labels': [
            'string',
        ],
        'Size': 123,
        'LatestVersionSize': 123
    }
}
Response Structure
(dict) --
Metadata (dict) --
The metadata of the folder.
Id (string) --
The ID of the folder.
Name (string) --
The name of the folder.
CreatorId (string) --
The ID of the creator.
ParentFolderId (string) --
The ID of the parent folder.
CreatedTimestamp (datetime) --
The time when the folder was created.
ModifiedTimestamp (datetime) --
The time when the folder was updated.
ResourceState (string) --
The resource state of the folder.
Signature (string) --
The unique identifier created from the subfolders and documents of the folder.
Labels (list) --
List of labels on the folder.
Size (integer) --
The size of the folder metadata.
LatestVersionSize (integer) --
The size of the latest version of the folder metadata.
Exceptions
WorkDocs.Client.exceptions.EntityNotExistsExceptionWorkDocs.Client.exceptions.EntityAlreadyExistsExceptionWorkDocs.Client.exceptions.ProhibitedStateExceptionWorkDocs.Client.exceptions.ConflictingOperationExceptionWorkDocs.Client.exceptions.ConcurrentModificationExceptionWorkDocs.Client.exceptions.LimitExceededExceptionWorkDocs.Client.exceptions.UnauthorizedOperationExceptionWorkDocs.Client.exceptions.UnauthorizedResourceAccessExceptionWorkDocs.Client.exceptions.FailedDependencyExceptionWorkDocs.Client.exceptions.ServiceUnavailableException