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

**URL:** <https://community.auth0.com/t/400-bad-request-payload-validation-error-too-few-properties-defined-0-minimum-1/85893>\
**Category:** Get Help\
**Created:** [June 24, 2022, 5:33pm UTC](https://community.auth0.com/t/400-bad-request-payload-validation-error-too-few-properties-defined-0-minimum-1/85893 "2022-06-24T17:33:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsinha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gsinha/32/26486_2.png) [@gsinha](https://community.auth0.com/u/gsinha)\
**Post date:** [June 24, 2022, 5:33pm UTC](https://community.auth0.com/t/400-bad-request-payload-validation-error-too-few-properties-defined-0-minimum-1/85893/1 "2022-06-24T17:33:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gsinha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gsinha/32/26486_2.png) [@gsinha](https://community.auth0.com/u/gsinha)\
**Post date:** [June 24, 2022, 5:37pm UTC](https://community.auth0.com/t/400-bad-request-payload-validation-error-too-few-properties-defined-0-minimum-1/85893/3 "2022-06-24T17:37:51Z")

</div>

![Screen Shot 2022-06-24 at 10.36.32 AM](https://global.discourse-cdn.com/auth0/original/3X/f/4/f42b9f981517532877dabbb9a9982cd0348352b9.png)

---

<div class="post-metadata">

**Author:** ![gsinha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gsinha/32/26486_2.png) [@gsinha](https://community.auth0.com/u/gsinha)\
**Post date:** [June 24, 2022, 6:38pm UTC](https://community.auth0.com/t/400-bad-request-payload-validation-error-too-few-properties-defined-0-minimum-1/85893/4 "2022-06-24T18:38:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [December 10, 2024, 7:29pm UTC](https://community.auth0.com/t/400-bad-request-payload-validation-error-too-few-properties-defined-0-minimum-1/85893/5 "2024-12-10T19:29:32Z")

</div>

Hello @gsinha!

I understand you’re trying to disable all grant types. I tried using the Auth0 dashboard and that worked for disabling all grant types. If this does not work for you please reach out. Please give this a try!

Best,  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 24, 2024, 7:29pm UTC](https://community.auth0.com/t/400-bad-request-payload-validation-error-too-few-properties-defined-0-minimum-1/85893/6 "2024-12-24T19:29:43Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
