Updates the title, metadata, and other information of a document.
Operation description
Prerequisites
- Alibaba Cloud Model Studio and Tongyi Dianjin are activated.
- You have obtained the workspaceId: Obtain the workspace identifier.
Debugging
You can run this API directly in OpenAPI Explorer, which saves you the trouble of calculating signatures. After the operation succeeds, OpenAPI Explorer can automatically generate SDK code examples.
Try it now
RAM authorization
The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
- Action: 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. Details are as follows:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: refers to the condition keys defined by the cloud service itself.
- Dependent action: refers to other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions before the operation can succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| dianjin:UpdateDocument | none | *All Resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter, workspace ID. | llm-xxxxx |
| body | object | No | Request body parameter. | |
| docId | string | Yes | Document ID. | 123 |
| libraryId | string | Yes | Document library ID. | abc123 |
| meta | object | No | Document metadata. | { "businessId": "12321" } |
| title | string | No | Document title. | test |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | Result. | ||
| cost | long | Time consumed | null |
| data | string | Response data. | null |
| dataType | string | Data type. | null |
| errCode | string | Error code. | 0 |
| message | string | Error message. | ok |
| requestId | string | Request ID. | eb2b6139-ddf1-91a0-a47f-df7617ae9032 |
| success | boolean | Success status. | true |
| time | string | Timestamp. | 2024-04-24 11:54:34 |
Examples
Success response
JSON format