Update pilot preferences
PATCH
/api/v1/pilots/{pilot_id}/preferences
const url = 'https://app.ayna.com/api/v1/pilots/example/preferences';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"notifications_enabled":true,"theme":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”pilot_id
required
Pilot Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}