Generate User Thumbnail
Changed onGenerates and returns the URL for the user's avatar thumbnail.
This is a long-running operation: the response is an Operation object. Poll the operation using its returned path until done is true. A completed operation contains either response or error:
- If response is set, response.imageUri contains the thumbnail URL.
- If error is set, the thumbnail couldn't be generated and response is not set. error.code and error.message describe the reason.
Always check for error before reading response.imageUri. See Get User Thumbnail Generation Operation.
Request
- Base URLhttps://apis.roblox.com
- URLhttps://apis.roblox.com/cloud/v2/users/{user_id}:generateThumbnail
- Auth
- API key in header x-api-key
- or OAuth 2Authorization code: https://apis.roblox.com/oauth/v1/authorizeToken URL: https://apis.roblox.com/oauth/v1/token
Path parameters
The user ID.
Query parameters
Size of the generated thumbnail. The generated thumbnail will have size * size dimension.
Currently supported values: 48, 50, 60, 75, 100, 110, 150, 180, 352, 420, 720 Default is 420.
Define the format of the thumbnail.
Specify the format of the generated thumbnail. Default is PNG.
Possible values:
| Value | Description |
|---|---|
| FORMAT_UNSPECIFIED | Default UserThumbnail Format -- set to png |
| PNG | Generate thumbnail in .png format |
| JPEG | Generate thumbnail in .jpg format |
Define the shape of the thumbnail.
Specify the shape of the thumbnail. Default is ROUND (circular).
Possible values:
| Value | Description |
|---|---|
| SHAPE_UNSPECIFIED | Default UserThumbnail Shape -- set to round |
| ROUND | Generate thumbnail as a circle. |
| SQUARE | Generate thumbnail as a rectangle. |
Response
OK
Changes
- breaking
for the
queryrequest parameterformat, default valueFORMAT_UNSPECIFIEDwas added - breaking
for the
queryrequest parametershape, default valueSHAPE_UNSPECIFIEDwas added - breaking
for the
queryrequest parametersize, default value0was added - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromobjectto no type for status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
for the
queryrequest parameterformat, the format was generalized fromenumto no format - info
for the
queryrequest parametershape, the format was generalized fromenumto no format - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status
- breaking