err:unkey:data:connection_not_foundExample response
Likely causes
- The id has a typo, or it is the id of an environment or a resource instead of a connection.
- Someone already deleted the connection.
- Your root key can’t read the connection. You get this 404 instead of a 403, so the response doesn’t tell whether the connection exists. A key that can read it but can’t change or delete it gets a 403
err:unkey:authorization:insufficient_permissionsthat names the missing permission.
How to fix
- List the connections of the resource with
connections.listConnectionsto get theid. - Give the root key the permission for the action on
projects/{project_id}/apps/{app_id}/environments/{environment_id}/connections/{connection_id}:- To update the connection, give
write. - To delete the connection, give
delete.
- To update the connection, give