question

Terry Evans avatar image
Terry Evans asked

UpdateUserInventoryItemCustomData - Invalid input parameters

I'm trying to invoke the API call named UpdateUserInventoryItemCustomData, but I get back an "Invalid input parameters" error.

There is something about the Data field it doesn't like, so I'm guessing the expected format is different than what I'm passing in?

This is what's being passed in (from the log output):

	"api": 
	"/Server/UpdateUserInventoryItemCustomData",
	"request": 
	{
		"PlayFabId": 
		"EF1C1971032AF41A",
		"ItemInstanceId": 
		"C37D187D910996D1",
		"Data": 
		{
			"slot": 
			"Inventory00",
			"uses": 
			"uses"
		}
	},

And here's the error:

	"result": 
	null,
	"apiError": 
	{
		"code": 
		400,
		"status": 
		"BadRequest",
		"error": 
		"InvalidParams",
		"errorCode": 
		1000,
		"errorMessage": 
		"Invalid input parameters",
		"errorHash": 
		null,
		"errorDetails": 
		null
	}
1 comment
10 |1200

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

Terry Evans avatar image Terry Evans commented ·

The Data values are just bogus values I'm using for testing - hence the "uses" "users" - it's the syntax that's the issue.

0 Likes 0 ·

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Could you please provide your development platform and the reproduce steps? We tried to duplicate your request in the Postman, only replaced the PlayFabId and ItemInstanceId with the valid value that suitable for the testing title. It works fine. There is no anything wrong with Data.

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.