What's the best way to bulk add/remove fields?

If it's the api, what's the most appropriate end point?
5 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
From what I see, you can't create in bulk such fields but you can write a script which reads some kind of structure (CSV, 2-dimensional table, up to you) and send requests one by one to this endpoint https://twenty.com/developers/rest-api/metadata#/operations/createOneField
Twenty.com
Open Source CRM
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
In order to get specific object to which you want to add new fields, you have to use this endpoint and search manually which one you want (maybe there's better way to filter objects, but documentation doesn't show) https://twenty.com/developers/rest-api/metadata#/paths/objects/get
Twenty.com
Open Source CRM
basicbass
basicbassOP3mo ago
Thanks @ɃØĦɆᵾS I was hoping createOneField wasn't the answer and I had just missed something but appreciate you taking the time to confirm.
Weiko
Weiko3mo ago
Hi @basicbass We haven't implemented the createMany indeed. Shouldn't take much time but we didn't have this use case yet. Feel free to create an issue though. I'm not sure we will prioritise this one because we have an upcoming refactoring on that part and we would prefer to finish that first but we will keep it in mind!
basicbass
basicbassOP3mo ago
Thanks @Weiko no deep immediate need for my use case. Although when you're getting to larger migrations with lots of custom objects and fields I can definitely see the use case then!
Want results from more Discord servers?
Add your server