stages_prompt_prompts_create
POST/api/v3//stages/prompt/prompts/
Prompt Viewset
Request
- application/json
Body
required
Possible values: non-empty
Possible values: non-empty
Name of the form field, also used to store the value
Possible values: non-empty
Possible values: [text
, text_area
, text_read_only
, text_area_read_only
, username
, email
, password
, number
, checkbox
, radio-button-group
, dropdown
, date
, date-time
, file
, separator
, hidden
, static
, ak-locale
]
Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
Possible values: >= -2147483648
and <= 2147483647
promptstage_set
object[]
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Name of the form field, also used to store the value
Possible values: [text
, text_area
, text_read_only
, text_area_read_only
, username
, email
, password
, number
, checkbox
, radio-button-group
, dropdown
, date
, date-time
, file
, separator
, hidden
, static
, ak-locale
]
Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
Possible values: >= -2147483648
and <= 2147483647
promptstage_set
object[]
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"field_key": "string",
"label": "string",
"type": "text",
"required": true,
"placeholder": "string",
"initial_value": "string",
"order": 0,
"promptstage_set": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"flow_set": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"policybindingmodel_ptr_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"slug": "string",
"title": "string",
"designation": "authentication",
"background": "string",
"policy_engine_mode": "all",
"compatibility_mode": true,
"export_url": "string",
"layout": "stacked",
"denied_action": "message_continue"
}
]
}
],
"sub_text": "string",
"placeholder_expression": true,
"initial_value_expression": true
}
- application/json
- Schema
- Example (from schema)
Schema
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '/api/v3/stages/prompt/prompts/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "string",
"field_key": "string",
"label": "string",
"type": "text",
"required": true,
"placeholder": "string",
"initial_value": "string",
"order": 0,
"promptstage_set": [
{
"name": "string",
"flow_set": [
{
"name": "string",
"slug": "string",
"title": "string",
"designation": "authentication",
"policy_engine_mode": "all",
"compatibility_mode": true,
"layout": "stacked",
"denied_action": "message_continue"
}
]
}
],
"sub_text": "string",
"placeholder_expression": true,
"initial_value_expression": true
}'