Skip to main content
PUT
/
api
/
user
/
assistant
/
{assistantId}
Update an existing assistant
curl --request PUT \
  --url https://pria.praxislxp.com/api/user/assistant/{assistantId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "New Assistant Updated",
  "status": "active",
  "description": "New Assistant Description",
  "instructions": "New Assistant Instructions ",
  "argument_1": null,
  "argument_2": null,
  "argument_3": null,
  "argument_4": null,
  "argument_5": null,
  "picture_url": "https://learning.praxislxp.com/praxis/hugo_praxis-ai_com/wp-content/uploads/sites/60/2024/08/images.jpeg",
  "admin_only": true,
  "remember_history": 3,
  "editable_others": true,
  "user": "6430d02554cd4e00403e8b05",
  "institution": "6631915765bb0a94cfd6ca99",
  "institution_shared": true
}'
{
  "success": true,
  "message": "Assistant updated!"
}

Authorizations

Authorization
string
header
required

JWT token passed in x-access-token header

Path Parameters

assistantId
string
required

The unique identifier of the assistant to update

Body

application/json
name
string
required

Name of the assistant

Example:

"New Assistant Updated"

status
enum<string>
required

Status of the assistant

Available options:
active,
inactive
Example:

"active"

description
string
required

Description of the assistant

Example:

"New Assistant Description"

instructions
string
required

Instructions for the assistant

Example:

"New Assistant Instructions "

user
string
required

User ID who owns this assistant

Example:

"6430d02554cd4e00403e8b05"

institution
string
required

Institution ID this assistant belongs to

Example:

"6631915765bb0a94cfd6ca99"

argument_1
string | null

Optional argument 1 for the assistant

Example:

null

argument_2
string | null

Optional argument 2 for the assistant

Example:

null

argument_3
string | null

Optional argument 3 for the assistant

Example:

null

argument_4
string | null

Optional argument 4 for the assistant

Example:

null

argument_5
string | null

Optional argument 5 for the assistant

Example:

null

picture_url
string

URL for the assistant's profile picture

Example:

"https://learning.praxislxp.com/praxis/hugo_praxis-ai_com/wp-content/uploads/sites/60/2024/08/images.jpeg"

admin_only
boolean

Whether the assistant is admin-only

Example:

true

remember_history
integer

Number of conversation history items to remember

Example:

3

editable_others
boolean

Whether the assistant can be edited by others

Example:

true

institution_shared
boolean

Whether the assistant is shared across the institution

Example:

true

Response

Assistant successfully updated

success
boolean

Whether the operation was successful

Example:

true

message
string

Success message

Example:

"Assistant updated!"