Update a material in the Material Library.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating 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 permission policy statement to grant a RAM user or RAM role the permission to call this API. For more information, see the following:
- Action: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. For more information, see the following:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:UpdateMaterialDocument | update | *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 | 44 |
| DocType | string | Yes | Document type (html: web page, plainText: plain text, image: image, pdf: pdf, word: word, excel: excel, csv: csv, jsonLine: jsonLine) | image |
| Title | string | No | Document title | Title |
| Author | string | No | Author | Author name |
| PubTime | string | No | Publication time, format: yyyy-MM-dd HH:mm:ss | 2023-04-11 06:14:07 |
| DocKeywords | array | No | Document tags for categorization | |
| DocKeyword | string | No | Keyword | Keyword |
| Url | string | No | URL of the material | http://xxxxx/xxx |
| ExternalUrl | string | No | URL uploaded by an external customer, used only for record keeping | http://xxxxx/xxx |
| SrcFrom | string | No | Document source (UserUpload: user upload, IntellijSearch: intelligent search, HotViewPoint: hot viewpoints) | UserUpload |
| TextContent | string | No | Parsed text content, which is empty for images | Text content |
| HtmlContent | string | No | Formatted content | Web page content |
| ShareAttr | integer | No | Sharing attribute: 0: private, 1: shared within the workspace | 1 |
| Summary | string | No | Summary | Summary |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | Status code | DataNotExists |
| Data | long | Business data | 82 |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | Data does not exist |
| RequestId | string | Unique request identifier | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Success | boolean | Indicates whether the request is successful: true: successful, false: failed | false |
Examples
Success response
JSON format