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"
  ]
}

Response Description

Below you will see the description of the create response
type
string
required
Type of the interaction (e.g., “chat”).
name
string
required
Name of the interaction or entity.
version
integer
required
Version of the configuration.
config
null
Configuration details (nullable).
labels
array
required
List of labels associated with the interaction.
tags
array
required
List of tags associated with the interaction.
prompt
array
required
List of prompts containing roles and content.

Code Response

Exemples of Response Code
200
Request Successful Response
400
Request Failure