Does Api.bulk_create support action's arguments?
I'm try to create items that are related to the workspace by using bulk_create
but I don't know how to pass workspace_id as an argument
6 Replies
Yep! You stream a set of action inputs into the bulk create call
How are you calling it now?
but I get an error
I'm not providing a stream but a list of maps
Add the
return_errors?: true
option
I think that the problem could be that workspace_id is an action arguments and not a resource attribute?
Hmm…it should support action arguments…
Try this?
nah, that won't work
So, the next steps are
1. make sure that all of your inputs definitely have
workspace_id
set
2. open an issue on ash
and I'll take a look this afternoon
I just added a test that shows that bulk create can be used with arguments
oh
The resource there is Resources.Transcription
So I think maybe you're creating something else and no supplying workspace_id
?hey sorry it work. Was just a typo 😵💫