prompts-ddd
Admin - Prompts

Create Prompt

Create a new prompt.

post/api/v1/intelligence/prompts

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/intelligence/prompts
  • Auth: none declared

Headers

Authorizationstring

Request body

namestring required

Prompt name

descriptionstring required

Prompt description

categorystring required

Prompt category

system_promptstring nullable

System message for LLM

user_prompt_templatestring required

User prompt template with variables

subcategorystring nullable

Subcategory for more specific classification

model_preferencesobject nullable

Preferred models and settings

parametersobject nullable

LLM parameters (temperature, max_tokens, etc)

input_variablesstring[] nullable

List of expected template variables

output_formatobject nullable

Expected output structure

statusstring

Prompt status

is_defaultboolean

Set as default for category

test_inputsobject nullable

Sample inputs for testing

expected_outputsobject nullable

Expected outputs for validation

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.