Optimization Settings
The ID of the Project the Optimization Settings belongs to
The ID of the Optimization Settings to get
Success
An error occurred
GET /v1/avatars/{projectId}/optimization-settings/{optimizationSettingsId} HTTP/1.1
Host: api.msquared.io
Accept: */*
{
"id": "text",
"name": "text",
"preset": "low",
"createdAt": "text",
"createdBy": {
"userId": "text",
"type": "user"
},
"canWrite": true
}
The ID of the Project the Optimization Settings belongs to
The offset into queried items to return
The maximum number of items to return (maximum 100)
The search query to filter the results
Success
An error occurred
GET /v1/avatars/{projectId}/optimization-settings HTTP/1.1
Host: api.msquared.io
Accept: */*
{
"optimizationSettings": [
{
"id": "text",
"name": "text",
"preset": "low",
"createdAt": "text",
"createdBy": {
"userId": "text",
"type": "user"
}
}
],
"totalResults": 1,
"offset": 1,
"limit": 1,
"canWrite": true
}
The ID of the Project the Optimization Settings belongs to
Success
An error occurred
POST /v1/avatars/{projectId}/optimization-settings HTTP/1.1
Host: api.msquared.io
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"name": "text",
"preset": "low"
}
{
"id": "text",
"name": "text",
"preset": "low",
"createdAt": "text",
"createdBy": {
"userId": "text",
"type": "user"
}
}
The ID of the Project the Optimization Settings belongs to
The ID of the Optimization Settings to delete
Success
No content
An error occurred
DELETE /v1/avatars/{projectId}/optimization-settings/{optimizationSettingsId} HTTP/1.1
Host: api.msquared.io
Accept: */*
No content
The ID of the Project the Optimization Settings belongs to
The ID of the Optimization Settings to update
Success
An error occurred
PATCH /v1/avatars/{projectId}/optimization-settings/{optimizationSettingsId} HTTP/1.1
Host: api.msquared.io
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"name": "text",
"preset": "low"
}
{
"id": "text",
"name": "text",
"preset": "low",
"createdAt": "text",
"createdBy": {
"userId": "text",
"type": "user"
}
}
The id of the Project
The starting ISO 8601 timestamp of the usage period
The ending ISO 8601 timestamp for this usage period
An ISO 8601 duration for the interval
The id of the Optimization Settings to filter by
The Optimization Settings's usage
An error occurred
GET /v1/avatars/{projectId}/optimization-settings/usage?startTime=2025-10-09T20%3A16%3A36.707Z&endTime=2025-10-09T20%3A16%3A36.707Z&interval=P1D HTTP/1.1
Host: api.msquared.io
Accept: */*
{
"intervals": [
{
"startTime": "2025-10-09T20:16:36.707Z",
"endTime": "2025-10-09T20:16:36.707Z",
"avatarBakesCount": 1
}
]
}
The ID of the Project the Optimization Settings belongs to
The ID of the Optimization Settings to use for processing the avatar
The MML of the avatar to process
Success
An error occurred
PUT /v1/avatars/{projectId}/optimization-settings/{optimizationSettingsId}/process HTTP/1.1
Host: api.msquared.io
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"avatarMml": "text"
}
{
"glbUrl": "text",
"mmlUrl": "text"
}
Last updated
Was this helpful?