Skip to content

Update pilot preferences

PATCH
/api/v1/pilots/{pilot_id}/preferences
curl --request PATCH \
--url https://app.ayna.com/api/v1/pilots/example/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "notifications_enabled": true, "theme": "example" }'

Update pilot preferences.

pilot_id
required
Pilot Id
string
Media typeapplication/json
PreferencesRequest

Preferences update request.

object
notifications_enabled
Any of:
boolean
theme
Any of:
string

Example generated

{
"notifications_enabled": true,
"theme": "example"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}