Here is the request and response:
{:ok,
%HTTPoison.Response{
body: "{\"statusCode\":400,\"error\":\"Bad Request\",\"message\":\"Payload validation error:
'Additional properties not allowed: 31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0 (consider storing them in app_metadata or user_metadata. See \\\"Users Metadata\\\" in https://auth0.com/docs/api/v2/changes for more details)'.\",\"errorCode\":\"invalid_body\"}",
headers: [
...
],
request: %HTTPoison.Request{
body: "{\"roles\":[\"myroleid\"]}",
headers: [
{"authorization",
"Bearer mytoken"},
{"accept", "application/json"}
],
method: :post,
options: [],
params: %{},
url: "https://mytenanturl/api/v2/users/myuserid/roles"
},
request_url: "https://mytenanturl/api/v2/users/myuserid/roles",
status_code: 400
}}
The issue to patch users seemed to self resolve – was an update made? Can someone please let me know?