Skip to main content

external_workspaces

Creates, updates, deletes, gets or lists an external_workspaces resource.

Overview​

Nameexternal_workspaces
TypeResource
Idrailway.workspaces.external_workspaces

Fields​

The following fields are returned by SELECT queries:

One row per ExternalWorkspace.

NameDatatypeDescription
idstring
namestring
customer_idstring
team_idstring
avatarstring
ban_reasonstring
created_atstring (date-time)
current_session_has_accessboolean
customer_statestring (ACTIVE, CANCELLED, INACTIVE, PAST_DUE, UNPAID)
discord_rolestring
has2fa_enforcementboolean
has_automatic_diagnosisboolean
has_guardrails_accessboolean
has_samlboolean
is_trialingboolean
planstring (FREE, HOBBY, PRO)
preferred_regionstring
projectsarrayList of Project objects
redacted_due_to2fa_pendingboolean
subscription_plan_limitobject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idGet the workspaces the user doesn't belong to, but needs access (like when invited to a project). Backed by the Railway GraphQL query externalWorkspaces.

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
project_idstring

SELECT examples​

Get the workspaces the user doesn't belong to, but needs access (like when invited to a project). Backed by the Railway GraphQL query externalWorkspaces.

SELECT
id,
name,
customer_id,
team_id,
avatar,
ban_reason,
created_at,
current_session_has_access,
customer_state,
discord_role,
has2fa_enforcement,
has_automatic_diagnosis,
has_guardrails_access,
has_saml,
is_trialing,
plan,
preferred_region,
projects,
redacted_due_to2fa_pending,
subscription_plan_limit
FROM railway.workspaces.external_workspaces
WHERE project_id = '{{ project_id }}'
;