Last active
May 27, 2020 20:50
-
-
Save cdimartino/7ca3d166f195f1221c02732812f8a27f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Fetch Panels (with presigned url for read) | |
query { | |
currentUser{ | |
panels { | |
nodes { | |
id | |
title | |
type | |
brandingAsset { | |
id | |
presignedUrl | |
} | |
} | |
} | |
} | |
} | |
## Create presigned upload url | |
mutation { | |
createSignedUploadUrl { | |
s3Location | |
signedUrl | |
} | |
} | |
## Attach uploaded location as Branding image (copies to new location) | |
mutation AttachBranding($id: ID!, $s3Location: String!, $type: CloudArtifactTypeEnum!) { | |
myPanelAttachBranding(input: {id: $id, s3Location: $s3Location, type: $type}) { | |
panel { | |
brandingAsset { | |
presignedUrl | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment