mintEcastingUpload
Creates a signed upload target for one photo or video field of the signed-in talent's e-casting request. Each field holds one file; uploading again replaces it. Refused once the request is submitted, revoked or expired, and rate-limited per request. Returns the upload target.
Arguments
contentTypeStringMIME type of a photo:
image/jpeg,image/pngorimage/webp. Required for photos, ignored for videos.fieldIdID!ID of a
PHOTOorVIDEOfield of the request's form.maxDurationSecondsIntVideos only: the longest duration the upload may have, in seconds. Defaults to 180, at most 600.
requestIdID!ID of the e-casting request.
sizeBytesBigIntSize of the file in bytes. Required. For a video it must be the exact size, at most 5 GiB; a photo may be at most 10 MiB.
spaceIdID!ID of the space the request belongs to (
TalentEcastingRequest.spaceId).
Returns
EcastingMintOutput!Example
mutation MintEcastingUpload($contentType: String, $fieldId: ID!, $maxDurationSeconds: Int, $requestId: ID!, $sizeBytes: BigInt, $spaceId: ID!) {
mintEcastingUpload(
contentType: $contentType
fieldId: $fieldId
maxDurationSeconds: $maxDurationSeconds
requestId: $requestId
sizeBytes: $sizeBytes
spaceId: $spaceId
) {
fieldId
mediaId
slotKind
}
}