Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Upload a build's source archive bytes

Upload a gzip-compressed tar archive to the target returned when the build was created. Respect the upload instruction’s maxBytes. The build is queued after the archive is stored.

PUT/v1/spaces/{spaceId}/uploads/{uploadId}
Authorization
AuthorizationBearer token · headerrequired

Better Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.

Path parameters
spaceIdstringrequired
uploadIdstringrequired
Request body
requiredapplication/octet-stream

The source archive's raw bytes.

string<binary>
Responses
204

The source archive was uploaded.

Try it
Server
Authorization
Parameters
Bodyapplication/octet-stream
Request
curl -X PUT 'https://api.spacefast.com/v1/spaces/string/uploads/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/octet-stream' \
  -d 'string'
Response
The source archive was uploaded.

Was this page helpful?