Skip to main content
POST
/
library
/
v1
/
library
/
{libraryName}
cURL
curl --request POST \
  --url https://aodocs.altirnao.com/api/library/v1/library/{libraryName} \
  --header 'Authorization: Bearer <token>'
{
  "jobId": "<string>",
  "kind": "<string>",
  "libraryId": "<string>",
  "libraryName": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

libraryName
string
required

The name of the library

Query Parameters

storageAdmin
string

The email address of the storage account. If empty, the default storage account will be used.

libraryTemplateId
string

The ID of a library template (can be empty if either source library ID or Drive folder ID is not). To create standard library types, use one of: DOCUMENT_MANAGEMENT, TEAM_FOLDER, SECURED_FOLDER (short versions are also supported: DMS, TF, SF).

sourceLibraryId
string

The ID of a library in the same domain to create the library from (can be empty if either template library ID or Drive folder ID is not)

driveFolderId
string

The ID of a Drive folder that will become the root folder of the new library (can be empty if either template library ID or source library ID is not). All files within this folder will be imported into the new library.

objectStorageLocation
string

Location of the bucket to store attachments, either a customer owned bucket or a AODocs owned bucket(AODOCS_MANAGED)

securityCode
string

The security code

domain
string

The G Suite domain

locale
string

The locale of the library

keepDocumentCreationDate
boolean
default:false

Whether the documents copied from template library have their creation date set based on the original document's creation date. Else it will be the library's creation date

documentCopyMode
enum<string>

The mode of copy of the documents when creating the library from a template library (default value: NO_VERSION) or by copy from a source library (default value: NONE). The possible values are: 'NONE' (no document is copied), 'NO_VERSION' (only the head version of the documents is copied), 'WITH_VERSION' (all versions of the documents are copied)

Available options:
NONE,
NO_VERSION,
WITH_VERSION

Response

200 - application/json

A ApiCreateLibraryResponse response

jobId
string
kind
string
libraryId
string
libraryName
string