I'm trying to import database data via CSV via API, however getting "The current user is not authorized to perform the requested action." after the API key has "migrations.write" access. (This was erroring/checked prior to adding the permission to the key)
e.g.
await client.call("POST", new URL("https://appwrite.domain.com/v1/migrations/csv"), {
"content-type": "application/json"
}, {
bucketId: "dbBootData",
fileId: "trees.csv",
resourceId: prod:trees,
internalFile: true
})
Import CSV via API (User Not Authorized)
Appwrite 1.8.0 (Self Hosted)
Checking the code, you need isPrivilegedUser aka (USER_ROLE_OWNER, USER_ROLE_DEVELOPER, or USER_ROLE_ADMIN) How can I get a node-sdk to have this role?
Turning off "internalFile" made it work
Recommended threads
- IMPORTANT! SOC-2 Request Failing
Issue requesting SOC-2. If tried other/private browser as well as filling in optional fields.
- Can you suppress row $meta data?
When using listRows with a 'select' query to limit the response [for performance], I'm still getting extra columns (eg. `$id`, `$sequence`, `$createdAt`, `$upda...
- CLI - get Database Totals
Is there a way with the Appwrite CLI to get table row totals (count)❓