codesandbox-importers icon indicating copy to clipboard operation
codesandbox-importers copied to clipboard

Update an existing sandbox

Open akshay-8d66 opened this issue 2 years ago • 3 comments

Is there a way to update a specific sandbox with code from my local machine? It looks like the Codesandbox CLI always creates a new sandbox. And the APIs don't seem to have a way to do the same.

Is there a POST https://codesandbox.io/api/v1/sandboxes/:sandbox-id or something?

Thanks!

akshay-8d66 avatar Feb 11 '22 04:02 akshay-8d66

Hey @akshay-8d66 - Unfortunately it's not possible to update existing Sandboxes through the CLI.

You can technically do it via the API through a PUT to api/v1/sandboxes/:shortid but authentication can be tricky and we don't have documentation for this yet!

JamesACS avatar Feb 15 '22 10:02 JamesACS

We need this feature as well for define API . check https://github.com/microsoft/fluentui/issues/29435 for more context.

can you provide at least interface shape for that PUT api @JamesACS ? ty

Hotell avatar Oct 06 '23 14:10 Hotell

tried proposed PUT api today without luck

image

any updates on this one @JamesACS ? ty

Hotell avatar Oct 09 '23 16:10 Hotell