unlink_resource
Clear the Telegram chat_id from a resource, reverting it to an unlinked placeholder the creator can relink from the bot.
Purpose
Clear the Telegram chat_id from a resource, reverting it to an unlinked placeholder row the creator can relink from the bot. Delegates to an Action so a project.resource.unlinked event fires. No-op if the resource is already unlinked.
Required ability
project-resource:update
Input schema
{
"type": "object",
"required": ["resource_id"],
"properties": {
"resource_id": {
"type": "string",
"description": "UUID of the resource to unlink."
}
}
}Output shape
{
"data": {
"id": "rsc_01HX...",
"project_id": "prj_01HX...",
"type": "channel",
"title": "Research Channel",
"chat_id": null,
"active": true
}
}Example prompts
"Unlink the Telegram chat from resource
rsc_01HX...."
"Break the chat link so I can re-attach a different channel."
Failure modes
RESOURCE_NOT_FOUND— unknownresource_id, or the parent project is outside the token's scope.TOKEN_MISSING_ABILITY— token lacksproject-resource:update.
Related
How is this guide?