Squidex API - Update data

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [x] Documentation issue or request

Current behavior

Expected behavior

Minimal reproduction of the problem

Environment

  • [ ] Self hosted with docker
  • [x] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
Hi Sebastian
I have a use case to update data based on some condition.
I am looking at the bulkUpload method of the API.
Would it be the most appropriate one ? Pls can you share some .net sample to use this ?

Thanks

There is no “update by filter” thing. You have to query the items first, at least you need their IDs. Then you can use the bulk update API:

It is part of the official SDK. The following code is from the API tests:

There is also a BulkUpdateType.Patch and you an Id property at the BulkUpdateJob type.

Thanks.
Where is ScriptTrigger getting populated from ?

It is just a special value from the tests. When the field has this value the script does something.