question

Shanathan Hanson avatar image
Shanathan Hanson asked

What is the correct Syntax format for the request field for PlayFabAdminApi::ResetPassword function?

Hi, I am having trouble with the syntax of the request field in the ResetPassword function inside the PlayFabAdminApi. I have searched and searched and I cannot find anywhere that it tells the correct syntax.

I think it is:

{Password:"MyNewPassword",Token:"MyResetToken"}

however this is not working. I have also tried:

{"Password":"MyNewPassword","Token":"MyResetToken"}

with no success.

The full error response I keep getting is:

{"code":400,"status":"BadRequest","error":"InvalidParams","errorCode":1000,"errorMessage":"Invalid input parameters","errorDetails":{"Token":["The Token field is required."],"Password":["Password is required"]}}<br>
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Shanathan Hanson avatar image
Shanathan Hanson answered

I believe the correct syntax is to be in an array format, not a json string!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.