Skip to content

Instantly share code, notes, and snippets.

@eMerzh
Created February 18, 2022 14:24
Show Gist options
  • Save eMerzh/479673092064dc388067754cbeec8b81 to your computer and use it in GitHub Desktop.
Save eMerzh/479673092064dc388067754cbeec8b81 to your computer and use it in GitHub Desktop.
Post Of Elium File
{
"variables": {
"input": {
"addedAssets": [
{
"file": "**YOUR**OWN**FILETOKEN",
"type": "FILE",
"uuid": "1d67939c-4175-4716-afee-16b48e188594"
}
],
"attributes": [
{
"key": "schema.b6293035-471c-4088-98a4-18eccc3da667",
"type": "STRING",
"valueString": "mystring value"
}
],
"body": {
"content": "{\"object\":\"value\",\"document\":{\"object\":\"document\",\"data\":{\"version\":4},\"nodes\":[{\"object\":\"block\",\"type\":\"asset\",\"data\":{\"asset\":\"11111111-4175-4716-afee-16b48e188594\",\"type\":\"FILE\",\"isExpanded\":false,\"mimetype\":\"application/pdf\"},\"nodes\":[{\"object\":\"text\",\"text\":\"\",\"marks\":[],\"key\":\"rkM9EP4SYwrCymFVGxjcxe\"}],\"key\":\"r7SaPn9AJGHtmQqPJ1Btj3\"}],\"key\":\"6XsKVWkc5Z8wTBagFFGTKu\"}}",
"format": "SLATE"
},
"builtins": [
{
"key": "TITLE",
"type": "STRING",
"valueString": "Title of the content"
}
],
"clientMutationId": "1cb29cee-8685-41b9-877f-dd10149a29fc",
"layoutMode": "SMALL",
"publish": true,
"spaceId": "U3BhY2U6NTEz"
}
}
}
{
"object": "value",
"document": {
"object": "document",
"data": {
"version": 4
},
"nodes": [
{
"object": "block",
"type": "asset",
"data": {
"asset": "11111111-4175-4716-afee-16b48e188594",
"type": "FILE",
"isExpanded": false,
"mimetype": "application/pdf"
},
"nodes": [
{
"object": "text",
"text": "",
"marks": [],
"key": "rkM9EP4SYwrCymFVGxjcxe"
}
],
"key": "r7SaPn9AJGHtmQqPJ1Btj3"
},
{
"object": "block",
"type": "paragraph",
"data": {},
"nodes": [
{
"object": "text",
"text": "",
"marks": [],
"key": "cQCDRswZaiXLKffVeozjnT"
}
],
"key": "cP9AHKi3BmfJDZZJaHcsoF"
}
],
"key": "6XsKVWkc5Z8wTBagFFGTKu"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment