{
"type": "chat",
"name": "string",
"prompt": [
{
"role": "string",
"content": "string"
}
],
"config": null,
"labels": [
"string"
],
"tags": [
"string"
]
}
{
"type": "<string>",
"name": "<string>",
"version": 123,
"config": null,
"labels": [
{
"label": "<string>"
}
],
"tags": [
{
"tag": "<string>"
}
],
"prompt": [
{
"role": "<string>",
"content": "<string>"
}
]
}Prompt
Create a new version for the prompt
Endpoint to Create a new version for the prompt with the given name
POST
/
api
/
public
/
v2
/
prompts
{
"type": "chat",
"name": "string",
"prompt": [
{
"role": "string",
"content": "string"
}
],
"config": null,
"labels": [
"string"
],
"tags": [
"string"
]
}
{
"type": "<string>",
"name": "<string>",
"version": 123,
"config": null,
"labels": [
{
"label": "<string>"
}
],
"tags": [
{
"tag": "<string>"
}
],
"prompt": [
{
"role": "<string>",
"content": "<string>"
}
]
}{
"type": "chat",
"name": "string",
"prompt": [
{
"role": "string",
"content": "string"
}
],
"config": null,
"labels": [
"string"
],
"tags": [
"string"
]
}
Show Request Description
Show Request Description
string
required
Type of the interaction (e.g., “chat”).
string
required
Name of the interaction or entity.
array
required
null
Configuration details (nullable).
array
required
List of labels associated with the interaction.
Show items
Show items
string
required
A single label.
Response Description
Below you will see the description of the create responsestring
required
Type of the interaction (e.g., “chat”).
string
required
Name of the interaction or entity.
integer
required
Version of the configuration.
null
Configuration details (nullable).
array
required
List of labels associated with the interaction.
Show items
Show items
string
required
A single label.
array
required
Code Response
Exemples of Response CodeRequest Successful Response
Request Failure

