Skip to main content
POST
Error

Path Parameters

surveyId
string<uuid>
required

Body

application/json
name
string
required
Minimum string length: 1
Example:

"stimulus-pack.zip"

content_type
string
required
Minimum string length: 1
Example:

"application/zip"

size_bytes
integer
visibility
enum<string>

Bucket visibility. Defaults to private.

Available options:
private,
public
Example:

"private"

content_hash
string

When provided and a ready file with the same hash already exists for the survey, the existing file is returned and no upload URL is issued.

Pattern: ^[a-f0-9]{64}$
Example:

"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

Response

Existing ready file reused (content_hash match)

data
object
required
upload
object | null
required
existingMatch
boolean

True when an existing ready file matched content_hash and was reused.