question

Alex avatar image
Alex asked

UpdateDraftItem doesn't work with AlternateIds request parameter

Hi,

We are using in our game CreateDraftItem that correctly works with AlternateIds parameter. For UpdateDraftItem, the CatalogItem is the same as the previous API but it always requires the Id assigned by Playfab. This is the error:

"The catalog item must contain a Id. (Parameter 'itemMetadata')"

Looking at the functionality of both endpoints, the case of UpdateDraftItem looks like a bug.

Could you give more info? Thanks!

apissdks
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

·
Xiao Zha avatar image
Xiao Zha answered

The Id of an item is a unique string which generated by PlayFab and used to identify the item. Therefore, the Id of the item cannot be changed. But since AlternateIds can be changed, when you update draftitem, AlternateIds may be modified, so we need to use immutable Id to find and update Item.

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.