Can I set CreatedBy on when bulk importing with items.create()?

I’m doing a bulk import of records using a script via the api. I need to set the ‘createdBy’ field in order for the correct records to be editable for the correct users. Is there any way to effect this when doing an items.create()?

Hello @jacktcunningham_publisher

Unfortunately changing the creator of the post through the CMA is not currently possible, sorry

@jacktcunningham_publisher just a little detail, you cannot change the creator on create, but you can on update: https://www.datocms.com/docs/content-management-api/resources/item/update

Maybe that’s still useful?

@mat_jack1 Ah perfect that works, thanks!

1 Like