Skip to content

Change the App's Assistant

PATCH
/apps/{appId}/assistant
curl --request PATCH \
--url https://api.passion.io/v1/apps/example/assistant \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "welcomeMessage": "example" }'
appId
required

The id of the App, as Studio shows it.

string
/^[1-9][0-9]*$/
Media typeapplication/json
object
name

The name members see.

string
>= 1 characters
welcomeMessage

The first message a member sees.

string
>= 1 characters
Examplegenerated
{
"name": "example",
"welcomeMessage": "example"
}

OK

Media typeapplication/json
object
name
required

The name members see.

string
avatarUrl
required
Any of:
string
ownVoice
required

True when the Assistant speaks with a voice built from the creator’s own recordings in Studio.

boolean
welcomeMessage
required

The first message a member sees.

string
Examplegenerated
{
"name": "example",
"avatarUrl": "example",
"ownVoice": true,
"welcomeMessage": "example"
}