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)
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...