Skip to main content
POST
/
driveImport
/
v1
/
driveImport
/
v1
/
imports
/
upload
cURL
curl --request POST \
  --url https://aodocs.altirnao.com/api/driveImport/v1/driveImport/v1/imports/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contentLengthInBytes": 123,
  "fileId": "<string>",
  "kind": "<string>",
  "mimeType": "<string>",
  "name": "<string>"
}
'
{
  "fileId": "<string>",
  "kind": "<string>",
  "uploadUrl": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

domain
string
required

The G Suite domain

libraryId
string
required

The ID of the library that is used during the import.

classId
string
required

The ID of the document class that is used during the import.

securityCode
string

The security code

Body

application/json
contentLengthInBytes
integer<int32>
fileId
string
kind
string
mimeType
string
name
string

Response

200 - application/json

A ApiInitiateUploadResponse response

fileId
string
kind
string
uploadUrl
string