Retrieves detailed information about a material from the Material Library.
Debugging
You can run this API directly in OpenAPI Explorer, without having to calculate signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. For more information:
- Operation: refers to the specific permission point.
- Access level: refers to the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: refers to the resource types that support authorization in the operation. For more information:
- Required resource types are marked with a leading *.
- For operations that do not support resource-level authorization,
全部资源is used.
- Condition key: refers to the condition keys defined by the cloud service itself.
- Dependent operation: refers to other permissions required to successfully perform the operation. The caller must have the permissions of all dependent operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| aimiaobi:GetMaterialById | get | *All Resources * |
| None |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique identifier of the workspace: AgentKey | 67c520d1fa43455ea44fb69fa402d54d_p_beebot_public |
| Id | long | Yes | Primary key ID of the task | 60 |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | Status code | DataNotExists |
| Data | object | Business data | |
| Author | string | Author | Document author |
| CreateTime | string | Creation time | 2023-03-21 11:34:19 |
| CreateUser | string | Creator user ID | 1 |
| DocKeywords | array | Document tags used for classification and other purposes. Separate multiple keywords with commas. | |
| DocKeyword | string | Keyword | Keyword |
| DocType | string | Document type, such as pdf, word, url, or image | |
| ExternalUrl | string | URL uploaded by an external customer. Used only for record keeping. | https://www.example.com |
| HtmlContent | string | Web page content | Web page content |
| Id | long | Primary key | 32 |
| PubTime | string | Publication time | 2023-04-11 06:14:07 |
| PublicUrl | string | Temporary public URL | https://www.example.com |
| ShareAttr | integer | Sharing attribute stored as bit flags. The first bit indicates sharing within the workspace, the second bit indicates sharing within the tenant, and the third bit indicates system-wide sharing. | 1 |
| SrcFrom | string | Document source, such as user_upload, search, or viewpoint | user_upload |
| Summary | string | Document summary | Document summary |
| TextContent | string | Parsed text content. Empty for images. | Text content |
| ThumbnailInBase64 | string | Base64-encoded thumbnail for image documents | Base64-encoded thumbnail |
| Title | string | Document title | Document title |
| UpdateTime | string | Modification time | 2022-04-08 19:33:01 |
| UpdateUser | string | Modifier user ID | 1 |
| Url | string | Internal document storage URL | https://www.example.com |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error description | Data does not exist |
| RequestId | string | Unique request identifier | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Success | boolean | Indicates success: true for success, false for failure | false |
Examples
Success response
JSON format