Bad request error in auth0 authorization api (Add members to group)

Following documentation of authorization extension https://auth0.com/docs/api/authorization-extension?shell#add-group-members I am trying to add existing user to existing group for which my curl request look like this
curl --request PATCH \ --url 'https://shipt1.us.webtask.io/adf6e2f2b84784b57522e3b19dfc9201/api/groups/9a53545a-8f4e-4df9-b22a-396438c3a836/members' \ --header 'Authorization: Bearer <apitoken>' \ --data '[ "5cea5a5e168bd110f8cb2b02" ]'

but I am getting following error in response

{"statusCode":400,"error":"Bad Request","message":"\"value\" must be an array","validation":{"source":"payload","errors":[{"key":"value","path":"value","message":"\"value\" must be an array","type":"array","constraint":"base"}]}}
Am I doing something wrong here ? My extension url is good and also group id and user id exist

1 Like

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?