project_invite_codes
Creates, updates, deletes, gets or lists a project_invite_codes resource.
Overview​
| Name | project_invite_codes |
| Type | Resource |
| Id | railway.projects.project_invite_codes |
Fields​
The following fields are returned by SELECT queries:
- get
One InviteCode row.
| Name | Datatype | Description |
|---|---|---|
id | string | |
project_id | string | |
code | string | |
created_at | string (date-time) | |
project | object | Project object |
role | string | (ADMIN, MEMBER, VIEWER) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | project_id, role | Get 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.
| Name | Datatype | Description |
|---|---|---|
project_id | string | |
role | string |
SELECT examples​
- get
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
;