POST /v1/sandboxes/{sandboxId}/fs/write
Uploads and extracts files to a sandbox's filesystem. Files must be uploaded as a gzipped tarball (.tar.gz) with the Content-Type header set to application/gzip. The tarball contents are extracted to the sandbox's working directory, or to a custom directory specified via the x-cwd header.
Servers
- https://api.vercel.com
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
sandboxId |
String | Yes |
The unique identifier of the sandbox to write files to. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
x-cwd |
String | No |
The target directory where the tarball contents will be extracted. If not specified, files are extracted to the sandbox home directory. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
teamId |
String | No |
The Team identifier to perform the request on behalf of. |
slug |
String | No |
The Team slug to perform the request on behalf of. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.