UpdatePrompt
Update a prompt
Operation description
Request description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:UpdatePrompt |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v1/prompts/{PromptId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PromptId |
string |
Yes |
The unique identifier of the prompt. |
pmt-axbxtc****xxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| WorkspaceId |
string |
Yes |
The ID of the workspace. You can obtain the ID by calling the ListWorkspaces operation. |
302914 |
| FrameworkType |
string |
No |
The framework type of the prompt template. |
ICIO |
| FrameworkContent |
string |
No |
The content of the prompt. |
{ "context":"You are an experienced driver with ten years of driving experience. Please analyze and judge the image scenario below.", "inputData":"{ \"Reflective tape\": \"Usually yellow or yellow-and-black striped, affixed to permanent protruding obstacles such as wall corners to alert drivers.\", \"Parking lock\": \"Also known as a parking space lock. When raised, it prevents the parking space from being occupied. If a parking lock is present, be sure to indicate whether it is in the raised or lowered state.\", }" } |
| Description |
string |
No |
The description of the prompt. |
This is an information extraction prompt for autonomous driving highway scenarios, focusing on extracting lane and weather information. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The ID of the request. |
5A14FA81-DD4E-******-6343FE44B941 |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.