Release Notes
- What's new
- Known issues
- Troubleshooting
- License reference
Get Started
Environments
Large Language Models (LLMs)
Webchats
Tutorials
API's reference
- watsonx Orchestrate Developer Edition APIs
Legal notices
Prompts
Create Or Update Prompt
PUT
/
default_user_prompts
Copy
Ask AI
curl --request PUT \
--url http://localhost/api/v1/default_user_prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"prompts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"subtitle": "<string>",
"prompt": "<string>",
"state": "<string>"
}
]
}'
Copy
Ask AI
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_by": "<string>",
"orchestrate_id": "<string>",
"title": "<string>",
"subtitle": "<string>",
"prompt": "<string>",
"state": "<string>"
}
]
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201
application/json
Successful Response
The response is of type PromptOut · object[]
.
Copy
Ask AI
curl --request PUT \
--url http://localhost/api/v1/default_user_prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"prompts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"subtitle": "<string>",
"prompt": "<string>",
"state": "<string>"
}
]
}'
Copy
Ask AI
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_by": "<string>",
"orchestrate_id": "<string>",
"title": "<string>",
"subtitle": "<string>",
"prompt": "<string>",
"state": "<string>"
}
]
Assistant
Responses are generated using AI and may contain mistakes.