Skip to main content

project_invite_codes

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

Overview​

Nameproject_invite_codes
TypeResource
Idrailway.projects.project_invite_codes

Fields​

The following fields are returned by SELECT queries:

One InviteCode row.

NameDatatypeDescription
idstring
project_idstring
codestring
created_atstring (date-time)
projectobjectProject object
rolestring (ADMIN, MEMBER, VIEWER)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject_id, roleGet an invite code for a project for a specifc role. Backed by the Railway GraphQL query projectInviteCode.

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
rolestring

SELECT examples​

Get an invite code for a project for a specifc role. Backed by the Railway GraphQL query projectInviteCode.

SELECT
id,
project_id,
code,
created_at,
project,
role
FROM railway.projects.project_invite_codes
WHERE project_id = '{{ project_id }}' -- required
AND role = '{{ role }}' -- required
;