@@ -31,6 +31,12 @@ declare module PlayFabProfilesModule {
31
31
request : PlayFabProfilesModels . GetTitlePlayersFromXboxLiveIDsRequest | null ,
32
32
callback : PlayFabModule . ApiCallback < PlayFabProfilesModels . GetTitlePlayersFromProviderIDsResponse > | null ,
33
33
) : void ;
34
+ // Update the display name of the entity
35
+ // https://docs.microsoft.com/rest/api/playfab/profiles/account-management/setdisplayname
36
+ SetDisplayName (
37
+ request : PlayFabProfilesModels . SetDisplayNameRequest | null ,
38
+ callback : PlayFabModule . ApiCallback < PlayFabProfilesModels . SetDisplayNameResponse > | null ,
39
+ ) : void ;
34
40
// Sets the global title access policy
35
41
// https://docs.microsoft.com/rest/api/playfab/profiles/account-management/setglobalpolicy
36
42
SetGlobalPolicy (
@@ -241,6 +247,24 @@ declare module PlayFabProfilesModels {
241
247
| "Deleted"
242
248
| "None" ;
243
249
250
+ export interface SetDisplayNameRequest extends PlayFabModule . IPlayFabRequestCommon {
251
+ // The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
252
+ CustomTags ?: { [ key : string ] : string | null } ;
253
+ // The new value to be set on Entity Profile's display name
254
+ DisplayName ?: string ;
255
+ // The optional entity to perform this action on. Defaults to the currently logged in entity.
256
+ Entity ?: EntityKey ;
257
+ // The expected version of a profile to perform this update on
258
+ ExpectedVersion ?: number ;
259
+ }
260
+
261
+ export interface SetDisplayNameResponse extends PlayFabModule . IPlayFabResultCommon {
262
+ // The type of operation that occured on the profile's display name
263
+ OperationResult ?: string ;
264
+ // The updated version of the profile after the display name update
265
+ VersionNumber ?: number ;
266
+ }
267
+
244
268
export interface SetEntityProfilePolicyRequest extends PlayFabModule . IPlayFabRequestCommon {
245
269
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
246
270
CustomTags ?: { [ key : string ] : string | null } ;
0 commit comments