Views doesn't support setting position field on create/update API | Community
Skip to main content

Views doesn't support setting position field on create/update API

  • May 1, 2024
  • 1 reply
  • 0 views

Utkarsh

In the documentation for views, it shows that position can be set via the create POST request, however in practice this doesn't work. 

 

Also the normal PUT request for views can update some other fields but not position. 

 

I have found that update_many request WORKS and can be used to set position. However still, it not working for Create at least is a bug.

1 reply

  • May 14, 2024
Hi Utkarsh,
 
Unfortunately the Create View endpoint doesn't allow you to set the position because setting that property's value could effect other Views position values. 
 
You can do this with update_many because you're concurrently setting the position for the other Views as well.
 
Hope this helps!