POST - Create Asset
Note: All body parameters need to be inside a 'data' object, as shown in the example request at the bottom.
Use this endpoint to create a new asset
Request Body
Name
Type
Description
{
"type": "BadRequestError",
"status": 400,
"message": "Bad Request",
"data": {
"body": [
{
"instancePath": "/data",
"schemaPath": "#/properties/data/required",
"keyword": "required",
"params": {
"missingProperty": "name"
},
"message": "must have required property 'name'"
}
]
}
}{
"type": "ForbiddenError",
"status": 403,
"message": "Cannot execute \"create\" on \"Asset\""
}Example Request Body
{
"data": {
"name": "New Asset",
"type": "outfit",
"gender": "male",
"locked": false,
"modelUrl": "https://example.org/model.glb",
"iconUrl": "https://example.org/icon.png",
"organizationId": "62a58eb4df136d4df8ce0d74",
"applications": [
{
"id": "6479be53386e0a8665161420",
"organizationId": "62a58eb4df136d4df8ce0d74",
"isVisibleInEditor": true
}
],
}
}Last updated
Was this helpful?

