Skip to main content
POST
Create Source

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string
required

The organization's id (UUID) or slug — either form is accepted.

projectId
string
required

The project's id (UUID) or slug — either form is accepted.

Body

application/json
byteLength
integer
required

Exact size of the gzipped tar archive in bytes.

Response

Signed upload. PUT the archive bytes to the URL before it expires.

key
string
required

Opaque source key — pass it to deploys.create as sourceKey.

url
string
required
method
enum<string>
required
Available options:
PUT
expiresAt
string<date-time>
required
headers
object

Headers that must accompany the upload request.