Skip to main content

preferences

Creates, updates, deletes, gets or lists a preferences resource.

Overview​

Namepreferences
TypeResource
Idrailway.account.preferences

Fields​

The following fields are returned by SELECT queries:

One Preferences row.

NameDatatypeDescription
idstring
build_failed_emailboolean
changelog_emailboolean
community_emailboolean
deploy_crashed_emailboolean
ephemeral_environment_emailboolean
marketing_emailboolean
subprocessor_updates_emailboolean
template_queue_emailboolean
usage_emailboolean

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttokenGet the email preferences for a user. Backed by the Railway GraphQL query preferences.
updateexecbuild_failed_email, changelog_email, community_email, deploy_crashed_email, ephemeral_environment_email, marketing_email, subprocessor_updates_email, template_queue_email, token, usage_emailUpdate the email preferences for a user. Backed by the Railway GraphQL mutation preferencesUpdate.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
tokenstring
build_failed_emailstringBoolean passed as a string, for example 'true'.
changelog_emailstringBoolean passed as a string, for example 'true'.
community_emailstringBoolean passed as a string, for example 'true'.
deploy_crashed_emailstringBoolean passed as a string, for example 'true'.
ephemeral_environment_emailstringBoolean passed as a string, for example 'true'.
marketing_emailstringBoolean passed as a string, for example 'true'.
subprocessor_updates_emailstringBoolean passed as a string, for example 'true'.
template_queue_emailstringBoolean passed as a string, for example 'true'.
usage_emailstringBoolean passed as a string, for example 'true'.

SELECT examples​

Get the email preferences for a user. Backed by the Railway GraphQL query preferences.

SELECT
id,
build_failed_email,
changelog_email,
community_email,
deploy_crashed_email,
ephemeral_environment_email,
marketing_email,
subprocessor_updates_email,
template_queue_email,
usage_email
FROM railway.account.preferences
WHERE token = '{{ token }}'
;

Lifecycle Methods​

Update the email preferences for a user. Backed by the Railway GraphQL mutation preferencesUpdate.

EXEC railway.account.preferences.update
@build_failed_email='{{ build_failed_email }}',
@changelog_email='{{ changelog_email }}',
@community_email='{{ community_email }}',
@deploy_crashed_email='{{ deploy_crashed_email }}',
@ephemeral_environment_email='{{ ephemeral_environment_email }}',
@marketing_email='{{ marketing_email }}',
@subprocessor_updates_email='{{ subprocessor_updates_email }}',
@template_queue_email='{{ template_queue_email }}',
@token='{{ token }}',
@usage_email='{{ usage_email }}'
;