Skip to main content

bot_scope_bindings

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

Overview​

Namebot_scope_bindings
TypeResource
Idrailway.account.bot_scope_bindings

Fields​

The following fields are returned by SELECT queries:

One row per BotScopeBindingInfo.

NameDatatypeDescription
idstring
scope_idstring
workspace_idstring
scope_namestring
workspace_namestring
can_removeboolean
platformstring
scope_typestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectRailway agent chat bindings (Slack/Discord scope → workspace) across the caller's workspaces. Backed by the Railway GraphQL query botScopeBindings.
removedeleteidRemove a Railway agent chat binding. Requires admin on the binding's workspace. Backed by the Railway GraphQL mutation botScopeBindingRemove.

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
idstring

SELECT examples​

Railway agent chat bindings (Slack/Discord scope → workspace) across the caller's workspaces. Backed by the Railway GraphQL query botScopeBindings.

SELECT
id,
scope_id,
workspace_id,
scope_name,
workspace_name,
can_remove,
platform,
scope_type
FROM railway.account.bot_scope_bindings
;

DELETE examples​

Remove a Railway agent chat binding. Requires admin on the binding's workspace. Backed by the Railway GraphQL mutation botScopeBindingRemove.

DELETE FROM railway.account.bot_scope_bindings
WHERE
id = '{{ id }}' --required
;