create_file_uploads
Create one or more file uploads.
Input fields
Boolean)
Whether to create file records for these uploads. If false or omitted, no file records will be created.
FileUploadOwnerInput)
Information required to create an owner of these files.
[FileUploadInput!]!)
Array of information used to create multiple file uploads.
Return fields
JSON!)
HTTP request headers
ID!)
ID of the file metadata
ID)
The Sentera ID of the owner of the file upload
String)
The s3 url, which requires AWS credentials when downloading the file
String!)
Presigned URL to upload a file to s3
String!)
Please use upload_url instead
Upload URL
Examples
Create File Uploads
Request multiple sets of credentials to upload files to Sentera's cloud storage.
Try this example in GraphiQLmutation CreateFileUploads{
create_file_uploads(
files: [
{
filename: "test.geojson"
content_type: "application/geo+json"
byte_size: 480452
checksum: "R1DTObliXS7goESYAqrAOQ=="
}
{
filename: "test2.geojson"
content_type: "application/geo+json"
byte_size: 34711
checksum: "S2GUObliXS7goESYAqrAOQ=="
}
{
filename: "test3.geojson"
content_type: "application/geo+json"
byte_size: 154233
checksum: "A3w4ObliXS7goESYAqrAOQ=="
}
]
) {
id
upload_url
headers
}
}
{
"data": {
"create_file_uploads": [
{
"id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBIQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--27fe910d886409cc7694ee895d5d1bf737147c9a",
"upload_url": "https://cloudvault-prod-import.s3.us-west-2.amazonaws.com/rq7eh5z7kema07lr011zrx58a6eb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJOTRNP3QHKMDZANQ%2F20201106%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201106T183828Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=content-length%3Bcontent-md5%3Bcontent-type%3Bhost&X-Amz-Signature=a034f856bf414d7a4a61e2be1efc2c62e6e45c179b8df1830bef77474ca7fe12",
"headers": {
"Content-Type": "application/geo+json",
"Content-MD5": "R1DTObliXS7goESYAqrAOQ=="
}
},
{
"id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBIUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a3406deeed11b354118574adb6a24660e8484ca2",
"upload_url": "https://cloudvault-prod-import.s3.us-west-2.amazonaws.com/jecwdq6cbyv90fnqu4in0pgikbjy?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJOTRNP3QHKMDZANQ%2F20201109%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201109T202050Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=content-length%3Bcontent-md5%3Bcontent-type%3Bhost&X-Amz-Signature=92098f9e748f7ef2454bb256fca235318a91a7e9ed4e2379e48f06e1b3c595e1",
"headers": {
"Content-Type": "application/geo+json",
"Content-MD5": "S2GUObliXS7goESYAqrAOQ=="
}
},
{
"id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBIZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--700deb7ac31e397c47bbe7750392f3418bfd2ec2",
"upload_url": "https://cloudvault-prod-import.s3.us-west-2.amazonaws.com/9gz4hfjw7m5ljlslzxoy9b3g5v01?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJOTRNP3QHKMDZANQ%2F20201109%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201109T202050Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=content-length%3Bcontent-md5%3Bcontent-type%3Bhost&X-Amz-Signature=6caeec8412e56020d4bc20460fc7fad98fdf63f443e843a3dc5fa09dd6620119",
"headers": {
"Content-Type": "application/geo+json",
"Content-MD5": "A3w4ObliXS7goESYAqrAOQ=="
}
}
]
}
}
Create File Uploads for an Owner
Request multiple sets of credentials to upload files to Sentera's cloud storage.
More Details
mutation CreateFileUploadsForOwner{
create_file_uploads(
file_upload_owner: {
parent_sentera_id: "7hy7bwv_CO_cyscAcme_CV_deve_6e3c36d3f_220308_135409"
owner_type: FEATURE_SET
owner_sentera_id: "w3x63n1_FS_cyscAcme_CV_deve_6e3c36d3f_220308_135411"
}
files: [
{
filename: "test.geojson"
content_type: "application/geo+json"
byte_size: 480452
checksum: "R1DTObliXS7goESYAqrAOQ=="
}
{
filename: "test2.geojson"
content_type: "application/geo+json"
byte_size: 34711
checksum: "S2GUObliXS7goESYAqrAOQ=="
}
]
) {
id
upload_url
headers
s3_url
owner_sentera_id
}
}
{
"data": {
"create_file_uploads": [
{
"id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBIQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--27fe910d886409cc7694ee895d5d1bf737147c9a",
"upload_url": "https://cloudvault-prod-import.s3.us-west-2.amazonaws.com/rq7eh5z7kema07lr011zrx58a6eb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJOTRNP3QHKMDZANQ%2F20201106%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201106T183828Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=content-length%3Bcontent-md5%3Bcontent-type%3Bhost&X-Amz-Signature=a034f856bf414d7a4a61e2be1efc2c62e6e45c179b8df1830bef77474ca7fe12",
"headers": {
"Content-Type": "application/geo+json",
"Content-MD5": "R1DTObliXS7goESYAqrAOQ=="
},
"s3_url": "s3://cloudvault-prod-permanent/cyscAcme/m0t9fcg_AS_cyscAcme_CV_deve_6e3c36d3f_220308_135409/7hy7bwv_CO_cyscAcme_CV_deve_6e3c36d3f_220308_135409/FeatureSets/w3x63n1_FS_cyscAcme_CV_deve_6e3c36d3f_220308_135411/test",
"owner_sentera_id": "w3x63n1_FS_cyscAcme_CV_deve_6e3c36d3f_220308_135411"
},
{
"id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBIUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a3406deeed11b354118574adb6a24660e8484ca2",
"upload_url": "https://cloudvault-prod-import.s3.us-west-2.amazonaws.com/jecwdq6cbyv90fnqu4in0pgikbjy?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJOTRNP3QHKMDZANQ%2F20201109%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201109T202050Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=content-length%3Bcontent-md5%3Bcontent-type%3Bhost&X-Amz-Signature=92098f9e748f7ef2454bb256fca235318a91a7e9ed4e2379e48f06e1b3c595e1",
"headers": {
"Content-Type": "application/geo+json",
"Content-MD5": "S2GUObliXS7goESYAqrAOQ=="
},
"s3_url": "s3://cloudvault-prod-permanent/cyscAcme/m0t9fcg_AS_cyscAcme_CV_deve_6e3c36d3f_220308_135409/7hy7bwv_CO_cyscAcme_CV_deve_6e3c36d3f_220308_135409/FeatureSets/w3x63n1_FS_cyscAcme_CV_deve_6e3c36d3f_220308_135411/test",
"owner_sentera_id": "w3x63n1_FS_cyscAcme_CV_deve_6e3c36d3f_220308_135411"
}
]
}
}