Use this endpoint to update an asset
{
"data": {
"id": "640f2b0ed1dbab604a9955d0",
"type": "outfit",
"gender": "female",
"iconUrl": "https://example.org/icon.png",
"modelUrl": "https://example.org/model.glb",
"status": "draft",
"organizationId": "53a58ec6df126a3df8ce0d72",
"name": "Asset test updated",
"applicationIds": [],
"createdAt": "2023-03-14T09:32:31.423Z",
"updatedAt": "2023-03-14T09:32:48.804Z",
"publishedAt": "2023-03-14T09:32:48.804Z",
}
}
{
"type": "BadRequestError",
"status": 400,
"message": "Bad Request",
"data": {
"body": [
{
"instancePath": "/data/name",
"schemaPath": "#/properties/data/properties/name/minLength",
"keyword": "minLength",
"params": {
"limit": 1
},
"message": "must NOT have fewer than 1 characters"
}
]
}
}
{
"type": "ForbiddenError",
"status": 403,
"message": "Cannot execute \"update\" on \"Asset\""
}
{
"data": {
"name": "jacket-occassionwear-02",
"organizationId": "6453d11c462434a35b4abe17",
"locked": false,
"type": "outfit",
"gender": "neutral",
"modelUrl": "https://example.org/jacket-occassionwear-02.glb",
"iconUrl": "https://example.org/jacket-occassionwear-02.png",
"applications": [
{
"id": "6479be53386e0a8665161420",
"organizationId": "62a58eb4df136d4df8ce0d74",
"isVisibleInEditor": true
}
],
}
}
{
"data": {
"id": "145064511",
"name": "jacket-occassionwear-02",
"organizationId": "6453d11c462434a35b4abe17",
"locked": false,
"type": "top",
"gender": "neutral",
"modelUrl": "https://example.org/jacket-occassionwear-02.glb",
"iconUrl": "https://example.org/jacket-occassionwear-02.png",
"applications": [
{
"id": "6479be53386e0a8665161420",
"organizationId": "62a58eb4df136d4df8ce0d74",
"isVisibleInEditor": true,
"masculineOrder": 1,
"feminineOrder": 2
}
],
"hasApps": true,
"createdAt": "2023-02-02T14:39:01.026Z",
"updatedAt": "2023-02-02T14:39:08.656Z"
}
}