Objects
Presign an S3 request
/v1/workspaces/{workspaceId}/buckets/{bucketId}/presignReturns one presigned S3 request for one object key. Send it before expiresAt, with the returned headers exactly. Operations other than GetObject need the editor role. Role: viewer or higher.
Authentication
Send your Graphon API key with every request. The value is the whole API key that Graphon showed when you created it. See Authentication.
Authorization: Bearer <GRAPHON_API_KEY>Path parameters
workspaceIdstring
The workspace id.
bucketIdstring
The bucket id.
Request body
operationstring
One of: PutObject, GetObject, CreateMultipartUpload, UploadPart, CompleteMultipartUpload, AbortMultipartUpload.
keystring
The object key.
contentTypestring (optional)
The object content type. Used by PutObject, CreateMultipartUpload.
lengthBytesstring (optional)
The body size in bytes, as a string of digits. It is signed. Used by PutObject, UploadPart.
sha256string (optional)
The base64 SHA-256 of the body. G4 signs it and rejects other bytes. Used by PutObject, UploadPart.
ifNoneMatchstring (optional)
Send * to create only. G4 rejects the PUT if the key exists. One of: *. Used by PutObject.
versionIdstring (optional)
The version to read. Used by GetObject.
uploadIdstring (optional)
The multipart upload id. Used by UploadPart, CompleteMultipartUpload, AbortMultipartUpload.
partNumberinteger (optional)
The part number, from 1 to 10000. Used by UploadPart.