Skip to content

Avatar v3

Reference for the Avatar v3 endpoints on Roblox.

Base URL: https://avatar.roblox.com

MethodPathName
PATCH/v3/outfits/:userOutfitIdpatchOutfitsUseroutfitid
GET/v3/outfits/:userOutfitId/detailsgetOutfitsUseroutfitidDetails
POST/v3/outfits/createpostOutfitsCreate

PATCH /v3/outfits/:userOutfitId

Updates the contents of an outfit.

Usage
import { fetchApi } from 'rozod';
import { patchOutfitsUseroutfitid } from 'rozod/lib/endpoints/avatarv3';
const data = await fetchApi(patchOutfitsUseroutfitid, {
userOutfitId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
userOutfitIdintegerYesThe user outfit id.
FieldTypeDescription
namestring
bodyColor3sobjectSee below
assetsobject[]See below
scaleobjectSee below
playerAvatarTypestring
outfitType`01

bodyColor3s fields:

FieldTypeDescription
headColor3string
torsoColor3string
rightArmColor3string
leftArmColor3string
rightLegColor3string
leftLegColor3string

assets[] item fields:

FieldTypeDescription
idnumber
metaobjectSee below

meta fields:

FieldTypeDescription
ordernumber
puffinessnumber
positionobjectSee below
rotationobjectSee below
scaleobjectSee below
headShape`01
staticFacialAnimationboolean
versionnumber

position fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

rotation fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

scale fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

scale fields:

FieldTypeDescription
heightnumber
widthnumber
headnumber
depthnumber
proportionnumber
bodyTypenumber
FieldTypeDescription
idnumber
namestring
isEditableboolean
outfitTypestring
StatusDescription
4001: The specified userOutfit does not exist!
1: Must provide both assetIds and bodyColors in to update outfit contents.
3: Body colors must be valid BrickColor IDs
4: Invalid outfit name
5: Asset is not wearable by you
8: Invalid Player Avatar Type. Valid types are R6 and R15
11: Meta does not apply to specified asset type
12: Meta is required for this specific asset type
4010: Authorization has been denied for this request.
4030: Token Validation Failed
2: You don’t have permission to update this outfit.
5006: An error occurred while trying to update the outfit

GET /v3/outfits/:userOutfitId/details

Gets details about the contents of an outfit.

Usage
import { fetchApi } from 'rozod';
import { getOutfitsUseroutfitidDetails } from 'rozod/lib/endpoints/avatarv3';
const data = await fetchApi(getOutfitsUseroutfitidDetails, {
userOutfitId: /* integer */,
checkAssetAvailability: /* boolean? */
});
NameTypeRequiredDescription
userOutfitIdintegerYesThe user outfit id.
checkAssetAvailabilityboolean?NoWhether to return assets with availability status.
FieldTypeDescription
idnumber
namestring
assetsobject[]See below
bodyColor3sobjectSee below
scaleobjectSee below
playerAvatarTypestring
outfitTypestring
isEditableboolean
universeIdnumber
moderationStatusstring
bundleIdnumber
inventoryTypestring

assets[] item fields:

FieldTypeDescription
idnumber
namestring
assetTypeobjectSee below
currentVersionIdnumber
metaobjectSee below
availabilityStatusstring
expirationTimestring
supportsHeadShapesboolean

assetType fields:

FieldTypeDescription
idnumber
namestring

meta fields:

FieldTypeDescription
ordernumber
puffinessnumber
positionobjectSee below
rotationobjectSee below
scaleobjectSee below
headShape`01
staticFacialAnimationboolean
versionnumber

position fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

rotation fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

scale fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

bodyColor3s fields:

FieldTypeDescription
headColor3string
torsoColor3string
rightArmColor3string
leftArmColor3string
rightLegColor3string
leftLegColor3string

scale fields:

FieldTypeDescription
heightnumber
widthnumber
headnumber
depthnumber
proportionnumber
bodyTypenumber
StatusDescription
4001: The specified userOutfitId is invalid.
2: The outfit for the specified userOutfit is invalid.
4033: The requester does not have access to the details for the given user outfit.

POST /v3/outfits/create

Creates a new outfit.

Usage
import { fetchApi } from 'rozod';
import { postOutfitsCreate } from 'rozod/lib/endpoints/avatarv3';
const data = await fetchApi(postOutfitsCreate, {
body: { /* ... */ }
});
FieldTypeDescription
namestring
bodyColor3sobjectSee below
assetsobject[]See below
scaleobjectSee below
playerAvatarTypestring
outfitType`01

bodyColor3s fields:

FieldTypeDescription
headColor3string
torsoColor3string
rightArmColor3string
leftArmColor3string
rightLegColor3string
leftLegColor3string

assets[] item fields:

FieldTypeDescription
idnumber
metaobjectSee below

meta fields:

FieldTypeDescription
ordernumber
puffinessnumber
positionobjectSee below
rotationobjectSee below
scaleobjectSee below
headShape`01
staticFacialAnimationboolean
versionnumber

position fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

rotation fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

scale fields:

FieldTypeDescription
Xnumber
Ynumber
Znumber

scale fields:

FieldTypeDescription
heightnumber
widthnumber
headnumber
depthnumber
proportionnumber
bodyTypenumber
FieldTypeDescription
idnumber
namestring
isEditableboolean
outfitTypestring
StatusDescription
4003: Body colors must be valid BrickColor IDs
4: Invalid outfit name
5: Asset is not wearable by you and was not added to the outfit
7: Invalid Player Avatar Type. Valid types are R6 and R15
8: Invalid assetIds
9: Meta does not apply to specified asset type
10: Required meta is not provided for the specific asset type
4010: Authorization has been denied for this request.
4030: Token Validation Failed
1: You already have the maximum number of outfits
5006: An error occurred while creating the outfit