Bring a removed model back to live
const url = 'https://api.virtualdisplay.io/v1/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.virtualdisplay.io/v1/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The model’s id, from the list.
Responses
Section titled “Responses”OK
object
The restored model, now live, as the list shows it.
object
When the account archive moved the model’s files out of the live bucket. Set only on an archived model.
The embed URL of the model’s default app, the address a Customer’s page embeds.
The stored GLB in bytes, after sanitising.
The model’s id. Use it in the model path. It is not the filename.
How many times a Shopper has viewed the model in a viewer. Zero until the first view.
The model’s name: its file’s name without the .glb extension.
When the archived files are deleted for good. Set only on an archived model.
When the file was uploaded, or last replaced. A replace moves it forward.
Example
{ "model": { "id": "0196a1f0-b8d4-7e21-8a6f-3c9d1e5b2f40", "name": "eiken-stoel", "embed_url": "https://embed.virtualdisplay.io?app=eiken-stoel", "thumbnail_url": null, "load_count": 1284, "file_size": 2481916, "uploaded_at": "2026-11-16T14:03:21Z", "archives_on": null }}Bad Request
object
Null when the answer names no field. Otherwise, each field that is wrong:
id:invalid_input(Not a model id.)
object
invalid_input: Not a model id.
validation_error: A field is wrong, or the body is not the JSON the operation takes. details names each wrong field; repair it, do not retry as it is.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "details": { "id": "invalid_input" }, "error": "validation_error", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}The answer carries unauthorized or token_invalid. See the errors page.
object
Null: an answer with this status names no field.
unauthorized: No Bearer token was sent, or the token was revoked, or its integration was disabled. Send a valid token, do not retry the same one.token_invalid: The token is malformed, has a bad signature or has expired. Exchange the secret for a new token, then retry once.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "token_invalid", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}{ "error": "unauthorized", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}Forbidden
object
Null: an answer with this status names no field.
forbidden: The token is valid, but this integration may not make this call. Do not retry.restore_no_room: The subscription has no room for the model. Free a slot or raise the plan, then restore.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "forbidden", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}{ "error": "restore_no_room", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}Not Found
object
Null: an answer with this status names no field.
not_found: No such model in your account. A model of another Customer answers the same.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "not_found", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}Conflict
object
Null: an answer with this status names no field.
file_exists: A live model now has this filename. Rename or delete it, then restore.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "file_exists", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}Request Entity Too Large
object
Null: an answer with this status names no field.
body_too_large: The request body is larger than we accept, so nothing was done. Make it smaller, then retry once.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "body_too_large", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}The answer carries rate_limited. See the errors page.
object
Null: an answer with this status names no field.
rate_limited: The integration or its Customer is over its budget. Wait for the Retry-After seconds, then retry.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "rate_limited", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}The answer carries internal_error. See the errors page.
object
Null: an answer with this status names no field.
internal_error: Our fault. Retry with backoff, then stop; send the trace_id if it persists.
Identifies the request on our side. Send it with a support question about a failure.
Examples
{ "error": "internal_error", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"}