Skip to main content
POST
/
search
/
v1
/
libraries
/
{libraryId}
/
search
/
drive
cURL
curl --request POST \
  --url https://aodocs.altirnao.com/api/search/v1/libraries/{libraryId}/search/drive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filters": [
    {
      "column": "<string>",
      "joinType": "AND",
      "kind": "<string>",
      "operator": "EQUAL",
      "value": "<string>"
    }
  ],
  "kind": "<string>"
}
'
{
  "jobId": "<string>",
  "kind": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

libraryId
string
required

The ID of the library

Query Parameters

classId
string

The ID of the document class

viewId
string

The ID of the view

searchQuery
string
required

The text searched to filter documents

publishState
enum<string>

The type of documents to find: 'DRAFT_ONLY' to get draft versions only (if access to it), 'PUBLISHED' to get main versions only (if access to it), 'ALL' for both (the draft version if access to it else the main version). The last mode is the default one.

Available options:
PUBLISHED,
DRAFT_ONLY,
ALL
securityCode
string

The security code

domain
string

The G Suite domain

Body

application/json

List of filters to apply to the search.

filters
object[]
kind
string

Response

200 - application/json

A ApiJobId response

jobId
string
kind
string