400 Bad Request: Payload validation error: 'Too few properties defined (0), minimum 1'

Hi

I am trying to disable all the grant type for a given client

err = mgr.Client.Update(ClientID, &management.Client{
GrantTypes: nil,
})

err = mgr.Client.Update(ClientID, &management.Client{
GrantTypes: interface{}{},
})

When I am trying to do so I am getting this error Payload validation error: 'Too few properties defined (0), minimum. Can anyone suggest how can I achieve this

I can select from one grant to another but can’t deselect all using management API