[Avatar Editor and API v2, v3] Outfit Operations fail due to Validation Error, if no assets were selected, breaking previous functionality

Description

The Roblox Applications send assets: [] inside the body of a PATCH request, or any other request, if you have nothing asset related selected. Due to that and some change that was recently made, you’re no longer able to Update nor Create certain Outfits, that you’re able to wear as an Avatar.

image

Compability to already existing avatars were broken.

image

Errors

CoreGui.RobloxGui.Modules.AvatarExperience.AvatarEditor.Components.AssetManagement.UpdateOutfitPage:199 function updateSavedOutfit
{
    "errors": [
        {
            "code": 0,
            "message": "{\"ValidationErrors\":[{\"Code\":8,\"Message\":\"Invalid assetIds\",\"FieldName\":\"assets\",\"FieldData\":\"0\"}]}"
        }
    ]
}

image

image

 

Reproduction Steps

Use the Roblox Player, don’t do it through the website.

1. You need a complete blocky R15 empty Avatar, colors are allowed. No face, no packages, no shirts, no pants.

Or for Roblox, simply create any new outfit and then send through this with PATCH to https://avatar.roblox.com/v3/outfits/{OUTFIT_ID}/details

{
        "assets": [
            {
                "id": 48474313
            }
        ],
        "bodyColor3s": {
            "headColor3": "f8f8f8",
            "torsoColor3": "f8d868",
            "rightArmColor3": "c26b65",
            "leftArmColor3": "719dcd",
            "rightLegColor3": "8d8b8e",
            "leftLegColor3": "729967"
        },
        "scale": {
            "height": 1,
            "width": 1,
            "head": 1,
            "depth": 1,
            "proportion": 0,
            "bodyType": 0
        }
    }

image

You’ll end up with this
image

 
2. Remove the Roblox Hat
image
image

 
3. Create or Update an existing Outfit.
image

 
4. Observe the error

 

 

Expected Result

You’re able to save outfits of this type of avatar.

Actual Result

You’re no longer able to update outfits of these kind of avatars.

2 Likes