https://discord.gg/botpress logo
API 404 Error on Recommended Endpoint
# 🤝help
a
The support bot instructed me to use PUT /v1/admin/integrations/intver_01J6SQPEJZXKVSSSHY6R08HCVX, but this consistently returns a 404 Resource Not Found. The Reality: When I run GET /v1/admin/integrations, the result is {"integrations":[],"meta":{}}. The Problem: My Shopify integration is visible in the Studio and functional for the bot, but it appears to be "ghosted" from the Admin API. It exists in the bot's configuration but is not registered as an editable instance in the workspace. Please answer specifically: How can I programmatically update the access_token for an integration that is visible in the Studio but returns a 404 via the /v1/admin/integrations/ endpoint? Is there a hidden Instance ID for this connection that is not showing up in the GET list? Workspace ID: wkspace_01JXBZMSS14BHVY2RSZ79Z5JRV Bot ID: 9734437a-0b1f-4fca-a0ed-ab99fb84801b
l
There is no hidden instance ID. The instance ID is 56c218b5-cdd7-46c7-8999-ccaab623e7da and it was visible in the bot overview all along. GET /v1/admin/integrations returns [] by design — it only lists integrations your workspace created. simplygreatbots/shopify is a public integration you installed, not created. It will never appear there. To update the access_token, use: PUT /v1/admin/bots/9734437a-0b1f-4fca-a0ed-ab99fb84801b/integrations/56c218b5-cdd7-46c7-8999-ccaab623e7da { "configuration": { "access_token": "your-new-token" } } Authenticate with a PAT scoped to workspace wkspace_01JXBZMSS14BHVY2RSZ79Z5JRV.
PAT can be found in profile settings > generate pat (on dashboard)
a
Thank you @loud-crowd-60573 . Sorry but I cannot seem to find the instance ID 56c218b5-cdd7-46c7-8999-ccaab623e7da. I've tried the script regardless and recieved a 405 error: {"id":"69e71353000000005cdb73c1b45580c7","code":405,"type":"MethodNotFound","message":"not found"} However the following seemed to have worked: { "integrations": { "intver_01J6SQPEJZXKVSSSHY6R08HCVX": { "enabled": true, "configuration": { "shopName": "[shopify-domain].myshopify.com", "access_token": "{{1.data.access_token}}" } } } }
2 Views