Hi, i followed quick start of catalog and tried to update price of ugc item, but getting the error as shown in image. Thanks for answers !!
Hi, i followed quick start of catalog and tried to update price of ugc item, but getting the error as shown in image. Thanks for answers !!
hi, can the title_player_account modify the prices section ? in ugc item i created, i did not add any price section. I created a currency and pasted that id in prices section as shown in pic in my 1st question, and call update draft item.
It says, title_player_account not allowed to set prices. 400 bad request. Thanks for answers!
As mentioned in the error message, title_player_account cannot set the item price. To set the item price, you need to use title level entity. Players can use Azure Function with title level entity to set the price of item.
Hi, okay and is it possible to create draft item with price options also ? i'm trying in various ways but same error that title_player_account cannot set prices comes. It's like i want to create ugc item as a title_player along with price so that i want other players to purchase this with their currency.
Whether the UGC project is published or drafted, title_player_account cannot set the price section, only the title level entity can set the price. If you want to let player set the price of ugc so that other players can purchase it with their currency, you should use Azure Function to implement it. Players can use Azure Function with title level entity to set the price of item.
Sorry. The code side of this example is wrong. I'll work with someone to get it fixed.
In general, when updating you should do the following.
Call GetDraftItem
to get the item you want to modify
Modify the properties you want to change (like PriceOptions
)
Call UpdateDraftItem
and pass the modified item in the request body
36 People are following this question.