Sep 07, 2018 08:22 AM
Hello airtable community,
I’m just wondering how to remove collaborators via API calls? Currently I have adding collaborators working well, I send the get request from a custom UI to our server, which then handles the api calls to airtable, with just the ids of the collaborators I need to add to the list. Those new collaborators do show up when I inspect via airtable.
When I want to remove collaborators, I understand from reading the api docs, just send in the objects of the collaborators I want to keep. I send in the new updated list of collaborators without the one we need assuming that should remove that collaborator. That does not work.
For both my attempts to add or delete, I send in an array of objects with ids only.
Any ideas on how to handle removing collaborators via API?
Sep 10, 2018 01:45 AM
You seem to be following the correct steps…
Are you getting an errors?
Make sure that “Allow adding multiple collaborators” is on for the collaborator field, on your base.
Make sure you are using a HTTP PATCH request method to update the collaborators via the API
Sep 10, 2018 05:55 AM
Hey Andrew, thanks for the reply. I was getting a 422 unable to process entities,. Figured out I had wrong logic with how we handled the record id, was passing in an Id one letter too short.
Our record processor had a bug.
API works great
Oct 17, 2019 03:59 AM
I’m looking at removing all collaborators from a cell.
I was using PATCH and trying to update the cell with an empty string, it turns out you just have to send Null.