Voltaserve API (1.0.0)

Download OpenAPI specification:Download

Files

Upload

Upload

query Parameters
workspace_id
required
string

Workspace ID

parent_id
string

Parent ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Delete

Delete

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Get by ID

Get by ID

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Patch

Patch

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Copy

Copy

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

ids
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Delete OCR

Delete OCR

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Get group permissions

Get group permissions

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get IDs

Get IDs

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
[
  • "string"
]

Get children count

Get children count

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
0
0

Get path

Get path

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get size

Get size

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
0
0

Get user permissions

Get user permissions

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
[
  • {
    }
]

ListByID

ListByID

path Parameters
id
required
string

ID

query Parameters
type
string

Type

page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

Move

Move

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

ids
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Download OCR

Download OCR

path Parameters
id
required
string

ID

query Parameters
access_token
required
string

Access Token

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Download original

Download original

path Parameters
id
required
string

ID

query Parameters
access_token
required
string

Access Token

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Download preview

Download preview

path Parameters
id
required
string

ID

query Parameters
access_token
required
string

Access Token

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Rename

Rename

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

name
required
string <= 255 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Revoke group permission

Revoke group permission

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

groupId
required
string
ids
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "groupId": "string",
  • "ids": [
    ]
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Update OCR language

Update OCR language

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

id
required
string

Responses

Request samples

Content type
application/json
{
  • "id": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Batch delete

Batch delete

Request Body schema: application/json

Body

ids
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
[
  • "string"
]

Batch get

Batch get

Request Body schema: application/json

Body

ids
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Update snapshot

Update snapshot

Request Body schema: application/json

Body

object (model.S3Object)
object (client.PipelineRunOptions)
object (model.S3Object)
object (model.S3Object)
object (model.S3Object)
object (model.Thumbnail)

Responses

Request samples

Content type
application/json
{
  • "ocr": {
    },
  • "options": {
    },
  • "original": {
    },
  • "preview": {
    },
  • "text": {
    },
  • "thumbnail": {
    }
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Create

Create

Request Body schema: application/json

Body

name
required
string <= 255 characters
parentId
string
workspaceId
required
string

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "parentId": "string",
  • "workspaceId": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Get by Path

Get by Path

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "isShared": true,
  • "name": "string",
  • "ocr": {
    },
  • "original": {
    },
  • "parentId": "string",
  • "permission": "string",
  • "preview": {
    },
  • "snapshots": [
    ],
  • "thumbnail": {
    },
  • "type": "string",
  • "updateTime": "string",
  • "version": 0,
  • "workspaceId": "string"
}

Grant group permission

Grant group permission

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

groupId
required
string
ids
required
Array of strings
permission
required
string
Enum: "viewer" "editor" "owner"

Responses

Request samples

Content type
application/json
{
  • "groupId": "string",
  • "ids": [
    ],
  • "permission": "viewer"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Grant user permission

Grant user permission

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

ids
required
Array of strings
permission
required
string
Enum: "viewer" "editor" "owner"
userId
required
string

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ],
  • "permission": "viewer",
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

ListByPath

ListByPath

query Parameters
path
required
string

Path

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Revoke user permission

Revoke user permission

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

ids
required
Array of strings
userId
required
string

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ],
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Groups

List

List

query Parameters
query
string

Query

organization_id
string

Organization ID

page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

Create

Create

Request Body schema: application/json

Body

image
string
name
required
string <= 255 characters
organizationId
required
string

Responses

Request samples

Content type
application/json
{
  • "image": "string",
  • "name": "string",
  • "organizationId": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "updateTime": "string"
}

Delete

Delete

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Get by ID

Get by ID

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "updateTime": "string"
}

Add member

Add member

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Remove member

Remove member

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

userId
required
string

Responses

Request samples

Content type
application/json
{
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Update name

Update name

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

name
required
string <= 255 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "updateTime": "string"
}

Invitations

Create

Create

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

emails
required
Array of strings
organizationId
required
string

Responses

Request samples

Content type
application/json
{
  • "emails": [
    ],
  • "organizationId": "string"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Delete

Delete

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Accept

Accept

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Delete

Delete

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Resend

Resend

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Get incoming

Get incoming

query Parameters
page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

Get outgoing

Get outgoing

query Parameters
organization_id
required
string

Organization ID

page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

Notifications

Get notifications

Get notifications

Responses

Response samples

Content type
application/json
[
  • {
    }
]

OCRLanguages

List

List

query Parameters
query
string

Query

page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

GetAll

GetAll

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Organizations

List

List

query Parameters
query
string

Query

page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

Create

Create

Request Body schema: application/json

Body

image
string
name
required
string <= 255 characters

Responses

Request samples

Content type
application/json
{
  • "image": "string",
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "name": "string",
  • "permission": "string",
  • "updateTime": "string"
}

Delete

Delete

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Get by ID

Get by ID

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "name": "string",
  • "permission": "string",
  • "updateTime": "string"
}

Leave

Leave

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Remove member

Remove member

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

userId
required
string

Responses

Request samples

Content type
application/json
{
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Update name

Update name

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

name
required
string <= 255 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "name": "string",
  • "permission": "string",
  • "updateTime": "string"
}

Storage

Get account usage

Get account usage

Responses

Response samples

Content type
application/json
{
  • "bytes": 0,
  • "maxBytes": 0,
  • "percentage": 0
}

Get file usage

Get file usage

query Parameters
id
required
string

File ID

Responses

Response samples

Content type
application/json
{
  • "bytes": 0,
  • "maxBytes": 0,
  • "percentage": 0
}

Get workspace usage

Get workspace usage

query Parameters
id
required
string

Workspace ID

Responses

Response samples

Content type
application/json
{
  • "bytes": 0,
  • "maxBytes": 0,
  • "percentage": 0
}

Users

List

List

query Parameters
query
string

Query

organization_id
string

Organization ID

group
string

Group ID

page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

Workspaces

List

List

query Parameters
query
string

Query

page
string

Page

size
string

Size

sort_by
string

Sort By

sort_order
string

Sort Order

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "page": 0,
  • "size": 0,
  • "totalElements": 0,
  • "totalPages": 0
}

Create

Create

Request Body schema: application/json

Body

image
string
name
required
string <= 255 characters
organizationId
required
string
storageCapacity
integer

Responses

Request samples

Content type
application/json
{
  • "image": "string",
  • "name": "string",
  • "organizationId": "string",
  • "storageCapacity": 0
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "isAutomaticOcrEnabled": true,
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "rootId": "string",
  • "storageCapacity": 0,
  • "updateTime": "string"
}

Delete

Delete

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string",
  • "moreInfo": "string",
  • "status": 0,
  • "userMessage": "string"
}

Get by ID

Get by ID

path Parameters
id
required
string

ID

Responses

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "isAutomaticOcrEnabled": true,
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "rootId": "string",
  • "storageCapacity": 0,
  • "updateTime": "string"
}

Update is automatic OCR enabled

Update is automatic OCR enabled

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

isEnabled
required
boolean

Responses

Request samples

Content type
application/json
{
  • "isEnabled": true
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "isAutomaticOcrEnabled": true,
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "rootId": "string",
  • "storageCapacity": 0,
  • "updateTime": "string"
}

Update name

Update name

path Parameters
id
required
string

ID

Request Body schema: application/json

Body

name
required
string <= 255 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "isAutomaticOcrEnabled": true,
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "rootId": "string",
  • "storageCapacity": 0,
  • "updateTime": "string"
}

Update storage capacity

Update storage capacity

path Parameters
id
required
string

Id

Request Body schema: application/json

Body

storageCapacity
required
integer >= 1

Responses

Request samples

Content type
application/json
{
  • "storageCapacity": 1
}

Response samples

Content type
application/json
{
  • "createTime": "string",
  • "id": "string",
  • "image": "string",
  • "isAutomaticOcrEnabled": true,
  • "name": "string",
  • "organization": {
    },
  • "permission": "string",
  • "rootId": "string",
  • "storageCapacity": 0,
  • "updateTime": "string"
}