Skip to main content

Overview​

Adds a prompt for the AI assistant.

Request​

Authentication: Add authentication headers to the request. See Authentication

Method: POST

Rate limit: 100 requests/second

Endpoint: https://API domain/jim/assistants/prompts/add

Content-Type: application/json

Request Parameters​

ParameterData TypeRequiredDescription
promptsstringYesPrompt content.

Request Example​

POST /jim/assistants/prompts/add HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json

{
"prompts":"xxxxxxxxxxxx"
}

Response Example​

{
"code":0,
"msg":"sucess"
}

Response Codes​

Response codesDescription
17300Failed to add the prompt.