Skip to content

Instantly share code, notes, and snippets.

@bodbdigr

bodbdigr/import-format.json Secret

Created Nov 23, 2020
Embed
What would you like to do?
{
"assets": [
{
"url": "https://something.com/my.jpg",
"type": "[mp4|pdf|jpg|png|gif]",
"metadata": {
"credit": "optional",
"caption": "optional",
"tags": [
"tag1"
],
"etc": ""
}
},
{
"url": "https://something.com/other.jpg",
"type": "[mp4|pdf|jpg|png|gif]",
"metadata": {}
}
],
"categories": [
{
"id": 1,
"title": "category one",
"path": "category-one",
"parent_category_id": null,
"status": "[public|private|unlisted]",
"metadata": {}
},
{
"id": 2,
"title": "category one",
"path": "category-one",
"parent_category_id": 1,
"status": "private",
"metadata": {}
}
],
"authors": [
{
"id": 1,
"display_name": "John Doe",
"email": "john@doe.com",
"first_name": "John",
"last_name": "Doe",
"path": "john-doe",
"avatar_url": "",
"bio": "",
"metadata": {}
}
],
"posts": [
{
"id": 1,
"path": "post-title",
"original_url": "https://letmegoogleitforyou.com/",
"status": "[draft|public|deleted]",
"published_date": "[timestamp_seconds]",
"title": "post title",
"subtitle": "post subtitle",
"content": "this is the post content",
"lead_media": "assets[N]",
"tags": [
"tag1",
"tag2"
],
"categories": "category[]",
"authors": "author[]",
"assembler": {
"particles": [
{
"type": "[slideshow|particle_item|multicolumn]",
"items": [
{
"title": "assembler title",
"lead_media": "assets[N]",
"content": "this is the assembler item (particle) content"
}
]
}
]
},
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment