Write files
Changed onUploads and extracts files to a session'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 session's working directory, or to a custom directory specified via the x-cwd header.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v2/sandboxes/sessions/{sessionId}/fs/write
- Auth: HTTP bearer
Path parameters
The unique identifier of the session to write files to.
Query parameters
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Headers
The target directory where the tarball contents will be extracted. If not specified, files are extracted to the sandbox home directory.
Response
The files were successfully written to the session.
Changes
- info
removed the non-success response with the status
- info
- warning
deleted the
headerrequest parameter'x-Cwd' - info
added the new optional
headerrequest parameterx-cwd
- warning