builds.prepare
Description
Creates a new game build for the given game.
Code Examples
Request Parameters
game_id
required path parameterenvironment_id
required path parameterRequest Body
namestringimage_tagstringA tag given to the game build.
image_fileobjectA file being prepared to upload.
image_file.pathstringThe path/filename of the file.
image_file.content_typestringThe MIME type of the file.
image_file.content_lengthnumberUnsigned 64 bit integer.
multipart_uploadbooleankindstringcompressionstring
Response Body
buildstringimage_presigned_requestobjectA presigned request used to upload files. Upload your file to the given URL via a PUT request.
image_presigned_request.pathstringThe name of the file to upload. This is the same as the one given in the upload prepare file.
image_presigned_request.urlstringThe URL of the presigned request for which to upload your file to.
image_presigned_request.byte_offsetnumberThe byte offset for this multipart chunk. Always 0 if not a multipart upload.
image_presigned_request.content_lengthnumberExpected size of this upload.
image_presigned_requestsarray of objectsimage_presigned_requests.pathstringThe name of the file to upload. This is the same as the one given in the upload prepare file.
image_presigned_requests.urlstringThe URL of the presigned request for which to upload your file to.
image_presigned_requests.byte_offsetnumberThe byte offset for this multipart chunk. Always 0 if not a multipart upload.
image_presigned_requests.content_lengthnumberExpected size of this upload.