Skip to main content

ListMaterialDocuments

Retrieve the list of materials from the Material Library.

Debug

You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details:
  • Operation: the specific permission.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization in the operation. Details:
    • Required resource types are marked with a leading *.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent operations for the operation to succeed.
OperationAccess levelResource typeCondition keyDependent operation
aimiaobi:ListMaterialDocumentslist
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

Unique identifier for the workspace: AgentKey

33a2658aaabf4c24b45d50e575125311_p_beebot_public
QuerystringNo

Supports comprehensive queries for title, content, and content.

cat
IdlongNo

Material primary key ID

69
TitlestringNo

Performs a full-text search on material titles

News title
DocTypestringNo

Document type (html: web page, plainText: plain text, image: image, pdf: pdf, word: word, excel: excel, csv: csv, jsonLine: jsonLine)

jsonLine
DocTypeListarrayNo

Document type list (html: web page, plainText: plain text, image: image, pdf: pdf, word: word, excel: excel, csv: csv, jsonLine: jsonLine)

DocTypeListstringNo

File type object.

html
ContentstringNo

Full-text search of document content

News content
ShareAttrintegerNo

Share property: 0: personal private, 1: shared within the workspace

1
KeywordsarrayNo

Document keywords

KeywordstringNo

Keyword

Keyword
CreateTimeStartstringNo

Creation time - start range. Format: yyyy-MM-dd HH:mm:ss

2023-02-19 07:28:11
CreateTimeEndstringNo

Creation time - end range. Format: yyyy-MM-dd HH:mm:ss

2023-03-18 02:00:00
UpdateTimeStartstringNo

Update time - start range. Format: yyyy-MM-dd HH:mm:ss

2023-03-18 02:00:00
UpdateTimeEndstringNo

Update time - end range. Format: yyyy-MM-dd HH:mm:ss

2023-03-18 03:00:00
GeneratePublicUrlbooleanNo

Whether to generate a public URL for the file

true
CurrentintegerNo

Current page number

1
SizeintegerNo

Number of items per page: default 10

10

Response parameters

NameTypeDescriptionExample value
object

Returns the paginated list of materials

Codestring

Status code

DataNotExists
Currentinteger

Current page number

1
Dataarray<object>

List object

Dataobject

Material object

Authorstring

Author

Author
CreateTimestring

Creation time

2023-03-18 02:00:00
CreateUserstring

Creator user ID

"1"
CreateUserNamestring

Creator user name

Creator username
DocKeywordsarray

Document tags used for categorization, etc. Separate different keywords with commas

DocKeywordstring

Keyword

Keyword
DocTypestring

Document type: pdf, word, url, image

pdf
ExternalUrlstring

URL uploaded by an external customer, used only for record keeping

https://www.example.com
HtmlContentstring

Web page content

Web page content
Idlong

Primary key

35
PubTimestring

Publish time. Format: yyyy-MM-dd HH:mm:ss

2023-03-18 02:00:00
PublicUrlstring

Temporary externally public URL

https://www.example.com
ShareAttrinteger

Public property, stored by bit. The first bit indicates whether it is shared within the workspace, the second bit indicates whether it is shared within the tenant, and the third bit indicates whether it is shared within the system

1
SrcFromstring

Document source: user_upload, search, viewpoint

user_upload
Summarystring

Document summary

Summary
TextContentstring

Parsed text content, empty for images

Document content
ThumbnailInBase64string

Base64 thumbnail for the image document type

Base64-encoded image binary data
Titlestring

Document title

Document title
UpdateTimestring

Modification time

2023-03-18 02:00:00
UpdateUserstring

Modifier user ID

"1"
UpdateUserNamestring

Modifier user name

Updater username
Urlstring

URL where the internal document is stored. Supports multiple protocols: http://, file://, ftp://. The URL saved to internal storage when a customer uploads, kept long-term, and deleted upon expiration

https://www.example.com
FileKeystring

Unique file identifier

oss://default/oss-bucket-name/aimiaobi/2021/07/01/1625126400000/1.docx
FileAttrobject

Media file properties

Durationdouble

Duration.

120
FileNamestring

File name

xxx.mp4
Widthinteger

Video width

100
MimeTypestring

File MIME type

image/png
FileLengthlong

File content length

1048576
Heightinteger

Video height

1024
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error description

Data does not exist
RequestIdstring

Unique request identifier

3f7045e099474ba28ceca1b4eb6d6e21
Sizeinteger

Number of records per page

10
Successboolean

Whether successful: true for success, false for failure

false
Totalinteger

Total number of records

100

Examples

Success response JSON format
{
  "Code": "DataNotExists",
  "Current": 1,
  "Data": [
    {
      "Author": "Author\n\n",
      "CreateTime": "2023-03-18 02:00:00\n",
      "CreateUser": 1,
      "CreateUserName": "Creator username",
      "DocKeywords": [
        "Keyword"
      ],
      "DocType": "pdf",
      "ExternalUrl": "https://www.example.com\n",
      "HtmlContent": "Web page content",
      "Id": 35,
      "PubTime": "2023-03-18 02:00:00\n",
      "PublicUrl": "https://www.example.com\n",
      "ShareAttr": 1,
      "SrcFrom": "user_upload",
      "Summary": "Summary",
      "TextContent": "Document content",
      "ThumbnailInBase64": "Base64-encoded image binary data",
      "Title": "Document title\n\n",
      "UpdateTime": "2023-03-18 02:00:00\n",
      "UpdateUser": 1,
      "UpdateUserName": "Updater username",
      "Url": "https://www.example.com",
      "FileKey": "oss://default/oss-bucket-name/aimiaobi/2021/07/01/1625126400000/1.docx",
      "FileAttr": {
        "Duration": 120,
        "FileName": "xxx.mp4",
        "Width": 100,
        "MimeType": "image/png",
        "FileLength": 1048576,
        "Height": 1024
      }
    }
  ],
  "HttpStatusCode": 200,
  "Message": "Data does not exist",
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Size": 10,
  "Success": false,
  "Total": 100
}

Error codes

Visit the Error Center to view more error codes.