question

jrDev avatar image
jrDev asked

Client UpdateCharacterData doesn't have parameter for CharacterId?

Hello,

So I am trying to use the UpdateCharacterData API but it doesn't allow the CharacterId parameter shown here: https://api.playfab.com/documentation/client/method/UpdateCharacterData

In Unity it throws this error:

Assets/JrDevAssets/PVUE - PlayFabVisualUnityExtensions/Playmaker Actions/Client/Character Data/PVUEActionsClientUpdateCharacterData.cs(77,5): error CS0117: `PlayFab.ClientModels.UpdateUserDataRequest' does not contain a definition for `CharacterId'

Is the documentation wrong for the API?

EDIT: Posted this in wrong forum section, please move to the API and SDK Questions section if can.

Thanks,

jrDev

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

·
brendan avatar image
brendan answered

Well, the error message is about UpdateUserDataRequest. UpdateCharacterData doesn't take an UpdateUserDataRequest - it takes an UpdateCharacterDataRequest. Can you provide the code snippet showing how you're making this call?

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.