Skip to main content
POST
/
api
/
ai
/
generate
/
prompt
Generate prompt
curl --request POST \
  --url https://{customer-tenant}.nuwacom.ai/api/api/ai/generate/prompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "space_id": "<string>",
  "instruction": "<string>",
  "prompt": "<string>",
  "action": "update"
}'
{
  "prompt": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
space_id
string
required
Required string length: 2 - 6
instruction
string
required
action
enum<string>
required
Available options:
update,
create
prompt
string

Response

200 - application/json

OK

prompt
string
required
I