Ga naar inhoud
English

Bring a removed model back to live

POST
/v1/models/{id}/restore
curl --request POST \
--url https://api.virtualdisplay.io/v1/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

The model’s id, from the list.

OK

Media typeapplication/json
object
model
required

The restored model, now live, as the list shows it.

object
archived_at

When the account archive moved the model’s files out of the live bucket. Set only on an archived model.

string
archives_on
required

The UTC day the downgrade archive moves this live model, or null. Set only while a Shopify downgrade grace is pending.

One of:
string
embed_url
required

The embed URL of the model’s default app, the address a Customer’s page embeds.

string
file_size
required

The stored GLB in bytes, after sanitising.

integer
id
required

The model’s id. Use it in the model path. It is not the filename.

string
load_count
required

How many times a Shopper has viewed the model in a viewer. Zero until the first view.

integer
name
required

The model’s name: its file’s name without the .glb extension.

string
purge_at

When the archived files are deleted for good. Set only on an archived model.

string
thumbnail_url
required

A PNG of the model’s default app, or null while that app has none.

One of:
string
uploaded_at
required

When the file was uploaded, or last replaced. A replace moves it forward.

string

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

Media typeapplication/json
object
details

Null when the answer names no field. Otherwise, each field that is wrong:

  • id: invalid_input (Not a model id.)
object
id
  • invalid_input: Not a model id.
string
Allowed values: invalid_input
error
required
  • 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.
string
Allowed values: validation_error
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Exampleinvalid_input
{
"details": {
"id": "invalid_input"
},
"error": "validation_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

The answer carries unauthorized or token_invalid. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • 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.
string
Allowed values: unauthorized token_invalid
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

{
"error": "token_invalid",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Forbidden

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • 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.
string
Allowed values: forbidden restore_no_room
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

{
"error": "forbidden",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Not Found

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • not_found: No such model in your account. A model of another Customer answers the same.
string
Allowed values: not_found
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Examplenot_found
{
"error": "not_found",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Conflict

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • file_exists: A live model now has this filename. Rename or delete it, then restore.
string
Allowed values: file_exists
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Examplefile_exists
{
"error": "file_exists",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Request Entity Too Large

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • body_too_large: The request body is larger than we accept, so nothing was done. Make it smaller, then retry once.
string
Allowed values: body_too_large
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Examplebody_too_large
{
"error": "body_too_large",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

The answer carries rate_limited. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • rate_limited: The integration or its Customer is over its budget. Wait for the Retry-After seconds, then retry.
string
Allowed values: rate_limited
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Examplerate_limited
{
"error": "rate_limited",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

The answer carries internal_error. See the errors page.

Media typeapplication/json
object
details

Null: an answer with this status names no field.

null
error
required
  • internal_error: Our fault. Retry with backoff, then stop; send the trace_id if it persists.
string
Allowed values: internal_error
trace_id
required

Identifies the request on our side. Send it with a support question about a failure.

string

Examples

Exampleinternal_error
{
"error": "internal_error",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}