angular - Auth0 API Request -
i'm trying make patch
request auth0 api endpoint, myaccount.auth0.com/api/v2/users/:id
. i've set headers application/json
, still following error:
_body: "{"statuscode":400,"error":"bad request","message":"invalid request payload json format"}"
the request made looks this:
headers.append('content-type', 'application/json'); var data: = { "app_metadata": { "ward": "99999" } }; return this._http.patch('https://pjlamb12.auth0.com/api/v2/users/auth0|571844c894efdc0a5b6a4144', data, {headers: headers}).map(res => res.json());
i matched data i'm sending docs shows here.
why getting error when posting json object docs show? missing?
Comments
Post a Comment