Default workflow action - not found

39 views
Skip to first unread message

Lukas KUCHTA

unread,
Jan 5, 2024, 12:57:47 PMJan 5
to dot...@googlegroups.com
Hi, I'm trying to use workflow API for bulk upsert operation. Based on the documentation it should be possible:


But when I send a request I'm getting 404 not found. 

Can you someone give me hints about what is wrong please? The content type Product exists in dotcms ecosystem. 

When i use non-default workflow like this, it works. But only one record is possible to send. No contentlets atribute is available.  I need to send multiple data with one request. 
image.png

I attached the screenshot with the url and part of json. 

Thanks for advice 
not_found.png

jonathan...@dotcms.com

unread,
Jan 10, 2024, 11:05:53 PMJan 10
to dotCMS User Group
if you want to do an insert bulk you can use something such as:

```
curl --location 'http://localhost:8080/api/v1/workflow/actions/default/fire/PUBLISH' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic YWRtaW5AZG90Y21zLmNvbTphZG1pbg==' \ --data '{ "contentlets":[ { "contentType":"webPageContent", "title":"Content1", "contentHost":"default", "body":"Body Content1" }, { "contentType":"webPageContent", "title":"Content2", "contentHost":"default", "body":"Body Content2" }, { "contentType":"webPageContent", "title":"Content3", "contentHost":"default", "body":"Body Content3" }, { "contentType":"webPageContent", "title":"Content4", "contentHost":"default", "body":"Body Content4" }, { "contentType":"webPageContent", "title":"Content5", "contentHost":"default", "body":"Body Content5" }, { "contentType":"webPageContent", "title":"Content6", "contentHost":"default", "body":"Body Content6" }, { "contentType":"webPageContent", "title":"Content7", "contentHost":"default", "body":"Body Content7" }, { "contentType":"webPageContent", "title":"Content8", "contentHost":"default", "body":"Body Content8" }, { "contentType":"webPageContent", "title":"Content9", "contentHost":"default", "body":"Body Content9" }, { "contentType":"webPageContent", "title":"Content10", "contentHost":"default", "body":"Body Content10" }, { "contentType":"webPageContent", "title":"Content11", "contentHost":"default", "body":"Body Content11" }, { "contentType":"webPageContent", "title":"Content12", "contentHost":"default", "body":"Body Content12" }, { "contentType":"webPageContent", "title":"Content13", "contentHost":"default", "body":"Body Content13" }, { "contentType":"webPageContent", "title":"Content14", "contentHost":"default", "body":"Body Content14" }, { "contentType":"webPageContent", "title":"Content15", "contentHost":"default", "body":"Body Content15" }, { "contentType":"webPageContent", "title":"Content16", "contentHost":"default", "body":"Body Content16" }, { "contentType":"webPageContent", "title":"Content17", "contentHost":"default", "body":"Body Content17" }, { "contentType":"webPageContent", "title":"Content18", "contentHost":"default", "body":"Body Content18" }, { "contentType":"webPageContent", "title":"Content19", "contentHost":"default", "body":"Body Content19" }, { "contentType":"webPageContent", "title":"Content20", "contentHost":"default", "body":"Body Content20" } ] }'
```

Reply all
Reply to author
Forward
0 new messages